crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-23  Bruno Haible  <bruno@clisp.org>
2
3         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
4         * m4/hmac-sha1.m4: Remove file.
5         * modules/crypto/hmac-sha1 (Files): Remove it.
6         (configure.ac): Remove gl_HMAC_SHA1 call.
7         (Makefile.am): Augment lib_SOURCES.
8
9 2011-05-23  Bruno Haible  <bruno@clisp.org>
10
11         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12         * m4/hmac-md5.m4: Remove file.
13         * modules/crypto/hmac-md5 (Files): Remove it.
14         (configure.ac): Remove gl_HMAC_MD5 call.
15         (Makefile.am): Augment lib_SOURCES.
16
17 2011-05-23  Bruno Haible  <bruno@clisp.org>
18
19         hash: Move AC_LIBOBJ invocations to module description.
20         * m4/hash.m4: Remove file.
21         * modules/hash (Files): Remove it.
22         (configure.ac): Remove gl_HASH call.
23         (Makefile.am): Augment lib_SOURCES.
24
25 2011-05-23  Bruno Haible  <bruno@clisp.org>
26
27         hard-locale: Move AC_LIBOBJ invocations to module description.
28         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
29         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
30
31 2011-05-23  Bruno Haible  <bruno@clisp.org>
32
33         getugroups: Move AC_LIBOBJ invocations to module description.
34         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
35         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
36
37 2011-05-23  Bruno Haible  <bruno@clisp.org>
38
39         gettime: Move AC_LIBOBJ invocations to module description.
40         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
41         * modules/gettime (Makefile.am): Augment lib_SOURCES.
42
43 2011-05-23  Bruno Haible  <bruno@clisp.org>
44
45         getndelim2: Move AC_LIBOBJ invocations to module description.
46         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
47         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
48
49 2011-05-23  Bruno Haible  <bruno@clisp.org>
50
51         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
52         * m4/gc-pbkdf2-sha1.m4: Remove file.
53         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
54         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
55         (Makefile.am): Augment lib_SOURCES.
56
57 2011-05-23  Bruno Haible  <bruno@clisp.org>
58
59         fts: Move AC_LIBOBJ invocations to module description.
60         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
61         * modules/fts (configure.ac): ... to here.
62
63 2011-05-23  Bruno Haible  <bruno@clisp.org>
64
65         file-type: Move AC_LIBOBJ invocations to module description.
66         * m4/file-type.m4: Remove file.
67         * modules/file-type (Files): Remove it.
68         (configure.ac): Remove gl_FILE_TYPE call.
69         (Makefile.am): Augment lib_SOURCES.
70
71 2011-05-23  Bruno Haible  <bruno@clisp.org>
72
73         filenamecat*: Respect rules for use of AC_LIBOBJ.
74         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
75         Remove AC_LIBOBJ invocation.
76         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
77         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
78
79 2011-05-23  Bruno Haible  <bruno@clisp.org>
80
81         filemode: Move AC_LIBOBJ invocations to module description.
82         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
83         * modules/filemode (Makefile.am): Augment lib_SOURCES.
84
85 2011-05-23  Bruno Haible  <bruno@clisp.org>
86
87         openat-safer: Move AC_LIBOBJ invocations to module description.
88         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
89         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
90
91 2011-05-23  Bruno Haible  <bruno@clisp.org>
92
93         fcntl-safer: Move AC_LIBOBJ invocations to module description.
94         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
95         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
96
97 2011-05-23  Bruno Haible  <bruno@clisp.org>
98
99         exclude: Move AC_LIBOBJ invocations to module description.
100         * m4/exclude.m4: Remove file.
101         * modules/exclude (Files): Remove it.
102         (configure.ac): Remove gl_EXCLUDE call.
103         (Makefile.am): Augment lib_SOURCES.
104
105 2011-05-23  Bruno Haible  <bruno@clisp.org>
106
107         dirname*: Respect rules for use of AC_LIBOBJ.
108         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
109         invocations.
110         * modules/dirname (Makefile.am): Augment lib_SOURCES.
111         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
112
113 2011-05-23  Bruno Haible  <bruno@clisp.org>
114
115         dirent-safer: Move AC_LIBOBJ invocations to module description.
116         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
117         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
118
119 2011-05-23  Bruno Haible  <bruno@clisp.org>
120
121         crypto/des: Move AC_LIBOBJ invocations to module description.
122         * m4/des.m4: Remove file.
123         * modules/crypto/des (Files): Remove it.
124         (configure.ac): Remove gl_DES call.
125         (Makefile.am): Augment lib_SOURCES.
126
127 2011-05-23  Bruno Haible  <bruno@clisp.org>
128
129         cycle-check: Move AC_LIBOBJ invocations to module description.
130         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
131         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
132
133 2011-05-23  Bruno Haible  <bruno@clisp.org>
134
135         c-strtold: Move AC_LIBOBJ invocations to module description.
136         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
137         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
138
139 2011-05-23  Bruno Haible  <bruno@clisp.org>
140
141         c-strtod: Move AC_LIBOBJ invocations to module description.
142         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
143         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
144
145 2011-05-23  Bruno Haible  <bruno@clisp.org>
146
147         crc: Move AC_LIBOBJ invocations to module description.
148         * m4/crc.m4: Remove file.
149         * modules/crc (Files): Remove it.
150         (configure.ac): Remove gl_CRC call.
151         (Makefile.am): Augment lib_SOURCES.
152
153 2011-05-23  Bruno Haible  <bruno@clisp.org>
154
155         close-stream: Move AC_LIBOBJ invocations to module description.
156         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
157         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
158
159 2011-05-23  Bruno Haible  <bruno@clisp.org>
160
161         closeout: Move AC_LIBOBJ invocations to module description.
162         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
163         * modules/closeout (Makefile.am): Augment lib_SOURCES.
164
165 2011-05-23  Bruno Haible  <bruno@clisp.org>
166
167         closein: Move AC_LIBOBJ invocations to module description.
168         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
169         * modules/closein (Makefile.am): Augment lib_SOURCES.
170
171 2011-05-23  Bruno Haible  <bruno@clisp.org>
172
173         cloexec: Move AC_LIBOBJ invocations to module description.
174         * m4/cloexec.m4: Remove file.
175         * modules/cloexec (Files): Remove it.
176         (configure.ac): Remove gl_CLOEXEC call.
177         (Makefile.am): Augment lib_SOURCES.
178
179 2011-05-23  Bruno Haible  <bruno@clisp.org>
180
181         check-version: Move AC_LIBOBJ invocations to module description.
182         * m4/check-version.m4: Remove file.
183         * modules/check-version (Files): Remove it.
184         (configure.ac): Remove gl_CHECK_VERSION call.
185         (Makefile.am): Augment lib_SOURCES.
186
187 2011-05-23  Bruno Haible  <bruno@clisp.org>
188
189         chdir-safer: Move AC_LIBOBJ invocations to module description.
190         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
191         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
192
193 2011-05-23  Bruno Haible  <bruno@clisp.org>
194
195         canonicalize: Move AC_LIBOBJ invocations to module description.
196         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
197         AC_LIBOBJ invocation.
198         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
199
200 2011-05-23  Bruno Haible  <bruno@clisp.org>
201
202         canon-host: Move AC_LIBOBJ invocations to module description.
203         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
204         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
205         instead of gl_CANON_HOST.
206         (Makefile.am): Augment lib_SOURCES.
207
208 2011-05-23  Bruno Haible  <bruno@clisp.org>
209
210         backupfile: Move AC_LIBOBJ invocations to module description.
211         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
212         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
213
214 2011-05-23  Bruno Haible  <bruno@clisp.org>
215
216         argmatch: Move AC_LIBOBJ invocations to module description.
217         * m4/argmatch.m4: Remove file.
218         * modules/argmatch (Files): Remove it.
219         (configure.ac): Remove gl_ARGMATCH call.
220         (Makefile.am): Augment lib_SOURCES.
221
222 2011-05-23  Bruno Haible  <bruno@clisp.org>
223
224         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
225         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
226         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
227
228 2011-05-23  Bruno Haible  <bruno@clisp.org>
229
230         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
231         * m4/arcfour.m4: Remove file.
232         * modules/crypto/arcfour (Files): Remove it.
233         (configure.ac): Remove gl_ARCFOUR call.
234         (Makefile.am): Augment lib_SOURCES.
235
236 2011-05-22  Bruno Haible  <bruno@clisp.org>
237
238         write: Move AC_LIBOBJ invocations to module description.
239         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
240         * modules/write (configure.ac): ... to here.
241
242 2011-05-22  Bruno Haible  <bruno@clisp.org>
243
244         wmemset: Move AC_LIBOBJ invocations to module description.
245         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
246         here...
247         * modules/wmemset (configure.ac): ... to here.
248
249 2011-05-22  Bruno Haible  <bruno@clisp.org>
250
251         wmemmove: Move AC_LIBOBJ invocations to module description.
252         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
253         here...
254         * modules/wmemmove (configure.ac): ... to here.
255
256 2011-05-22  Bruno Haible  <bruno@clisp.org>
257
258         wmemcpy: Move AC_LIBOBJ invocations to module description.
259         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
260         here...
261         * modules/wmemcpy (configure.ac): ... to here.
262
263 2011-05-22  Bruno Haible  <bruno@clisp.org>
264
265         wmemcmp: Move AC_LIBOBJ invocations to module description.
266         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
267         here...
268         * modules/wmemcmp (configure.ac): ... to here.
269
270 2011-05-22  Bruno Haible  <bruno@clisp.org>
271
272         wmemchr: Move AC_LIBOBJ invocations to module description.
273         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
274         here...
275         * modules/wmemchr (configure.ac): ... to here.
276
277 2011-05-22  Bruno Haible  <bruno@clisp.org>
278
279         wcswidth: Move AC_LIBOBJ invocations to module description.
280         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
281         here...
282         * modules/wcswidth (configure.ac): ... to here.
283
284 2011-05-22  Bruno Haible  <bruno@clisp.org>
285
286         wcwidth: Respect rules for use of AC_LIBOBJ.
287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
288         invocation from here...
289         * modules/wcwidth (configure.ac): ... to here.
290         (Depends-on): Update conditions.
291
292 2011-05-22  Bruno Haible  <bruno@clisp.org>
293
294         wctype: Move AC_LIBOBJ invocations to module description.
295         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
296         invocation from here...
297         * modules/wctype (configure.ac): ... to here.
298         (Depends-on): Update conditions.
299
300 2011-05-22  Bruno Haible  <bruno@clisp.org>
301
302         wctrans: Move AC_LIBOBJ invocations to module description.
303         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
304         invocation from here...
305         * modules/wctrans (configure.ac): ... to here.
306
307 2011-05-22  Bruno Haible  <bruno@clisp.org>
308
309         wctomb: Move AC_LIBOBJ invocations to module description.
310         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
311         invocations from here...
312         * modules/wctomb (configure.ac): ... to here.
313
314 2011-05-22  Bruno Haible  <bruno@clisp.org>
315
316         wctob: Move AC_LIBOBJ invocations to module description.
317         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
318         gl_PREREQ_WCTOB invocations from here...
319         * modules/wctob (configure.ac): ... to here.
320         (Depends-on): Update conditions.
321
322 2011-05-22  Bruno Haible  <bruno@clisp.org>
323
324         wcsxfrm: Move AC_LIBOBJ invocations to module description.
325         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
326         here...
327         * modules/wcsxfrm (configure.ac): ... to here.
328
329 2011-05-22  Bruno Haible  <bruno@clisp.org>
330
331         wcstok: Move AC_LIBOBJ invocations to module description.
332         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
333         * modules/wcstok (configure.ac): ... to here.
334
335 2011-05-22  Bruno Haible  <bruno@clisp.org>
336
337         wcsstr: Move AC_LIBOBJ invocations to module description.
338         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
339         * modules/wcsstr (configure.ac): ... to here.
340
341 2011-05-22  Bruno Haible  <bruno@clisp.org>
342
343         wcsspn: Move AC_LIBOBJ invocations to module description.
344         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
345         * modules/wcsspn (configure.ac): ... to here.
346
347 2011-05-22  Bruno Haible  <bruno@clisp.org>
348
349         wcsrtombs: Move AC_LIBOBJ invocations to module description.
350         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
351         gl_PREREQ_WCSRTOMBS invocations from here...
352         * modules/wcsrtombs (configure.ac): ... to here.
353
354 2011-05-22  Bruno Haible  <bruno@clisp.org>
355
356         wcsrchr: Move AC_LIBOBJ invocations to module description.
357         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
358         here...
359         * modules/wcsrchr (configure.ac): ... to here.
360
361 2011-05-22  Bruno Haible  <bruno@clisp.org>
362
363         wcspbrk: Move AC_LIBOBJ invocations to module description.
364         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
365         here...
366         * modules/wcspbrk (configure.ac): ... to here.
367
368 2011-05-22  Bruno Haible  <bruno@clisp.org>
369
370         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
371         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
372         gl_PREREQ_WCSNRTOMBS invocations from here...
373         * modules/wcsnrtombs (configure.ac): ... to here.
374
375 2011-05-22  Bruno Haible  <bruno@clisp.org>
376
377         wcsnlen: Move AC_LIBOBJ invocations to module description.
378         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
379         here...
380         * modules/wcsnlen (configure.ac): ... to here.
381
382 2011-05-22  Bruno Haible  <bruno@clisp.org>
383
384         wcsncpy: Move AC_LIBOBJ invocations to module description.
385         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
386         here...
387         * modules/wcsncpy (configure.ac): ... to here.
388
389 2011-05-22  Bruno Haible  <bruno@clisp.org>
390
391         wcsncmp: Move AC_LIBOBJ invocations to module description.
392         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
393         here...
394         * modules/wcsncmp (configure.ac): ... to here.
395
396 2011-05-22  Bruno Haible  <bruno@clisp.org>
397
398         wcsncat: Move AC_LIBOBJ invocations to module description.
399         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
400         here...
401         * modules/wcsncat (configure.ac): ... to here.
402
403 2011-05-22  Bruno Haible  <bruno@clisp.org>
404
405         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
406         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
407         from here...
408         * modules/wcsncasecmp (configure.ac): ... to here.
409
410 2011-05-22  Bruno Haible  <bruno@clisp.org>
411
412         wcslen: Move AC_LIBOBJ invocations to module description.
413         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
414         * modules/wcslen (configure.ac): ... to here.
415
416 2011-05-22  Bruno Haible  <bruno@clisp.org>
417
418         wcsdup: Move AC_LIBOBJ invocations to module description.
419         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
420         * modules/wcsdup (configure.ac): ... to here.
421
422 2011-05-22  Bruno Haible  <bruno@clisp.org>
423
424         wcscspn: Move AC_LIBOBJ invocations to module description.
425         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
426         here...
427         * modules/wcscspn (configure.ac): ... to here.
428
429 2011-05-22  Bruno Haible  <bruno@clisp.org>
430
431         wcscpy: Move AC_LIBOBJ invocations to module description.
432         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
433         * modules/wcscpy (configure.ac): ... to here.
434
435 2011-05-22  Bruno Haible  <bruno@clisp.org>
436
437         wcscoll: Move AC_LIBOBJ invocations to module description.
438         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
439         here...
440         * modules/wcscoll (configure.ac): ... to here.
441
442 2011-05-22  Bruno Haible  <bruno@clisp.org>
443
444         wcscmp: Move AC_LIBOBJ invocations to module description.
445         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
446         * modules/wcscmp (configure.ac): ... to here.
447
448 2011-05-22  Bruno Haible  <bruno@clisp.org>
449
450         wcschr: Move AC_LIBOBJ invocations to module description.
451         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
452         * modules/wcschr (configure.ac): ... to here.
453
454 2011-05-22  Bruno Haible  <bruno@clisp.org>
455
456         wcscat: Move AC_LIBOBJ invocations to module description.
457         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
458         * modules/wcscat (configure.ac): ... to here.
459
460 2011-05-22  Bruno Haible  <bruno@clisp.org>
461
462         wcscasecmp: Move AC_LIBOBJ invocations to module description.
463         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
464         here...
465         * modules/wcscasecmp (configure.ac): ... to here.
466
467 2011-05-22  Bruno Haible  <bruno@clisp.org>
468
469         wcrtomb: Move AC_LIBOBJ invocations to module description.
470         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
471         invocations from here...
472         * modules/wcrtomb (configure.ac): ... to here.
473
474 2011-05-22  Bruno Haible  <bruno@clisp.org>
475
476         wcpncpy: Move AC_LIBOBJ invocations to module description.
477         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
478         here...
479         * modules/wcpncpy (configure.ac): ... to here.
480
481 2011-05-22  Bruno Haible  <bruno@clisp.org>
482
483         wcpcpy: Move AC_LIBOBJ invocations to module description.
484         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
485         * modules/wcpcpy (configure.ac): ... to here.
486
487 2011-05-22  Bruno Haible  <bruno@clisp.org>
488
489         waitpid: Move AC_LIBOBJ invocations to module description.
490         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
491         invocation from here...
492         * modules/waitpid (configure.ac): ... to here.
493
494 2011-05-22  Bruno Haible  <bruno@clisp.org>
495
496         utimensat: Move AC_LIBOBJ invocations to module description.
497         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
498         here...
499         * modules/utimensat (configure.ac): ... to here.
500
501 2011-05-22  Bruno Haible  <bruno@clisp.org>
502
503         usleep: Move AC_LIBOBJ invocations to module description.
504         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
505         here...
506         * modules/usleep (configure.ac): ... to here.
507
508 2011-05-22  Bruno Haible  <bruno@clisp.org>
509
510         unlockpt: Move AC_LIBOBJ invocations to module description.
511         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
512         gl_PREREQ_UNLOCKPT invocations from here...
513         * modules/unlockpt (configure.ac): ... to here.
514
515 2011-05-22  Bruno Haible  <bruno@clisp.org>
516
517         unlink: Respect rules for use of AC_LIBOBJ.
518         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
519         * modules/unlink (configure.ac): ... to here.
520
521 2011-05-22  Bruno Haible  <bruno@clisp.org>
522
523         uname: Move AC_LIBOBJ invocations to module description.
524         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
525         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
526         here...
527         * modules/uname (configure.ac): ... to here.
528
529 2011-05-22  Bruno Haible  <bruno@clisp.org>
530
531         ttyname_r: Move AC_LIBOBJ invocations to module description.
532         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
533         gl_PREREQ_TTYNAME_R invocations from here...
534         * modules/ttyname_r (configure.ac): ... to here.
535
536 2011-05-22  Bruno Haible  <bruno@clisp.org>
537
538         tsearch: Move AC_LIBOBJ invocations to module description.
539         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
540         invocations from here...
541         * modules/tsearch (configure.ac): ... to here.
542
543 2011-05-22  Bruno Haible  <bruno@clisp.org>
544
545         towctrans: Move AC_LIBOBJ invocations to module description.
546         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
547         AC_LIBOBJ invocation from here...
548         * modules/towctrans (configure.ac): ... to here.
549
550 2011-05-22  Bruno Haible  <bruno@clisp.org>
551
552         tmpfile: Move AC_LIBOBJ invocations to module description.
553         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
554         invocations from here...
555         * modules/tmpfile (configure.ac): ... to here.
556
557 2011-05-22  Bruno Haible  <bruno@clisp.org>
558
559         times: Move AC_LIBOBJ invocations to module description.
560         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
561         * modules/times (configure.ac): ... to here.
562
563 2011-05-22  Bruno Haible  <bruno@clisp.org>
564
565         time_r: Move AC_LIBOBJ invocations to module description.
566         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
567         invocations from here...
568         * modules/time_r (configure.ac): ... to here.
569
570 2011-05-22  Bruno Haible  <bruno@clisp.org>
571
572         timegm: Move AC_LIBOBJ invocations to module description.
573         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
574         invocations from here...
575         * modules/timegm (configure.ac): ... to here.
576
577 2011-05-22  Bruno Haible  <bruno@clisp.org>
578
579         tcgetsid: Move AC_LIBOBJ invocations to module description.
580         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
581         and gl_PREREQ_TCGETSID invocations from here...
582         * modules/tcgetsid (configure.ac): ... to here.
583         (Depends-on): Update conditions.
584
585 2011-05-22  Bruno Haible  <bruno@clisp.org>
586
587         symlinkat: Move AC_LIBOBJ invocations to module description.
588         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
589         here...
590         * modules/symlinkat (configure.ac): ... to here.
591
592 2011-05-22  Bruno Haible  <bruno@clisp.org>
593
594         symlink: Move AC_LIBOBJ invocations to module description.
595         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
596         here...
597         * modules/symlink (configure.ac): ... to here.
598
599 2011-05-22  Bruno Haible  <bruno@clisp.org>
600
601         strverscmp: Move AC_LIBOBJ invocations to module description.
602         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
603         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
604         from here...
605         * modules/strverscmp (configure.ac): ... to here.
606
607 2011-05-22  Bruno Haible  <bruno@clisp.org>
608
609         strtok_r: Move AC_LIBOBJ invocations to module description.
610         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
611         and gl_PREREQ_STRTOK_R invocations from here...
612         * modules/strtok_r (configure.ac): ... to here.
613         (Depends-on): Update conditions.
614
615 2011-05-22  Bruno Haible  <bruno@clisp.org>
616
617         strtoumax: Move AC_LIBOBJ invocations to module description.
618         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
619         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
620         from here...
621         * modules/strtoumax (configure.ac): ... to here.
622
623 2011-05-22  Bruno Haible  <bruno@clisp.org>
624
625         strtoimax: Move AC_LIBOBJ invocations to module description.
626         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
627         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
628         from here...
629         * modules/strtoimax (configure.ac): ... to here.
630
631 2011-05-22  Bruno Haible  <bruno@clisp.org>
632
633         strtoull: Move AC_LIBOBJ invocations to module description.
634         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
635         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
636         from here...
637         * modules/strtoull (configure.ac): ... to here.
638
639 2011-05-22  Bruno Haible  <bruno@clisp.org>
640
641         strtoll: Move AC_LIBOBJ invocations to module description.
642         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
643         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
644         here...
645         * modules/strtoll (configure.ac): ... to here.
646
647 2011-05-22  Bruno Haible  <bruno@clisp.org>
648
649         strtoul: Move AC_LIBOBJ invocations to module description.
650         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
651         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
652         * modules/strtoul (configure.ac): ... to here.
653
654 2011-05-22  Bruno Haible  <bruno@clisp.org>
655
656         strtol: Move AC_LIBOBJ invocations to module description.
657         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
658         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
659         * modules/strtol (configure.ac): ... to here.
660
661 2011-05-22  Bruno Haible  <bruno@clisp.org>
662
663         strtod: Move AC_LIBOBJ invocations to module description.
664         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
665         invocations from here...
666         * modules/strtod (configure.ac): ... to here.
667
668 2011-05-22  Bruno Haible  <bruno@clisp.org>
669
670         strstr*: Move AC_LIBOBJ invocations to module description.
671         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
672         invocations from here...
673         * modules/strstr-simple (configure.ac): ... to here.
674         * modules/strstr (configure.ac): ... and here.
675
676 2011-05-22  Bruno Haible  <bruno@clisp.org>
677
678         strsignal: Move AC_LIBOBJ invocations to module description.
679         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
680         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
681         * modules/strsignal (configure.ac): ... to here.
682         (Depends-on): Update conditions.
683
684 2011-05-22  Bruno Haible  <bruno@clisp.org>
685
686         strsep: Move AC_LIBOBJ invocations to module description.
687         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
688         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
689         here...
690         * modules/strsep (configure.ac): ... to here.
691
692 2011-05-22  Bruno Haible  <bruno@clisp.org>
693
694         strptime: Move AC_LIBOBJ invocations to module description.
695         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
696         gl_PREREQ_STRPTIME invocations from here...
697         * modules/strptime (configure.ac): ... to here.
698
699 2011-05-22  Bruno Haible  <bruno@clisp.org>
700
701         strpbrk: Move AC_LIBOBJ invocations to module description.
702         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
704         here...
705         * modules/strpbrk (configure.ac): ... to here.
706
707 2011-05-22  Bruno Haible  <bruno@clisp.org>
708
709         strnlen: Move AC_LIBOBJ invocations to module description.
710         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
711         invocations from here...
712         * modules/strnlen (configure.ac): ... to here.
713
714 2011-05-22  Bruno Haible  <bruno@clisp.org>
715
716         strndup: Move AC_LIBOBJ invocations to module description.
717         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
718         invocations from here...
719         * modules/strndup (configure.ac): ... to here.
720         (Depends-on): Update conditions.
721
722 2011-05-22  Bruno Haible  <bruno@clisp.org>
723
724         strncat: Move AC_LIBOBJ invocations to module description.
725         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
726         invocations from here...
727         * modules/strncat (configure.ac): ... to here.
728
729 2011-05-22  Bruno Haible  <bruno@clisp.org>
730
731         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
732         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
733         invocations from here...
734         * modules/strdup (configure.ac): ... to here.
735         * modules/strdup-posix (configure.ac): ... and here.
736
737 2011-05-22  Bruno Haible  <bruno@clisp.org>
738
739         strcspn: Move AC_LIBOBJ invocations to module description.
740         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
741         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
742         here...
743         * modules/strcspn (configure.ac): ... to here.
744
745 2011-05-22  Bruno Haible  <bruno@clisp.org>
746
747         strchrnul: Move AC_LIBOBJ invocations to module description.
748         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
749         gl_PREREQ_STRCHRNUL invocations from here...
750         * modules/strchrnul (configure.ac): ... to here.
751
752 2011-05-22  Bruno Haible  <bruno@clisp.org>
753
754         strcasestr*: Move AC_LIBOBJ invocations to module description.
755         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
756         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
757         * modules/strcasestr-simple (configure.ac): ... to here.
758         * modules/strcasestr (configure.ac): ... and here.
759
760 2011-05-22  Bruno Haible  <bruno@clisp.org>
761
762         strcase: Move AC_LIBOBJ invocations to module description.
763         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
764         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
765         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
766         gl_PREREQ_STRNCASECMP invocations from here...
767         * modules/strcase (configure.ac): ... to here.
768
769 2011-05-22  Bruno Haible  <bruno@clisp.org>
770
771         stpncpy: Move AC_LIBOBJ invocations to module description.
772         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
773         here...
774         * modules/stpncpy (configure.ac): ... to here.
775
776 2011-05-22  Bruno Haible  <bruno@clisp.org>
777
778         stpcpy: Move AC_LIBOBJ invocations to module description.
779         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
781         here...
782         * modules/stpcpy (configure.ac): ... to here.
783
784 2011-05-21  Bruno Haible  <bruno@clisp.org>
785
786         stat: Move AC_LIBOBJ invocations to module description.
787         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
788         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
789         here...
790         * modules/stat (configure.ac): ... to here.
791
792 2011-05-21  Bruno Haible  <bruno@clisp.org>
793
794         sleep: Move AC_LIBOBJ invocations to module description.
795         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
796         * modules/sleep (configure.ac): ... to here.
797
798 2011-05-21  Bruno Haible  <bruno@clisp.org>
799
800         signbit: Move AC_LIBOBJ invocations to module description.
801         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
802         * modules/signbit (configure.ac): ... to here.
803
804 2011-05-21  Bruno Haible  <bruno@clisp.org>
805
806         sigprocmask: Move AC_LIBOBJ invocations to module description.
807         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
808         gl_PREREQ_SIGPROMASK invocations from here...
809         * modules/sigprocmask (configure.ac): ... to here.
810
811 2011-05-21  Bruno Haible  <bruno@clisp.org>
812
813         sigaction: Move AC_LIBOBJ invocations to module description.
814         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
815         gl_PREREQ_SIGACTION invocations from here...
816         * modules/sigaction (configure.ac): ... to here.
817
818 2011-05-21  Bruno Haible  <bruno@clisp.org>
819
820         sig2str: Move AC_LIBOBJ invocations to module description.
821         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
822         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
823         here...
824         * modules/sig2str (configure.ac): ... to here.
825
826 2011-05-21  Bruno Haible  <bruno@clisp.org>
827
828         setlocale: Move AC_LIBOBJ invocations to module description.
829         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
830         gl_PREREQ_SETLOCALE invocations from here...
831         * modules/setlocale (configure.ac): ... to here.
832
833 2011-05-21  Bruno Haible  <bruno@clisp.org>
834
835         unsetenv: Move AC_LIBOBJ invocations to module description.
836         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
837         and gl_PREREQ_UNSETENV invocations from here...
838         * modules/unsetenv (configure.ac): ... to here.
839         (Depends-on): Update.
840
841 2011-05-21  Bruno Haible  <bruno@clisp.org>
842
843         setenv: Move AC_LIBOBJ invocations to module description.
844         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
845         here...
846         * modules/setenv (configure.ac): ... to here.
847
848 2011-05-21  Bruno Haible  <bruno@clisp.org>
849
850         selinux-h: Move AC_LIBOBJ invocations to module description.
851         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
852         AC_LIBOBJ invocation from here...
853         * modules/selinux-h (configure.ac): ... to here.
854
855 2011-05-21  Bruno Haible  <bruno@clisp.org>
856
857         select: Respect rules for use of AC_LIBOBJ.
858         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
859         here...
860         * modules/select (configure.ac): ... to here.
861
862 2011-05-21  Bruno Haible  <bruno@clisp.org>
863
864         scandir: Move AC_LIBOBJ invocations to module description.
865         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
866         invocations from here...
867         * modules/scandir (configure.ac): ... to here.
868
869 2011-05-21  Bruno Haible  <bruno@clisp.org>
870
871         rpmatch: Move AC_LIBOBJ invocations to module description.
872         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
873         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
874         here...
875         * modules/rpmatch (configure.ac): ... to here.
876
877 2011-05-21  Bruno Haible  <bruno@clisp.org>
878
879         rmdir: Respect rules for use of AC_LIBOBJ.
880         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
881         * modules/rmdir (configure.ac): ... to here.
882
883 2011-05-21  Bruno Haible  <bruno@clisp.org>
884
885         renameat: Move AC_LIBOBJ invocations to module description.
886         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
887         here...
888         * modules/renameat (configure.ac): ... to here.
889
890 2011-05-21  Bruno Haible  <bruno@clisp.org>
891
892         rename: Respect rules for use of AC_LIBOBJ.
893         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
894         here...
895         * modules/rename (configure.ac): ... to here.
896
897 2011-05-21  Bruno Haible  <bruno@clisp.org>
898
899         remove: Move AC_LIBOBJ invocations to module description.
900         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
901         here...
902         * modules/remove (configure.ac): ... to here.
903
904 2011-05-21  Bruno Haible  <bruno@clisp.org>
905
906         relocatable-lib: Move AC_LIBOBJ invocations to module description.
907         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
908         macro.
909         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
910         * modules/relocatable-lib (configure.ac): ... to here.
911         * modules/relocatable-prog-wrapper (configure.ac): Invoke
912         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
913
914 2011-05-21  Bruno Haible  <bruno@clisp.org>
915
916         relocatable-prog: Move AC_LIBOBJ invocations to module description.
917         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
918         here...
919         * modules/relocatable-prog (configure.ac): ... to here.
920
921 2011-05-21  Bruno Haible  <bruno@clisp.org>
922
923         regex: Move AC_LIBOBJ invocations to module description.
924         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
925         invocations from here...
926         * modules/regex (configure.ac): ... to here.
927
928 2011-05-21  Bruno Haible  <bruno@clisp.org>
929
930         realloc-*: Move AC_LIBOBJ invocations to module description.
931         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
932         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
933         AC_LIBOBJ invocations from here...
934         * modules/realloc-gnu (configure.ac): ... to here.
935         * modules/realloc-posix (configure.ac): ... and here.
936
937 2011-05-21  Bruno Haible  <bruno@clisp.org>
938
939         readutmp: Move AC_LIBOBJ invocations to module description.
940         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
941         * modules/readutmp (configure.ac): ... to here.
942
943 2011-05-21  Bruno Haible  <bruno@clisp.org>
944
945         readlinkat: Move AC_LIBOBJ invocations to module description.
946         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
947         here...
948         * modules/readlinkat (configure.ac): ... to here.
949
950 2011-05-21  Bruno Haible  <bruno@clisp.org>
951
952         readlink: Move AC_LIBOBJ invocations to module description.
953         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
954         gl_PREREQ_READLINK invocations from here...
955         * modules/readlink (configure.ac): ... to here.
956
957 2011-05-21  Bruno Haible  <bruno@clisp.org>
958
959         readline: Move AC_LIBOBJ invocations to module description.
960         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
961         gl_PREREQ_READLINE invocations from here...
962         * modules/readline (configure.ac): ... to here.
963
964 2011-05-21  Bruno Haible  <bruno@clisp.org>
965
966         read: Move AC_LIBOBJ invocations to module description.
967         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
968         * modules/read (configure.ac): ... to here.
969
970 2011-05-21  Bruno Haible  <bruno@clisp.org>
971
972         rawmemchr: Move AC_LIBOBJ invocations to module description.
973         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
975         from here...
976         * modules/rawmemchr (configure.ac): ... to here.
977
978 2011-05-21  Bruno Haible  <bruno@clisp.org>
979
980         random_r: Move AC_LIBOBJ invocations to module description.
981         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
982         gl_PREREQ_RANDOM_R invocations from here...
983         * modules/random_r (configure.ac): ... to here.
984
985 2011-05-21  Bruno Haible  <bruno@clisp.org>
986
987         pwrite: Move AC_LIBOBJ invocations to module description.
988         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
989         * modules/pwrite (configure.ac): ... to here.
990
991 2011-05-21  Bruno Haible  <bruno@clisp.org>
992
993         putenv: Move AC_LIBOBJ invocations to module description.
994         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
995         * modules/putenv (configure.ac): ... to here.
996
997 2011-05-21  Bruno Haible  <bruno@clisp.org>
998
999         login_tty: Move AC_LIBOBJ invocations to module description.
1000         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
1001         * modules/login_tty (configure.ac): ... to here.
1002
1003 2011-05-21  Bruno Haible  <bruno@clisp.org>
1004
1005         openpty: Move AC_LIBOBJ invocations to module description.
1006         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
1007         * modules/openpty (configure.ac): ... to here.
1008
1009 2011-05-21  Bruno Haible  <bruno@clisp.org>
1010
1011         forkpty: Move AC_LIBOBJ invocations to module description.
1012         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
1013         * modules/forkpty (configure.ac): ... to here.
1014
1015 2011-05-21  Bruno Haible  <bruno@clisp.org>
1016
1017         ptsname: Move AC_LIBOBJ invocations to module description.
1018         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
1019         invocations from here...
1020         * modules/ptsname (configure.ac): ... to here.
1021
1022 2011-05-21  Bruno Haible  <bruno@clisp.org>
1023
1024         pread: Move AC_LIBOBJ invocations to module description.
1025         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
1026         * modules/pread (configure.ac): ... to here.
1027
1028 2011-05-21  Bruno Haible  <bruno@clisp.org>
1029
1030         posix_spawn*: Move AC_LIBOBJ invocations to module description.
1031         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
1032         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
1033         * modules/posix_spawn (configure.ac): ... to here.
1034         * modules/posix_spawnp (configure.ac): ... and here.
1035
1036 2011-05-21  Bruno Haible  <bruno@clisp.org>
1037
1038         popen: Move AC_LIBOBJ invocations to module description.
1039         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
1040         invocations from here...
1041         * modules/popen (configure.ac): ... to here.
1042
1043 2011-05-21  Bruno Haible  <bruno@clisp.org>
1044
1045         poll: Move AC_LIBOBJ invocations to module description.
1046         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
1047         invocations from here...
1048         * modules/poll (configure.ac): ... to here.
1049
1050 2011-05-21  Bruno Haible  <bruno@clisp.org>
1051
1052         pipe-posix: Move AC_LIBOBJ invocations to module description.
1053         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
1054         * modules/pipe-posix (configure.ac): ... to here.
1055
1056 2011-05-21  Bruno Haible  <bruno@clisp.org>
1057
1058         openat: Respect rules for use of AC_LIBOBJ.
1059         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
1060         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1061         * modules/openat (configure.ac): ... to here.
1062
1063 2011-05-21  Bruno Haible  <bruno@clisp.org>
1064
1065         obstack-printf*: Move AC_LIBOBJ invocations to module description.
1066         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
1067         invocation from here...
1068         * modules/obstack-printf (configure.ac): ... to here.
1069         * modules/obstack-printf-posix (configure.ac): ... and here.
1070
1071 2011-05-21  Bruno Haible  <bruno@clisp.org>
1072
1073         nl_langinfo: Move AC_LIBOBJ invocations to module description.
1074         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
1075         from here...
1076         * modules/nl_langinfo (configure.ac): ... to here.
1077
1078 2011-05-21  Bruno Haible  <bruno@clisp.org>
1079
1080         nanosleep: Move AC_LIBOBJ invocations to module description.
1081         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
1082         gl_PREREQ_NANOSLEEP invocations from here...
1083         * modules/nanosleep (configure.ac): ... to here.
1084
1085 2011-05-21  Bruno Haible  <bruno@clisp.org>
1086
1087         mountlist: Move AC_LIBOBJ invocations to module description.
1088         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
1089         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
1090         * modules/mountlist (configure.ac): ... to here.
1091
1092 2011-05-21  Bruno Haible  <bruno@clisp.org>
1093
1094         mktime: Respect rules for use of AC_LIBOBJ.
1095         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
1096         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
1097         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
1098         (gl_FUNC_MKTIME_INTERNAL): ... and here...
1099         * modules/mktime (configure.ac): ... to here.
1100         * modules/mktime-internal (configure.ac): ... and here.
1101         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
1102
1103 2011-05-21  Bruno Haible  <bruno@clisp.org>
1104
1105         mkstemps: Move AC_LIBOBJ invocations to module description.
1106         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
1107         here...
1108         * modules/mkstemps (configure.ac): ... to here.
1109
1110 2011-05-21  Bruno Haible  <bruno@clisp.org>
1111
1112         mkstemp: Move AC_LIBOBJ invocations to module description.
1113         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
1114         gl_PREREQ_MKSTEMP invocations from here...
1115         * modules/mkstemp (configure.ac): ... to here.
1116
1117 2011-05-21  Bruno Haible  <bruno@clisp.org>
1118
1119         mkostemps: Move AC_LIBOBJ invocations to module description.
1120         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
1121         here...
1122         * modules/mkostemps (configure.ac): ... to here.
1123
1124 2011-05-21  Bruno Haible  <bruno@clisp.org>
1125
1126         mkostemp: Move AC_LIBOBJ invocations to module description.
1127         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
1128         gl_PREREQ_MKOSTEMP invocations from here...
1129         * modules/mkostemp (configure.ac): ... to here.
1130
1131 2011-05-21  Bruno Haible  <bruno@clisp.org>
1132
1133         mknod: Move AC_LIBOBJ invocations to module description.
1134         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
1135         * modules/mknod (configure.ac): ... to here.
1136
1137 2011-05-21  Bruno Haible  <bruno@clisp.org>
1138
1139         mkfifoat: Move AC_LIBOBJ invocations to module description.
1140         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
1141         here...
1142         * modules/mkfifoat (configure.ac): ... to here.
1143
1144 2011-05-21  Bruno Haible  <bruno@clisp.org>
1145
1146         mkfifo: Respect rules for use of AC_LIBOBJ.
1147         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
1148         here...
1149         * modules/mkfifo (configure.ac): ... to here.
1150
1151 2011-05-21  Bruno Haible  <bruno@clisp.org>
1152
1153         mkdtemp: Move AC_LIBOBJ invocations to module description.
1154         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
1155         invocations from here...
1156         * modules/mkdtemp (configure.ac): ... to here.
1157
1158 2011-05-21  Bruno Haible  <bruno@clisp.org>
1159
1160         mkdir: Move AC_LIBOBJ invocations to module description.
1161         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
1162         * modules/mkdir (configure.ac): ... to here.
1163
1164 2011-05-21  Bruno Haible  <bruno@clisp.org>
1165
1166         memset: Move AC_LIBOBJ invocations to module description.
1167         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
1168         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
1169         here...
1170         * modules/memset (configure.ac): ... to here.
1171
1172 2011-05-21  Bruno Haible  <bruno@clisp.org>
1173
1174         memrchr: Move AC_LIBOBJ invocations to module description.
1175         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
1176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
1177         here...
1178         * modules/memrchr (configure.ac): ... to here.
1179
1180 2011-05-21  Bruno Haible  <bruno@clisp.org>
1181
1182         mempcpy: Move AC_LIBOBJ invocations to module description.
1183         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
1184         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
1185         here...
1186         * modules/mempcpy (configure.ac): ... to here.
1187
1188 2011-05-21  Bruno Haible  <bruno@clisp.org>
1189
1190         memmove: Move AC_LIBOBJ invocations to module description.
1191         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
1192         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
1193         here...
1194         * modules/memmove (configure.ac): ... to here.
1195
1196 2011-05-21  Bruno Haible  <bruno@clisp.org>
1197
1198         memmem*: Move AC_LIBOBJ invocations to module description.
1199         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
1200         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
1201         here...
1202         (gl_FUNC_MEMMEM): ... and here...
1203         * modules/memmem-simple (configure.ac): ... to here.
1204         * modules/memmem (configure.ac): ... and here.
1205
1206 2011-05-21  Bruno Haible  <bruno@clisp.org>
1207
1208         memcpy: Move AC_LIBOBJ invocations to module description.
1209         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
1210         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
1211         here...
1212         * modules/memcpy (configure.ac): ... to here.
1213
1214 2011-05-21  Bruno Haible  <bruno@clisp.org>
1215
1216         memcmp: Simplify autoconf macro.
1217         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
1218         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
1219         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
1220
1221 2011-05-21  Bruno Haible  <bruno@clisp.org>
1222
1223         memcmp: Move AC_LIBOBJ invocations to module description.
1224         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
1225         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
1226         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
1227         * modules/memcmp (configure.ac): ... to here.
1228         (Depends-on): Update conditions.
1229
1230 2011-05-21  Bruno Haible  <bruno@clisp.org>
1231
1232         memchr: Respect rules for use of AC_LIBOBJ.
1233         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
1234         invocations from here...
1235         * modules/memchr (configure.ac): ... to here.
1236
1237 2011-05-21  Bruno Haible  <bruno@clisp.org>
1238
1239         mbtowc: Move AC_LIBOBJ invocations to module description.
1240         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1241         invocations from here...
1242         * modules/mbtowc (configure.ac): ... to here.
1243
1244 2011-05-21  Bruno Haible  <bruno@clisp.org>
1245
1246         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1247         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1248         gl_PREREQ_MBSRTOWCS invocations from here...
1249         * modules/mbsrtowcs (configure.ac): ... to here.
1250
1251 2011-05-21  Bruno Haible  <bruno@clisp.org>
1252
1253         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1254         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1255         gl_PREREQ_MBSNRTOWCS invocations from here...
1256         * modules/mbsnrtowcs (configure.ac): ... to here.
1257
1258 2011-05-21  Bruno Haible  <bruno@clisp.org>
1259
1260         mbsinit: Move AC_LIBOBJ invocations to module description.
1261         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1262         invocations from here...
1263         * modules/mbsinit (configure.ac): ... to here.
1264
1265 2011-05-21  Bruno Haible  <bruno@clisp.org>
1266
1267         mbrlen: Move AC_LIBOBJ invocations to module description.
1268         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1269         invocations from here...
1270         * modules/mbrlen (configure.ac): ... to here.
1271
1272 2011-05-21  Bruno Haible  <bruno@clisp.org>
1273
1274         mbrtowc: Respect rules for use of AC_LIBOBJ.
1275         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1276         invocations from here...
1277         * modules/mbrtowc (configure.ac): ... to here.
1278
1279 2011-05-21  Bruno Haible  <bruno@clisp.org>
1280
1281         malloc-*: Move AC_LIBOBJ invocations to module description.
1282         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1283         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1284         AC_LIBOBJ invocations from here...
1285         * modules/malloc-gnu (configure.ac): ... to here.
1286         * modules/malloc-posix (configure.ac): ... and here.
1287
1288 2011-05-21  Bruno Haible  <bruno@clisp.org>
1289
1290         lstat, openat: Respect rules for use of AC_LIBOBJ.
1291         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1292         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1293         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1294         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1295         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1296         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1297         here.
1298         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1299
1300 2011-05-21  Bruno Haible  <bruno@clisp.org>
1301
1302         lseek: Move AC_LIBOBJ invocations to module description.
1303         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1304         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1305         * modules/lseek (configure.ac): ... to here.
1306
1307 2011-05-21  Bruno Haible  <bruno@clisp.org>
1308
1309         linkat: Move AC_LIBOBJ invocations to module description.
1310         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1311         here...
1312         * modules/linkat (configure.ac): ... to here.
1313
1314 2011-05-21  Bruno Haible  <bruno@clisp.org>
1315
1316         link: Respect rules for use of AC_LIBOBJ.
1317         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1318         * modules/link (configure.ac): ... to here.
1319
1320 2011-05-21  Bruno Haible  <bruno@clisp.org>
1321
1322         lchown: Move AC_LIBOBJ invocations to module description.
1323         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1324         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1325         * modules/lchown (configure.ac): ... to here.
1326
1327 2011-05-21  Bruno Haible  <bruno@clisp.org>
1328
1329         iswctype: Move AC_LIBOBJ invocations to module description.
1330         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1331         here...
1332         * modules/iswctype (configure.ac): ... to here.
1333
1334 2011-05-21  Bruno Haible  <bruno@clisp.org>
1335
1336         iswblank: Move AC_LIBOBJ invocations to module description.
1337         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1338         here...
1339         * modules/iswblank (configure.ac): ... to here.
1340
1341 2011-05-21  Bruno Haible  <bruno@clisp.org>
1342
1343         atanl: Move AC_LIBOBJ invocations to module description.
1344         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1345         * modules/atanl (configure.ac): ... to here.
1346
1347 2011-05-21  Bruno Haible  <bruno@clisp.org>
1348
1349         acosl: Move AC_LIBOBJ invocations to module description.
1350         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1351         * modules/acosl (configure.ac): ... to here.
1352
1353 2011-05-21  Bruno Haible  <bruno@clisp.org>
1354
1355         asinl: Respect rules for use of AC_LIBOBJ.
1356         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1357         * modules/asinl (configure.ac): ... to here.
1358
1359 2011-05-21  Bruno Haible  <bruno@clisp.org>
1360
1361         tanl: Move AC_LIBOBJ invocations to module description.
1362         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1363         * modules/tanl (configure.ac): ... to here.
1364
1365 2011-05-21  Bruno Haible  <bruno@clisp.org>
1366
1367         cosl: Move AC_LIBOBJ invocations to module description.
1368         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1369         * modules/cosl (configure.ac): ... to here.
1370
1371 2011-05-21  Bruno Haible  <bruno@clisp.org>
1372
1373         sinl: Move AC_LIBOBJ invocations to module description.
1374         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1375         * modules/sinl (configure.ac): ... to here.
1376
1377 2011-05-21  Bruno Haible  <bruno@clisp.org>
1378
1379         logl: Move AC_LIBOBJ invocations to module description.
1380         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1381         * modules/logl (configure.ac): ... to here.
1382
1383 2011-05-21  Bruno Haible  <bruno@clisp.org>
1384
1385         expl: Move AC_LIBOBJ invocations to module description.
1386         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1387         * modules/expl (configure.ac): ... to here.
1388
1389 2011-05-21  Bruno Haible  <bruno@clisp.org>
1390
1391         roundl: Move AC_LIBOBJ invocations to module description.
1392         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1393         * modules/roundl (configure.ac): ... to here.
1394
1395 2011-05-21  Bruno Haible  <bruno@clisp.org>
1396
1397         round: Move AC_LIBOBJ invocations to module description.
1398         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1399         * modules/round (configure.ac): ... to here.
1400
1401 2011-05-21  Bruno Haible  <bruno@clisp.org>
1402
1403         roundf: Move AC_LIBOBJ invocations to module description.
1404         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1405         * modules/roundf (configure.ac): ... to here.
1406
1407 2011-05-21  Bruno Haible  <bruno@clisp.org>
1408
1409         truncl: Move AC_LIBOBJ invocations to module description.
1410         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1411         * modules/truncl (configure.ac): ... to here.
1412
1413 2011-05-21  Bruno Haible  <bruno@clisp.org>
1414
1415         trunc: Move AC_LIBOBJ invocations to module description.
1416         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1417         * modules/trunc (configure.ac): ... to here.
1418
1419 2011-05-21  Bruno Haible  <bruno@clisp.org>
1420
1421         truncf: Move AC_LIBOBJ invocations to module description.
1422         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1423         * modules/truncf (configure.ac): ... to here.
1424
1425 2011-05-21  Bruno Haible  <bruno@clisp.org>
1426
1427         ceill: Move AC_LIBOBJ invocations to module description.
1428         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1429         * modules/ceill (configure.ac): ... to here.
1430
1431 2011-05-21  Bruno Haible  <bruno@clisp.org>
1432
1433         ceil: Move AC_LIBOBJ invocations to module description.
1434         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1435         * modules/ceil (configure.ac): ... to here.
1436
1437 2011-05-21  Bruno Haible  <bruno@clisp.org>
1438
1439         ceilf: Move AC_LIBOBJ invocations to module description.
1440         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1441         * modules/ceilf (configure.ac): ... to here.
1442
1443 2011-05-21  Bruno Haible  <bruno@clisp.org>
1444
1445         floorl: Respect rules for use of AC_LIBOBJ.
1446         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1447         * modules/floorl (configure.ac): ... to here.
1448
1449 2011-05-21  Bruno Haible  <bruno@clisp.org>
1450
1451         floor: Respect rules for use of AC_LIBOBJ.
1452         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1453         * modules/floor (configure.ac): ... to here.
1454
1455 2011-05-21  Bruno Haible  <bruno@clisp.org>
1456
1457         floorf: Move AC_LIBOBJ invocations to module description.
1458         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1459         * modules/floorf (configure.ac): ... to here.
1460
1461 2011-05-20  Bruno Haible  <bruno@clisp.org>
1462
1463         sqrtl: Respect rules for use of AC_LIBOBJ.
1464         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1465         * modules/sqrtl (configure.ac): ... to here.
1466
1467 2011-05-20  Bruno Haible  <bruno@clisp.org>
1468
1469         ldexpl: Respect rules for use of AC_LIBOBJ.
1470         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1471         * modules/ldexpl (configure.ac): ... to here.
1472
1473 2011-05-20  Bruno Haible  <bruno@clisp.org>
1474
1475         frexpl*: Respect rules for use of AC_LIBOBJ.
1476         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1477         invocation from here...
1478         * modules/frexpl (configure.ac): ... to here.
1479         * modules/frexpl-nolibm (configure.ac): ... and here.
1480
1481 2011-05-20  Bruno Haible  <bruno@clisp.org>
1482
1483         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1484         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1485         invocation from here...
1486         * modules/frexp (configure.ac): ... to here.
1487         * modules/frexp-nolibm (configure.ac): ... and here.
1488
1489 2011-05-20  Bruno Haible  <bruno@clisp.org>
1490
1491         isnan: Respect rules for use of AC_LIBOBJ.
1492         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1493         invocations here.
1494         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1495         REPLACE_ISNAN.
1496         * modules/isnand (configure.ac): Likewise.
1497         * modules/isnanl (configure.ac): Likewise.
1498
1499 2011-05-20  Bruno Haible  <bruno@clisp.org>
1500
1501         isnanl*: Respect rules for use of AC_LIBOBJ.
1502         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1503         invocation from here...
1504         * modules/isnanl (configure.ac): ... to here.
1505         * modules/isnanl-nolibm (configure.ac): ... and here.
1506
1507 2011-05-20  Bruno Haible  <bruno@clisp.org>
1508
1509         isnand*: Move AC_LIBOBJ invocations to module description.
1510         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1511         invocation from here...
1512         * modules/isnand (configure.ac): ... to here.
1513         * modules/isnand-nolibm (configure.ac): ... and here.
1514
1515 2011-05-20  Bruno Haible  <bruno@clisp.org>
1516
1517         isnanf*: Move AC_LIBOBJ invocations to module description.
1518         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1519         invocation from here...
1520         * modules/isnanf (configure.ac): ... to here.
1521         * modules/isnanf-nolibm (configure.ac): ... and here.
1522
1523 2011-05-20  Bruno Haible  <bruno@clisp.org>
1524
1525         isnan*: Separate the AC_LIBOBJ invocations.
1526         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1527         AC_LIBOBJ invocation.
1528         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1529         here.
1530         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1531         AC_LIBOBJ invocation.
1532         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1533         here.
1534         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1535         AC_LIBOBJ invocation.
1536         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1537         here.
1538         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1539
1540 2011-05-08  Bruno Haible  <bruno@clisp.org>
1541
1542         isinf: Move AC_LIBOBJ invocations to module description.
1543         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1544         * modules/isinf (configure.ac): ... to here.
1545
1546 2011-05-08  Bruno Haible  <bruno@clisp.org>
1547
1548         isfinite: Move AC_LIBOBJ invocations to module description.
1549         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1550         * modules/isfinite (configure.ac): ... to here.
1551
1552 2011-05-08  Bruno Haible  <bruno@clisp.org>
1553
1554         isblank: Move AC_LIBOBJ invocations to module description.
1555         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1556         here...
1557         * modules/isblank (configure.ac): ... to here.
1558
1559 2011-05-08  Bruno Haible  <bruno@clisp.org>
1560
1561         isapipe: Move AC_LIBOBJ invocations to module description.
1562         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1563         gl_PREREQ_ISAPIPE invocations from here...
1564         * modules/isapipe (configure.ac): ... to here.
1565         (Depends-on): Update condition.
1566
1567 2011-05-08  Bruno Haible  <bruno@clisp.org>
1568
1569         ioctl: Move AC_LIBOBJ invocations to module description.
1570         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1571         invocations from here...
1572         * modules/ioctl (configure.ac): ... to here.
1573         (Depends-on): Update condition.
1574
1575 2011-05-08  Bruno Haible  <bruno@clisp.org>
1576
1577         imaxdiv: Move AC_LIBOBJ invocations to module description.
1578         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1579         invocations from here...
1580         * modules/imaxdiv (configure.ac): ... to here.
1581
1582 2011-05-08  Bruno Haible  <bruno@clisp.org>
1583
1584         imaxabs: Move AC_LIBOBJ invocations to module description.
1585         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1586         invocations from here...
1587         * modules/imaxabs (configure.ac): ... to here.
1588
1589 2011-05-08  Bruno Haible  <bruno@clisp.org>
1590
1591         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1592         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1593         AC_LIBOBJ invocations from here...
1594         * modules/getaddrinfo (configure.ac): ... to here.
1595         (Depends-on): Add conditions.
1596
1597 2011-05-08  Bruno Haible  <bruno@clisp.org>
1598
1599         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1600         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1601         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1602         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1603         (gl_PREREQ_INET_PTON): ... from here.
1604         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1605         gl_PREREQ_INET_PTON here.
1606         (Depends-on): Update condition.
1607
1608 2011-05-08  Bruno Haible  <bruno@clisp.org>
1609
1610         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1611         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1612         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1613         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1614         (gl_PREREQ_INET_NTOP): ... from here.
1615         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1616         gl_PREREQ_INET_NTOP here.
1617         (Depends-on): Update condition.
1618
1619 2011-05-08  Bruno Haible  <bruno@clisp.org>
1620
1621         iconv_open: Move AC_LIBOBJ invocations to module description.
1622         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1623         AC_LIBOBJ invocations from here...
1624         * modules/iconv_open (configure.ac): ... to here.
1625
1626 2011-05-08  Bruno Haible  <bruno@clisp.org>
1627
1628         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1629         If module 'iconv_open' is among the main modules and module
1630         'iconv_open-utf' is among the tests dependencies, then
1631         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1632         return the special iconv_t values. Therefore iconv() and iconv_close()
1633         must support these special iconv_t values, already in lib, not only in
1634         tests.
1635         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1636         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1637         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1638         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1639         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1640         (Depends-on): Add the dependencies of iconv_open-utf.
1641         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1642         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1643         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1644
1645 2011-05-08  Bruno Haible  <bruno@clisp.org>
1646
1647         group-member: Move AC_LIBOBJ invocations to module description.
1648         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1649         gl_PREREQ_GROUP_MEMBER invocations from here...
1650         * modules/group-member (configure.ac): ... to here.
1651
1652 2011-05-08  Bruno Haible  <bruno@clisp.org>
1653
1654         grantpt: Move AC_LIBOBJ invocations to module description.
1655         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1656         invocations from here...
1657         * modules/grantpt (configure.ac): ... to here.
1658
1659 2011-05-08  Bruno Haible  <bruno@clisp.org>
1660
1661         glob: Move AC_LIBOBJ invocations to module description.
1662         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1663         from here...
1664         * modules/glob (configure.ac): ... to here.
1665
1666 2011-05-08  Bruno Haible  <bruno@clisp.org>
1667
1668         getusershell: Move AC_LIBOBJ invocations to module description.
1669         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1670         Move AC_LIBOBJ invocation from here...
1671         * modules/getusershell (configure.ac): ... to here.
1672         (Depends-on): Update condition.
1673
1674 2011-05-08  Bruno Haible  <bruno@clisp.org>
1675
1676         gettimeofday: Move AC_LIBOBJ invocations to module description.
1677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1678         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1679         gl_PREREQ_GETTIMEOFDAY invocations from here...
1680         * modules/gettimeofday (configure.ac): ... to here.
1681
1682 2011-05-08  Bruno Haible  <bruno@clisp.org>
1683
1684         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1685         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1686         just gl_FUNC_TZSET.
1687         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1688         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1689         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1690         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1691
1692 2011-05-08  Bruno Haible  <bruno@clisp.org>
1693
1694         getsubopt: Move AC_LIBOBJ invocations to module description.
1695         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1696         gl_PREREQ_GETSUBOPT invocations from here...
1697         * modules/getsubopt (configure.ac): ... to here.
1698
1699 2011-05-08  Bruno Haible  <bruno@clisp.org>
1700
1701         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1702         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1703         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1704         * modules/getpass-gnu (configure.ac): ... to here.
1705
1706 2011-05-08  Bruno Haible  <bruno@clisp.org>
1707
1708         getpass: Move AC_LIBOBJ invocations to module description.
1709         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1710         gl_PREREQ_GETPASS invocations from here...
1711         * modules/getpass (configure.ac): ... to here.
1712
1713 2011-05-08  Bruno Haible  <bruno@clisp.org>
1714
1715         getpagesize: Move AC_LIBOBJ invocations to module description.
1716         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1717         from here...
1718         * modules/getpagesize (configure.ac): ... to here.
1719
1720 2011-05-08  Bruno Haible  <bruno@clisp.org>
1721
1722         getopt: Move AC_LIBOBJ invocations to module description.
1723         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1724         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1725         invocations from here...
1726         * modules/getopt-gnu (configure.ac): ... to here.
1727         * modules/getopt-posix (configure.ac): ... and here.
1728         (Depends-on): Update condition.
1729
1730 2011-05-08  Bruno Haible  <bruno@clisp.org>
1731
1732         getopt, argp: Respect rules for use of AC_LIBOBJ.
1733         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1734         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1735         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1736         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1737
1738 2011-05-08  Bruno Haible  <bruno@clisp.org>
1739
1740         getlogin_r: Move AC_LIBOBJ invocations to module description.
1741         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1742         gl_PREREQ_GETLOGIN_R invocations from here...
1743         * modules/getlogin_r (configure.ac): ... to here.
1744
1745 2011-05-08  Bruno Haible  <bruno@clisp.org>
1746
1747         getlogin: Move AC_LIBOBJ invocations to module description.
1748         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1749         here...
1750         * modules/getlogin (configure.ac): ... to here.
1751
1752 2011-05-08  Bruno Haible  <bruno@clisp.org>
1753
1754         getloadavg: Move AC_LIBOBJ invocations to module description.
1755         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1756         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1757         * modules/getloadavg (configure.ac): ... to here.
1758
1759 2011-05-08  Bruno Haible  <bruno@clisp.org>
1760
1761         gethrxtime: Move AC_LIBOBJ invocations to module description.
1762         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1763         LIB_GETHRXTIME from here...
1764         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1765         invocations from here...
1766         * modules/gethrxtime (configure.ac): ... to here.
1767
1768 2011-05-08  Bruno Haible  <bruno@clisp.org>
1769
1770         gethostname: Move AC_LIBOBJ invocations to module description.
1771         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1772         gl_PREREQ_GETHOSTNAME invocations from here...
1773         * modules/gethostname (configure.ac): ... to here.
1774
1775 2011-05-08  Bruno Haible  <bruno@clisp.org>
1776
1777         getgroups: Move AC_LIBOBJ invocations to module description.
1778         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1779         here...
1780         * modules/getgroups (configure.ac): ... to here.
1781
1782 2011-05-08  Bruno Haible  <bruno@clisp.org>
1783
1784         getdtablesize: Move AC_LIBOBJ invocations to module description.
1785         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1786         invocation from here...
1787         * modules/getdtablesize (configure.ac): ... to here.
1788
1789 2011-05-08  Bruno Haible  <bruno@clisp.org>
1790
1791         getdomainname: Move AC_LIBOBJ invocations to module description.
1792         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1793         gl_PREREQ_GETDOMAINNAME invocations from here...
1794         * modules/getdomainname (configure.ac): ... to here.
1795
1796 2011-05-08  Bruno Haible  <bruno@clisp.org>
1797
1798         getline: Move AC_LIBOBJ invocations to module description.
1799         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1800         invocations from here...
1801         * modules/getline (configure.ac): ... to here.
1802
1803 2011-05-08  Bruno Haible  <bruno@clisp.org>
1804
1805         getline: Simplify.
1806         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1807         It's already handled through the module dependency.
1808
1809 2011-05-08  Bruno Haible  <bruno@clisp.org>
1810
1811         getdelim: Move AC_LIBOBJ invocations to module description.
1812         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1813         and gl_PREREQ_GETDELIM invocations from here...
1814         * modules/getdelim (configure.ac): ... to here.
1815         (Depends-on): Fix condition.
1816
1817 2011-05-08  Bruno Haible  <bruno@clisp.org>
1818
1819         getcwd: Move AC_LIBOBJ invocations to module description.
1820         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1821         invocations from here...
1822         * modules/getcwd (configure.ac): ... to here.
1823
1824 2011-05-08  Bruno Haible  <bruno@clisp.org>
1825
1826         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1827         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1828         here...
1829         * modules/getcwd-lgpl (configure.ac): ... to here.
1830
1831 2011-05-07  Bruno Haible  <bruno@clisp.org>
1832
1833         crypto/gc: Move AC_LIBOBJ invocations to module description.
1834         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1835         * modules/crypto/gc (configure.ac): ... to here.
1836
1837 2011-05-07  Bruno Haible  <bruno@clisp.org>
1838
1839         fwriting: Move AC_LIBOBJ invocations to module description.
1840         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1841         here...
1842         * modules/fwriting (configure.ac): ... to here.
1843
1844 2011-05-07  Bruno Haible  <bruno@clisp.org>
1845
1846         fwritable: Move AC_LIBOBJ invocations to module description.
1847         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1848         here...
1849         * modules/fwritable (configure.ac): ... to here.
1850
1851 2011-05-07  Bruno Haible  <bruno@clisp.org>
1852
1853         futimens: Move AC_LIBOBJ invocations to module description.
1854         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1855         here...
1856         * modules/futimens (configure.ac): ... to here.
1857
1858 2011-05-07  Bruno Haible  <bruno@clisp.org>
1859
1860         ftruncate: Move AC_LIBOBJ invocations to module description.
1861         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1862         gl_PREREQ_FTRUNCATE invocations from here...
1863         * modules/ftruncate (configure.ac): ... to here.
1864
1865 2011-05-07  Bruno Haible  <bruno@clisp.org>
1866
1867         fsync: Move AC_LIBOBJ invocations to module description.
1868         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1869         invocations from here...
1870         * modules/fsync (configure.ac): ... to here.
1871
1872 2011-05-07  Bruno Haible  <bruno@clisp.org>
1873
1874         fsusage: Move AC_LIBOBJ invocations to module description.
1875         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1876         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1877         * modules/fsusage (configure.ac): ... to here.
1878
1879 2011-05-07  Bruno Haible  <bruno@clisp.org>
1880
1881         freopen: Move AC_LIBOBJ invocations to module description.
1882         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1883         invocations from here...
1884         * modules/freopen (configure.ac): ... to here.
1885
1886 2011-05-07  Bruno Haible  <bruno@clisp.org>
1887
1888         free: Move AC_LIBOBJ invocations to module description.
1889         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1890         invocations from here...
1891         * modules/free (configure.ac): ... to here.
1892
1893 2011-05-07  Bruno Haible  <bruno@clisp.org>
1894
1895         freadable: Move AC_LIBOBJ invocations to module description.
1896         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1897         here...
1898         * modules/freadable (configure.ac): ... to here.
1899
1900 2011-05-07  Bruno Haible  <bruno@clisp.org>
1901
1902         fpurge: Move AC_LIBOBJ invocations to module description.
1903         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1904         invocations from here...
1905         * modules/fpurge (configure.ac): ... to here.
1906
1907 2011-05-07  Bruno Haible  <bruno@clisp.org>
1908
1909         fpending: Move AC_LIBOBJ invocations to module description.
1910         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1911         gl_FUNC_FPENDING.
1912         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1913         invocations from here...
1914         * modules/fpending (configure.ac): ... to here.
1915
1916 2011-05-07  Bruno Haible  <bruno@clisp.org>
1917
1918         fopen: Move AC_LIBOBJ invocations to module description.
1919         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1920         invocations from here...
1921         * modules/fopen (configure.ac): ... to here.
1922
1923 2011-05-07  Bruno Haible  <bruno@clisp.org>
1924
1925         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1926         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1927         gl_FUNC_FNMATCH_POSIX.
1928         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1929         invocations from here...
1930         * modules/fnmatch (configure.ac): ... to here.
1931         * modules/fnmatch-gnu (configure.ac): ... and here.
1932
1933 2011-05-07  Bruno Haible  <bruno@clisp.org>
1934
1935         flock: Move AC_LIBOBJ invocations to module description.
1936         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1937         invocations from here...
1938         * modules/flock (configure.ac): ... to here.
1939
1940 2011-05-07  Bruno Haible  <bruno@clisp.org>
1941
1942         fileblocks: Move AC_LIBOBJ invocations to module description.
1943         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1944         gl_PREREQ_FILEBLOCKS invocations from here...
1945         * modules/fileblocks (configure.ac): ... to here.
1946
1947 2011-05-06  Bruno Haible  <bruno@clisp.org>
1948
1949         fflush: Move AC_LIBOBJ invocations to module description.
1950         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1951         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1952         invocations from here...
1953         * modules/fflush (configure.ac): ... to here.
1954
1955 2011-05-06  Bruno Haible  <bruno@clisp.org>
1956
1957         fdopendir: Move AC_LIBOBJ invocations to module description.
1958         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1959         here...
1960         * modules/fdopendir (configure.ac): ... to here.
1961         (Depends-on): Improve conditions.
1962
1963 2011-05-06  Bruno Haible  <bruno@clisp.org>
1964
1965         _Exit: Move AC_LIBOBJ invocations to module description.
1966         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1967         invocations from here...
1968         * modules/_Exit (configure.ac): ... to here.
1969
1970 2011-05-21  Bruno Haible  <bruno@clisp.org>
1971
1972         euidaccess: Respect rules for use of AC_LIBOBJ.
1973         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1975         from here...
1976         * modules/euidaccess (configure.ac): ... to here.
1977
1978 2011-05-06  Bruno Haible  <bruno@clisp.org>
1979
1980         error: Move AC_LIBOBJ invocations to module description.
1981         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1982         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1983         invocations from here...
1984         * modules/error (configure.ac): ... to here.
1985
1986 2011-05-06  Bruno Haible  <bruno@clisp.org>
1987
1988         duplocale: Move AC_LIBOBJ invocations to module description.
1989         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1990         gl_PREREQ_DUPLOCALE invocations from here...
1991         * modules/duplocale (configure.ac): ... to here.
1992
1993 2011-05-05  Bruno Haible  <bruno@clisp.org>
1994
1995         dirfd: Move AC_LIBOBJ invocations to module description.
1996         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1997         gl_FUNC_DIRFD.
1998         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1999         here...
2000         * modules/dirfd (configure.ac): ... to here.
2001         (Depends-on): Fix condition.
2002
2003 2011-05-05  Bruno Haible  <bruno@clisp.org>
2004
2005         chown: Respect rules for use of AC_LIBOBJ.
2006         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
2007         * modules/chown (configure.ac): ... to here.
2008
2009 2011-05-05  Bruno Haible  <bruno@clisp.org>
2010
2011         chdir-long: Move AC_LIBOBJ invocations to module description.
2012         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
2013         gl_PREREQ_CHDIR_LONG invocations from here...
2014         * modules/chdir-long (configure.ac): ... to here.
2015
2016 2011-05-05  Bruno Haible  <bruno@clisp.org>
2017
2018         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
2019         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
2020         from here...
2021         * modules/canonicalize-lgpl (configure.ac): ... to here.
2022
2023 2011-05-05  Bruno Haible  <bruno@clisp.org>
2024
2025         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
2026         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
2027         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
2028         REPLACE_CALLOC.
2029         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
2030         * modules/calloc-gnu (configure.ac): Likewise.
2031
2032 2011-05-05  Bruno Haible  <bruno@clisp.org>
2033
2034         btowc: Move AC_LIBOBJ invocations to module description.
2035         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
2036         invocations from here...
2037         * modules/btowc (configure.ac): ... to here.
2038
2039 2011-05-21  Bruno Haible  <bruno@clisp.org>
2040
2041         atexit: Move AC_LIBOBJ invocations to module description.
2042         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
2043         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
2044         here...
2045         * modules/atexit (configure.ac): ... to here.
2046
2047 2011-05-05  Bruno Haible  <bruno@clisp.org>
2048
2049         atoll: Move AC_LIBOBJ invocations to module description.
2050         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
2051         invocations from here...
2052         * modules/atoll (configure.ac): ... to here.
2053
2054 2011-05-05  Bruno Haible  <bruno@clisp.org>
2055
2056         argz: Move AC_LIBOBJ invocations to module description.
2057         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
2058         * modules/argz (configure.ac): ... to here.
2059
2060 2011-05-05  Bruno Haible  <bruno@clisp.org>
2061
2062         alphasort: Move AC_LIBOBJ invocations to module description.
2063         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
2064         gl_PREREQ_ALPHASORT invocations from here...
2065         * modules/alphasort (configure.ac): ... to here.
2066
2067 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2068
2069         verify: new macro verify_expr; verify_true deprecated
2070         * NEWS: Mention this.
2071         * doc/verify.texi (Compile-time Assertions): Document this.
2072         * lib/verify.h (verify_true): Deprecate.
2073         (verify_expr): New macro.
2074         * tests/test-verify.c (function): Test verify_expr.
2075
2076 2011-06-14  Jim Meyering  <meyering@redhat.com>
2077
2078         init.sh: give more portable redirection-related advice in a comment
2079         * tests/init.sh (stderr_fileno_): Update the advice in comments.
2080         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
2081         for lots of discussion.  Stefano Lattarini suggested the solution
2082         of putting "9>&2" after the command.  Reported by Bruno Haible.
2083
2084 2011-06-13  Bruno Haible  <bruno@clisp.org>
2085
2086         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
2087         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
2088         'none'.
2089
2090 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2091
2092         ftoastr: use strtof only if HAVE_STRTOF
2093         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
2094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
2095         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
2096         * modules/ftoastr (configure.ac): Check for strtof.
2097
2098 2011-06-13  Bruno Haible  <bruno@clisp.org>
2099
2100         gnulib-tool: Addendum to 2011-06-08 commit.
2101         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
2102         and --witness-c-macro have been given, augment AM_CPPFLAGS.
2103
2104 2011-06-13  Bruno Haible  <bruno@clisp.org>
2105
2106         fseeko: Provide a non-inline replacement of fseek().
2107         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
2108         * modules/fseeko (Depends-on): Add fseek.
2109         * modules/fseek (License): Change to LGPLv2+.
2110
2111 2011-06-13  Bruno Haible  <bruno@clisp.org>
2112
2113         ftello: Provide a non-inline replacement of ftell().
2114         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
2115         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
2116         not have ftello() (such as on mingw).
2117         * modules/ftello (Depends-on): Add ftell.
2118         * modules/ftell (License): Change to LGPLv2+.
2119
2120 2011-05-07  Bruno Haible  <bruno@clisp.org>
2121
2122         ftell: Move AC_LIBOBJ invocations to module description.
2123         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
2124         * modules/ftell (configure.ac): ... to here.
2125
2126 2011-05-07  Bruno Haible  <bruno@clisp.org>
2127
2128         ftello: Respect rules for use of AC_LIBOBJ.
2129         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
2130         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
2131         here...
2132         * modules/ftello (configure.ac): ... to here.
2133
2134 2011-05-07  Bruno Haible  <bruno@clisp.org>
2135
2136         fseeko: Simplify.
2137         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
2138         (gl_FUNC_FSEEKO): Inline it here.
2139
2140 2011-05-07  Bruno Haible  <bruno@clisp.org>
2141
2142         fseek: Move AC_LIBOBJ invocations to module description.
2143         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
2144         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2145         * modules/fseek (configure.ac): ... to here.
2146
2147 2011-05-07  Bruno Haible  <bruno@clisp.org>
2148
2149         fseek: Respect rules for use of AC_LIBOBJ.
2150         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
2151         here...
2152         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
2153
2154 2011-05-07  Bruno Haible  <bruno@clisp.org>
2155
2156         fseeko: Respect rules for use of AC_LIBOBJ.
2157         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
2158         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
2159         here...
2160         * modules/fseeko (configure.ac): ... to here.
2161
2162 2011-06-13  Bruno Haible  <bruno@clisp.org>
2163
2164         gnulib-tool: Allow comments in the 'Depends-on' section.
2165         * doc/gnulib.texi (Module description): Mention comment syntax in the
2166         Depends-on section.
2167         * gnulib-tool (func_get_dependencies): Filter out comment lines.
2168
2169 2011-06-13  Bruno Haible  <bruno@clisp.org>
2170
2171         file-set.h: guard __attibute__ use, now that it's not always defined
2172         * lib/file-set.h (record_file): Use __attribute__ only with compiler
2173         versions that support it.  This fixes a coreutils build failure with
2174         the vendor cc on HP-UX 11.31.
2175
2176 2011-06-12  Bruno Haible  <bruno@clisp.org>
2177
2178         acl: Add support for HP-UX >= 11.11 JFS ACLs.
2179         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
2180         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
2181         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
2182         (acl, aclsort): New declarations.
2183         (aclv_nontrivial): New declaration.
2184         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
2185         (file_has_acl): Read also the second kind of HP-UX ACLs.
2186         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
2187         kind of HP-UX ACLs if the first kind fails.
2188         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
2189         second kind of HP-UX ACLs.
2190         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
2191         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
2192         agree.
2193         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2194         hpuxjfs.
2195         Handle hpuxjfs.
2196         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2197         hpuxjfs.
2198         Handle hpuxjfs.
2199         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2200         (func_test_same_acls): Use both lsacl and getacl.
2201         Handle hpuxjfs.
2202         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2203         (func_test_same_acls): Use both lsacl and getacl.
2204         Handle hpuxjfs.
2205
2206 2011-06-12  Bruno Haible  <bruno@clisp.org>
2207
2208         acl: Complete the 2010-08-10 fix.
2209         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
2210         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
2211         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
2212         explicitly.
2213         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
2214         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
2215
2216 2011-06-12  Bruno Haible  <bruno@clisp.org>
2217
2218         spawn-pipe tests: Comments.
2219         * tests/test-spawn-pipe-child.c (main): Update comment.
2220         Reported by James Youngman <jay@gnu.org>.
2221
2222 2011-06-11  James Youngman  <jay@gnu.org>
2223
2224         New module 'stat-size'.
2225         * modules/stat-size: New module.  Provides macros for accessing
2226         file size information in instances of struct stat.  Depends on the
2227         fileblocks module because it calls st_blocks.
2228         * lib/stat-size.h: New file, adapted from coreutils' system.h.
2229         * doc/gnulib.texi: Include stat-size.texi.
2230         * doc/stat-size.texi: Documentation for this module.
2231         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
2232         * m4/fileblocks.m4: Mention that stat-size depends on the call to
2233         AC_STRUCT_ST_BLOCKS.
2234
2235 2011-06-09  Bruno Haible  <bruno@clisp.org>
2236
2237         thread: Support pthreads-win32.
2238         * lib/glthread/thread.h (gl_thread_self): Define differently on
2239         pthreads-win32.
2240         (gl_null_thread): New declaration.
2241         (gl_thread_self_pointer): New macro.
2242         * lib/glthread/thread.c (gl_null_thread): New constant.
2243         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2244         gl_thread_self.
2245         * tests/test-tls.c: Likewise.
2246         Suggested by Paul Eggert. Reported by Eric Blake.
2247
2248 2011-06-09  Bruno Haible  <bruno@clisp.org>
2249
2250         thread: Fix confusion between NULL and 0.
2251         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2252         Reported by Paul Eggert.
2253
2254 2011-06-09  Bruno Haible  <bruno@clisp.org>
2255
2256         spawn-pipe tests: Avoid test failure on HP-UX 11.
2257         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2258         is closed.
2259
2260 2011-06-09  Bruno Haible  <bruno@clisp.org>
2261
2262         acl tests: Fix compilation error on HP-UX 11.
2263         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2264
2265 2011-06-09  Bruno Haible  <bruno@clisp.org>
2266
2267         rmdir: Avoid test failure on HP-UX 10.20.
2268         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2269         EEXIST.
2270
2271 2011-06-08  Eric Blake  <eblake@redhat.com>
2272
2273         perror: fix test on mingw
2274         * modules/perror-tests (Depends-on): Add dup2.
2275
2276         strerror_r-posix: fix on MacOS
2277         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2278         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2279         logic bug.
2280         * lib/strerror_r.c (strerror_r): Fix the bug.
2281         * lib/strerror.c (strerror): Likewise.
2282         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2283         problem.
2284         * doc/posix-functions/strerror.texi (strerror): Likewise.
2285         * doc/posix-functions/perror.texi (perror): Likewise.
2286         * tests/test-strerror.c (main): Enhance test.
2287         * tests/test-strerror_r.c (main): Likewise.
2288
2289 2011-06-08  Bruno Haible  <bruno@clisp.org>
2290
2291         gnulib-tool: Better isolation between different gnulib-tool invocations.
2292         * gnulib-tool: New option --witness-c-macro.
2293         (witness_c_macro): New variable.
2294         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2295         AM_CPPFLAGS define it as a C macro.
2296         (func_emit_tests_Makefile_am): Likewise.
2297         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2298         read it from there.
2299         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2300         m4_define, not AC_DEFUN.
2301         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2302         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2303         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2304         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2305         s|...|...|, to substitute the values of the GNULIB_* module indicator
2306         variables.
2307         * modules/dirent (Makefile.am): Likewise.
2308         * modules/fcntl-h (Makefile.am): Likewise.
2309         * modules/iconv-h (Makefile.am): Likewise.
2310         * modules/langinfo (Makefile.am): Likewise.
2311         * modules/locale (Makefile.am): Likewise.
2312         * modules/math (Makefile.am): Likewise.
2313         * modules/netdb (Makefile.am): Likewise.
2314         * modules/poll-h (Makefile.am): Likewise.
2315         * modules/pty (Makefile.am): Likewise.
2316         * modules/search (Makefile.am): Likewise.
2317         * modules/signal (Makefile.am): Likewise.
2318         * modules/spawn (Makefile.am): Likewise.
2319         * modules/stdio (Makefile.am): Likewise.
2320         * modules/stdlib (Makefile.am): Likewise.
2321         * modules/string (Makefile.am): Likewise.
2322         * modules/sys_ioctl (Makefile.am): Likewise.
2323         * modules/sys_select (Makefile.am): Likewise.
2324         * modules/sys_socket (Makefile.am): Likewise.
2325         * modules/sys_stat (Makefile.am): Likewise.
2326         * modules/sys_times (Makefile.am): Likewise.
2327         * modules/sys_utsname (Makefile.am): Likewise.
2328         * modules/sys_wait (Makefile.am): Likewise.
2329         * modules/termios (Makefile.am): Likewise.
2330         * modules/time (Makefile.am): Likewise.
2331         * modules/unistd (Makefile.am): Likewise.
2332         * modules/wchar (Makefile.am): Likewise.
2333
2334 2011-06-08  Eric Blake  <eblake@redhat.com>
2335
2336         strerror: simplify replacement
2337         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2338         * modules/strerror (configure.ac): No prereqs needed here...
2339         * modules/strerror-override (configure.ac): ...but this needs it.
2340         (Files): Add file for needed prereq macro.
2341
2342 2011-06-08  Bruno Haible  <bruno@clisp.org>
2343
2344         strerror_r-posix: Tweaks.
2345         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2346         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2347         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2348         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2349         (gl_FUNC_STRERROR_R): ... to here.
2350         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2351
2352 2011-06-07  Eric Blake  <eblake@redhat.com>
2353
2354         perror: document fixed bugs
2355         * doc/posix-functions/perror.texi (perror): Document recent
2356         patches.
2357
2358 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2359
2360         stat-time: get_stat_birthtime failure is better-defined
2361         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2362         return a timestamp whose tv_sec and tv_nsec values are both -1.
2363         Previously, the spec said only that the tv_nsec value was negative.
2364         This upward-compatible change simplifies GNU tar a bit.
2365
2366 2011-06-07  Eric Blake  <eblake@redhat.com>
2367
2368         strerror_r-posix: work around cygwin 1.7.9
2369         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2370         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2371         bug without replacing strerror_r.
2372         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2373         strerror_r is buggy, but without requiring strerror_r compilation.
2374         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2375
2376         test-perror: relax test to ignore cygwin bug
2377         * tests/test-perror2.c (main): Relax test on requiring detection
2378         of stream errors, and use unbuffered stream.
2379         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2380         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2381         * doc/posix-functions/fputc.texi (fputc): Likewise.
2382         * doc/posix-functions/fputs.texi (fputs): Likewise.
2383         * doc/posix-functions/fputws.texi (fputws): Likewise.
2384         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2385         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2386         * doc/posix-functions/getopt.texi (getopt): Likewise.
2387         * doc/posix-functions/perror.texi (perror): Likewise.
2388         * doc/posix-functions/printf.texi (printf): Likewise.
2389         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2390         * doc/posix-functions/psignal.texi (psignal): Likewise.
2391         * doc/posix-functions/putc.texi (putc): Likewise.
2392         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2393         Likewise.
2394         * doc/posix-functions/putchar.texi (putchar): Likewise.
2395         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2396         Likewise.
2397         * doc/posix-functions/puts.texi (puts): Likewise.
2398         * doc/posix-functions/putwc.texi (putwc): Likewise.
2399         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2400         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2401         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2402         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2403         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2404         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2405         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2406         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2407
2408 2011-05-22  Bruno Haible  <bruno@clisp.org>
2409
2410         strerror: Move AC_LIBOBJ invocations to module description.
2411         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2412         gl_PREREQ_STRERROR invocations from here...
2413         * modules/strerror (configure.ac): ... to here.
2414
2415 2011-05-21  Bruno Haible  <bruno@clisp.org>
2416
2417         perror: Use common idiom.
2418         * modules/perror (configure.ac): Reorder statements.
2419
2420 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2421
2422         tests: fix usage message in 'mktempd_'
2423         * tests/init.sh (mktempd_): In the usage message, use literal
2424         'mktempd_', not '$ME' (which is even undefined), as the name of
2425         the subroutine.
2426
2427 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2428
2429         tests init: new function 'fatal_', for hard errors
2430         Before this patch, the only way offered by tests/init.sh to
2431         properly signal a hard error was the `framework_failure_'
2432         function.  But the error message issued by that function,
2433         as its name would suggest, refers to a set-up failure in the
2434         testsuite, while hard errors can obviously also be due to
2435         other reasons.  The best way to fix this inconsistency is to
2436         introduce a new function with a more general error message.
2437         * tests/init.sh (fatal_): New function.
2438
2439 2011-06-06  Eric Blake  <eblake@redhat.com>
2440
2441         canonicalize-lgpl: use common idiom
2442         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2443         over newer POSIX -Rf.
2444         Reported by Bruno Haible.
2445
2446         canonicalize-lgpl: work around AIX realpath bug
2447         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2448         * doc/posix-functions/realpath.texi (realpath): Document it.
2449         Reported by Bruno Haible.
2450
2451         strerror: work around FreeBSD bug
2452         * lib/strerror.c (strerror): Special case 0.
2453         Reported by Bruno Haible.
2454
2455         strerror-override: avoid bloating errno module
2456         * modules/errno (Files, configure.ac): Move replacement strings...
2457         * modules/strerror-override: ...to new module.
2458         * modules/strerror (Depends-on): Add strerror-override.
2459         * modules/strerror_r-posix (Depends-on): Likewise.
2460         * MODULES.html.sh: Document new module.
2461         Reported by Bruno Haible.
2462
2463 2011-06-06  Bruno Haible  <bruno@clisp.org>
2464
2465         spawn-pipe tests: Rename program.
2466         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2467         * tests/test-spawn-pipe-child.c: Update comment.
2468         * tests/test-spawn-pipe.sh: Update.
2469         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2470
2471         spawn-pipe tests: Link the child program only against libc.
2472         * tests/test-spawn-pipe-child.c: New file, extracted from
2473         tests/test-spawn-pipe.c.
2474         (main): Expect only one argument.
2475         (is_open): New function, copied from tests/test-pipe.c.
2476         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2477         (child_main): Remove function.
2478         (test_pipe): Pass only one argument to the child program.
2479         (main): Remove child process code. Expect the child program's name as
2480         first argument.
2481         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2482         argument.
2483         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2484         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2485         test-spawn-pipe-child against no libraries.
2486
2487 2011-06-06  Bruno Haible  <bruno@clisp.org>
2488
2489         careadlinkat: Avoid mismatch between ssize_t and int.
2490         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2491         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2492
2493 2011-06-06  Jim Meyering  <meyering@redhat.com>
2494
2495         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2496         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2497         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2498
2499 2011-06-05  Bruno Haible  <bruno@clisp.org>
2500
2501         ansi-c++-opt: Interoperability with libtool.
2502         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2503         set the variable to "no", not to ":".
2504         * NEWS: Mention the change.
2505
2506 2011-06-05  Bruno Haible  <bruno@clisp.org>
2507
2508         acl: Fix test failure on AIX 7.
2509         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2510         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2511
2512 2011-06-05  Bruno Haible  <bruno@clisp.org>
2513
2514         pipe-filter-ii: Fix test failure on AIX and IRIX.
2515         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2516         with EAGAIN, retry with a smaller buffer size.
2517
2518 2011-06-05  Bruno Haible  <bruno@clisp.org>
2519
2520         localename: Fix link dependencies.
2521         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2522         * modules/localename-tests (Makefile.am): Link test-localename with
2523         $(LIBTHREAD).
2524
2525 2011-06-05  Bruno Haible  <bruno@clisp.org>
2526
2527         error: Avoid gcc warning.
2528         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2529
2530 2011-06-05  Bruno Haible  <bruno@clisp.org>
2531
2532         unsetenv: Avoid gcc warning.
2533         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2534
2535 2011-06-05  Bruno Haible  <bruno@clisp.org>
2536
2537         setenv: Avoid gcc warning.
2538         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2539
2540 2011-06-05  Bruno Haible  <bruno@clisp.org>
2541
2542         sys_select: Ensure memset is declared also on AIX 7.
2543         * lib/sys_select.in.h: Include <string.h> also on AIX.
2544         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2545         self-contained also on AIX 7.1.
2546
2547 2011-06-04  Jim Meyering  <meyering@redhat.com>
2548
2549         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2550         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2551         function name, "error".
2552         (_gl_translatable_diag_func_re): New configurable variable.
2553
2554 2011-06-04  Bruno Haible  <bruno@clisp.org>
2555
2556         getopt: Avoid gcc warning.
2557         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2558
2559 2011-06-04  Bruno Haible  <bruno@clisp.org>
2560
2561         strerror_r: Fix comments.
2562         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2563         commit.
2564
2565 2011-06-04  Bruno Haible  <bruno@clisp.org>
2566
2567         perror: Fix compilation error.
2568         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2569         Undefine fprintf, not sprintf.
2570         * modules/perror (Depends-on): Remove intprops, verify.
2571
2572 2011-06-04  Bruno Haible  <bruno@clisp.org>
2573
2574         setlocale: Enable replacement on Cygwin 1.5.
2575         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2576         Cygwin 1.5.x.
2577         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2578         LC_CTYPE category also exists on Cygwin 1.5.x.
2579
2580 2011-06-04  Bruno Haible  <bruno@clisp.org>
2581
2582         strerror-override: Don't disable symbol renamings.
2583         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2584         * lib/strerror-override.c: Include config.h.
2585         (strerror_override): Don't undefine.
2586
2587 2011-06-03  Bruno Haible  <bruno@clisp.org>
2588
2589         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2590         * lib/localename.h: Update copyright header.
2591         * lib/localename.c: Likewise.
2592         * lib/relocatable.h: Likewise.
2593         * lib/relocatable.c: Likewise.
2594
2595 2011-06-02  Bruno Haible  <bruno@clisp.org>
2596
2597         doc: Fix a module name.
2598         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2599
2600 2011-06-02  Bruno Haible  <bruno@clisp.org>
2601
2602         pipe2: Remove dependency on 'nonblocking' module.
2603         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2604         O_NONBLOCK is defined by gnulib.
2605         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2606         is zero.
2607         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2608         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2609         defined by gnulib.
2610         (get_nonblocking_flag): New function.
2611         (main): Test O_NONBLOCK flag only if it is nonzero.
2612         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2613
2614 2011-06-03  Jim Meyering  <meyering@redhat.com>
2615
2616         maint: three new prohibit-header-without-use rules
2617         Prohibit use of cloexec.h, posixver.h, same.h without use.
2618         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2619         (sc_prohibit_posixver_without_use): Likewise.
2620         (sc_prohibit_same_without_use): Likewise.
2621
2622 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2623
2624         allocator: 'die' routine is now given requested size
2625         * lib/allocator.h (struct allocator.die): New size arg.
2626         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2627         If the actual problem is an ssize_t limitation, not a size_t or
2628         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2629
2630 2011-06-01  Eric Blake  <eblake@redhat.com>
2631
2632         strerror: drop strerror_r dependency
2633         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2634         * lib/strerror-override.c (strerror_override): ...to new file.
2635         * lib/strerror-override.h: Add prototype.
2636         * lib/strerror-impl.h: Delete.
2637         * lib/strerror.c (strerror): New implementation.
2638         * modules/errno (Files): Add new files.
2639         (configure.ac): Compile new file as appropriate.
2640         * modules/strerror (Files): Drop unused file.
2641         (Depends-on): Drop strerror_r-posix.
2642         * MODULES.html.sh: Document strerror_r-posix.
2643         Requested by Sam Steingold.
2644
2645         perror: call strerror_r directly
2646         * modules/perror (Files): Drop strerror-impl.h.
2647         * lib/perror.c (perror): Use our own stack buffer, rather than
2648         calling a wrapper that uses static storage.
2649         * doc/posix-functions/perror.texi (perror): Document a limitation
2650         of our replacement.
2651
2652         strerror_r: fix includes for FreeBSD
2653         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2654         since we use abort on some platforms.
2655         Reported by Matthias Bolte.
2656
2657 2011-05-31  Bruno Haible  <bruno@clisp.org>
2658
2659         Fix link errors in tests: openat-die uses gettext-h.
2660         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2661         against $(LIBINTL).
2662         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2663         against $(LIBINTL).
2664         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2665         $(LIBINTL).
2666         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2667         against $(LIBINTL).
2668         * modules/linkat-tests (Makefile.am): Link test-linkat against
2669         $(LIBINTL).
2670         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2671         $(LIBINTL).
2672         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2673         against $(LIBINTL).
2674         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2675         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2676         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2677         $(LIBINTL).
2678         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2679         $(LIBINTL).
2680         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2681         $(LIBINTL).
2682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2683
2684 2011-05-31  Bruno Haible  <bruno@clisp.org>
2685
2686         Fix link errors in tests: wait-process uses gettext-h.
2687         * modules/nonblocking-pipe-tests (Makefile.am): Set
2688         test_nonblocking_pipe_main_LDADD.
2689         * modules/nonblocking-socket-tests (Makefile.am): Link
2690         test-nonblocking-socket-main against $(LIBINTL).
2691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2692
2693 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2694
2695         assert-h: work around 'verify' incompatibility
2696         * lib/verify.h: Use @...@ directives, not ifdef.
2697         * modules/assert-h (assert.h): Implement the directives.
2698         (assert.h): Substitute the symbol-prefix more consistently.
2699
2700 2011-05-29  Jim Meyering  <meyering@redhat.com>
2701
2702         trim: remove three superfluous assignments
2703         * lib/trim.c (trim2): Remove three superfluous assignments
2704         and correct brace positioning.
2705
2706 2011-05-29  Bruno Haible  <bruno@clisp.org>
2707
2708         wctype-h: Avoid namespace pollution on Solaris 2.6.
2709         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2710         identifiers.
2711         * doc/posix-headers/wctype.texi: Mention the problem.
2712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2713
2714 2011-05-28  Jim Meyering  <meyering@redhat.com>
2715
2716         parse-datetime.y: accommodate -Wstrict-overflow
2717         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2718         placate -Wstrict-overflow.
2719
2720         trim: avoid a warning from -O2 -Wstrict-overflow
2721         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2722
2723 2011-05-29  Bruno Haible  <bruno@clisp.org>
2724
2725         gnulib-tool: Fix bug in yesterday's commit.
2726         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2727         twice.
2728
2729 2011-05-29  Bruno Haible  <bruno@clisp.org>
2730
2731         Allow multiple gnulib generated include files to be combined.
2732         * gnulib-tool (func_compute_include_guard_prefix): New function.
2733         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2734         ${gl_include_guard_prefix} references.
2735         (func_import, func_create_testdir): Invoke
2736         func_compute_include_guard_prefix.
2737         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2738         * lib/ctype.in.h: Likewise.
2739         * lib/dirent.in.h: Likewise.
2740         * lib/errno.in.h: Likewise.
2741         * lib/fcntl.in.h: Likewise.
2742         * lib/float.in.h: Likewise.
2743         * lib/getopt.in.h: Likewise.
2744         * lib/iconv.in.h: Likewise.
2745         * lib/langinfo.in.h: Likewise.
2746         * lib/locale.in.h: Likewise.
2747         * lib/math.in.h: Likewise.
2748         * lib/netdb.in.h: Likewise.
2749         * lib/netinet_in.in.h: Likewise.
2750         * lib/poll.in.h: Likewise.
2751         * lib/pthread.in.h: Likewise.
2752         * lib/pty.in.h: Likewise.
2753         * lib/sched.in.h: Likewise.
2754         * lib/se-selinux.in.h: Likewise.
2755         * lib/search.in.h: Likewise.
2756         * lib/signal.in.h: Likewise.
2757         * lib/spawn.in.h: Likewise.
2758         * lib/stdarg.in.h: Likewise.
2759         * lib/stddef.in.h: Likewise.
2760         * lib/stdint.in.h: Likewise.
2761         * lib/stdio.in.h: Likewise.
2762         * lib/stdlib.in.h: Likewise.
2763         * lib/string.in.h: Likewise.
2764         * lib/strings.in.h: Likewise.
2765         * lib/sys_file.in.h: Likewise.
2766         * lib/sys_ioctl.in.h: Likewise.
2767         * lib/sys_select.in.h: Likewise.
2768         * lib/sys_socket.in.h: Likewise.
2769         * lib/sys_stat.in.h: Likewise.
2770         * lib/sys_time.in.h: Likewise.
2771         * lib/sys_times.in.h: Likewise.
2772         * lib/sys_uio.in.h: Likewise.
2773         * lib/sys_utsname.in.h: Likewise.
2774         * lib/sys_wait.in.h: Likewise.
2775         * lib/sysexits.in.h: Likewise.
2776         * lib/termios.in.h: Likewise.
2777         * lib/time.in.h: Likewise.
2778         * lib/unistd.in.h: Likewise.
2779         * lib/wchar.in.h: Likewise.
2780         * lib/wctype.in.h: Likewise.
2781         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2782         * modules/ctype (Makefile.am): Likewise.
2783         * modules/dirent (Makefile.am): Likewise.
2784         * modules/errno (Makefile.am): Likewise.
2785         * modules/fcntl-h (Makefile.am): Likewise.
2786         * modules/float (Makefile.am): Likewise.
2787         * modules/getopt-posix (Makefile.am): Likewise.
2788         * modules/iconv-h (Makefile.am): Likewise.
2789         * modules/langinfo (Makefile.am): Likewise.
2790         * modules/locale (Makefile.am): Likewise.
2791         * modules/math (Makefile.am): Likewise.
2792         * modules/netdb (Makefile.am): Likewise.
2793         * modules/netinet_in (Makefile.am): Likewise.
2794         * modules/poll-h (Makefile.am): Likewise.
2795         * modules/pthread (Makefile.am): Likewise.
2796         * modules/pty (Makefile.am): Likewise.
2797         * modules/sched (Makefile.am): Likewise.
2798         * modules/search (Makefile.am): Likewise.
2799         * modules/selinux-h (Makefile.am): Likewise.
2800         * modules/signal (Makefile.am): Likewise.
2801         * modules/spawn (Makefile.am): Likewise.
2802         * modules/stdarg (Makefile.am): Likewise.
2803         * modules/stddef (Makefile.am): Likewise.
2804         * modules/stdint (Makefile.am): Likewise.
2805         * modules/stdio (Makefile.am): Likewise.
2806         * modules/stdlib (Makefile.am): Likewise.
2807         * modules/string (Makefile.am): Likewise.
2808         * modules/strings (Makefile.am): Likewise.
2809         * modules/sys_file (Makefile.am): Likewise.
2810         * modules/sys_ioctl (Makefile.am): Likewise.
2811         * modules/sys_select (Makefile.am): Likewise.
2812         * modules/sys_socket (Makefile.am): Likewise.
2813         * modules/sys_stat (Makefile.am): Likewise.
2814         * modules/sys_time (Makefile.am): Likewise.
2815         * modules/sys_times (Makefile.am): Likewise.
2816         * modules/sys_uio (Makefile.am): Likewise.
2817         * modules/sys_utsname (Makefile.am): Likewise.
2818         * modules/sys_wait (Makefile.am): Likewise.
2819         * modules/sysexits (Makefile.am): Likewise.
2820         * modules/termios (Makefile.am): Likewise.
2821         * modules/time (Makefile.am): Likewise.
2822         * modules/unistd (Makefile.am): Likewise.
2823         * modules/wchar (Makefile.am): Likewise.
2824         * modules/wctype-h (Makefile.am): Likewise.
2825         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2826
2827 2011-05-29  Bruno Haible  <bruno@clisp.org>
2828
2829         assert-h: Allow multiple gnulib generated replacements to coexist.
2830         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2831
2832 2011-05-29  Bruno Haible  <bruno@clisp.org>
2833
2834         argp: Allow coexistence with strerror_r-posix module.
2835         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2836         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2837         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2838         not the glibc signature.
2839
2840 2011-05-28  Bruno Haible  <bruno@clisp.org>
2841
2842         gnulib-tool: Alternative structure of testdirs, similar to --import.
2843         * gnulib-tool: New option --single-configure.
2844         (func_usage): Document it.
2845         (single_configure): New variable.
2846         (func_modules_transitive_closure_separately,
2847         func_modules_transitive_closure_separately,
2848         func_determine_use_libtests, func_modules_add_dummy_separately,
2849         func_modules_to_filelist_separately): New functions, extracted from
2850         func_import.
2851         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2852         (func_import): Use the new functions.
2853         (func_create_testdir): Set final_modules. Handle $single_configure =
2854         true case.
2855
2856 2011-05-28  Bruno Haible  <bruno@clisp.org>
2857
2858         getloadavg: Remove an unreliable safety check.
2859         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2860         getloadavg.c is in place.
2861         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2862         Reported by Sam Steingold <sds@gnu.org>.
2863
2864 2011-05-28  Bruno Haible  <bruno@clisp.org>
2865
2866         doc: Cleanup yet another file produced by texinfo.tex.
2867         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2868
2869 2011-05-28  Bruno Haible  <bruno@clisp.org>
2870
2871         Finish the conditional dependencies mechanism.
2872         * gnulib-tool: New option --no-conditional-dependencies.
2873         (func_usage): Document it. Don't mark --conditional-dependencies as
2874         experimental.
2875         (cond_dependencies): The possible values can now be true, false, empty.
2876         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2877         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2878         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2879
2880 2011-05-28  Bruno Haible  <bruno@clisp.org>
2881
2882         doc: Use a recent texinfo.tex.
2883         * doc/Makefile (tex_opts): New variable.
2884         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2885
2886 2011-05-28  Jim Meyering  <meyering@redhat.com>
2887
2888         intprops.h: adjust comment to match code change
2889         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2890         only once, it *may* have side effects.  Also fix an unrelated typo.
2891         (_GL_INT_SIGNED): Likewise.
2892
2893 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2894
2895         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2896
2897 2011-05-26  Bruno Haible  <bruno@clisp.org>
2898
2899         mbsrchr: Avoid collision with system function on Interix.
2900         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2901         Reported by Markus Duft <mduft@gentoo.org>.
2902
2903 2011-05-15  James Youngman  <jay@gnu.org>
2904
2905         getopt: for ambiguous options, enumerate the possibilities.
2906         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2907         the ambiguous options when an ambiguous prefix is given. This was
2908         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2909         glibc change was
2910         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2911
2912 2011-05-25  Eric Blake  <eblake@redhat.com>
2913
2914         getcwd: work around mingw bug
2915         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2916         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2917         Reported by Matthias Bolte.
2918
2919 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2920
2921         test-intprops: disable -Wtype-limits diagnostics
2922         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2923         diagnostics.  Otherwise, the integer overflow macros generate many
2924         diagnostics.  Reported by Jim Meyering in
2925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2926
2927         intprops: shorten, to pacify gcc -Woverlength-strings
2928         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2929         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2930         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2931         likely to run afoul of C compiler limits for string constant lengths.
2932         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2933
2934 2011-05-24  Eric Blake  <eblake@redhat.com>
2935
2936         docs: document recently fixed glibc printf bug
2937         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2938         * doc/posix-functions/printf.texi (printf): Likewise.
2939         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2940         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2941
2942         closein-tests: convert to init.sh
2943         * modules/closein-tests (Files): Add init.sh
2944         * tests/test-closein.sh Use it.
2945
2946         yesno-tests: convert to init.sh
2947         * modules/yesno-tests (Files): Add init.sh.
2948         * tests/test-yesno.sh: Use it.
2949
2950         atexit-tests: ensure reliable exit status
2951         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2952         Reported by Bruno Haible.
2953
2954 2011-05-24  Bruno Haible  <bruno@clisp.org>
2955
2956         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2957         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2958         gl_PREREQ_STRERROR_R invocations from here...
2959         * modules/strerror_r-posix (configure.ac): ... to here.
2960
2961 2011-05-24  Eric Blake  <eblake@redhat.com>
2962
2963         strerror_r: fix missing header
2964         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2965
2966         strerror_r: fix AIX test failures
2967         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2968         ERANGE failure.
2969
2970         strerror_r: fix Solaris test failures
2971         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2972         failures.
2973         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2974
2975         strerror_r: enforce POSIX recommendations
2976         * lib/strerror_r.c (safe_copy): New helper method.
2977         (strerror_r): Guarantee a non-empty string.
2978         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2979         recent POSIX rulings and to match our strerror guarantees.
2980         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2981
2982 2011-05-24  Jim Meyering  <meyering@redhat.com>
2983
2984         test-perror2.c: avoid warning about unused variable
2985         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2986
2987 2011-05-24  Eric Blake  <eblake@redhat.com>
2988
2989         perror: avoid spurious test failure on HP-UX
2990         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2991
2992         tests: fix logic bug in init.sh
2993         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2994         shell.
2995
2996 2011-05-24  Jim Meyering  <meyering@redhat.com>
2997
2998         utimensat: do not reference an out-of-scope buffer
2999         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
3000         declared in an inner scope, yet "times" would be dereferenced outside
3001         the scope in which "ts" was valid.
3002         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
3003         of ts[2] "out/up", so that the use of aliased "times" (via
3004         "times = ts;") does not end up referencing an out-of-scope "ts"
3005
3006         opendir-safer.c: don't clobber errno; don't close negative FD
3007         * lib/opendir-safer.c (opendir_safer):
3008         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
3009         file descriptor, and more importantly, don't clobber the
3010         offending errno value with EINVAL.  Before, upon failure
3011         of dup_safer, we would pass the negative file descriptor to
3012         fdopendir, which would clobber errno.
3013
3014 2011-05-23  Bruno Haible  <bruno@clisp.org>
3015
3016         idcache: Fix module description.
3017         * modules/idcache (Include): Set to "idcache.h".
3018
3019 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3020
3021         gnulib-tool: fix portability problem with MacOS sed
3022         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
3023         before the "}".  Problem reported by Leo in
3024         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
3025         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
3026         sed_extract_condition1, sed_extract_condition2.
3027
3028 2011-05-23  Bruno Haible  <bruno@clisp.org>
3029
3030         hash: Simplify autoconf macro.
3031         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
3032
3033 2011-05-23  Bruno Haible  <bruno@clisp.org>
3034
3035         getugroups: Fix module description.
3036         * modules/getugroups (Include): Set to "getugroups.h".
3037
3038 2011-05-23  Bruno Haible  <bruno@clisp.org>
3039
3040         linkat: Simplify autoconf macro.
3041         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
3042
3043 2011-05-23  Bruno Haible  <bruno@clisp.org>
3044             Eric Blake  <eblake@redhat.com>
3045
3046         linkat, renameat: Update dependencies.
3047         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
3048         * modules/linkat (Depends-on): Likewise. Remove also readlink,
3049         symlinkat.
3050
3051 2011-05-23  Jim Meyering  <meyering@redhat.com>
3052
3053         maint.mk: more tight_scope improvements
3054         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
3055         (_gl_TS_headers): Define only in if-0'd block.
3056         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
3057         sometimes we must *not* use it.  Adjust uses accordingly.
3058         (sc_tight_scope): Use much simpler grep-based test to determine
3059         whether we skip this rule.
3060
3061         maint.mk: generalize/improve the tight-scope rule
3062         * top/maint.mk: Emit a warning when the test is skipped.
3063         (_gl_TS_dir): Add $(srcdir)/ prefix.
3064         (_gl_TS_function_match): Simplify, rather than trying
3065         to enumerate common types.  Otherwise, it would fail to match an
3066         "extern unsigned char const *" declaration in idutils.
3067         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
3068         a way to support use of that type of macro.
3069         (_gl_TS_var_match): Simplify regexp.
3070         (_gl_TS_obj_files): New configurable variable.
3071         (_gl_TS_headers): Likewise.
3072
3073 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3074
3075         verify: fix bug when gnulib <assert.h> is also included
3076         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
3077         is defined, not if _GL_STATIC_ASSERT_H is not defined.
3078         Perhaps there's a better way, but this fixes the immediate problem.
3079         Problem reported by Bruno Haible in
3080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
3081
3082 2011-05-22  Bruno Haible  <bruno@clisp.org>
3083
3084         xgetcwd: Simplify autoconf macro.
3085         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
3086
3087 2011-05-22  Bruno Haible  <bruno@clisp.org>
3088
3089         New module 'mktime-internal'.
3090         * modules/mktime-internal: New file.
3091         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
3092         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
3093         mktime_internal as a C macro if libc has __mktime_internal.
3094         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
3095         conditions.
3096         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
3097
3098 2011-05-22  Bruno Haible  <bruno@clisp.org>
3099
3100         timegm: Correct mktime replacement statements.
3101         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
3102         defining mktime as a C macro. This completes a 2009-07-28 commit.
3103
3104 2011-05-22  Bruno Haible  <bruno@clisp.org>
3105
3106         timegm: Simplify autoconf macro.
3107         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
3108
3109 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3110
3111         clock-time: change to LGPLv2+.
3112         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
3113         BSD-like but we have no mark for that; this is good enough for now.
3114
3115 2011-05-21  Bruno Haible  <bruno@clisp.org>
3116
3117         strerror_r: Fix comments.
3118         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
3119
3120 2011-05-21  Bruno Haible  <bruno@clisp.org>
3121
3122         relocatable-prog-wrapper: Fix possible link error.
3123         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
3124         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
3125         (gl_FUNC_SETENV): ... to here.
3126         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
3127         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
3128
3129 2011-05-21  Bruno Haible  <bruno@clisp.org>
3130
3131         relocatable-prog-wrapper: Assume strerror() exists.
3132         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
3133         m4/strerror.m4.
3134         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
3135         * lib/relocwrapper.c: Remove mention of strerror module.
3136         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
3137         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
3138         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
3139         C macro.
3140
3141 2011-05-21  Bruno Haible  <bruno@clisp.org>
3142
3143         select: Simplify replacement idiom.
3144         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
3145         Win32 platforms.
3146         * lib/sys_select.in.h (select): Simplify accordingly.
3147         * modules/select (Depends-on): Likewise.
3148
3149 2011-05-21  Bruno Haible  <bruno@clisp.org>
3150
3151         mkdir-p: Simplify autoconf macro.
3152         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
3153         gl_FUNC_LCHOWN.
3154
3155 2011-05-21  Eric Blake  <eblake@redhat.com>
3156
3157         strerror_r: avoid clobbering strerror on cygwin
3158         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
3159         fall back instead to sys_errlist.
3160         * modules/strerror (configure.ac): Add witness.
3161         * tests/test-strerror_r.c (main): Enhance test.
3162         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3163         * tests/test-perror2.c (main): Free memory before exit.
3164
3165 2011-05-21  Bruno Haible  <bruno@clisp.org>
3166
3167         mkdtemp: Use gnulib naming conventions.
3168         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
3169         * modules/mkdtemp (configure.ac): Update.
3170
3171 2011-05-20  Eric Blake  <eblake@redhat.com>
3172
3173         strerror_r: avoid corrupting errno on Solaris
3174         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
3175         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3176
3177         strerror_r: avoid compiler warning
3178         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
3179
3180         strerror_r: simplify AIX code
3181         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
3182
3183         test-perror: avoid spurious failure on FreeBSD
3184         * modules/perror-tests (Depends-on): Add strerror, now that
3185         strerror_r no longer pulls it in.
3186
3187 2011-05-20  Bruno Haible  <bruno@clisp.org>
3188
3189         strerror_r-posix: Remove unused dependencies.
3190         * modules/strerror_r-posix (Depends-on): Remove strerror.
3191         Reported by Eric Blake.
3192
3193 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3194
3195         intprops: remove assumption about A|B representation
3196         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
3197         is a valid integer if both A and B are.  Although this is true for
3198         all known practical hosts, the C standard doesn't guarantee it,
3199         and the code need not assume it.  Also, this change may work around
3200         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
3201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
3202
3203 2011-05-20  Eric Blake  <eblake@redhat.com>
3204
3205         perror: work around FreeBSD bug
3206         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
3207         is broken.  Move AC_LIBOBJ...
3208         * modules/perror (configure.ac): Here.
3209         * doc/posix-functions/perror.texi (perror): Document this.
3210         * tests/test-perror2.c (main): Enhance test.
3211
3212         test-perror: check for strerror interactions
3213         * tests/macros.h (STREQ): Add macro.
3214         * modules/perror-tests (Files): Add second test.
3215         * tests/test-perror2.c (main): New file.
3216         * doc/posix-functions/perror.texi (perror): Document glibc bug.
3217
3218         test-perror: rewrite to use init script
3219         * modules/perror-tests (Files): Add init.sh.
3220         * tests/test-perror.sh: Use temporary directory.
3221
3222 2011-05-20  Jim Meyering  <meyering@redhat.com>
3223
3224         maint: replace misused "a" with "an"
3225         * doc/intprops.texi: "a integer"
3226         * doc/regex.texi: "a explanation"
3227         * lib/alignof.h: "a object"
3228         * lib/argmatch.h: "a explanation"
3229         * lib/argp-help.c: "a option" and "a OPTION_DOC"
3230         * lib/stdint.in.h: "a integer"
3231         * lib/userspec.c: "a owner"
3232         * doc/gnulib.texi: Fix "a idea", and reword.
3233
3234 2011-05-19  Jim Meyering  <meyering@redhat.com>
3235
3236         maint: correct misuse of "a" and "an"
3237         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
3238         * lib/argp-help.c: "an docum...": s/an/a/
3239         * lib/argp-parse.c: "An vector": s/An/A/
3240         * lib/execute.c: "an native": s/an/a/
3241         * lib/spawn-pipe.c: Likewise.
3242         * lib/gc.h: "an Gc_rc": s/an/a/
3243         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3244         * lib/fts.c: "an stat.st_dev": s/an/a/
3245
3246 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3247
3248         intprops-tests: work around HP-UX 11.23 cc bug with constants
3249         * tests/test-intprops.c (VERIFY): New macro.
3250         (main): Use it, instead of verify, to work around the compiler bug; see
3251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3252
3253         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3254         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3255         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3256         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3257         (_GL_REMAINDER_OVERFLOW): Use it.
3258
3259         intprops-tests: revert unsigned part of previous change
3260         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3261         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3262         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3264
3265 2011-05-19  Bruno Haible  <bruno@clisp.org>
3266
3267         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3268         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3269         strerror_r() returned without filling the buffer.
3270         Reported by Eric Blake.
3271
3272 2011-05-19  Eric Blake  <eblake@redhat.com>
3273
3274         strerror_r: guarantee unchanged errno
3275         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3276         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3277         failure.
3278         * tests/test-strerror_r.c (main): Enhance test.
3279
3280 2011-05-19  Bruno Haible  <bruno@clisp.org>
3281
3282         strerror_r: Reorder #if blocks.
3283         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3284         for consistency with the previous commit.
3285
3286 2011-05-19  Bruno Haible  <bruno@clisp.org>
3287
3288         perror: Avoid clobbering the strerror buffer when possible.
3289         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3290         * lib/strerror.c: Include it.
3291         * modules/strerror (Files): Add lib/strerror-impl.h.
3292         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3293         (my_strerror): New function, defined through lib/strerror-impl.h.
3294         (perror): Use it instead of strerror.
3295         * modules/perror (Files): Add lib/strerror-impl.h.
3296         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3297
3298 2011-05-19  Eric Blake  <eblake@redhat.com>
3299
3300         strerror_r: fix on newer cygwin
3301         * lib/strerror_r.c (strerror_r): Cygwin now has
3302         __xpg_strerror_r, use it.
3303
3304 2011-05-19  Bruno Haible  <bruno@clisp.org>
3305
3306         strerror_r: Avoid clobbering the strerror buffer when possible.
3307         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3308         (sys_nerr, sys_errlist): New declarations.
3309         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3310         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3311         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3312
3313 2011-05-19  Bruno Haible  <bruno@clisp.org>
3314
3315         strerror_r: Fix test failure on mingw.
3316         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3317         EXTEND_STRERROR_R.
3318         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3319         macros from errno.in.h instead.
3320
3321 2011-05-19  Eric Blake  <eblake@redhat.com>
3322
3323         strerror: relax test for Solaris
3324         * tests/test-strerror.c (main): Permit Solaris behavior.
3325         * tests/test-strerror_r.c (main): Likewise.
3326
3327         strerror: enforce POSIX ruling on strerror(0)
3328         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3329         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3330         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3331         * doc/posix-functions/strerror.texi (strerror): Document it.
3332         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3333         * tests/test-strerror.c (main): Strengthen test.
3334         * tests/test-strerror_r.c (main): Likewise.
3335
3336 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3337
3338         intprop-tests: port to older and more-pedantic compilers
3339         * modules/intprops-tests (Files): Add tests/macros.h.
3340         * tests/test-intprops.c: Include macros.h.
3341         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3342         it's no longer documented to expand to an integer constant expression.
3343         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3344         argument is floating point, as it's no longer documented to expand
3345         to an integer constant expression in that case.
3346         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3347         compiler bugs reported by Bruno Haible.  See
3348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3349         (U0, U1): New constants, to work around the same bugs.  Also,
3350         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3351
3352         intprops: work around C compiler bugs
3353         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3354         bug in Sun C 5.11 2010/08/13 and other compilers; see
3355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3356
3357         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3358         * doc/intprops.texi (Integer Type Determination): Fix
3359         documentation for TYPE_IS_INTEGER: it returns an constant
3360         expression, not an integer constant expression.  Fix doc for
3361         TYPE_SIGNED: it returns an integer constant expression only if its
3362         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3363         hardly worth documented that way....)
3364
3365 2011-05-18  Bruno Haible  <bruno@clisp.org>
3366
3367         strerror_r: Avoid clobbering the strerror buffer when possible.
3368         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3369         Handle gnulib defined errno values here. When strerror() returns NULL
3370         or an empty string, return EINVAL.
3371         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3372         gnulib defined errno values here.
3373         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3374
3375 2011-05-18  Eric Blake  <eblake@redhat.com>
3376
3377         fnmatch: avoid compiler warning
3378         * lib/fnmatch_loop.c (FCT): Use correct type.
3379         Reported by Matthias Bolte.
3380
3381 2011-05-13  Jim Meyering  <meyering@redhat.com>
3382
3383         maint.mk: three new prohibit_<HDR>_without_use rules
3384         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3385         (sc_prohibit_stdio-safer_without_use): Likewise.
3386         (sc_prohibit_xfreopen_without_use): Likewise.
3387
3388 2011-05-17  Jim Meyering  <meyering@redhat.com>
3389
3390         announce-gen: fail if the NEWS delta is empty
3391         If there's nothing noteworthy in NEWS, then either you forgot
3392         or you shouldn't be releasing.
3393         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3394
3395 2011-05-17  Pádraig Brady <P@draigBrady.com>
3396
3397         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3398         reserved symbols starting with double underscore from the check.
3399
3400 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3401
3402         intprops: add doc
3403         * doc/intprops.texi: New file, documenting intprops.
3404         * doc/gnulib.texi (Particular Modules): Include it.
3405
3406         verify: add doc to gnulib manual and fix example
3407         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3408         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3409         (Compile-time Assertions): Fix example so it can't overflow.
3410
3411 2011-05-17  Jim Meyering  <meyering@redhat.com>
3412
3413         warnings.m4: don't usurp save_CPPFLAGS variable name
3414         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3415
3416         doc: fix typo
3417         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3418
3419 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3420             Bruno Haible  <bruno@clisp.org>
3421
3422         doc: Tweak recent change.
3423         * README (Portability guidelines): Tweak new text.
3424         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3425         Interix 6.1.
3426
3427 2011-05-16  Eric Blake  <eblake@redhat.com>
3428
3429         inttypes: avoid autoconf warning
3430         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3431         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3432
3433 2011-05-16  Sam Steingold <sds@gnu.org>
3434         and Eric Blake  <eblake@redhat.com>
3435
3436         vc-list-files: accept multiple directory operands
3437         * build-aux/vc-list-files: Iterate over all remaining operands.
3438
3439 2011-05-16  Bruno Haible  <bruno@clisp.org>
3440
3441         Fix confusion regarding deprecated modules.
3442         * modules/calloc (Status, Notice): Mark module as deprecated, not
3443         obsolete.
3444         * modules/fnmatch-posix (Status, Notice): Likewise.
3445         * modules/getdate (Status, Notice): Likewise.
3446         * modules/getopt (Status, Notice): Likewise.
3447         * modules/malloc (Status, Notice): Likewise.
3448         * modules/pipe (Status, Notice): Likewise.
3449         * modules/realloc (Status, Notice): Likewise.
3450         * modules/rename-dest-slash (Status, Notice): Likewise.
3451         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3452         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3453         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3454         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3455         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3456
3457 2011-05-16  Bruno Haible  <bruno@clisp.org>
3458
3459         doc: List the target platforms.
3460         * doc/gnulib-intro.texi (Target Platforms): New section.
3461         * doc/gnulib.texi (Introduction): Update menu.
3462         * README (Portability guidelines): Refer to the new section. Update
3463         statement about oldest supported environment. Remove rationale why
3464         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3465         unportable C89 function.
3466         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3467         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3468
3469 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3470
3471         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3472
3473 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3474
3475         intprops-tests: new module
3476         * modules/intprops-tests, tests/test-intprops.c: New files.
3477
3478         intprops: add safe, portable integer overflow checking
3479         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3480         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3481         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3482         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3483         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3484         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3485         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3486         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3487         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3488         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3489         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3490
3491 2011-05-12  James Youngman  <jay@gnu.org>
3492
3493         Add a test for glibc's Bugzilla bug #12378.
3494         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3495         doesn't allow the literal matching of a lone "[" (which is
3496         required by POSIX).
3497         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3498
3499 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3500
3501         Sync glibc change fixing Bugzilla bug #12378.
3502         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3503         beginning and fall back to matching as normal character if the
3504         string ends before the matching ']' is found.  This is what POSIX
3505         requires.
3506
3507 2011-05-13  Eric Blake  <eblake@redhat.com>
3508
3509         getcwd-lgpl: relax test for FreeBSD
3510         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3511         issue.
3512         * tests/test-getcwd-lgpl.c (main): Relax test.
3513         Reported by Matthias Bolte.
3514
3515 2011-05-11  Eric Blake  <eblake@redhat.com>
3516
3517         test-fflush: silence compiler warning
3518         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3519
3520 2011-05-11  Bruno Haible  <bruno@clisp.org>
3521
3522         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3523         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3524         * modules/canonicalize (Depends-on): Add 'nocrash'.
3525         * modules/canonicalize-lgpl (Depends-on): Likewise.
3526         * doc/posix-functions/realpath.texi: Update platforms list.
3527         Reported by Ryan Schmidt <ryandesign@macports.org>.
3528
3529 2011-05-11  Bruno Haible  <bruno@clisp.org>
3530
3531         group-member: Declare function in <unistd.h>.
3532         * lib/unistd.in.h (group_member): New declaration.
3533         * lib/group-member.h: Remove file.
3534         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3535         * tests/test-unistd-c++.cc: Check signature of group_member.
3536         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3537         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3538         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3539         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3540         HAVE_GROUP_MEMBER.
3541         * modules/group-member (Files): Remove lib/group-member.h.
3542         (Depends-on): Add unistd. Specify conditions.
3543         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3544         (Include): Change to <unistd.h>.
3545         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3546         HAVE_GROUP_MEMBER.
3547         * NEWS: Mention the change.
3548         * lib/euidaccess.c: Don't include group-member.h.
3549
3550 2011-05-11  Bruno Haible  <bruno@clisp.org>
3551
3552         group-member: Document module.
3553         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3554         module.
3555
3556 2011-05-11  Bruno Haible  <bruno@clisp.org>
3557
3558         fclose: Fix mistake earlier today.
3559         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3560
3561 2011-05-11  Eric Blake  <eblake@redhat.com>
3562
3563         fclose: preserve fflush errors
3564         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3565         Reported by Jim Meyering.
3566
3567         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3568         * build-aux/bootstrap (check_versions): When no specific version
3569         is required, merely check that the app produces an exit status
3570         that indicates its existence.
3571
3572         maint.mk: drop redundant check
3573         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3574         the same but better.
3575
3576 2011-05-11  Bruno Haible  <bruno@clisp.org>
3577
3578         fclose: Fix possible link error.
3579         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3580         unregister_shadow_fd. Improve comments.
3581         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3582         Eric Blake.
3583
3584 2011-05-11  Jim Meyering  <meyering@redhat.com>
3585
3586         maint.mk: improve "can not" detection and generalize rule name
3587         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3588         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3589         Use the same technique as in sc_prohibit_doubled_word, so that
3590         we recognize "can not" also when the words are separated by a newline.
3591         Suggested by Eric Blake.
3592         (perl_filename_lineno_text_): Define.  Factored out of...
3593         (prohibit_doubled_word_): ...here.  Use the new definition.
3594         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3595         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3596         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3597
3598 2011-05-10  Eric Blake  <eblake@redhat.com>
3599
3600         fclose: avoid double close race when possible
3601         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3602         all but WINDOWS_SOCKETS.
3603
3604 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3605
3606         openat: correct new comment
3607         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3608
3609 2011-05-10  Jim Meyering  <meyering@redhat.com>
3610
3611         openat: add comments
3612         * lib/openat-proc.c (openat_proc_name): Add comments,
3613         mostly from Eric Blake.
3614
3615 2011-05-09  Eric Blake  <eblake@redhat.com>
3616
3617         openat: reduce syscalls in first probe of /proc
3618         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3619         be a directory.  Simplify the probe for .. bugs.
3620         * modules/openat (Depends-on): Drop same-inode.
3621         Reported by Bastien ROUCARIES.
3622
3623 2011-05-09  Jim Meyering  <meyering@redhat.com>
3624
3625         maint.mk: change semantics/name of tight_scope variables
3626         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3627         Rename variables to align with semantics that make them more useful.
3628
3629         maint.mk: tweak new rule's name not to impinge
3630         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3631         (sc_tight_scope): Use new rule name rather than $@-0.
3632
3633         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3634         * top/maint.mk (sc_tight_scope): New rule.
3635         (sc_tight_scope-0): New rule, ifdef'd out.
3636         (_gl_TS_dir): Default.
3637         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3638         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3639
3640 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3641
3642         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3643         Haible <bruno@clisp.org>.
3644
3645 2011-05-08  Bruno Haible  <bruno@clisp.org>
3646
3647         Comments.
3648         * m4/isnanf.m4: Add comment.
3649         * m4/isnanl.m4: Likewise.
3650
3651 2011-05-08  Bruno Haible  <bruno@clisp.org>
3652
3653         glob: Remove obsolete macro.
3654         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3655
3656 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3657
3658         intprops: Sun C 5.11 supports __typeof__
3659         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3660         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3661         which is new.
3662         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3663
3664         intprops: switch to usual gnulib indenting and naming
3665         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3666         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3667
3668         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3669
3670 2011-05-08  Jim Meyering  <meyering@redhat.com>
3671
3672         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3673         * top/maint.mk (release-prep): Use make's --no-print-directory
3674         option when generating the announcement.  This eliminates the
3675         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3676         generated announcement template.
3677
3678 2011-05-08  Bruno Haible  <bruno@clisp.org>
3679
3680         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3681         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3682         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3683
3684 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3685
3686         ignore-value, verify: Omit include files from lib_SOURCES.
3687         * modules/ignore-value, modules/verify (Makefile.am):
3688         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3689         that leads Automake to duplicate use of am__objects_... variables
3690         in Makefile.in.  See
3691         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3692
3693 2011-05-07  Bruno Haible  <bruno@clisp.org>
3694
3695         fclose: Simplify autoconf macro.
3696         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3697         defined.
3698
3699 2011-05-07  Bruno Haible  <bruno@clisp.org>
3700
3701         canonicalize-lgpl: Fix autoconf macro ordering bug.
3702         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3703         gl_STDLIB_H_DEFAULTS.
3704
3705 2011-05-06  Eric Blake  <eblake@redhat.com>
3706
3707         maintainer-makefile: make sc_po_check easier to tune
3708         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3709         to probe for strings, such as an alternate location for gnulib.
3710
3711         fclose: guarantee behavior on seekable stdin
3712         * modules/fclose (Depends-on): Add fflush.
3713         * doc/posix-functions/fclose.texi (fclose): Document this.
3714         * tests/test-fclose.c (main): Make test for this unconditional.
3715
3716 2011-05-06  Bruno Haible  <bruno@clisp.org>
3717
3718         fflush, fpurge: Relicense under LGPLv2+.
3719         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3720         * modules/fpurge (License): Likewise.
3721         With permission from Eric Blake and Jim Meyering.
3722         Suggested by Eric Blake.
3723
3724 2011-05-06  Karl Berry  <karl@gnu.org>
3725
3726         * MODULES.html.sh (func_all_modules): remove exit.
3727
3728 2011-05-06  Jim Meyering  <meyering@redhat.com>
3729
3730         maint.mk: use info-gnu@ as the default only for a stable release
3731         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3732         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3733         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3734         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3735
3736 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3737
3738         assert-h: new module, which supports C1X-style static_assert
3739         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3740         * lib/verify.h: Revamp so that this can be copied into assert.h,
3741         while retaining the ability to use it standalone as before.
3742         Rename private identifiers so as not to encroach on the
3743         standard C namespace, since this is now used by assert.h.
3744         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3745         the old verify_true.
3746         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3747         the old verify_true.  Use _GL_VERIFY_TYPE.
3748         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3749         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3750         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3751         defined when this file is copied into the replacement assert.h.
3752         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3753         and _Static_assert is not built in.
3754         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3755         defined, and use the new macros mentioned above.
3756         * doc/posix-headers/assert.texi: Document this.
3757
3758 2011-05-05  Bruno Haible  <bruno@clisp.org>
3759
3760         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3761         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3762         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3763         gl_REPLACE_FCLOSE here.
3764         * modules/fflush (Depends-on): Remove fclose.
3765         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3766         combination with module 'fclose'.
3767
3768 2011-05-05  Bruno Haible  <bruno@clisp.org>
3769
3770         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3771         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3772         gl_FUNC_FFLUSH.
3773         (gl_FUNC_FFLUSH): Use it.
3774         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3775         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3776         gl_REPLACE_FSEEKO here.
3777
3778 2011-05-05  Bruno Haible  <bruno@clisp.org>
3779
3780         tzset: Relicense under LGPL.
3781         * modules/tzset (License): Change to LGPL.
3782         No agreement needed; it's a no-op.
3783
3784         strtoimax, strtoumax: Relicense under LGPL.
3785         * modules/strtoimax (License): Change to LGPL.
3786         * modules/strtoumax (License): Likewise.
3787         With permission from Jim Meyering, Paul Eggert:
3788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3790
3791         getgroups: Relicense under LGPL.
3792         * modules/getgroups (License): Change to LGPL.
3793         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3797
3798         nanosleep: Relicense under LGPL.
3799         * modules/nanosleep (License): Change to LGPL.
3800         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3801         Haible:
3802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3806
3807         futimens: Relicense under LGPL.
3808         * modules/futimens (License): Change to LGPL.
3809         With permission from Eric Blake:
3810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3811
3812         fflush: Relicense under LGPL.
3813         * modules/fflush (License): Change to LGPL.
3814         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3818
3819         tmpfile: Relicense under LGPL.
3820         * modules/tmpfile (License): Change to LGPL.
3821         With permission from Ben Pfaff:
3822         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3823
3824         isfinite: Relicense under LGPL.
3825         * modules/isfinite (License): Change to LGPL.
3826         With permission from Ben Pfaff, Bruno Haible:
3827         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3829
3830         acosl..tanl: Relicense under LGPL.
3831         * modules/acosl (License): Change to LGPL.
3832         * modules/asinl (License): Likewise.
3833         * modules/atanl (License): Likewise.
3834         * modules/cosl (License): Likewise.
3835         * modules/expl (License): Likewise.
3836         * modules/logl (License): Likewise.
3837         * modules/sinl (License): Likewise.
3838         * modules/sqrtl (License): Likewise.
3839         * modules/tanl (License): Likewise.
3840         Source code originally from glibc and Paolo Bonzini. Agreements:
3841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3843
3844 2011-05-05  Bruno Haible  <bruno@clisp.org>
3845
3846         signal: Define sighandler_t.
3847         * lib/signal.in.h (sighandler_t): New type.
3848         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3849         whether sighandler_t is defined.
3850         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3851         * modules/signal (Depends-on): Add extensions.
3852         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3853         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3854         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3855
3856 2011-05-05  Eric Blake  <eblake@redhat.com>
3857
3858         maint: remove useless REPLACE_*_H macros
3859         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3860         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3861         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3862         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3863         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3864         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3865         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3866         * m4/btowc.m4: Update callers.
3867         * m4/dirfd.m4: Likewise.
3868         * m4/duplocale.m4: Likewise.
3869         * m4/fchdir.m4: Likewise.
3870         * m4/fdopendir.m4: Likewise.
3871         * m4/inet_ntop.m4: Likewise.
3872         * m4/inet_pton.m4: Likewise.
3873         * m4/ioctl.m4: Likewise.
3874         * m4/mbrlen.m4: Likewise.
3875         * m4/mbrtowc.m4: Likewise.
3876         * m4/mbsinit.m4: Likewise.
3877         * m4/mbsnrtowcs.m4: Likewise.
3878         * m4/mbsrtowcs.m4: Likewise.
3879         * m4/poll.m4: Likewise.
3880         * m4/setlocale.m4: Likewise.
3881         * m4/wcrtomb.m4: Likewise.
3882         * m4/wcsnrtombs.m4: Likewise.
3883         * m4/wcsrtombs.m4: Likewise.
3884         * m4/wctob.m4: Likewise.
3885         * m4/wcwidth.m4: Likewise.
3886         * modules/posix_spawn: Likewise.
3887         * modules/posix_spawn_file_actions_addclose: Likewise.
3888         * modules/posix_spawn_file_actions_adddup2: Likewise.
3889         * modules/posix_spawn_file_actions_addopen: Likewise.
3890         * modules/posix_spawn_file_actions_destroy: Likewise.
3891         * modules/posix_spawn_file_actions_init: Likewise.
3892         * modules/posix_spawnattr_destroy: Likewise.
3893         * modules/posix_spawnattr_getflags: Likewise.
3894         * modules/posix_spawnattr_getpgroup: Likewise.
3895         * modules/posix_spawnattr_getschedparam: Likewise.
3896         * modules/posix_spawnattr_getschedpolicy: Likewise.
3897         * modules/posix_spawnattr_getsigdefault: Likewise.
3898         * modules/posix_spawnattr_getsigmask: Likewise.
3899         * modules/posix_spawnattr_init: Likewise.
3900         * modules/posix_spawnattr_setflags: Likewise.
3901         * modules/posix_spawnattr_setpgroup: Likewise.
3902         * modules/posix_spawnattr_setschedparam: Likewise.
3903         * modules/posix_spawnattr_setschedpolicy: Likewise.
3904         * modules/posix_spawnattr_setsigdefault: Likewise.
3905         * modules/posix_spawnattr_setsigmask: Likewise.
3906         * modules/posix_spawnp: Likewise.
3907
3908 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3909
3910         Add option to do-release-commit-and-tag to specify branch.
3911         * build-aux/do-release-commit-and-tag: Add --branch.
3912
3913 2011-05-03  Bruno Haible  <bruno@clisp.org>
3914
3915         Avoid unnecessary compilation units, through conditional dependencies.
3916         * modules/accept (Depends-on): Add conditions to the dependencies.
3917         * modules/acosl (Depends-on): Likewise.
3918         * modules/argz (Depends-on): Likewise.
3919         * modules/asinl (Depends-on): Likewise.
3920         * modules/atanl (Depends-on): Likewise.
3921         * modules/atoll (Depends-on): Likewise.
3922         * modules/bind (Depends-on): Likewise.
3923         * modules/btowc (Depends-on): Likewise.
3924         * modules/canonicalize-lgpl (Depends-on): Likewise.
3925         * modules/ceil (Depends-on): Likewise.
3926         * modules/ceilf (Depends-on): Likewise.
3927         * modules/ceill (Depends-on): Likewise.
3928         * modules/chdir-long (Depends-on): Likewise.
3929         * modules/chown (Depends-on): Likewise.
3930         * modules/close (Depends-on): Likewise.
3931         * modules/connect (Depends-on): Likewise.
3932         * modules/cosl (Depends-on): Likewise.
3933         * modules/dirfd (Depends-on): Likewise.
3934         * modules/dprintf (Depends-on): Likewise.
3935         * modules/dprintf-posix (Depends-on): Likewise.
3936         * modules/error (Depends-on): Likewise.
3937         * modules/euidaccess (Depends-on): Likewise.
3938         * modules/expl (Depends-on): Likewise.
3939         * modules/faccessat (Depends-on): Likewise.
3940         * modules/fchdir (Depends-on): Likewise.
3941         * modules/fclose (Depends-on): Likewise.
3942         * modules/fcntl (Depends-on): Likewise.
3943         * modules/fdopendir (Depends-on): Likewise.
3944         * modules/fflush (Depends-on): Likewise.
3945         * modules/floor (Depends-on): Likewise.
3946         * modules/floorf (Depends-on): Likewise.
3947         * modules/floorl (Depends-on): Likewise.
3948         * modules/fnmatch (Depends-on): Likewise.
3949         * modules/fopen (Depends-on): Likewise.
3950         * modules/fprintf-posix (Depends-on): Likewise.
3951         * modules/frexp (Depends-on): Likewise.
3952         * modules/frexp-nolibm (Depends-on): Likewise.
3953         * modules/frexpl (Depends-on): Likewise.
3954         * modules/frexpl-nolibm (Depends-on): Likewise.
3955         * modules/fseek (Depends-on): Likewise.
3956         * modules/fsusage (Depends-on): Likewise.
3957         * modules/ftell (Depends-on): Likewise.
3958         * modules/ftello (Depends-on): Likewise.
3959         * modules/futimens (Depends-on): Likewise.
3960         * modules/getcwd (Depends-on): Likewise.
3961         * modules/getcwd-lgpl (Depends-on): Likewise.
3962         * modules/getdelim (Depends-on): Likewise.
3963         * modules/getdomainname (Depends-on): Likewise.
3964         * modules/getgroups (Depends-on): Likewise.
3965         * modules/gethostname (Depends-on): Likewise.
3966         * modules/getline (Depends-on): Likewise.
3967         * modules/getlogin_r (Depends-on): Likewise.
3968         * modules/getopt-posix (Depends-on): Likewise.
3969         * modules/getpeername (Depends-on): Likewise.
3970         * modules/getsockname (Depends-on): Likewise.
3971         * modules/getsockopt (Depends-on): Likewise.
3972         * modules/getsubopt (Depends-on): Likewise.
3973         * modules/getusershell (Depends-on): Likewise.
3974         * modules/glob (Depends-on): Likewise.
3975         * modules/grantpt (Depends-on): Likewise.
3976         * modules/iconv_open (Depends-on): Likewise.
3977         * modules/iconv_open-utf (Depends-on): Likewise.
3978         * modules/inet_ntop (Depends-on): Likewise.
3979         * modules/inet_pton (Depends-on): Likewise.
3980         * modules/ioctl (Depends-on): Likewise.
3981         * modules/isapipe (Depends-on): Likewise.
3982         * modules/isfinite (Depends-on): Likewise.
3983         * modules/isinf (Depends-on): Likewise.
3984         * modules/lchown (Depends-on): Likewise.
3985         * modules/ldexpl (Depends-on): Likewise.
3986         * modules/link (Depends-on): Likewise.
3987         * modules/linkat (Depends-on): Likewise.
3988         * modules/listen (Depends-on): Likewise.
3989         * modules/logl (Depends-on): Likewise.
3990         * modules/lstat (Depends-on): Likewise.
3991         * modules/mbrlen (Depends-on): Likewise.
3992         * modules/mbrtowc (Depends-on): Likewise.
3993         * modules/mbsinit (Depends-on): Likewise.
3994         * modules/mbsnrtowcs (Depends-on): Likewise.
3995         * modules/mbsrtowcs (Depends-on): Likewise.
3996         * modules/mbtowc (Depends-on): Likewise.
3997         * modules/memcmp (Depends-on): Likewise.
3998         * modules/mkdir (Depends-on): Likewise.
3999         * modules/mkdtemp (Depends-on): Likewise.
4000         * modules/mkfifo (Depends-on): Likewise.
4001         * modules/mkfifoat (Depends-on): Likewise.
4002         * modules/mknod (Depends-on): Likewise.
4003         * modules/mkostemp (Depends-on): Likewise.
4004         * modules/mkostemps (Depends-on): Likewise.
4005         * modules/mkstemp (Depends-on): Likewise.
4006         * modules/mkstemps (Depends-on): Likewise.
4007         * modules/mktime (Depends-on): Likewise.
4008         * modules/nanosleep (Depends-on): Likewise.
4009         * modules/open (Depends-on): Likewise.
4010         * modules/openat (Depends-on): Likewise.
4011         * modules/perror (Depends-on): Likewise.
4012         * modules/poll (Depends-on): Likewise.
4013         * modules/popen (Depends-on): Likewise.
4014         * modules/posix_spawn (Depends-on): Likewise.
4015         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
4016         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
4017         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
4018         * modules/posix_spawnp (Depends-on): Likewise.
4019         * modules/pread (Depends-on): Likewise.
4020         * modules/printf-posix (Depends-on): Likewise.
4021         * modules/ptsname (Depends-on): Likewise.
4022         * modules/putenv (Depends-on): Likewise.
4023         * modules/pwrite (Depends-on): Likewise.
4024         * modules/readline (Depends-on): Likewise.
4025         * modules/readlink (Depends-on): Likewise.
4026         * modules/readlinkat (Depends-on): Likewise.
4027         * modules/recv (Depends-on): Likewise.
4028         * modules/recvfrom (Depends-on): Likewise.
4029         * modules/regex (Depends-on): Likewise.
4030         * modules/remove (Depends-on): Likewise.
4031         * modules/rename (Depends-on): Likewise.
4032         * modules/renameat (Depends-on): Likewise.
4033         * modules/rmdir (Depends-on): Likewise.
4034         * modules/round (Depends-on): Likewise.
4035         * modules/roundf (Depends-on): Likewise.
4036         * modules/roundl (Depends-on): Likewise.
4037         * modules/rpmatch (Depends-on): Likewise.
4038         * modules/select (Depends-on): Likewise.
4039         * modules/send (Depends-on): Likewise.
4040         * modules/sendto (Depends-on): Likewise.
4041         * modules/setenv (Depends-on): Likewise.
4042         * modules/setlocale (Depends-on): Likewise.
4043         * modules/setsockopt (Depends-on): Likewise.
4044         * modules/shutdown (Depends-on): Likewise.
4045         * modules/sigaction (Depends-on): Likewise.
4046         * modules/signbit (Depends-on): Likewise.
4047         * modules/sigprocmask (Depends-on): Likewise.
4048         * modules/sinl (Depends-on): Likewise.
4049         * modules/sleep (Depends-on): Likewise.
4050         * modules/snprintf (Depends-on): Likewise.
4051         * modules/snprintf-posix (Depends-on): Likewise.
4052         * modules/socket (Depends-on): Likewise.
4053         * modules/sprintf-posix (Depends-on): Likewise.
4054         * modules/sqrtl (Depends-on): Likewise.
4055         * modules/stat (Depends-on): Likewise.
4056         * modules/strchrnul (Depends-on): Likewise.
4057         * modules/strdup-posix (Depends-on): Likewise.
4058         * modules/strerror (Depends-on): Likewise.
4059         * modules/strerror_r-posix (Depends-on): Likewise.
4060         * modules/strndup (Depends-on): Likewise.
4061         * modules/strnlen (Depends-on): Likewise.
4062         * modules/strptime (Depends-on): Likewise.
4063         * modules/strsep (Depends-on): Likewise.
4064         * modules/strsignal (Depends-on): Likewise.
4065         * modules/strstr-simple (Depends-on): Likewise.
4066         * modules/strtod (Depends-on): Likewise.
4067         * modules/strtoimax (Depends-on): Likewise.
4068         * modules/strtok_r (Depends-on): Likewise.
4069         * modules/strtoumax (Depends-on): Likewise.
4070         * modules/symlink (Depends-on): Likewise.
4071         * modules/symlinkat (Depends-on): Likewise.
4072         * modules/tanl (Depends-on): Likewise.
4073         * modules/tcgetsid (Depends-on): Likewise.
4074         * modules/tmpfile (Depends-on): Likewise.
4075         * modules/trunc (Depends-on): Likewise.
4076         * modules/truncf (Depends-on): Likewise.
4077         * modules/truncl (Depends-on): Likewise.
4078         * modules/uname (Depends-on): Likewise.
4079         * modules/unlink (Depends-on): Likewise.
4080         * modules/unlockpt (Depends-on): Likewise.
4081         * modules/unsetenv (Depends-on): Likewise.
4082         * modules/usleep (Depends-on): Likewise.
4083         * modules/utimensat (Depends-on): Likewise.
4084         * modules/vasprintf (Depends-on): Likewise.
4085         * modules/vdprintf (Depends-on): Likewise.
4086         * modules/vdprintf-posix (Depends-on): Likewise.
4087         * modules/vfprintf-posix (Depends-on): Likewise.
4088         * modules/vprintf-posix (Depends-on): Likewise.
4089         * modules/vsnprintf (Depends-on): Likewise.
4090         * modules/vsnprintf-posix (Depends-on): Likewise.
4091         * modules/vsprintf-posix (Depends-on): Likewise.
4092         * modules/wcrtomb (Depends-on): Likewise.
4093         * modules/wcscasecmp (Depends-on): Likewise.
4094         * modules/wcscspn (Depends-on): Likewise.
4095         * modules/wcsdup (Depends-on): Likewise.
4096         * modules/wcsncasecmp (Depends-on): Likewise.
4097         * modules/wcsnrtombs (Depends-on): Likewise.
4098         * modules/wcspbrk (Depends-on): Likewise.
4099         * modules/wcsrtombs (Depends-on): Likewise.
4100         * modules/wcsspn (Depends-on): Likewise.
4101         * modules/wcsstr (Depends-on): Likewise.
4102         * modules/wcstok (Depends-on): Likewise.
4103         * modules/wcswidth (Depends-on): Likewise.
4104         * modules/wctob (Depends-on): Likewise.
4105         * modules/wctomb (Depends-on): Likewise.
4106         * modules/wctype (Depends-on): Likewise.
4107         * modules/wcwidth (Depends-on): Likewise.
4108         * modules/write (Depends-on): Likewise.
4109
4110 2011-05-03  Bruno Haible  <bruno@clisp.org>
4111
4112         Support for conditional dependencies.
4113         * doc/gnulib.texi (Module description): Document the syntax of
4114         conditional dependencies.
4115         * gnulib-tool: New option --conditional-dependencies.
4116         (func_usage): Document it.
4117         (cond_dependencies): New variable.
4118         (func_get_automake_snippet_conditional,
4119         func_get_automake_snippet_unconditional): New functions, extracted from
4120         func_get_automake_snippet.
4121         (func_get_automake_snippet): Use them.
4122         (sed_first_32_chars): New variable.
4123         (func_module_shellfunc_name): New function.
4124         (func_module_shellvar_name): New function.
4125         (func_module_conditional_name): New function.
4126         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
4127         func_cond_module_condition): New functions.
4128         (func_modules_transitive_closure): Add support for conditional
4129         dependencies.
4130         (func_emit_lib_Makefile_am): For a conditional module, enclose the
4131         conditional automake snippet in an automake conditional.
4132         (func_emit_autoconf_snippets): Emit shell functions that contain the
4133         code for conditional modules.
4134         (func_import, func_create_testdir): Update specification.
4135
4136 2011-05-03  Eric Blake  <eblake@redhat.com>
4137
4138         test-getaddrinfo: report error information
4139         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
4140
4141 2011-05-03  Jim Meyering  <meyering@redhat.com>
4142
4143         bootstrap: avoid build failure when $GZIP is set
4144         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
4145         program name.  If defined at all, it is supposed to list gzip options.
4146         Reported by Alan Curry in http://debbugs.gnu.org/8609
4147
4148 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
4149
4150         readme-release: new module with release instructions
4151         * modules/readme-release: New module.
4152         * top/README-release: New file, from coreutils, grep, diffutils.
4153         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4154
4155 2011-05-02  Eric Blake  <eblake@redhat.com>
4156
4157         fflush: also replace fclose when fixing fflush
4158         * modules/fflush (Depends-on): Add fclose.
4159         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
4160         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
4161         memstreams with no backing fd.
4162         * doc/posix-functions/fclose.texi (fclose): Document the use of
4163         fflush module to fix the bug.
4164         * tests/test-fclose.c (main): Relax test when fclose is used in
4165         isolation.
4166
4167         fclose: add some tests
4168         * modules/fclose-tests: New test module.
4169         * tests/test-fclose.c: New file.
4170         * doc/posix-functions/fclose.texi (fclose): Document the bug.
4171
4172         fclose: reduced dependencies
4173         * modules/fclose (Depends-on): Switch from fflush/fseeko to
4174         simpler lseek.
4175         * lib/fclose.c (rpl_fclose): Likewise.
4176         Reported by Simon Josefsson.
4177
4178         exit: drop remaining clients
4179         * modules/argmatch (Depends-on): Replace exit with stdlib.
4180         * modules/copy-file (Depends-on): Likewise.
4181         * modules/execute (Depends-on): Likewise.
4182         * modules/exitfail (Depends-on): Likewise.
4183         * modules/obstack (Depends-on): Likewise.
4184         * modules/pagealign_alloc (Depends-on): Likewise.
4185         * modules/pipe-filter-gi (Depends-on): Likewise.
4186         * modules/pipe-filter-ii (Depends-on): Likewise.
4187         * modules/savewd (Depends-on): Likewise.
4188         * modules/spawn-pipe (Depends-on): Likewise.
4189         * modules/wait-process (Depends-on): Likewise.
4190         * modules/xsetenv (Depends-on): Likewise.
4191         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
4192         * modules/git-merge-changelog (Depends-on): Likewise.
4193         * modules/long-options (Depends-on): Likewise.
4194         * modules/pt_chown (Depends-on): Likewise.
4195         * modules/sysexits (Depends-on): Likewise.
4196
4197         freading: relax license from LGPLv3+ to LGPLv2+
4198         * modules/freading (License): Relax LGPL version.
4199
4200 2011-05-02  Bruno Haible  <bruno@clisp.org>
4201
4202         fchdir: Remove unused dependencies.
4203         * modules/fchdir (Depends-on): Remove include_next.
4204
4205 2011-05-02  Bruno Haible  <bruno@clisp.org>
4206
4207         gnulib-tool: Refactor.
4208         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
4209         from func_emit_autoconf_snippets.
4210         (func_emit_autoconf_snippets): Use it.
4211
4212 2011-05-02  Simon Josefsson  <simon@josefsson.org>
4213
4214         * NEWS: Document removal of 'exit'.
4215         * modules/exit: Remove file.
4216
4217 2011-05-01  Bruno Haible  <bruno@clisp.org>
4218
4219         Update DEPENDENCIES.
4220         * DEPENDENCIES (gettext): Recommend the newest release.
4221         Reported by Simon Josefsson.
4222
4223 2011-05-01  Bruno Haible  <bruno@clisp.org>
4224
4225         gnulib-tool: Reduce code duplication.
4226         * gnulib-tool (func_emit_autoconf_snippets): New function.
4227         (func_import, func_create_testdir): Use it.
4228
4229 2011-04-30  Eric Blake  <eblake@redhat.com>
4230
4231         fclose: don't fail on non-seekable input stream
4232         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
4233         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
4234         since fflush is allowed to fail in that case.
4235
4236 2011-04-30  Bruno Haible  <bruno@clisp.org>
4237
4238         dup3: cleanup
4239         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
4240
4241 2011-04-30  Bruno Haible  <bruno@clisp.org>
4242
4243         netdb: Make it work in C++ mode.
4244         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4245         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4246         module.
4247         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4248         gl_MODULE_INDICATOR_FOR_TESTS.
4249         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4250         * modules/netdb-c++-tests: New file.
4251         * tests/test-netdb-c++.cc: New file.
4252
4253 2011-04-30  Bruno Haible  <bruno@clisp.org>
4254
4255         New modules 'vfscanf', 'vscanf'.
4256         * modules/vfscanf: New file.
4257         * modules/vscanf: New file.
4258         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4259         here.
4260         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4261         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4262
4263 2011-04-30  Bruno Haible  <bruno@clisp.org>
4264
4265         passfd: Add comments.
4266         * lib/passfd.c: Add comments about platforms.
4267
4268 2011-04-30  Bruno Haible  <bruno@clisp.org>
4269
4270         sys_uio: Make <sys/uio.h> self-contained.
4271         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4272         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4273
4274 2011-04-30  Bruno Haible  <bruno@clisp.org>
4275
4276         sys_socket: Ensure 'struct iovec' definition.
4277         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4278         <sys/socket.h>.
4279         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4280
4281 2011-04-30  Bruno Haible  <bruno@clisp.org>
4282
4283         sys_uio: Protect definition of 'struct iovec'.
4284         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4285         it as a C struct.
4286
4287 2011-04-30  Bruno Haible  <bruno@clisp.org>
4288
4289         manywarnings: fix indentation
4290         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4291
4292 2011-04-30  Pádraig Brady <P@draigBrady.com>
4293
4294         manywarnings: add -Wno-missing-field-initializers if needed.
4295         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4296         option if it's needed to allow initialization with { 0, }
4297
4298 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4299
4300         announce-gen: cosmetic improvement
4301         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4302
4303 2011-04-29  Jim Meyering  <meyering@redhat.com>
4304
4305         vc-list-files: indent with spaces, not TABs
4306         * build-aux/vc-list-files: Convert leading TABs to spaces,
4307         to match the style of most other files in gnulib.
4308
4309         announce-gen: indent with spaces, not TABs
4310         * build-aux/announce-gen: Convert all TABs to spaces, to match
4311         the style of most other files in gnulib.
4312
4313 2011-04-29  Eric Blake  <eblake@redhat.com>
4314
4315         quotearg: avoid uninitialized variable use
4316         * lib/quotearg.c (quoting_options_from_style): Initialize
4317         remaining fields, and ensure that custom styles are only used via
4318         quoting_options rather than quoting_style.
4319
4320 2011-04-29  Jim Meyering  <meyering@redhat.com>
4321
4322         maint.mk: remove unused VC-tag variable
4323         * top/maint.mk (VC-tag): Remove unused variable.
4324
4325 2011-04-29  Bruno Haible  <bruno@clisp.org>
4326
4327         netdb: fix gai_strerror replacements
4328         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4329         * modules/netdb: Substitute it.
4330
4331 2011-04-29  Jim Meyering  <meyering@redhat.com>
4332
4333         test-getcwd.c: avoid new set-but-not-used warning
4334         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4335         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4336         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4337         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4338
4339         test-hash.c: avoid a new shadowing warning
4340         * tests/test-hash.c (main): Don't shadow "dup".
4341
4342 2011-04-28  Eric Blake  <eblake@redhat.com>
4343
4344         getaddrinfo: fix gai_strerror signature
4345         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4346         and work around mingw with UNICODE defined.
4347         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4348         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4349         * modules/netdb (Makefile.am): Substitute it.
4350         * lib/netdb.in.h (gai_strerror): Declare replacement.
4351         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4352         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4353         the fix.
4354
4355         getsockopt: avoid compiler warning
4356         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4357         Reported by Matthias Bolte.
4358
4359         tests: drop unused link dependency
4360         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4361         * modules/dirent-safer-tests (Makefile.am): Likewise.
4362         * modules/fdopendir-tests (Makefile.am): Likewise.
4363         * modules/mkfifoat-tests (Makefile.am): Likewise.
4364         * modules/openat-safer-tests (Makefile.am): Likewise.
4365         * modules/openat-tests (Makefile.am): Likewise.
4366         * modules/readlinkat-tests (Makefile.am): Likewise.
4367         * modules/symlinkat-tests (Makefile.am): Likewise.
4368         * modules/linkat-tests (Makefile.am): Likewise.
4369         (Depends-on): Switch to filenamecat-lgpl.
4370         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4371         LIBINTL.
4372         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4373         * tests/test-linkat.c (main): Don't require xalloc.
4374
4375         hash, mgetgroups: drop xalloc dependency
4376         * lib/hash.c (includes): Adjust includes.
4377         * lib/mgetgroups.c (includes): Likewise.
4378         (xgetgroups): Move...
4379         * lib/xgetgroups.c: ...to new file.
4380         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4381         * modules/xgetgroups: New file, split from...
4382         * modules/mgetgroups: ...here.
4383         (Depends-on): Add xalloc-oversized.
4384         * modules/hash (Depends-on): Likewise.
4385         * modules/hash-tests (Depends-on): Drop xalloc.
4386         (test_hash_LDADD): Drop unused library.
4387         * tests/test-hash.c (main): Break xalloc dependency.
4388         (includes): Drop unused include.
4389
4390         xalloc-oversized: new module
4391         * modules/xalloc-oversized: New module.
4392         * modules/xalloc (Depends-on): Add it.
4393         * lib/xalloc.h (xalloc_oversized): Move...
4394         * lib/xalloc-oversized.h: ...into new file.
4395
4396         utimecmp: drop dependency on xmalloc
4397         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4398         due to memory pressure.
4399         * modules/utimecmp (Depends-on): Drop xalloc.
4400
4401 2011-04-27  Eric Blake  <eblake@redhat.com>
4402
4403         getcwd: fix mingw bugs
4404         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4405         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4406         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4407
4408 2011-04-27  Bruno Haible  <bruno@clisp.org>
4409
4410         mkstemps: Ensure declaration on MacOS X 10.5.
4411         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4412         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4413         MacOS X.
4414
4415 2011-04-27  Bruno Haible  <bruno@clisp.org>
4416
4417         mkstemp: More documentation.
4418         * doc/posix-functions/mkstemp.texi: Document header file problem on
4419         MacOS X.
4420
4421 2011-04-27  Bruno Haible  <bruno@clisp.org>
4422
4423         mkstemp: Tweak configure message when cross-compiling.
4424         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4425         result as a guess.
4426
4427 2011-04-27  Bruno Haible  <bruno@clisp.org>
4428
4429         clean-temp: Clarify what it does.
4430         * lib/clean-temp.h: Add more comments.
4431         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4432         module.
4433         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4434         * doc/glibc-functions/mkstemps.texi: Likewise.
4435         * doc/glibc-functions/mkostemps.texi: Likewise.
4436
4437 2011-04-27  Eric Blake  <eblake@redhat.com>
4438
4439         fchdir: avoid extra chdir and fix test
4440         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4441         getcwd-lgpl.
4442         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4443         have to be canonical.
4444         (canonicalize_file_name): Drop unused macro.
4445         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4446
4447         filenamecat-lgpl: fix licence
4448         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4449         when it was first created.
4450
4451         linkat, renameat: add missing dependency
4452         * modules/linkat (Depends-on): Require getcwd-lgpl.
4453         * modules/renameat (Depends-on): Likewise.
4454
4455         tests: reduce dependencies
4456         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4457         * tests/test-renameat.c (main): Likewise.
4458         * modules/linkat-tests (Depends-on): Relax dependency.
4459         * modules/renameat-tests (Depends-on): Likewise.
4460         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4461         dependency explicit.
4462
4463         save-cwd: reduce default dependency
4464         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4465         * lib/save-cwd.c: Update comments.
4466         * NEWS: Document the semantic change.
4467
4468         getcwd: enhance tests
4469         * tests/test-getcwd-lgpl.c: New file, taken from...
4470         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4471         repeat long path stress tests from m4 probe.
4472         * modules/getcwd-lgpl-tests: New module.
4473         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4474         * m4/getcwd-abort-bug.m4: Update comment.
4475         * m4/getcwd-path-max.m4: Likewise.
4476
4477         getcwd-lgpl: new module
4478         * modules/getcwd-lgpl: New module.
4479         * lib/getcwd-lgpl.c: New file.
4480         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4481         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4482         * modules/getcwd (configure.ac): Set C witness.
4483         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4484
4485         getcwd: tweak comments
4486         * m4/getcwd-abort-bug.m4: Fix comments.
4487         * m4/getcwd-path-max.m4: Likewise.
4488         * m4/getcwd.m4: Likewise.
4489
4490 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4491         and Eric Blake  <eblake@redhat.com>
4492
4493         mkstemp: replace if system version uses wrong permissions
4494         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4495         read/write mode bits set in file created by mkstemp.
4496         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4497
4498 2011-04-27  Eric Blake  <eblake@redhat.com>
4499
4500         passfd: avoid compiler warning
4501         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4502         Reported by Laine Stump.
4503
4504 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4505
4506         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4507         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4508
4509 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4510         and Eric Blake  <eblake@redhat.com>
4511
4512         mkstemp: mention clean-temp module
4513         * lib/mkstemp.c: Add comment.
4514         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4515
4516 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4517
4518         inttypes: also provide default values for 32-bit tests
4519         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4520         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4521
4522 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4523
4524         strtoumax: remove dependency on strtoimax
4525         This is like the strtoull change of yesterday.
4526         * modules/strtoumax (Files): Add lib/strtoimax.c.
4527         (Depends-on): Remove strtoimax and add verify.
4528
4529         inttypes-incomplete: new module
4530         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4531         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4532         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4533         of gl_INTTYPES_H.
4534         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4535         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4536         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4537         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4538         * modules/strtoumax, modules/xstrtol (Depends-on):
4539         Depend on inttypes-incomplete, not inttypes.
4540         * modules/inttypes-incomplete: New module, containing the contents
4541         of the old modules/inttypes module, except that the Files: section
4542         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4543         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4544         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4545         (Depends-on): Depend only on inttypes-incomplete.
4546         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4547
4548         inttypes: omit now-redundant strtoimax and strtoumax work
4549         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4550         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4551
4552         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4553         This supports apps that need pointers to strtoimax and strtoumax,
4554         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4555         nonexistent functions.  See
4556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4557         et seq.
4558         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4559         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4560         a macro.
4561         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4562
4563 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4564
4565         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4566
4567 2011-04-25  Bruno Haible  <bruno@clisp.org>
4568
4569         strtol, strtoul: Mark modules as obsolete.
4570         * modules/strtol (Status, Notice): New sections.
4571         * modules/strtoul (Status, Notice): New sections.
4572
4573 2011-04-25  Bruno Haible  <bruno@clisp.org>
4574
4575         strtod: Remove check for strtod, unless supporting old platforms.
4576         * modules/strtod-obsolete: New file.
4577         * m4/strtod-obsolete.m4: New file.
4578         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4579         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4580         * modules/strtod (Depends-on): Add strtod-obsolete.
4581         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4582
4583 2011-04-25  Bruno Haible  <bruno@clisp.org>
4584
4585         strcase: Make module obsolete.
4586         * modules/strcase (Status, Notice): New sections.
4587
4588 2011-04-25  Bruno Haible  <bruno@clisp.org>
4589
4590         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4591         * modules/dup2-obsolete: New file.
4592         * m4/dup2-obsolete.m4: New file.
4593         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4594         gl_FUNC_DUP2_OBSOLETE is not also defined.
4595         * modules/dup2 (Depends-on): Add dup2-obsolete.
4596         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4597
4598 2011-04-25  Bruno Haible  <bruno@clisp.org>
4599
4600         strnlen: Avoid memchr related link error on old obsolete platforms.
4601         * modules/memchr-obsolete: New file.
4602         * m4/memchr-obsolete.m4: New file.
4603         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4604         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4605         * modules/memchr (Depends-on): Add memchr-obsolete.
4606         * modules/strnlen (Depends-on): Likewise.
4607         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4608
4609 2011-04-25  Jim Meyering  <meyering@redhat.com>
4610
4611         maint.mk: makefile_at_at_check extend and clean up
4612         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4613         in addition to */Makefile.am.
4614         Exempt legitimate uses of @VAR@ notation, e.g.,
4615         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4616         Remove obsolete coreutils-specific comment.
4617         Prompted by discussion here:
4618         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4619
4620 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4621
4622         strtoul: remove dependency on strtol
4623         This is so that 'configure' need not check for strtol merely because
4624         the application needs strtoul.
4625         * modules/strtoul (Files): Add lib/strtol.c.
4626         (Depends-on): Remove strtol.
4627
4628         strtoull: remove dependency on strtoul
4629         This is like the strtoll change.
4630         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4631         (Depends-on): Remove strtoul.
4632
4633         strtoll: remove dependency on strtol
4634         This is so that 'configure' need not check for strtol merely because
4635         the application needs strtoll.
4636         * modules/strtoll (Files): Add lib/strtol.c.
4637         (Depends-on): Remove strtol.
4638
4639 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4640
4641         inttypes: Move some configure check to module 'imaxdiv'.
4642         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4643         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4644         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4645
4646 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4647
4648         inttypes: Move some configure check to module 'imaxabs'.
4649         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4650         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4651         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4652
4653 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4654
4655         inttypes: Remove configure tests that are not needed since 2009-12-31.
4656         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4657         gl_cv_header_working_inttypes_h.
4658
4659 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4660
4661         * modules/strnlen (Depends-on): Remove memchr.
4662         The strnlen implementation doesn't need the memchr module's fixes; see
4663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4664
4665         strtol: remove dependency on wchar
4666         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4667         * modules/strtol (Depends-on): Remove wchar.
4668
4669 2011-04-21  Eric Blake  <eblake@redhat.com>
4670
4671         passfd: fix test regression on Linux
4672         * modules/passfd-tests (configure.ac): Correct socketpair check.
4673
4674         passfd: speed up configure and drop unused code
4675         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4676         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4677         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4678         Instead of probing at configure for unix_scm_rights_bsd44_way,
4679         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4680         check to a struct member probe.
4681         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4682         (sendfd, recvfd): Update preprocessor checks.
4683         * modules/passfd (Files): Reflect rename, and drop unused file.
4684         (Depends-on): Drop unused dependency.
4685
4686         passfd: allow compilation on mingw
4687         * modules/sys_socket (Depends-on): Add sys_uio.
4688         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4689         iovec and a minimal struct msghdr.
4690         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4691         * tests/test-sys_socket.c (main): Enhance test.
4692         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4693         guaranteed to provide what we need.
4694         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4695         * modules/passfd-tests (Depends-on): Add sys_wait.
4696         * tests/test-passfd.c (main): Skip test on mingw, for now.
4697         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4698         partial 'struct msghdr' implementation.
4699
4700         sys_uio: new module
4701         * modules/sys_uio: New module.
4702         * modules/sys_uio-tests: Likewise.
4703         * lib/sys_uio.in.h: New file.
4704         * m4/sys_uio_h.m4: Likewise.
4705         * tests/test-sys_uio.c: Likewise.
4706         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4707         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4708
4709 2011-04-20  Jim Meyering  <meyering@redhat.com>
4710
4711         useless-if-before-free: avoid false-positive
4712         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4713         disjunct so that it too requires a terminating ";".  Without that,
4714         this script would identify as useless one statement from gcc that
4715         was not:
4716           if (aligned_ptr)
4717             free (((void **) aligned_ptr) [-1]);
4718
4719 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4720
4721         doc: update users.txt.
4722         * users.txt: Add barcode.
4723
4724 2011-04-19  Bruno Haible  <bruno@clisp.org>
4725
4726         ioctl: Remove link dependency on native Windows.
4727         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4728         (gl_close_fn, gl_ioctl_fn): New types.
4729         (struct fd_hook): Renamed from struct close_hook. Change type of
4730         private_close_fn field. Add private_ioctl_fn field.
4731         (close_hook_fn): Add parameter for primary close method.
4732         (execute_close_hooks, execute_all_close_hooks): Likewise.
4733         (ioctl_hook_fn): New type.
4734         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4735         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4736         argument.
4737         (unregister_fd_hook): Renamed from unregister_close_hook.
4738         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4739         Don't include <unistd.h>.
4740         (close): Remove undef.
4741         (anchor): Update.
4742         (execute_close_hooks): Add argument for primary close method.
4743         (execute_all_close_hooks): Likewise.
4744         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4745         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4746         argument. Allow each argument to be NULL.
4747         (unregister_fd_hook): Renamed from unregister_close_hook.
4748         * lib/close.c (rpl_close): Pass 'close' function pointer to
4749         execute_all_close_hooks.
4750         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4751         (primary_ioctl): New function.
4752         (ioctl): Don't call ioctlsocket here. Instead, call
4753         execute_all_ioctl_hooks.
4754         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4755         close method.
4756         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4757         (fd_sockets_hook): Renamed from close_sockets_hook.
4758         (gl_sockets_startup, gl_sockets_cleanup): Update.
4759         * modules/fd-hook: Renamed from modules/close-hook. Update.
4760         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4761         * modules/sockets (Depends-on): Likewise.
4762         * modules/ioctl (Depends-on): Add fd-hook.
4763         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4764         GNULIB_SOCKET.
4765
4766 2011-04-19  Bruno Haible  <bruno@clisp.org>
4767
4768         Move the support of O_NONBLOCK in open() to the 'open' module.
4769         * modules/nonblocking (Depends-on): Remove 'open'.
4770         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4771         gl_cv_have_open_O_NONBLOCK.
4772         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4773         O_NONBLOCK support.
4774         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4775
4776 2011-04-17  Bruno Haible  <bruno@clisp.org>
4777
4778         pipe2: Simplify code.
4779         * lib/pipe2.c (pipe2): Reduce code duplication.
4780
4781 2011-04-17  Bruno Haible  <bruno@clisp.org>
4782
4783         nonblocking: Add comment.
4784         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4785
4786 2011-04-17  Bruno Haible  <bruno@clisp.org>
4787
4788         nonblocking: Add tests for sockets.
4789         * tests/test-nonblocking-socket.sh: New file.
4790         * tests/test-nonblocking-socket-main.c: New file.
4791         * tests/test-nonblocking-socket-child.c: New file.
4792         * tests/test-nonblocking-socket.h: New file.
4793         * tests/socket-server.h: New file.
4794         * tests/socket-client.h: New file.
4795         * modules/nonblocking-socket-tests: New file.
4796         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4797
4798 2011-04-17  Bruno Haible  <bruno@clisp.org>
4799
4800         nonblocking: Add tests for pipes.
4801         * tests/test-nonblocking-pipe.sh: New file.
4802         * tests/test-nonblocking-pipe-main.c: New file.
4803         * tests/test-nonblocking-pipe-child.c: New file.
4804         * tests/test-nonblocking-pipe.h: New file.
4805         * tests/test-nonblocking-writer.h: New file.
4806         * tests/test-nonblocking-reader.h: New file.
4807         * tests/test-nonblocking-misc.h: New file.
4808         * modules/nonblocking-pipe-tests: New file.
4809         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4810
4811 2011-04-16  Bruno Haible  <bruno@clisp.org>
4812
4813         gettext: Clarify the needed programmer actions.
4814         * modules/gettext (Notice): New field.
4815         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4816
4817 2011-04-16  Bruno Haible  <bruno@clisp.org>
4818
4819         strchrnul: Tweak last commit.
4820         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4821         bug.
4822         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4823         as in _GL_FUNCDECL_SYS.
4824         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4825         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4826
4827 2011-04-15  Eric Blake  <eblake@redhat.com>
4828
4829         strchrnul: work around cygwin bug
4830         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4831         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4833         * modules/string (Makefile.am): Substitute it.
4834         * lib/string.in.h (strchrnul): Use it.
4835
4836 2011-04-15  Bruno Haible  <bruno@clisp.org>
4837
4838         Don't require lib/stdio-write.c when only module 'stdio' is used.
4839         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4840         invocation.
4841         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4842
4843 2011-04-14  Bruno Haible  <bruno@clisp.org>
4844
4845         Support non-blocking pipe I/O in read() on native Windows.
4846         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4847         (read): New declaration.
4848         * lib/read.c: New file.
4849         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4850         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4851         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4852         vscanf): New declarations.
4853         * lib/stdio-read.c: New file.
4854         * m4/read.m4: New file.
4855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4856         REPLACE_READ.
4857         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4858         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4859         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4860         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4861         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4862         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4863         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4864         * modules/read: New file.
4865         * modules/nonblocking (Files): Add lib/stdio-read.c.
4866         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4867         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4868         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4869         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4870         * modules/pread (Depends-on): Add read.
4871         * modules/safe-read (Depends-on): Likewise.
4872         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4873         gets, scanf, vfscanf, vscanf): Verify signatures.
4874         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4875         problem with non-blocking pipes.
4876         * doc/posix-functions/fgetc.texi: Likewise.
4877         * doc/posix-functions/fgets.texi: Likewise.
4878         * doc/posix-functions/fread.texi: Likewise.
4879         * doc/posix-functions/fscanf.texi: Likewise.
4880         * doc/posix-functions/getc.texi: Likewise.
4881         * doc/posix-functions/getchar.texi: Likewise.
4882         * doc/posix-functions/gets.texi: Likewise.
4883         * doc/posix-functions/scanf.texi: Likewise.
4884         * doc/posix-functions/vfscanf.texi: Likewise.
4885         * doc/posix-functions/vscanf.texi: Likewise.
4886
4887 2011-04-14  Bruno Haible  <bruno@clisp.org>
4888
4889         Support non-blocking pipe I/O in write() on native Windows.
4890         * lib/write.c (rpl_write): Split a write request that failed merely
4891         because the byte count was larger than the pipe buffer's size.
4892         * doc/posix-functions/write.texi: Mention the problem with large byte
4893         counts.
4894
4895 2011-04-14  Bruno Haible  <bruno@clisp.org>
4896
4897         wchar: Ensure that wchar_t gets defined on uClibc.
4898         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4899         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4900
4901 2011-04-13  Bruno Haible  <bruno@clisp.org>
4902
4903         safe-write, full-read: Avoid unnecessary compilation units.
4904         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4905         (Depends-on): Remove safe-read. Add ssize_t.
4906         * modules/full-read (Files): Add lib/full-write.c.
4907         (Depends-on): Add full-write.
4908
4909 2011-04-13  Bruno Haible  <bruno@clisp.org>
4910
4911         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4912         * modules/pwrite (Depends-on): Add 'write'.
4913
4914 2011-04-13  Bruno Haible  <bruno@clisp.org>
4915
4916         Support non-blocking pipe I/O in write() on native Windows.
4917         * lib/unistd.in.h (write): Enable replacement also if
4918         GNULIB_UNISTD_H_NONBLOCKING is 1.
4919         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4920         (rpl_write): When failing to write on a non-blocking pipe, change
4921         errno from ENOSPC to EAGAIN.
4922         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4923         putchar, puts, vfprintf, vprintf): Enable replacement also if
4924         GNULIB_STDIO_H_NONBLOCKING is 1.
4925         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4926         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4927         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4928         CALL_WITH_SIGPIPE_EMULATION.
4929         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4930         * m4/nonblocking.m4: New file.
4931         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4932         for non-blocking I/O support.
4933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4934         GNULIB_UNISTD_H_NONBLOCKING.
4935         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4936         required for non-blocking I/O support.
4937         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4938         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4939         lib/stdio-write.c, m4/asm-underscore.m4.
4940         (Depends-on): Add stdio, unistd.
4941         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4942         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4943         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4944         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4945         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4946         problem with non-blocking pipes.
4947         * doc/posix-functions/fputc.texi: Likewise.
4948         * doc/posix-functions/fputs.texi: Likewise.
4949         * doc/posix-functions/fwrite.texi: Likewise.
4950         * doc/posix-functions/printf.texi: Likewise.
4951         * doc/posix-functions/putc.texi: Likewise.
4952         * doc/posix-functions/putchar.texi: Likewise.
4953         * doc/posix-functions/puts.texi: Likewise.
4954         * doc/posix-functions/vfprintf.texi: Likewise.
4955         * doc/posix-functions/vprintf.texi: Likewise.
4956         * doc/posix-functions/write.texi: Likewise.
4957
4958 2011-04-10  Jim Meyering  <meyering@redhat.com>
4959
4960         maint.mk: prohibit doubled words
4961         Detect them also when they're separated by a newline.
4962         There are 3 ways to customize it:
4963           - disable the test on a per file basis, as usual with rules using
4964             $(VC_LIST_EXCEPT)
4965           - replace the default doubled-word-selecting regexp (affects all files)
4966           - ignore a particular file-vs-doubled-word match
4967         I nearly used that last one to ignore the "is is" match in
4968         coreutils' NEWS file, since the text was "ls -is is ..."
4969         To do that, I would have added this line to cfg.mk:
4970           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4971         but it would have ignored any "is is" match in NEWS.
4972         Low probability, but still...
4973         Instead, I changed the text, slightly:
4974           -  ls -is is now consistent with ls -lis in ignoring values returned
4975           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4976         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4977         (prohibit_doubled_word_): Define.
4978         (sc_prohibit_doubled_word): New rule.
4979         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4980
4981 2011-04-10  Jim Meyering  <meyering@redhat.com>
4982
4983         maint: fix doubled-word typo in comment
4984         * m4/gethostname.m4: s/is is/it is/
4985         * m4/getdomainname.m4: Likewise.
4986
4987 2011-04-10  Jim Meyering  <meyering@redhat.com>
4988
4989         maint: remove doubled word: s/it it/it/
4990         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4991
4992 2011-04-10  Jim Meyering  <meyering@redhat.com>
4993
4994         maint.mk: remove useless semicolon and backslash
4995         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4996         semicolon and backslash.
4997
4998 2011-04-10  Bruno Haible  <bruno@clisp.org>
4999
5000         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
5001         * modules/stdint-tests (Depends-on): Add wchar.
5002
5003 2011-04-10  Jim Meyering  <meyering@redhat.com>
5004
5005         maint: remove doubled words in comments, e.g., s/a a/a/
5006         * lib/strptime.c (day_of_the_week): s/the the/the/
5007         * tests/test-chown.h (test_chown): s/a a/a/
5008
5009         test-chown.h: correct a cast
5010         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5011         when the destination is a stat.st_gid.
5012
5013 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
5014
5015         getaddrinfo: Fix test for sa_len member.
5016         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
5017         include <sys/types.h> before <sys/socket.h>.
5018
5019 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5020
5021         maint: change "can not" to "cannot"
5022         * doc/posix-functions/iconv.texi (iconv): This one crossed line
5023         boundaries.
5024
5025 2011-04-09  Jim Meyering  <meyering@redhat.com>
5026
5027         maint: change "a a" to "a"
5028         * tests/test-lchown.h (test_lchown): s/a a/a/
5029
5030         maint.mk: prohibit \<the the\>
5031         * top/maint.mk (sc_prohibit_the_the): New rule.
5032
5033         maint: fix "the the" in comment
5034         * lib/count-one-bits.h: s/the the/the/
5035
5036         maint: change "can not" to "cannot"
5037         But do not change the occurrences in maintain.texi or in
5038         build-aux/po/Makefile.in.in, which I presume comes from gettext.
5039         * doc/gnulib-tool.texi: s/can not/cannot/
5040         * doc/posix-functions/accept.texi (accept): Likewise.
5041         * doc/posix-functions/socket.texi (socket): Likewise.
5042         * lib/mbrtowc.c: Likewise.
5043
5044         maint.mk: prohibit use of "can not"
5045         * top/maint.mk (sc_prohibit_can_not): New rule.
5046         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
5047
5048 2011-04-09  Bruno Haible  <bruno@clisp.org>
5049
5050         careadlinkat: Guard against misuse of careadlinkatcwd.
5051         * lib/careadlinkat.c: Include <stdlib.h>.
5052         (careadlinkatcwd): Check that the fd argument is as expected.
5053
5054 2011-04-09  Bruno Haible  <bruno@clisp.org>
5055
5056         careadlinkat: Use common coding style.
5057         * lib/careadlinkat.c: Move gnulib includes after system includes.
5058
5059 2011-04-09  Bruno Haible  <bruno@clisp.org>
5060
5061         careadlinkat: Clarify specification.
5062         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
5063         (careadlinkatcwd): Add comment.
5064         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
5065
5066 2011-04-09  Bruno Haible  <bruno@clisp.org>
5067
5068         areadlinkat: Avoid link error on many platforms.
5069         * modules/areadlinkat (Depends-on): Add areadlink.
5070
5071 2011-04-09  Bruno Haible  <bruno@clisp.org>
5072
5073         allocator, careadlinkat: Fix double-inclusion guard.
5074         * lib/allocator.h: Fix double-inclusion guard.
5075         * lib/careadlinkat.h: Likewise.
5076
5077 2011-04-09  Bruno Haible  <bruno@clisp.org>
5078
5079         relocatable-prog-wrapper: Update after module 'areadlink' changed.
5080         * lib/relocwrapper.c: Update dependencies hierarchy.
5081         * build-aux/install-reloc: Update list of files to be compiled.
5082         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
5083         lib/allocator.[hc].
5084
5085 2011-04-08  Eric Blake  <eblake@redhat.com>
5086
5087         strftime: silence gnulib-tool warning
5088         * modules/strftime-tests (Depends-on): Drop automatic dependency.
5089
5090 2011-04-08  Bruno Haible  <bruno@clisp.org>
5091
5092         verify: Fix syntax error with GCC 4.6 in C++ mode.
5093         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
5094         (HAVE_STATIC_ASSERT): New macro.
5095         (verify_true, verify): Use 'static_assert' if it is supported and
5096         '_Static_assert' is not supported.
5097
5098 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5099
5100         allocator: New module.
5101         * modules/allocator, lib/allocator.c: New files.
5102         * lib/allocator.h (stdlib_allocator): New decl.
5103         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
5104         Remove.  Do not include <stdlib.h>.
5105         (careadlinkat): Use stdlib_allocator instead of rolling our own.
5106         * modules/careadlinkat (Files): Remove lib/allocator.h.
5107         (Depends-on): Add allocator.
5108
5109         stdlib: let modules use system malloc, realloc
5110         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
5111         if !_GL_USE_STDLIB_ALLOC.
5112         (malloc, realloc): Limit this change to a smaller scope.
5113
5114         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
5115         (malloc, realloc): Don't #undef; no longer needed.
5116         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5117         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5118         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5119         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5120         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5121         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5122         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5123         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5124
5125         careadlinkat: rename members to avoid problem
5126         * lib/allocator.h (struct allocator): Rename members from
5127         malloc/realloc to allocate/reallocate, to avoid problems if malloc
5128         and realloc are #define'd.  Reported by Eric Blake in
5129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
5130         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
5131
5132 2011-04-08  Eric Blake  <eblake@redhat.com>
5133
5134         nonblocking: reduce dependency
5135         * tests/test-nonblocking.c: Only test sockets when in use.
5136         * modules/nonblocking-tests (Depends-on): Drop socket.
5137         (Makefile.am): Link even if sockets are not present.
5138         * modules/pipe2-tests (Makefile.am): Likewise.
5139         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
5140
5141         pipe2: fix O_NONBLOCK support on mingw
5142         * modules/pipe2 (Depends-on): Add nonblocking.
5143         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
5144         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
5145         * tests/test-nonblocking.c (main): Likewise.
5146         * modules/pipe2-tests (Makefile.am): Avoid link failure.
5147
5148         fcntl-h: fix O_ACCMODE on cygwin
5149         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
5150         * lib/fcntl.in.h (O_ACCMODE): Fix it.
5151
5152         pipe-filter: drop O_NONBLOCK workarounds
5153         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
5154         * modules/pipe-filter-ii (Depends-on): Likewise.
5155         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
5156
5157         nonblocking: provide O_NONBLOCK for mingw
5158         * modules/nonblocking (Depends-on): Add open.
5159         (configure.ac): Set new witness macro.
5160         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
5161         * modules/fcntl-h (Makefile.am): Substitute it.
5162         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
5163         nonblocking module is in use.
5164         * lib/nonblocking.c: Adjust portability test.
5165         * lib/open.c (open): Don't let native open see gnulib flag.
5166         * tests/test-fcntl-h.c (main): Enhance test.
5167         * tests/test-open.h (test_open): Likewise.
5168         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
5169
5170         careadlinkat: fix compilation error on mingw
5171         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
5172         within struct allocator.
5173
5174 2011-04-06  Eric Blake  <eblake@redhat.com>
5175
5176         binary-io: relicense under LGPLv2+
5177         * modules/binary-io (License): Relax to LGPLv2+.
5178         Requested for libvirt, and required by pipe2.
5179
5180 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5181
5182         verify: use _Static_assert if available
5183         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
5184         (verify_true, verify): Use it if available.  This generates better
5185         diagnostics with GCC 4.6.0 and later.
5186
5187 2011-04-05  Bruno Haible  <bruno@clisp.org>
5188
5189         Remove leftover generated .h files after config.status changed.
5190
5191         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
5192         GL_GENERATE_ALLOCA_H.
5193         * modules/alloca-opt (Makefile.am): Remove alloca.h if
5194         GL_GENERATE_ALLOCA_H evaluates to false.
5195
5196         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
5197         GL_GENERATE_ARGZ_H.
5198         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
5199         evaluates to false.
5200
5201         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
5202         GL_GENERATE_BYTESWAP_H.
5203         * modules/byteswap (Makefile.am): Remove byteswap.h if
5204         GL_GENERATE_BYTESWAP_H evaluates to false.
5205
5206         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
5207         GL_GENERATE_ERRNO_H.
5208         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
5209         evaluates to false.
5210
5211         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
5212         GL_GENERATE_FLOAT_H.
5213         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
5214         evaluates to false.
5215
5216         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
5217         GL_GENERATE_FNMATCH_H.
5218         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
5219         GL_GENERATE_FNMATCH_H evaluates to false.
5220
5221         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
5222         GL_GENERATE_GLOB_H.
5223         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
5224         evaluates to false.
5225
5226         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
5227         automake conditional GL_GENERATE_ICONV_H.
5228         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
5229         evaluates to false.
5230
5231         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
5232         GL_GENERATE_NETINET_IN_H.
5233         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
5234         GL_GENERATE_NETINET_IN_H evaluates to false.
5235
5236         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
5237         conditional GL_GENERATE_PTHREAD_H.
5238         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
5239         * modules/pthread (Makefile.am): Remove pthread.h if
5240         GL_GENERATE_PTHREAD_H evaluates to false.
5241
5242         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5243         GL_GENERATE_SCHED_H.
5244         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5245         evaluates to false.
5246
5247         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5248         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5249         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5250         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5251
5252         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5253         GL_GENERATE_STDARG_H.
5254         * modules/stdarg (Makefile.am): Remove stdarg.h if
5255         GL_GENERATE_STDARG_H evaluates to false.
5256
5257         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5258         GL_GENERATE_STDBOOL_H.
5259         * modules/stdbool (Makefile.am): Remove stdbool.h if
5260         GL_GENERATE_STDBOOL_H evaluates to false.
5261
5262         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5263         conditional GL_GENERATE_STDDEF_H.
5264         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5265         * modules/stddef (Makefile.am): Remove stddef.h if
5266         GL_GENERATE_STDDEF_H evaluates to false.
5267
5268         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5269         GL_GENERATE_STDINT_H.
5270         * modules/stdint (Makefile.am): Remove stdint.h if
5271         GL_GENERATE_STDINT_H evaluates to false.
5272
5273         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5274         GL_GENERATE_SYSEXITS_H.
5275         * modules/sysexits (Makefile.am): Remove sysexits.h if
5276         GL_GENERATE_SYSEXITS_H evaluates to false.
5277
5278         Reported by Karl Berry and Ralf Wildenhues.
5279
5280 2011-04-05  Bruno Haible  <bruno@clisp.org>
5281
5282         Ensure to rebuild generated .h files when config.status has changed.
5283         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5284         config.status.
5285         * modules/ctype (Makefile.am): Likewise.
5286         * modules/dirent (Makefile.am): Likewise.
5287         * modules/errno (Makefile.am): Likewise.
5288         * modules/fcntl-h (Makefile.am): Likewise.
5289         * modules/float (Makefile.am): Likewise.
5290         * modules/getopt-posix (Makefile.am): Likewise.
5291         * modules/glob (Makefile.am): Likewise.
5292         * modules/iconv-h (Makefile.am): Likewise.
5293         * modules/inttypes (Makefile.am): Likewise.
5294         * modules/langinfo (Makefile.am): Likewise.
5295         * modules/locale (Makefile.am): Likewise.
5296         * modules/math (Makefile.am): Likewise.
5297         * modules/netdb (Makefile.am): Likewise.
5298         * modules/netinet_in (Makefile.am): Likewise.
5299         * modules/poll-h (Makefile.am): Likewise.
5300         * modules/pthread (Makefile.am): Likewise.
5301         * modules/pty (Makefile.am): Likewise.
5302         * modules/sched (Makefile.am): Likewise.
5303         * modules/search (Makefile.am): Likewise.
5304         * modules/selinux-h (Makefile.am): Likewise.
5305         * modules/signal (Makefile.am): Likewise.
5306         * modules/spawn (Makefile.am): Likewise.
5307         * modules/stdarg (Makefile.am): Likewise.
5308         * modules/stdbool (Makefile.am): Likewise.
5309         * modules/stddef (Makefile.am): Likewise.
5310         * modules/stdint (Makefile.am): Likewise.
5311         * modules/stdio (Makefile.am): Likewise.
5312         * modules/stdlib (Makefile.am): Likewise.
5313         * modules/string (Makefile.am): Likewise.
5314         * modules/strings (Makefile.am): Likewise.
5315         * modules/sys_file (Makefile.am): Likewise.
5316         * modules/sys_ioctl (Makefile.am): Likewise.
5317         * modules/sys_select (Makefile.am): Likewise.
5318         * modules/sys_socket (Makefile.am): Likewise.
5319         * modules/sys_stat (Makefile.am): Likewise.
5320         * modules/sys_time (Makefile.am): Likewise.
5321         * modules/sys_times (Makefile.am): Likewise.
5322         * modules/sys_utsname (Makefile.am): Likewise.
5323         * modules/sys_wait (Makefile.am): Likewise.
5324         * modules/sysexits (Makefile.am): Likewise.
5325         * modules/termios (Makefile.am): Likewise.
5326         * modules/time (Makefile.am): Likewise.
5327         * modules/unistd (Makefile.am): Likewise.
5328         * modules/wchar (Makefile.am): Likewise.
5329         * modules/wctype-h (Makefile.am): Likewise.
5330         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5331
5332 2011-04-05  Bruno Haible  <bruno@clisp.org>
5333
5334         pipe2: Relicense under LGPLv2+.
5335         * modules/pipe2 (License): Change to LGPLv2+.
5336         Requested by Eric Blake, for libvirt.
5337
5338 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5339
5340         bootstrap: compute gnulib_extra_files after updating build_aux
5341         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5342         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5343
5344 2011-04-05  Eric Blake  <eblake@redhat.com>
5345
5346         bootstrap: preserve git whitelist item sorting
5347         * build-aux/bootstrap (sort_patterns): New function.
5348         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5349
5350 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5351
5352         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5353         sc_space_tab check.
5354
5355 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5356
5357         areadlink, areadlinkat: rewrite in terms of careadlinkat
5358         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5359         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5360         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5361         (malloc, realloc): Remove #undefs.
5362         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5363         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5364         readlink, ssize_t, stdint, unistd.
5365         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5366         areadlink, stdint.
5367
5368         careadlinkat: new module
5369         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5370         * modules/careadlinkat: New files, written by me with
5371         a review and feedback from Ben Pfaff in
5372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5373
5374 2011-04-01  Bruno Haible  <bruno@clisp.org>
5375
5376         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5377         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5378         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5379         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5380         Reported by Bruce Korb <bruce.korb@gmail.com>.
5381
5382 2011-04-01  Bruno Haible  <bruno@clisp.org>
5383
5384         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5385         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5386         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5387         * modules/wcpcpy (Depends-on): Add extensions.
5388         * modules/wcpncpy (Depends-on): Likewise.
5389         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5390         systems.
5391         * doc/posix-functions/wcpncpy.texi: Likewise.
5392         * doc/posix-functions/wcwidth.texi: Likewise.
5393
5394 2011-03-31  Eric Blake  <eblake@redhat.com>
5395
5396         nonblocking: fix mingw test failures
5397         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5398         non-blocking flag on regular file.
5399         (get_nonblocking_flag): Set errno on invalid fd.
5400         * tests/test-nonblocking.c (main): Avoid test failure on
5401         directories if fchdir is not active.
5402         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5403
5404 2011-03-31  Bruno Haible  <bruno@clisp.org>
5405
5406         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5407         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5408         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5409         Reported by Simon Josefsson <simon@josefsson.org>.
5410
5411 2011-03-31  Bruno Haible  <bruno@clisp.org>
5412         and Eric Blake  <eblake@redhat.com>
5413
5414         nonblocking: new module
5415         * modules/nonblocking: New module.
5416         * modules/nonblocking-tests: Likewise.
5417         * lib/nonblocking.h: New file.
5418         * lib/nonblocking.c: Likewise.
5419         * tests/test-nonblocking.c: New test.
5420         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5421
5422 2011-03-30  Bruno Haible  <bruno@clisp.org>
5423
5424         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5425         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5426         instead of 'printf' format for GCC >= 4.4.
5427         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5428         (fprintf, printf, vfprintf, vprintf): Declare with
5429         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5430         the system's vfprintf() function.
5431         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5432
5433 2011-03-30  Eric Blake  <eblake@redhat.com>
5434
5435         passfd: fix scoping bug
5436         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5437         before sendmsg/recvmsg.
5438
5439         passfd: standardize coding conventions
5440         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5441         can be learned at compile time.
5442         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5443         ifdefs.
5444         (sendfd, recvfd): Follow gnulib code conventions.
5445
5446         passfd: fix incorrect sendmsg arguments
5447         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5448         incorrect msg_controllen value.
5449         * modules/passfd-tests (Depends-on): Check for alarm.
5450         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5451         Reported by Bastien ROUCARIES.
5452
5453 2011-03-30  Bruno Haible  <bruno@clisp.org>
5454
5455         c-strcasestr: Relicense under LGPLv2+.
5456         * modules/c-strcasestr (License): Change to LGPLv2+.
5457         Requested by Eric Blake, for libvirt.
5458
5459 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5460
5461         * users.txt: Add libidn2.  Fix libtasn1 link.
5462
5463 2011-03-30  Jim Meyering  <meyering@redhat.com>
5464
5465         tests: readlink* ("",... fails with EINVAL on newer kernels
5466         readlink and readlinkat have typically failed with ENOENT for
5467         the invalid, empty file name,  "".  However, with the advent
5468         of linux-2.6.39, they fail with EINVAL.
5469         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5470         when operating on the empty file name.
5471         * tests/test-readlink.h (test_readlink): Likewise.
5472
5473 2011-03-29  Bruno Haible  <bruno@clisp.org>
5474
5475         Relicense some modules under LGPLv2+, for libidn2.
5476         * modules/array-mergesort (License): Change to LGPLv2+.
5477         * modules/c-strcaseeq (License): Likewise.
5478         * modules/striconveh (License): Likewise.
5479         * modules/striconveha (License): Likewise.
5480         * modules/uniconv/base (License): Likewise.
5481         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5482         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5483         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5484         * modules/unictype/base (License): Likewise.
5485         * modules/unictype/bidiclass-of (License): Likewise.
5486         * modules/unictype/category-M (License): Likewise.
5487         * modules/unictype/category-none (License): Likewise.
5488         * modules/unictype/category-of (License): Likewise.
5489         * modules/unictype/category-test (License): Likewise.
5490         * modules/unictype/category-test-withtable (License): Likewise.
5491         * modules/unictype/combining-class (License): Likewise.
5492         * modules/unictype/joiningtype-of (License): Likewise.
5493         * modules/unictype/scripts (License): Likewise.
5494         * modules/uninorm/base (License): Likewise.
5495         * modules/uninorm/canonical-decomposition (License): Likewise.
5496         * modules/uninorm/composition (License): Likewise.
5497         * modules/uninorm/decompose-internal (License): Likewise.
5498         * modules/uninorm/decomposition-table (License): Likewise.
5499         * modules/uninorm/nfc (License): Likewise.
5500         * modules/uninorm/nfd (License): Likewise.
5501         * modules/uninorm/u32-normalize (License): Likewise.
5502         * modules/unistr/base (License): Likewise.
5503         * modules/unistr/u32-cpy (License): Likewise.
5504         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5505         * modules/unistr/u32-to-u8 (License): Likewise.
5506         * modules/unistr/u32-uctomb (License): Likewise.
5507         * modules/unistr/u8-check (License): Likewise.
5508         * modules/unistr/u8-mblen (License): Likewise.
5509         * modules/unistr/u8-mbtouc (License): Likewise.
5510         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5511         * modules/unistr/u8-mbtoucr (License): Likewise.
5512         * modules/unistr/u8-prev (License): Likewise.
5513         * modules/unistr/u8-strlen (License): Likewise.
5514         * modules/unistr/u8-to-u32 (License): Likewise.
5515         * modules/unistr/u8-uctomb (License): Likewise.
5516         * modules/unitypes (License): Likewise.
5517         Requested by Simon Josefsson.
5518
5519 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5520
5521         lib-symbol-visibility: Add a notice.
5522         * modules/lib-symbol-visibility (Notice): New field.
5523
5524 2011-03-29  Bruno Haible  <bruno@clisp.org>
5525
5526         getaddrinfo: Doc fix.
5527         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5528         section "fixed in Gnulib".
5529
5530 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5531
5532         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5533         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5534
5535 2011-03-26  Bruno Haible  <bruno@clisp.org>
5536
5537         unictype/property-byname: Reduce the number of load-time relocations.
5538         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5539         (UC_PROPERTY_INDEX_*): New enumeration values.
5540         (uc_property_byname): Convert an index from the lookup table to an
5541         uc_property_t.
5542         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5543         values.
5544
5545 2011-03-26  Bruno Haible  <bruno@clisp.org>
5546
5547         unictype/property-byname: Allow omitted word separators and aliases.
5548         * lib/unictype/pr_byname.gperf: Add property names without word
5549         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5550         for 'space'.
5551
5552 2011-03-26  Bruno Haible  <bruno@clisp.org>
5553
5554         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5555         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5556         also hyphens to space.
5557         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5558         without spaces.
5559         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5560
5561 2011-03-26  Bruno Haible  <bruno@clisp.org>
5562
5563         unictype/joiningtype-byname: Recognize long names as well.
5564         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5565         a long name.
5566         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5567         unictype/joiningtype_byname.h.
5568         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5569         * lib/unictype/joiningtype_byname.gperf: New file.
5570         * modules/unictype/joiningtype-byname (Files): Add
5571         lib/unictype/joiningtype_byname.gperf.
5572         (Depends-on): Add gperf.
5573         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5574         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5575         long names.
5576
5577         Tests for module 'unictype/joiningtype-longname'.
5578         * modules/unictype/joiningtype-longname-tests: New file.
5579         * tests/unictype/test-joiningtype_longname.c: New file.
5580
5581         New module 'unictype/joiningtype-longname'.
5582         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5583         * lib/unictype/joiningtype_longname.c: New file.
5584         * modules/unictype/joiningtype-longname: New file.
5585         * modules/unictype/joiningtype-all (Depends-on): Add
5586         unictype/joiningtype-longname.
5587
5588 2011-03-26  Bruno Haible  <bruno@clisp.org>
5589
5590         unictype/bidiclass-byname: Recognize long names as well.
5591         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5592         name.
5593         * lib/unictype/bidi_byname.c: Include <string.h>,
5594         unictype/bidi_byname.h.
5595         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5596         * lib/unictype/bidi_byname.gperf: New file.
5597         * modules/unictype/bidiclass-byname (Files): Add
5598         lib/unictype/bidi_byname.gperf.
5599         (Depends-on): Add gperf.
5600         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5601         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5602         long names.
5603
5604         Tests for module 'unictype/bidiclass-longname'.
5605         * modules/unictype/bidiclass-longname-tests: New file.
5606         * tests/unictype/test-bidi_longname.c: New file.
5607
5608         New module 'unictype/bidiclass-longname'.
5609         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5610         * lib/unictype/bidi_longname.c: New file.
5611         * modules/unictype/bidiclass-longname: New file.
5612         * modules/unictype/bidiclass-all (Depends-on): Add
5613         unictype/bidiclass-longname.
5614
5615 2011-03-26  Bruno Haible  <bruno@clisp.org>
5616
5617         unictype/bidi*: Rename modules.
5618         * modules/unictype/bidiclass-all: Renamed from
5619         modules/unictype/bidicategory-all.
5620         * modules/unictype/bidiclass-name: Renamed from
5621         modules/unictype/bidiclass-name.
5622         (Description): Update.
5623         * modules/unictype/bidiclass-name-tests: Renamed from
5624         modules/unictype/bidicategory-name-tests.
5625         * modules/unictype/bidiclass-byname: Renamed from
5626         modules/unictype/bidicategory-byname.
5627         (Description): Update.
5628         * modules/unictype/bidiclass-byname-tests: Renamed from
5629         modules/unictype/bidicategory-byname-tests.
5630         * modules/unictype/bidiclass-of: Renamed from
5631         modules/unictype/bidicategory-of.
5632         (Description): Update.
5633         * modules/unictype/bidiclass-of-tests: Renamed from
5634         modules/unictype/bidicategory-of-tests.
5635         * modules/unictype/bidiclass-test: Renamed from
5636         modules/unictype/bidicategory-test.
5637         (Description): Update.
5638         * modules/unictype/bidiclass-test-tests: Renamed from
5639         modules/unictype/bidicategory-test-tests.
5640         * modules/unictype/bidicategory-all: New file, a simple redirection.
5641         * modules/unictype/bidicategory-name: Likewise.
5642         * modules/unictype/bidicategory-byname: Likewise.
5643         * modules/unictype/bidicategory-of: Likewise.
5644         * modules/unictype/bidicategory-test: Likewise.
5645         * modules/unictype/property-bidi-* (Dependencies): Update.
5646         * lib/unictype/bidi_*.c: Update comment.
5647
5648 2011-03-26  Bruno Haible  <bruno@clisp.org>
5649
5650         unictype/bidi*: Rename functions, part 2.
5651         * modules/unictype/bidicategory-name (configure.ac): Update required
5652         libunistring version.
5653         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5654
5655 2011-03-25  Bruno Haible  <bruno@clisp.org>
5656
5657         New module 'unictype/combining-class-all'.
5658         * modules/unictype/combining-class-all: New file.
5659
5660         Tests for module 'unictype/combining-class-byname'.
5661         * modules/unictype/combining-class-byname-tests: New file.
5662         * tests/unictype/test-combiningclass_byname.c: New file.
5663
5664         New module 'unictype/combining-class-byname'.
5665         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5666         * lib/unictype/combiningclass_byname.c: New file.
5667         * lib/unictype/combiningclass_byname.gperf: New file.
5668         * modules/unictype/combining-class-byname: New file.
5669
5670         Tests for module 'unictype/combining-class-longname'.
5671         * modules/unictype/combining-class-longname-tests: New file.
5672         * tests/unictype/test-combiningclass_longname.c: New file.
5673
5674         New module 'unictype/combining-class-longname'.
5675         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5676         * lib/unictype/combiningclass_longname.c: New file.
5677         * modules/unictype/combining-class-longname: New file.
5678
5679         Tests for module 'unictype/combining-class-name'.
5680         * modules/unictype/combining-class-name-tests: New file.
5681         * tests/unictype/test-combiningclass_name.c: New file.
5682
5683         New module 'unictype/combining-class-name'.
5684         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5685         * lib/unictype/combiningclass_name.c: New file.
5686         * modules/unictype/combining-class-name: New file.
5687
5688 2011-03-25  Bruno Haible  <bruno@clisp.org>
5689
5690         unictype/combining-class: Rename source files.
5691         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5692         of unictype/combining.h.
5693         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5694         Update.
5695         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5696         * modules/unictype/combining-class (Description): Fix.
5697         (Files, Makefile.am): Update.
5698         * tests/unictype/test-combiningclass.c: Renamed from
5699         tests/unictype/test-combining.c.
5700         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5701
5702 2011-03-25  Bruno Haible  <bruno@clisp.org>
5703
5704         unictype: Update list of canonical combining classes.
5705         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5706
5707 2011-03-25  Bruno Haible  <bruno@clisp.org>
5708
5709         unictype/category-byname: Recognize long names as well.
5710         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5711         a long name.
5712         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5713         unictype/categ_byname.h.
5714         (UC_CATEGORY_INDEX_*): New enumeration values.
5715         (uc_general_category_byname): Use uc_general_category_lookup and
5716         convert from index to value.
5717         * lib/unictype/categ_byname.gperf: New file.
5718         * modules/unictype/category-byname (Files): Add
5719         lib/unictype/categ_byname.gperf.
5720         (Depends-on): Add gperf.
5721         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5722         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5723         long names.
5724
5725         Tests for module 'unictype/category-longname'.
5726         * modules/unictype/category-longname-tests: New file.
5727         * tests/unictype/test-categ_longname.c: New file.
5728
5729         New module 'unictype/category-longname'.
5730         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5731         * lib/unictype/categ_longname.c: New file.
5732         * modules/unictype/category-longname: New file.
5733         * modules/unictype/category-all (Depends-on): Add it.
5734
5735 2011-03-25  Bruno Haible  <bruno@clisp.org>
5736
5737         Tests for module 'unictype/category-LC'.
5738         * modules/unictype/category-LC-tests: New file.
5739         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5740
5741         New module 'unictype/category-LC'.
5742         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5743         (UC_CATEGORY_LC): New declaration.
5744         (UC_CASED_LETTER): New macro.
5745         * lib/gen-uni-tables.c (is_category_LC): New function.
5746         (output_categories): Also handle category LC.
5747         (UC_CATEGORY_MASK_LC): New enumeration value.
5748         (general_category_byname): Also handle category LC.
5749         * lib/unictype/categ_LC.c: New file.
5750         * lib/unictype/categ_LC.h: New file, automatically generated.
5751         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5752         category LC.
5753         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5754         * modules/unictype/category-LC: New file.
5755         * modules/unictype/category-byname (Depends-on): Add
5756         unictype/category-LC.
5757         * modules/unictype/category-all (Depends-on): Likewise.
5758
5759 2011-03-25  Eric Blake  <eblake@redhat.com>
5760
5761         xmalloc: revert yesterday's regression
5762         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5763         realloc's underlying behavior (allowing allocation of zero-size
5764         objects, especially if malloc-gnu is also in use).
5765
5766 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5767
5768         maint.mk: add missing version to VC-tag
5769         * top/maint.mk: git tag was missing actual tag name; add it.
5770
5771         valgrind: do leak checking, and exit with code 1 on error (not 0)
5772         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5773         to VALGRIND.
5774
5775 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5776
5777         posix-modules: say what it does.
5778         * posix-modules: Add a line to the --help output saying what it does.
5779
5780 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5781
5782         xmalloc: Do not leak if underlying realloc is C99 compatible.
5783         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5784         This avoids a leak on C99-based systems.  See
5785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5786
5787 2011-03-24  Eric Blake  <eblake@redhat.com>
5788
5789         realloc: document portability problem
5790         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5791         passing 0 size to realloc.
5792
5793 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5794
5795         doc: update users.txt
5796         * users.txt: Add cvsps, tmpwatch
5797
5798 2011-03-23  Matt Rice  <ratmice@gmail.com>
5799
5800         doc: update users.txt
5801         * users.txt: Add gdb.
5802
5803 2011-03-23  Jim Meyering  <meyering@redhat.com>
5804
5805         doc: update users.txt
5806         Looking through matches up to the following URL (there are still
5807         several more pages), I found several projects that use gnulib:
5808         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5809         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5810         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5811
5812 2011-03-22  Bruno Haible  <bruno@clisp.org>
5813
5814         unictype/bidi*: Rename functions.
5815         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5816         uc_bidi_class, uc_is_bidi_class): New declarations.
5817         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5818         uc_bidi_category_byname.
5819         (uc_bidi_category_byname): New function.
5820         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5821         u_bidi_category_name.
5822         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5823         (uc_bidi_category_name): New function.
5824         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5825         uc_bidi_category.
5826         (uc_bidi_category): New function.
5827         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5828         uc_is_bidi_category. Invoke uc_bidi_class.
5829         (uc_is_bidi_category): New function.
5830         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5831         instead of uc_bidi_category_byname.
5832         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5833         instead of uc_bidi_category_name.
5834         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5835         uc_bidi_category.
5836         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5837         instead of uc_is_bidi_category.
5838
5839 2011-03-21  Bruno Haible  <bruno@clisp.org>
5840
5841         New module 'unictype/joininggroup-all'.
5842         * modules/unictype/joininggroup-all: New file.
5843
5844         Tests for module 'unictype/joininggroup-of'.
5845         * modules/unictype/joininggroup-of-tests: New file.
5846         * tests/unictype/test-joininggroup_of.c: New file.
5847         * tests/unictype/test-joininggroup_of.h: New file, automatically
5848         generated by gen-uni-tables.
5849
5850         New module 'unictype/joininggroup-of'.
5851         * modules/unictype/joininggroup-of: New file.
5852         * lib/unictype/joininggroup_of.c: New file.
5853         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5854         gen-uni-tables.
5855
5856         Tests for module 'unictype/joininggroup-byname'.
5857         * modules/unictype/joininggroup-byname-tests: New file.
5858         * tests/unictype/test-joininggroup_byname.c: New file.
5859
5860         New module 'unictype/joininggroup-byname'.
5861         * modules/unictype/joininggroup-byname: New file.
5862         * lib/unictype/joininggroup_byname.c: New file.
5863         * lib/unictype/joininggroup_byname.gperf: New file.
5864
5865         Tests for module 'unictype/joininggroup-name'.
5866         * modules/unictype/joininggroup-name-tests: New file.
5867         * tests/unictype/test-joininggroup_name.c: New file.
5868
5869         New module 'unictype/joininggroup-name'.
5870         * modules/unictype/joininggroup-name: New file.
5871         * lib/unictype/joininggroup_name.c: New file.
5872         * lib/unictype/joininggroup_name.h: New file.
5873
5874         New module 'unictype/joiningtype-all'.
5875         * modules/unictype/joiningtype-all: New file.
5876
5877         Tests for module 'unictype/joiningtype-of'.
5878         * modules/unictype/joiningtype-of-tests: New file.
5879         * tests/unictype/test-joiningtype_of.c: New file.
5880         * tests/unictype/test-joiningtype_of.h: New file, automatically
5881         generated by gen-uni-tables.
5882
5883         New module 'unictype/joiningtype-of'.
5884         * modules/unictype/joiningtype-of: New file.
5885         * lib/unictype/joiningtype_of.c: New file.
5886         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5887         gen-uni-tables.
5888
5889         Tests for module 'unictype/joiningtype-byname'.
5890         * modules/unictype/joiningtype-byname-tests: New file.
5891         * tests/unictype/test-joiningtype_byname.c: New file.
5892
5893         New module 'unictype/joiningtype-byname'.
5894         * modules/unictype/joiningtype-byname: New file.
5895         * lib/unictype/joiningtype_byname.c: New file.
5896
5897         Tests for module 'unictype/joiningtype-name'.
5898         * modules/unictype/joiningtype-name-tests: New file.
5899         * tests/unictype/test-joiningtype_name.c: New file.
5900
5901         New module 'unictype/joiningtype-name'.
5902         * modules/unictype/joiningtype-name: New file.
5903         * lib/unictype/joiningtype_name.c: New file.
5904
5905         unictype: Add support for Arabic shaping properties.
5906         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5907         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5908         declarations.
5909         (UC_JOINING_GROUP_*): New enumeration values.
5910         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5911         declarations.
5912         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5913         (unicode_joining_type): New variable.
5914         (UC_JOINING_GROUP_*): New enumeration values.
5915         (unicode_joining_group): New variable.
5916         (fill_arabicshaping, joining_type_as_c_identifier,
5917         output_joining_type_test, output_joining_type,
5918         joining_group_as_c_identifier, output_joining_group_test,
5919         output_joining_group): New functions.
5920         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5921         fill_arabicshaping and output_joining_type_test, output_joining_type,
5922         output_joining_group_test, output_joining_group.
5923         Reported by Simon Josefsson.
5924
5925 2011-03-21  Jim Meyering  <meyering@redhat.com>
5926
5927         strftime: fix a bug in yesterday's change
5928         * lib/strftime.c (add): Accommodate width's initial value of -1.
5929         Otherwise, nstrftime would copy uninitialized data into
5930         the result buffer.
5931
5932 2011-03-21  Jim Meyering  <meyering@redhat.com>
5933
5934         tests: add strftime-tests module
5935         * tests/test-strftime.c: New file.
5936         * modules/strftime-tests: New module.
5937
5938 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5939
5940         strftime: don't assume a byte count fits in 'int'
5941         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5942         found this problem by static analysis, using gcc -Wstrict-overflow
5943         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5944         on an integer overflow having undefined behavior, but it turns out
5945         that the argument is a size, which might not fit in 'int' anyway,
5946
5947 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5948
5949         stdio: don't require ignore_value around fwrite
5950
5951         This patch works around libc bug 11959
5952         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5953         Without this patch, applications must often write
5954         ignore_value (fwrite (...)) even though the ignore_value is
5955         not helpful here.  It's common to write many objects, using
5956         fwrite/printf/etc., and then use ferror to detect output error.
5957
5958         I considered making this patch optional, but decided against it,
5959         because libc is obviously being inconsistent here: there is no
5960         reason libc should insist that user code must inspect fwrite
5961         return's value without also insisting that it inspect printf's,
5962         putchar's, etc.  If user code wants to have a strict style where
5963         all these functions' values are checked (so that ferror need not
5964         be checked), we could add support for that style in a new gnulib
5965         module, but in the meantime it's better to be consistent and to
5966         support common usage.
5967
5968         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5969         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5970         that we are compiling in checking mode, and if not C++, and
5971         if not already wrapping fwrite for some other reason.
5972         (fwrite): #define to rpl_fwrite if the latter is defined.
5973
5974 2011-03-20  Bruno Haible  <bruno@clisp.org>
5975
5976         verror: Fix compilation error introduced on 2011-02-13.
5977         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5978         instead of __attribute__.
5979         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5980
5981 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5982             Bruno Haible  <bruno@clisp.org>
5983
5984         socklen: do not depend on sys_socket
5985         While trying to modify Emacs to use gnulib's socklen module,
5986         I discovered a circular dependency: socklen depends on sys_socket
5987         and vice versa.  Emacs can use socklen, but it does not need
5988         sys_socket because it has its own substitute for sys/socket.h.
5989         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5990         gl_TYPE_SOCKLEN_T.
5991         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5992         gl_PREREQ_SYS_H_SOCKET.
5993         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5994         gl_PREREQ_SYS_H_SOCKET.
5995         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5996         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5997         * modules/socklen (Depends-on): Do not depend on sys_socket.
5998         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5999
6000 2011-03-20  Jim Meyering  <meyering@redhat.com>
6001
6002         maint.mk: sort file names *after* new transformation
6003         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
6004         prefix would have led to an unwarranted failure in GNU parted.
6005         Sort after that transformation.
6006
6007 2011-03-19  Jim Meyering  <meyering@redhat.com>
6008
6009         maint.mk: fix po-file syntax-check rule
6010         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
6011         Patch by Bruno Haible.
6012
6013 2011-03-19  Bruno Haible  <bruno@clisp.org>
6014
6015         socklen: Update comment.
6016         * m4/socklen.m4: Update comment about platforms.
6017
6018 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6019             Bruno Haible  <bruno@clisp.org>
6020
6021         inet_ntop, inet_pton: Simplify.
6022         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
6023         documented to provide socklen_t and we already depend on sys_socket.
6024         * modules/inet_pton (Depends-on): Likewise.
6025         * lib/arpa_inet.in.h: Adjust comment.
6026
6027 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6028             Bruno Haible  <bruno@clisp.org>
6029
6030         netdb: Simplify.
6031         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
6032         documented to provide socklen_t and we already depend on sys_socket.
6033         * lib/netdb.in.h: Adjust comment.
6034
6035 2011-03-19  Bruno Haible  <bruno@clisp.org>
6036
6037         sys_socket, netdb: Document problem with socklen_t.
6038         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
6039         platforms.
6040         * doc/posix-headers/netdb.texi: Likewise.
6041
6042 2011-03-18  Eric Blake  <eblake@redhat.com>
6043
6044         maint.mk: let po check work in VPATH build
6045         * top/maint.mk (po_file): Allow cfg.mk override.
6046         (sc_po_check): Allow VPATH use.
6047         Reported by Jiri Denemark.
6048
6049 2011-03-16  Jim Meyering  <meyering@redhat.com>
6050
6051         maint.mk: allow fine-grained syntax-check exclusion via Make variables
6052         Before, you would have had to create one .x-sc_ file per rule in order
6053         to exempt offending files.  Now, you may instead use a Make variable --
6054         usually defined in cfg.mk -- whose name identifies the affected rule.
6055         * top/maint.mk (_sc_excl): Define.
6056         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
6057         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
6058
6059 2011-03-13  Bruno Haible  <bruno@clisp.org>
6060
6061         ignore-value tests: Avoid warnings.
6062         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
6063         empty for gcc < 3.4.
6064
6065 2011-03-13  Bruno Haible  <bruno@clisp.org>
6066
6067         passfd: Fix link error on Solaris.
6068         * modules/passfd (Description): Correct.
6069         (Depends-on): Add socketlib.
6070         (Link): New section.
6071         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
6072
6073 2011-03-13  Bruno Haible  <bruno@clisp.org>
6074
6075         passfd: Fix link error on AIX 5.2.
6076         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
6077
6078 2011-03-13  Bruno Haible  <bruno@clisp.org>
6079
6080         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
6081         * lib/sys_socket.in.h: Include <stddef.h>.
6082         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
6083         CMSG_FIRSTHDR. Remove unused variable.
6084
6085 2011-03-13  Bruno Haible  <bruno@clisp.org>
6086
6087         passfd: Fix compilation error on OpenBSD.
6088         * lib/passfd.c: Include <sys/uio.h>.
6089
6090 2011-03-13  Bruno Haible  <bruno@clisp.org>
6091
6092         passfd test: Fix warnings.
6093         * tests/test-passfd.c: Include <sys/wait.h>.
6094         (main): Fix typo.
6095
6096 2011-03-13  Bruno Haible  <bruno@clisp.org>
6097
6098         passfd module, part 4, tweaks.
6099         * tests/test-passfd.c: Reorder includes.
6100         (main): Fix perror and printf calls.
6101
6102 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6103
6104         passfd module, part 4.
6105         * modules/passfd-tests: New file.
6106         * tests/test-passfd.c: New file.
6107
6108 2011-03-13  Jim Meyering  <meyering@redhat.com>
6109
6110         Makefile: rely on GNU make; derive syntax-check rule names
6111         Rather than requiring that each sc_ rule be listed as a dependent
6112         of "check", use features of GNU make to derive the list.
6113         * Makefile (syntax-check-rules): Define.
6114         (check): Depend on the new variable, not the hard-coded list.
6115
6116 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
6117             Bruno Haible  <bruno@clisp.org>
6118
6119         passfd module, part 3.
6120         * lib/passfd.h (recvfd): Add a flags argument.
6121         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
6122         (recvfd): Add a flags argument.
6123         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
6124         exists.
6125         * modules/passfd (Depends-on): Add cloexec.
6126         Suggested by Eric Blake.
6127
6128 2011-03-13  Bruno Haible  <bruno@clisp.org>
6129
6130         passfd module, part 2, tweaks.
6131         * modules/passfd (Files): Reorder.
6132         (Depends-on): Remove errno.
6133         (Include): Remove <sys/socket.h>, <sys/un.h>.
6134         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
6135         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
6136         specification header. Include <sys/socket.h> always. Don't include
6137         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
6138         (sendfd): Clarify that it sets errno when it fails.
6139         (recvfd): Fix specification.
6140
6141 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6142
6143         passfd module, part 2.
6144         * modules/passfd: New file.
6145         * lib/passfd.h: New file.
6146         * lib/passfd.c: New file.
6147
6148 2011-03-12  Bruno Haible  <bruno@clisp.org>
6149
6150         wcswidth, mbswidth: Avoid integer overflow.
6151         * lib/wcswidth.c: Include <limits.h>.
6152         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
6153         * lib/mbswidth.c: Include <limits.h>.
6154         (mbsnwidth): Avoid 'int' overflow.
6155         Reported by Jim Meyering.
6156
6157 2011-03-12  Bruno Haible  <bruno@clisp.org>
6158
6159         futimens, utimensat: Avoid endless recursion on Solaris 10.
6160         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
6161         Solaris.
6162         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
6163         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
6164
6165 2011-03-11  Jim Meyering  <meyering@redhat.com>
6166
6167         maint.mk: relax a regexp to accommodate other formatting styles
6168         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
6169         between "ngettext" and the following "(".
6170
6171 2011-03-11  Pádraig Brady <P@draigBrady.com>
6172
6173         maint.mk: suppress a false positive warning
6174         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
6175         diagnostics are marked with ngettext.
6176
6177 2011-03-10  Eric Blake  <eblake@redhat.com>
6178
6179         wchar: add explicit dependencies, for Tru64
6180         * modules/mbmemcasecoll (Depends-on): Add wchar.
6181         * modules/mbtowc (Depends-on): Likewise.
6182         * modules/vasnprintf (Depends-on): Likewise.
6183         * modules/unistdio/u-printf-args (Depends-on): Likewise.
6184         * modules/wctomb (Depends-on): Likewise.
6185         Reported by Peter O'Gorman.
6186
6187 2011-03-08  Bruno Haible  <bruno@clisp.org>
6188
6189         passfd module, part 1, tweaks.
6190         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
6191         Improve indentation. Improve AC_MSG_CHECKING messages.
6192         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
6193         gl_SOCKET_FAMILIES.
6194
6195 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6196
6197         passfd module, part 1.
6198         * m4/afunix.m4: New file.
6199         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
6200         sockets.
6201
6202 2011-03-08  Bruno Haible  <bruno@clisp.org>
6203
6204         regex-quote: New API.
6205         * lib/regex-quote.h: Include <stdbool.h>.
6206         (struct regex_quote_spec): New type.
6207         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6208         New declarations.
6209         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6210         'const struct regex_quote_spec *' argument.
6211         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
6212         (pcre_special): New constant.
6213         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6214         New functions.
6215         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6216         'const struct regex_quote_spec *' argument.
6217         * modules/regex-quote (Depends-on): Add stdbool.
6218         * tests/test-regex-quote.c (check): Update for new API. Add test for
6219         anchored results.
6220         * NEWS: Mention the API change.
6221         Reported by Reuben Thomas and Eric Blake.
6222
6223 2011-03-06  Bruno Haible  <bruno@clisp.org>
6224
6225         regex-quote: Fix creation of POSIX extended regular expressions.
6226         * lib/regex-quote.c (ere_special): Add grouping and alternation
6227         operators.
6228
6229 2011-03-05  Bruno Haible  <bruno@clisp.org>
6230
6231         doc: Improve doc regarding autopoint vs. gnulib.
6232         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
6233         disable autopoint while running autoreconf.
6234         Suggested by Ralf Wildenhues.
6235
6236 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6237
6238         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
6239         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
6240
6241 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6242
6243         parse-duration: remove xalloc.h dependency
6244         * lib/parse-duration.c (parse_period): handle NULL return from
6245         strdup instead of calling xstrdup().
6246         * modules/parse-duration: remove "xalloc" dependency
6247
6248 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6249
6250         bootstrap: honor m4_base when running aclocal
6251         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6252
6253 2011-03-02  Jim Meyering  <meyering@redhat.com>
6254
6255         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6256         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6257         on request from Matt Booth.
6258
6259 2011-03-01  Eric Blake  <eblake@redhat.com>
6260
6261         test-link: work on Hurd
6262         * tests/test-link.h (test_link): Hurd rejects linking directories
6263         with EISDIR instead of the POSIX-mandated EPERM.
6264
6265 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6266
6267         stdio: simplify by moving files to printf-posix, sigpipe
6268         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6269         since this symbol is needed only if printf is replaced.
6270         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6271         Require gl_ASM_SYMBOL_PREFIX.
6272         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6273         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6274         (Depends-on): Add 'raise'.
6275         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6276         * modules/stdio (Files): Remove lib/stdio-write.c,
6277         m4/asm-underscore.m4.
6278         (Depends-on): Remove 'raise'.
6279
6280         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6281         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6282         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6283         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6284
6285 2011-02-28  Bruno Haible  <bruno@clisp.org>
6286
6287         localcharset: Assume ANSI C behaviour of free().
6288         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6289         calling free().
6290         Suggested by Simon Josefsson <simon@josefsson.org>.
6291
6292 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6293             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6294             Bruno Haible  <bruno@clisp.org>  (tiny change)
6295
6296         On Cygwin, use /proc file system instead of win32 API.
6297         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6298         Win32 file names.
6299         (DllMain): Simplify by removing Cygwin specific code.
6300         (find_shared_library_fullname): Use Linux specific implementation also
6301         for Cygwin.
6302         (get_shared_library_fullname): Update accordingly.
6303         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6304         Win32 file names.
6305         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6306         Cygwin specific code.
6307
6308 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6309             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6310
6311         Fix OpenMP flag detection for various Fortran compilers.
6312         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6313         OpenMP-conditional compilation construct, to force compile
6314         failure with missing OpenMP flag.
6315         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6316
6317 2011-02-25  Eric Blake  <eblake@redhat.com>
6318
6319         strstr: expand test coverage
6320         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6321         compilation.
6322         * tests/test-memmem.c (main): Duplicate tests.
6323         * tests/test-strcasestr.c (main): Likewise.
6324         * tests/test-c-strcasestr.c (main): Likewise.
6325
6326 2011-02-25  Jim Meyering  <meyering@redhat.com>
6327
6328         maint.mk: detect missing-NL-at-EOF, too
6329         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6330         it also detects when a file lacks a newline at EOF.
6331         (require_exactly_one_NL_at_EOF_): Renamed from
6332         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6333         since people may well have .x-sc_... file names tied to the
6334         existing name.  Suggested by Eric Blake.
6335
6336 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6337
6338         dirname: move m4/dos.m4 functionality into lib/dosname.h
6339
6340         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6341         extracts symbols from it, puts them into config.h; but it's much
6342         easier to use the symbols directly.  filename.h already does this,
6343         but it disagrees with dos.m4 in some respects.  This patch
6344         introduces a different include file dosname.h that packages up
6345         dos.m4, and then later we can work on merging filename.h and
6346         dosname.h.  Applications that need only the easy-to-configure
6347         symbols should consider including dosname.h rather than dirname.h.
6348         * NEWS: Mention incompatible changes.
6349         * m4/dos.m4: Remove.
6350         * lib/dosname.h, modules/dosname: New files.
6351         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6352         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6353         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6354         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6355         Include dosname.h, not dirname.h.
6356         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6357         Include dosname.h, for definitions of symbols like ISSLASH
6358         that used to be in config.h.
6359         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6360         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6361         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6362         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6363         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6364         * modules/rmdir (Files): Likewise.
6365         * modules/stat (Files): Likewise.
6366         * modules/unlink (Files): Likewise.
6367         * modules/dirname-lgpl (Depends-on): Add dosname.
6368         * modules/lstat (Depends-on): Likewise.
6369         * modules/openat (Depends-on): Likewise.
6370         * modules/rmdir (Depends-on): Likewise.
6371         * modules/savewd (Depends-on): Likewise.
6372         * modules/stat (Depends-on): Likewise.
6373         * modules/unlink (Depends-on): Likewise.
6374         * modules/openat (Depends-on): Remove dirname-lgpl.
6375         * modules/savewd (Depends-on): Likewise.
6376         * tests/test-dirname.c: Do not use removed symbols like
6377         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6378         the remaining symbols, e.g., ISSLASH ('\\').
6379
6380 2011-02-25  Eric Blake  <eblake@redhat.com>
6381
6382         strstr: revert patches that introduced bug and pessimization
6383         * lib/str-two-way.h: Add another reference.
6384         (two_way_short_needle, two_way_long_needle): Revert changes from
6385         2011-02-24; they pessimize search speed.
6386         (critical_factorization): Partially revert changes from
6387         2010-06-22; they violate the requirement that the left half of the
6388         needle be smaller than the period of the needle.
6389
6390 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6391
6392         filenamecat: remove unnecessary dependency on dirname-lgpl
6393         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6394         is no direct dependency, just an indirect one via filenamecat-lgpl.
6395
6396         remove: remove unnecessary use of m4/dos.m4
6397         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6398         * modules/remove (FILES): Remove m4/dos.m4.
6399
6400         * lib/openat-proc.c: Don't include dirname.h; not needed.
6401
6402         backupfile: remove unnecessary use of m4/dos.m4
6403         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6404         of its symbols are used by the backupfile code.  backupfile.c does
6405         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6406         for the rare case of programs that want all their backup file
6407         names to live within 8+3 limits, and dos.m4 doesn't address that.
6408         * modules/backupfile (Files): Remove m4/dos.m4.
6409
6410 2011-02-24  Jim Meyering  <meyering@redhat.com>
6411
6412         strstr: fix a bug whereby strstr would mistakenly return NULL
6413         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6414         in period calculation.
6415         (two_way_long_needle): Likewise.
6416         The original problem was reported by Mike Stump in
6417         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6418         Ralf Wildenhues provided the short needle and haystack.
6419         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6420         Add a more involved test to trigger the bug in two_way_long_needle.
6421
6422 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6423
6424         gnulib-tool: remove use of bold display in help screen
6425         * gnulib-tool (func_usage): Do not use bold display anymore in the
6426         help screen.  That was just meant to be a temporary emphasis for a
6427         backward-incompatible change.
6428
6429 2011-02-23  Bruno Haible  <bruno@clisp.org>
6430
6431         Fix misindentation of preprocessor directives.
6432         * lib/argp-namefrob.h: Reindent preprocessor directives.
6433         * lib/getopt_int.h (struct _getopt_data): Likewise.
6434         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6435         * lib/vasnprintf.c (decode_long_double): Likewise.
6436         * tests/test-argmatch.c: Insert blank lines, for clarity.
6437         * tests/test-exclude.c: Likewise.
6438
6439 2011-02-22  Bruno Haible  <bruno@clisp.org>
6440
6441         ioctl: Fix for MacOS X in 64-bit mode.
6442         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6443         value.
6444         Suggested by Eric Blake.
6445         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6446
6447 2011-02-22  Jim Meyering  <meyering@redhat.com>
6448
6449         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6450         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6451         in lib/.
6452
6453 2011-02-22  Eric Blake  <eblake@redhat.com>
6454
6455         maint: avoid any CDPATH issue
6456         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6457
6458         maint: adjust cpp indentation for my modules, as well
6459         * Makefile (sc_cpp_indent_check): Add my name.
6460         * lib/fbufmode.c: Filter through cppi.
6461         * lib/fpurge.c: Likewise.
6462         * lib/freadable.c: Likewise.
6463         * lib/freading.c: Likewise.
6464         * lib/fwritable.c: Likewise.
6465         * lib/fwriting.c: Likewise.
6466         * lib/sigaction.c: Likewise.
6467
6468 2011-02-22  Jim Meyering  <meyering@redhat.com>
6469
6470         maint: adjust cpp indentation to reflect nesting depth
6471         I.e., in a block of code that begins with an unnested "#if",
6472         put one space between the "#" in column 1 and following token.
6473         For example,
6474         -#include <sys/vfs.h>
6475         +# include <sys/vfs.h>
6476         Do this only in .c files that are part of a module I maintain.
6477         * lib/linkat.c: Filter through cppi.
6478         * lib/nanosleep.c: Likewise.
6479         * lib/openat.c: Likewise.
6480         * lib/openat-die.c: Likewise.
6481         * lib/dup3.c: Likewise.
6482         * lib/fchownat.c: Likewise.
6483         * lib/flock.c: Likewise.
6484         * lib/fsync.c: Likewise.
6485         * lib/fts.c: Likewise.
6486         * lib/getpass.c: Likewise.
6487         * lib/gettimeofday.c: Likewise.
6488         * lib/userspec.c: Likewise.
6489         * Makefile (sc_cpp_indent_check): New rule, to check this.
6490
6491 2011-02-22  Bruno Haible  <bruno@clisp.org>
6492
6493         New module 'wctomb'.
6494         * lib/stdlib.in.h (wctomb): New declaration.
6495         * lib/wctomb.c: New file.
6496         * lib/wctomb-impl.h: New file.
6497         * m4/wctomb.m4: New file.
6498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6499         REPLACE_WCTOMB.
6500         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6501         REPLACE_WCTOMB.
6502         * modules/wctomb: New file.
6503         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6504         * doc/posix-functions/wctomb.texi: Mention the new module.
6505         * modules/wctob (Depends-on): Add wctomb.
6506
6507 2011-02-22  Bruno Haible  <bruno@clisp.org>
6508
6509         New module 'mbtowc'.
6510         * lib/stdlib.in.h (mbtowc): New declaration.
6511         * lib/mbtowc.c: New file.
6512         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6513         * m4/mbtowc.m4: New file.
6514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6515         REPLACE_MBTOWC.
6516         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6517         REPLACE_MBTOWC.
6518         * modules/mbtowc: New file.
6519         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6520         * doc/posix-functions/mbtowc.texi: Mention the new module.
6521         * modules/btowc (Depends-on): Add mbtowc.
6522
6523 2011-02-22  Bruno Haible  <bruno@clisp.org>
6524
6525         wcrtomb: Add more tests for native Windows platforms.
6526         * tests/test-wcrtomb-w32-1.sh: New file.
6527         * tests/test-wcrtomb-w32-2.sh: New file.
6528         * tests/test-wcrtomb-w32-3.sh: New file.
6529         * tests/test-wcrtomb-w32-4.sh: New file.
6530         * tests/test-wcrtomb-w32-5.sh: New file.
6531         * tests/test-wcrtomb-w32.c: New file.
6532         * modules/wcrtomb-tests (Files): Add them.
6533         (Makefile.am): Arrange to run these tests.
6534         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6535         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6536
6537 2011-02-20  Bruno Haible  <bruno@clisp.org>
6538
6539         wcrtomb: Enhance test.
6540         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6541
6542 2011-02-20  Bruno Haible  <bruno@clisp.org>
6543
6544         mbrtowc: Tiny optimization.
6545         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6546
6547 2011-02-20  Jim Meyering  <meyering@redhat.com>
6548
6549         test-exclude.c: remove unmatched #endif
6550         * tests/test-exclude.c: Remove stray #endif, left over from
6551         the change of a week ago.
6552
6553 2011-02-19  Jim Meyering  <meyering@redhat.com>
6554
6555         git-version-gen: skip "-dirty" check when appropriate
6556         * build-aux/git-version-gen: Don't run any git commands when the
6557         version string comes from .tarball-version.  Prior to this, we
6558         would run git update-index --refresh even from a just-unpacked
6559         tarball directory, and that could affect a .git/ directory in a
6560         parent of the build directory.  Reported by Mike Frysinger.
6561
6562 2011-02-19  Bruno Haible  <bruno@clisp.org>
6563
6564         unictype/property-byname: Reduce the size of the 'data' segment.
6565         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6566
6567 2011-02-19  Bruno Haible  <bruno@clisp.org>
6568
6569         unictype/scripts: Reduce the size of the 'data' segment.
6570         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6571         '%pic'.
6572         * lib/unictype/scripts_byname.gperf: Regenerated.
6573
6574 2011-02-19  Bruno Haible  <bruno@clisp.org>
6575
6576         stdint: Update documentation.
6577         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6578
6579 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6580
6581         stdint: omit redundant check for wchar.h
6582         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6583         always tests whether wchar.h exists, so remove the now-redundant test.
6584
6585 2011-02-18  Bruno Haible  <bruno@clisp.org>
6586
6587         stdint: Cut dependency to module 'wchar'.
6588         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6589         include the necessary prerequisites.
6590         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6591         * modules/stdint (Depends-on): Remove wchar.
6592         (Makefile.am): Substitute HAVE_WCHAR_H.
6593         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6594
6595 2011-02-18  Eric Blake  <eblake@redhat.com>
6596
6597         longlong: skip, rather than fail, on cross-compilation
6598         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6599         when cross-compiling; regression from 2011-02-16.
6600
6601 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6602
6603         * NEWS: Mention 2011-02-08 change to stdlib.
6604
6605 2011-02-17  Bruno Haible  <bruno@clisp.org>
6606
6607         getloadavg: Add comments about platforms.
6608         * m4/getloadavg.m4: Add comment.
6609         * lib/getloadavg.c: Likewise.
6610
6611 2011-02-17  Bruno Haible  <bruno@clisp.org>
6612
6613         getloadavg: Fix link error on Solaris 2.6.
6614         * modules/getloadavg (Link): New section.
6615         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6616         linking test-getloadavg.
6617         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6618         getloadavg.
6619
6620 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6621
6622         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6623         It was 'int', but this doesn't match the IRIX 6.5 manual.
6624         Suggested by Bruno Haible in
6625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6626
6627 2011-02-17  Bruno Haible  <bruno@clisp.org>
6628
6629         havelib: Fix comments.
6630         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6631         change.
6632
6633 2011-02-17  Bruno Haible  <bruno@clisp.org>
6634
6635         havelib: Update config.rpath.
6636         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6637
6638 2011-02-17  Bruno Haible  <bruno@clisp.org>
6639
6640         getloadavg test: Add some plausibility checks.
6641         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6642         is improbable.
6643
6644 2011-02-16  Eric Blake  <eblake@redhat.com>
6645
6646         maintainer-makefile: make syntax-check a no-op from tarballs
6647         * top/maint.mk (no-vc-detected): New rule.
6648         (local-checks-available): Use it to avoid hanging if someone tries
6649         'make syntax-check' from a tarball.  Also append to any non-syntax
6650         checks already defined in cfg.mk.
6651
6652 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6653
6654         longlong: tune, particularly for common case of c99
6655
6656         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6657         or running anything if c99, or if unsigned long long int does not
6658         work.  In either case, we know the answer without further tests.
6659         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6660         it at most once, and use its results for both long long int and
6661         unsigned long long int.  This is more likely to be efficient in
6662         the common case where the program wants to check for both long
6663         long int and unsigned long long int.
6664         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6665         since the answer is already known.
6666
6667 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6668
6669         getloadavg: set errno
6670         * lib/getloadavg.c: Set errno when returning -1.  If no other
6671         error number looks appropriate, set it to ENOSYS if the getloadavg
6672         looks like it can't possibly ever work, ENOTSUP otherwise.
6673         Suggested by Bruno Haible in
6674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6675
6676         getloadavg: trim unused parts and speed up 'configure'
6677         * NEWS: Document this.
6678         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6679         always compiled if getloadavg is absent.
6680         Move test code to ...
6681         * tests/test-getloadavg.c: New file, containing previous
6682         contents of test from lib/getloadavg.c.  It also contains
6683         suggestions by Bruno Haible in
6684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6685         * modules/getloadavg-tests: New file.
6686         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6687         Do tests in the same order as they're needed for getloadavg.c.
6688         Omit setgid-related tests that generate symbols KMEM_GROUP,
6689         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6690         Do only the tests that are needed to see whether the system has
6691         getloadavg, moving the other tests into ...
6692         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6693         NLIST_NAME_UNION; nobody should be using it.  Do not define
6694         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6695         relevant, as the user of this module shouldn't care how getloadavg
6696         is implemented.
6697
6698         getloadavg: omit unused var
6699         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6700
6701 2011-02-15  Jim Meyering  <meyering@redhat.com>
6702
6703         doc: update users.txt
6704         * users.txt: Update iwhd's URL.
6705
6706 2011-02-13  Bruno Haible  <bruno@clisp.org>
6707
6708         Consistent macro naming for macros that use GCC __attribute__.
6709         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6710         _ATTRIBUTE_NONNULL_.
6711         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6712         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6713         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6714         ATTRIBUTE_DEPRECATED.
6715         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6716         ATTRIBUTE_NORETURN.
6717         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6718         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6719         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6720         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6721         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6722         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6723         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6724         ATTRIBUTE_SENTINEL.
6725         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6726         ATTRIBUTE_RETURN_CHECK.
6727         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6728         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6729         ATTRIBUTE_NORETURN.
6730         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6731         Reported by Paul Eggert.
6732
6733 2011-02-13  Bruno Haible  <bruno@clisp.org>
6734
6735         Don't interfere with a program's definition of __attribute__.
6736         * lib/argp.h (__attribute__): Remove definition.
6737         (_GL_ATTRIBUTE_FORMAT): New macro.
6738         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6739         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6740         (_GL_ATTRIBUTE_FORMAT): New macro.
6741         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6742         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6743         GCC 3 or newer.
6744         * lib/error.h (__attribute__): Remove definition.
6745         (_GL_ATTRIBUTE_FORMAT): New macro.
6746         (error, error_at_line): Use it.
6747         * lib/hash.h (__attribute__): Remove definition.
6748         (ATTRIBUTE_WUR): Update definition. Define always.
6749         * lib/openat.h (__attribute__): Remove definition.
6750         (ATTRIBUTE_NORETURN): Update definition. Define always.
6751         * lib/sigpipe-die.h (__attribute__): Remove definition.
6752         (ATTRIBUTE_NORETURN): Update definition. Define always.
6753         * lib/vasnprintf.h (__attribute__): Remove definition.
6754         (_GL_ATTRIBUTE_FORMAT): New macro.
6755         (asnprintf, vasnprintf): Use it.
6756         * lib/xalloc.h (__attribute__): Remove definition.
6757         (ATTRIBUTE_NORETURN): Update definition. Define always.
6758         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6759         * lib/xmemdup0.h (__attribute__): Remove definition.
6760         (ATTRIBUTE_NORETURN): Update definition. Define always.
6761         * lib/xprintf.h (__attribute__): Remove definition.
6762         (_GL_ATTRIBUTE_FORMAT): New macro.
6763         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6764         * lib/xstrtol.h (__attribute__): Remove definition.
6765         (ATTRIBUTE_NORETURN): Update definition. Define always.
6766         * lib/xvasprintf.h (__attribute__): Remove definition.
6767         (_GL_ATTRIBUTE_FORMAT): New macro.
6768         (xasprintf, xvasprintf): Use it.
6769         * tests/test-argmatch.c (__attribute__): Remove definition.
6770         (ATTRIBUTE_NORETURN): Update definition. Define always.
6771         * tests/test-exclude.c (__attribute__): Remove definition.
6772         (ATTRIBUTE_NORETURN): Update definition. Define always.
6773         Reported by Paul Eggert.
6774
6775 2011-02-13  Bruno Haible  <bruno@clisp.org>
6776
6777         mbrtowc: Add more tests for native Windows platforms.
6778         * tests/test-mbrtowc-w32-1.sh: New file.
6779         * tests/test-mbrtowc-w32-2.sh: New file.
6780         * tests/test-mbrtowc-w32-3.sh: New file.
6781         * tests/test-mbrtowc-w32-4.sh: New file.
6782         * tests/test-mbrtowc-w32-5.sh: New file.
6783         * tests/test-mbrtowc-w32.c: New file.
6784         * modules/mbrtowc-tests (Files): Add them.
6785         (Makefile.am): Arrange to run these tests.
6786         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6787         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6788
6789 2011-02-13  Bruno Haible  <bruno@clisp.org>
6790
6791         mbrtowc: Work around native Windows bug.
6792         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6793         guess when no suitable locale for testing was found.
6794         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6795
6796 2011-02-13  Bruno Haible  <bruno@clisp.org>
6797
6798         mbsinit: Work around mingw bug.
6799         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6800         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6801         Windows.
6802         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6803
6804 2011-02-13  Bruno Haible  <bruno@clisp.org>
6805
6806         mbsinit: Don't crash for a NULL argument.
6807         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6808         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6809
6810 2011-02-13  Bruno Haible  <bruno@clisp.org>
6811
6812         Don't interfere with a program's definition of __attribute__.
6813         * lib/stdio.in.h (__attribute__): Remove definition.
6814         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6815         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6816         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6817         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6818         * lib/string.in.h (__attribute__): Remove definition.
6819         Reported by Paul Eggert.
6820
6821 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6822
6823         stdlib: don't get in the way of non-GCC __attribute__
6824         See thread starting at
6825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6826         Revert previous stdlib change, installing the following instead:
6827         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6828         to get in the way of a non-GCC compiler that supports __attribute__.
6829         (_GL_ATTRIBUTE_RETURN): New macro.
6830         (_Exit): Use it instead of __attribute__.
6831
6832 2011-02-12  Bruno Haible  <bruno@clisp.org>
6833
6834         quotearg test: Avoid test failure on mingw.
6835         * tests/test-quotearg.sh: Convert the locale identifier from native
6836         Windows syntax to Unix syntax.
6837
6838 2011-02-12  Bruno Haible  <bruno@clisp.org>
6839
6840         setlocale: Prefer gnulib's override over libintl's override.
6841         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6842         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6843         GNULIB_defined_setlocale is set.
6844
6845 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6846
6847         stdlib: support non-GCC __attribute__
6848
6849         Fix a serious and tricky problem encountered when attempting to
6850         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6851         5.5, but it crashed due to memory corruption on Solaris 10 with
6852         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6853         bits that are otherwise zero.  This tagging is optional inside
6854         Emacs but is preferred and is used when __attribute__ ((__aligned
6855         (8))) works, as it does with both recent-enough GCC and with Sun C
6856         5.11.  However, Sun C 5.11 is not GCC and does not #define
6857         __GNUC__ and __GNUC_MINOR__.
6858
6859         When I added the getloadavg module to Emacs, it brought in
6860         stdlib.in.h, which contained this fragment:
6861
6862            #ifndef __attribute__
6863            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6864            #  define __attribute__(Spec)   /* empty */
6865            # endif
6866            #endif
6867
6868         When files that include <stdlib.h> were compiled with Sun C 5.11,
6869         the above code disabled __attribute__ ((__aligned (8))), which
6870         caused variables to not be properly aligned, which eventually led
6871         to the pointer corruption mentioned above.  (This was a bit hard
6872         to diagnose, unfortunately.)
6873
6874         Several "#define __attribute__(X) /* empty */" code snippets need
6875         to be eradicated from Gnulib to work with non-GCC compilers that
6876         support __attribute__.  The Autoconf way to do this is to test for
6877         each kind of attribute that we want support for, and selectively
6878         enable that in source code.
6879
6880         Fix this problem just for stdlib.h, by adding a test for the
6881         __noreturn__ attribute, and change stdlib.in.h to use that test
6882         when needed.  This technique can be easily generalized to the
6883         other *.in.h files and attributes, and a similar technique can be
6884         used for *.h and *.c files.  This patch is enough to solve the
6885         problem for Emacs + getloadavg, and I thought I'd publish it for
6886         feedback before undertaking further, similar fixes in other
6887         modules.
6888
6889         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6890         because it's not needed for stdlib.h.  It merely substitutes the
6891         value directly into stdlib.h.  We may well need to #define it, or
6892         similar symbols, for other modules, but it's nice to also have an
6893         option to not #define it for applications like Emacs that do not
6894         need it.
6895
6896         * lib/stdlib.in.h (__attribute__): Do not #define.
6897         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6898         be defined only if the _Exit module is also used.
6899         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6901         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6902         platforms.
6903         * modules/_Exit (Files): Add m4/attribute.m4.
6904         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6905         * m4/attribute.m4: New file.
6906
6907 2011-02-12  Bruno Haible  <bruno@clisp.org>
6908
6909         wcsrtombs: Work around bug on native Windows.
6910         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6911         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6912         instead of len.
6913         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6914
6915 2011-02-12  Bruno Haible  <bruno@clisp.org>
6916
6917         mbsrtowcs: Work around bug on native Windows.
6918         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6919         against mingw bug.
6920         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6921
6922 2011-02-12  Bruno Haible  <bruno@clisp.org>
6923
6924         Avoid setlocale bugs in tests.
6925         * modules/btowc (Dependencies): Add setlocale.
6926         * modules/c-strcase (Dependencies): Likewise.
6927         * modules/mbmemcasecmp (Dependencies): Likewise.
6928         * modules/mbmemcasecoll (Dependencies): Likewise.
6929         * modules/mbrtowc (Dependencies): Likewise.
6930         * modules/mbscasecmp (Dependencies): Likewise.
6931         * modules/mbscasestr (Dependencies): Likewise.
6932         * modules/mbschr (Dependencies): Likewise.
6933         * modules/mbscspn (Dependencies): Likewise.
6934         * modules/mbsinit (Dependencies): Likewise.
6935         * modules/mbsncasecmp (Dependencies): Likewise.
6936         * modules/mbsnrtowcs (Dependencies): Likewise.
6937         * modules/mbspbrk (Dependencies): Likewise.
6938         * modules/mbspcasecmp (Dependencies): Likewise.
6939         * modules/mbsrchr (Dependencies): Likewise.
6940         * modules/mbsrtowcs (Dependencies): Likewise.
6941         * modules/mbsspn (Dependencies): Likewise.
6942         * modules/mbsstr (Dependencies): Likewise.
6943         * modules/nl_langinfo (Dependencies): Likewise.
6944         * modules/quotearg (Dependencies): Likewise.
6945         * modules/unicase/locale-language (Dependencies): Likewise.
6946         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6947         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6948         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6949         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6950         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6951         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6952         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6953         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6954         * modules/vasnprintf-posix (Dependencies): Likewise.
6955         * modules/wcrtomb (Dependencies): Likewise.
6956         * modules/wcsnrtombs (Dependencies): Likewise.
6957         * modules/wcsrtombs (Dependencies): Likewise.
6958
6959 2011-02-12  Bruno Haible  <bruno@clisp.org>
6960
6961         setlocale: Workaround native Windows bug.
6962         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6963         succeeds but sets LC_CTYPE to "C", report a failure.
6964         * tests/test-setlocale2.sh: New file.
6965         * tests/test-setlocale2.c: New file.
6966         * modules/setlocale-tests (Files): Add the new files.
6967         (Makefile.am): Enable test-setlocale2.sh test.
6968         * doc/posix-functions/setlocale.texi: Mention workaround.
6969
6970 2011-02-11  Bruno Haible  <bruno@clisp.org>
6971
6972         Tests for module 'setlocale'.
6973         * modules/setlocale-tests: New file.
6974         * tests/test-setlocale1.sh: New file.
6975         * tests/test-setlocale1.c: New file.
6976
6977         New module 'setlocale'.
6978         * lib/locale.in.h (setlocale): New declaration.
6979         * lib/setlocale.c: New file, based on
6980         gettext/gettext-runtime/intl/setlocale.c.
6981         * m4/setlocale.m4: New file.
6982         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6983         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6984         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6985         REPLACE_SETLOCALE.
6986         * modules/setlocale: New file.
6987         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6988         * doc/posix-functions/setlocale.texi: Mention the new module.
6989
6990 2011-02-11  Bruno Haible  <bruno@clisp.org>
6991
6992         Prepare for locale dependent tests on mingw.
6993         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6994         because it has the wrong locale encoding.
6995         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6996         French_France.1252 instead of "fr".
6997         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6998         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6999         because it has the wrong locale encoding.
7000         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
7001         native Windows, try Turkish_Turkey.65001.
7002         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
7003         Chinese_China.54936.
7004
7005         Prepare for locale dependent tests on mingw.
7006         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
7007         differently.
7008         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
7009         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
7010         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7011         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7012
7013 2011-02-11  Eric Blake  <eblake@redhat.com>
7014
7015         strptime: avoid compiler warnings
7016         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
7017         compiler warnings about dead code.
7018         Reported by Daniel P. Berrange.
7019
7020 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
7021
7022         doc: update users.txt
7023         * users.txt: Add rcs.
7024
7025 2011-02-10  John W. Eaton  <jwe@gnu.org>
7026
7027         doc: update users.txt
7028         * users.txt: Add octave.
7029
7030 2011-02-10  Jim Meyering  <meyering@redhat.com>
7031
7032         doc: update users.txt
7033         * users.txt: Add iwhd.
7034
7035 2011-02-09  Bruno Haible  <bruno@clisp.org>
7036
7037         gnulib-tool: Make copyright notice adjustment more robust.
7038         * gnulib-tool (func_import): In sed_transform_main_lib_file,
7039         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
7040         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
7041         License".
7042         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
7043
7044 2011-02-06  Bruno Haible  <bruno@clisp.org>
7045
7046         New module 'towctrans'.
7047         * modules/towctrans: New file.
7048         * lib/wctype.in.h (towctrans): New declaration.
7049         * lib/towctrans.c: New file.
7050         * lib/towctrans-impl.h: New file.
7051         * m4/towctrans.m4: New file.
7052         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
7053         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
7054         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
7055         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
7056         * doc/posix-functions/towctrans.texi: Mention the new module.
7057
7058 2011-02-06  Bruno Haible  <bruno@clisp.org>
7059
7060         New module 'wctrans'.
7061         * modules/wctrans: New file.
7062         * lib/wctype.in.h (wctrans): New declaration.
7063         * lib/wctrans.c: New file.
7064         * lib/wctrans-impl.h: New file.
7065         * m4/wctrans.m4: New file.
7066         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
7067         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
7068         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
7069         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
7070         * doc/posix-functions/wctrans.texi: Mention the new module.
7071
7072 2011-02-06  Bruno Haible  <bruno@clisp.org>
7073
7074         New module 'iswctype'.
7075         * modules/iswctype: New file.
7076         * lib/wctype.in.h (iswctype): New declaration.
7077         * lib/iswctype.c: New file.
7078         * lib/iswctype-impl.h: New file.
7079         * m4/iswctype.m4: New file.
7080         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
7081         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
7082         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
7083         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
7084         * doc/posix-functions/iswctype.texi: Mention the new module and the
7085         HP-UX 11.00 problem.
7086
7087 2011-02-06  Bruno Haible  <bruno@clisp.org>
7088
7089         New module 'wctype'.
7090         * modules/wctype: Change to represent the wctype() substitute.
7091         * lib/wctype.in.h (wctype): New declaration.
7092         * lib/wctype.c: New file.
7093         * lib/wctype-impl.h: New file.
7094         * m4/wctype.m4: New file.
7095         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
7096         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
7097         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
7098         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
7099         * doc/posix-functions/wctype.texi: Mention the new module and the
7100         HP-UX 11.00 problem.
7101
7102 2011-02-06  Bruno Haible  <bruno@clisp.org>
7103
7104         wctype-h: Ensure wctype_t and wctrans_t are defined.
7105         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
7106         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7107         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7108         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
7109         HAVE_WCTRANS_T.
7110         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
7111
7112 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7113
7114         flock: fix license typo
7115
7116         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
7117         omitted.
7118
7119 2011-02-08  Bruno Haible  <bruno@clisp.org>
7120
7121         Split large sed scripts, for HP-UX sed.
7122         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
7123         to avoid HP-UX limit of 99 commands, in the near future.
7124         * modules/stdlib (Makefile.am): Likewise.
7125         * modules/unistd (Makefile.am): Likewise.
7126         * modules/wchar (Makefile.am): Likewise.
7127         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7128         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
7129         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
7130
7131 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7132             Bruno Haible  <bruno@clisp.org>
7133
7134         stdlib: improve random_r modularization
7135         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
7136         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
7137         you also need the random_r module to get this material right.
7138         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
7139         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
7140         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
7141
7142 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7143
7144         stdlib: don't depend on stdint
7145         * lib/stdlib.in.h: Don't include <stdint.h> merely because
7146         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
7147         be independent of whether stdint.h is needed.
7148         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
7149         here, instead of ...
7150         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
7151         struct random_data should be using the random_r module, not just
7152         the stdlib module (which wouldn't make sense: what package needs
7153         just struct random_data without also needing random_r?).
7154         * modules/stdlib (Depends-on): Remove stdint.
7155
7156         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
7157         See the thread rooted at
7158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
7159         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
7160         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
7161         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
7162         __VMS)); previously it was always included (via fcntl--.h).
7163         (getloadavg): Do not use c_strtod.  Instead, approximate it by
7164         hand; this is good enough for load averages.  Also, do not use
7165         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
7166         flags directly if available and don't bother otherwise.  (Packages
7167         that need the extra reliability should use the modules that define
7168         these flags on older platforms that lack them.)
7169         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
7170         fcntl-safer.
7171
7172 2011-02-08  Jim Meyering  <meyering@redhat.com>
7173
7174         di-set.h, ino-map.h: add multiple-inclusion guard
7175         Technically, the guard is required only for ino-map.h, due to its
7176         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
7177         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
7178         * lib/ino-map.h: Likewise.
7179
7180 2011-02-06  Bruno Haible  <bruno@clisp.org>
7181
7182         iswblank: Ensure declaration on glibc systems.
7183         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
7184         * modules/iswblank (Dependencies): Add 'extensions'.
7185         * doc/posix-functions/iswblank.texi: Document the glibc problem.
7186
7187 2011-02-06  Bruno Haible  <bruno@clisp.org>
7188
7189         New module 'iswblank'.
7190         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
7191         * modules/iswblank: New file.
7192         * modules/wctype-h (Files): Remove lib/iswblank.c.
7193         (Makefile.am): Substitute GNULIB_ISWBLANK.
7194         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
7195         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
7196         (gl_WCTYPE_H_DEFAULTS): New macro.
7197         (gl_WCTYPE_H): Require it. Remove iswblank related code.
7198         * modules/iswblank-tests: New file.
7199         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
7200         * tests/test-wctype-h.c (main): Remove iswblank tests.
7201         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
7202         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
7203         of 'wctype-h'.
7204         * NEWS: Mention the change.
7205         * modules/mbchar (Depends-on): Add iswblank.
7206
7207 2011-02-08  Bruno Haible  <bruno@clisp.org>
7208
7209         di-set tests: Refactor.
7210         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
7211         unnecessary includes.
7212         (ASSERT): Remove macro.
7213         (main): Make C90 compliant by avoiding variable declaration after
7214         statement.
7215         * modules/di-set-tests (Files): Add tests/macros.h.
7216
7217 2011-02-08  Bruno Haible  <bruno@clisp.org>
7218
7219         ino-map tests: Refactor.
7220         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
7221         unnecessary includes.
7222         (ASSERT): Remove macro.
7223         (main): Make C90 compliant by avoiding variable declaration after
7224         statement.
7225         * modules/ino-map-tests (Files): Add tests/macros.h.
7226
7227 2011-02-08  Jim Meyering  <meyering@redhat.com>
7228
7229         di-set: add "const" to a cast
7230         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
7231         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
7232
7233 2011-02-06  Bruno Haible  <bruno@clisp.org>
7234
7235         Rename module 'wctype' to 'wctype-h'.
7236         * modules/wctype-h: Renamed from modules/wctype.
7237         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
7238         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
7239         (Files, Depends-on, Makefile.am): Update.
7240         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7241         (Files, Makefile.am): Update.
7242         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7243         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7244         * doc/posix-headers/wctype.texi: Update.
7245         * doc/posix-functions/iswalnum.texi: Update.
7246         * doc/posix-functions/iswalpha.texi: Update.
7247         * doc/posix-functions/iswblank.texi: Update.
7248         * doc/posix-functions/iswcntrl.texi: Update.
7249         * doc/posix-functions/iswdigit.texi: Update.
7250         * doc/posix-functions/iswgraph.texi: Update.
7251         * doc/posix-functions/iswlower.texi: Update.
7252         * doc/posix-functions/iswprint.texi: Update.
7253         * doc/posix-functions/iswpunct.texi: Update.
7254         * doc/posix-functions/iswspace.texi: Update.
7255         * doc/posix-functions/iswupper.texi: Update.
7256         * doc/posix-functions/iswxdigit.texi: Update.
7257         * doc/posix-functions/towlower.texi: Update.
7258         * doc/posix-functions/towupper.texi: Update.
7259         * NEWS: Mention the change.
7260         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7261         * modules/mbchar (Dependencies): Likewise.
7262         * modules/mbswidth (Dependencies): Likewise.
7263         * modules/quotearg (Dependencies): Likewise.
7264         * modules/regex (Dependencies): Likewise.
7265         * modules/wcscasecmp (Dependencies): Likewise.
7266         * modules/wcsncasecmp (Dependencies): Likewise.
7267         * modules/wcwidth (Dependencies): Likewise.
7268
7269 2011-02-06  Bruno Haible  <bruno@clisp.org>
7270
7271         New module 'wcswidth'.
7272         * modules/wcswidth: New file.
7273         * lib/wchar.in.h (wcswidth): New declaration.
7274         * lib/wcswidth.c: New file.
7275         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7276         * m4/wcswidth.m4: New file.
7277         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7278         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7279         REPLACE_WCSWIDTH.
7280         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7281         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7282         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7283         * doc/posix-functions/wcswidth.texi: Mention the new module.
7284
7285 2011-02-06  Bruno Haible  <bruno@clisp.org>
7286
7287         New module 'wcstok'.
7288         * modules/wcstok: New file.
7289         * lib/wchar.in.h (wcstok): New declaration.
7290         * lib/wcstok.c: New file.
7291         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7292         * m4/wcstok.m4: New file.
7293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7295         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7296         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7297         * doc/posix-functions/wcstok.texi: Mention the new module.
7298
7299 2011-02-06  Bruno Haible  <bruno@clisp.org>
7300
7301         New module 'wcsstr'.
7302         * modules/wcsstr: New file.
7303         * lib/wchar.in.h (wcsstr): New declaration.
7304         * lib/wcsstr.c: New file.
7305         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7306         * m4/wcsstr.m4: New file.
7307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7309         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7310         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7311         * doc/posix-functions/wcsstr.texi: Mention the new module.
7312
7313 2011-02-06  Bruno Haible  <bruno@clisp.org>
7314
7315         New module 'wcspbrk'.
7316         * modules/wcspbrk: New file.
7317         * lib/wchar.in.h (wcspbrk): New declaration.
7318         * lib/wcspbrk.c: New file.
7319         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7320         * m4/wcspbrk.m4: New file.
7321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7323         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7324         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7325         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7326
7327 2011-02-06  Bruno Haible  <bruno@clisp.org>
7328
7329         New module 'wcsspn'.
7330         * modules/wcsspn: New file.
7331         * lib/wchar.in.h (wcsspn): New declaration.
7332         * lib/wcsspn.c: New file.
7333         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7334         * m4/wcsspn.m4: New file.
7335         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7336         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7337         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7338         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7339         * doc/posix-functions/wcsspn.texi: Mention the new module.
7340
7341 2011-02-06  Bruno Haible  <bruno@clisp.org>
7342
7343         New module 'wcscspn'.
7344         * modules/wcscspn: New file.
7345         * lib/wchar.in.h (wcscspn): New declaration.
7346         * lib/wcscspn.c: New file.
7347         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7348         * m4/wcscspn.m4: New file.
7349         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7350         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7351         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7352         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7353         * doc/posix-functions/wcscspn.texi: Mention the new module.
7354
7355 2011-02-06  Bruno Haible  <bruno@clisp.org>
7356
7357         New module 'wcsrchr'.
7358         * modules/wcsrchr: New file.
7359         * lib/wchar.in.h (wcsrchr): New declaration.
7360         * lib/wcsrchr.c: New file.
7361         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7362         * m4/wcsrchr.m4: New file.
7363         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7364         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7365         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7366         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7367         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7368
7369 2011-02-06  Bruno Haible  <bruno@clisp.org>
7370
7371         New module 'wcschr'.
7372         * modules/wcschr: New file.
7373         * lib/wchar.in.h (wcschr): New declaration.
7374         * lib/wcschr.c: New file.
7375         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7376         * m4/wcschr.m4: New file.
7377         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7378         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7379         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7380         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7381         * doc/posix-functions/wcschr.texi: Mention the new module.
7382
7383 2011-02-06  Bruno Haible  <bruno@clisp.org>
7384
7385         New module 'wcsdup'.
7386         * modules/wcsdup: New file.
7387         * lib/wchar.in.h (wcsdup): New declaration.
7388         * lib/wcsdup.c: New file.
7389         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7390         * m4/wcsdup.m4: New file.
7391         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7392         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7393         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7394         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7395         * doc/posix-functions/wcsdup.texi: Mention the new module.
7396
7397 2011-02-06  Bruno Haible  <bruno@clisp.org>
7398
7399         New module 'wcsxfrm'.
7400         * modules/wcsxfrm: New file.
7401         * lib/wchar.in.h (wcsxfrm): New declaration.
7402         * lib/wcsxfrm.c: New file.
7403         * lib/wcsxfrm-impl.h: New file.
7404         * m4/wcsxfrm.m4: New file.
7405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7407         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7408         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7409         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7410
7411 2011-02-06  Bruno Haible  <bruno@clisp.org>
7412
7413         New module 'wcscoll'.
7414         * modules/wcscoll: New file.
7415         * lib/wchar.in.h (wcscoll): New declaration.
7416         * lib/wcscoll.c: New file.
7417         * lib/wcscoll-impl.h: New file.
7418         * m4/wcscoll.m4: New file.
7419         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7420         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7421         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7422         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7423         * doc/posix-functions/wcscoll.texi: Mention the new module.
7424
7425 2011-02-06  Bruno Haible  <bruno@clisp.org>
7426
7427         New module 'wcsncasecmp'.
7428         * modules/wcsncasecmp: New file.
7429         * lib/wchar.in.h (wcsncasecmp): New declaration.
7430         * lib/wcsncasecmp.c: New file.
7431         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7432         * m4/wcsncasecmp.m4: New file.
7433         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7434         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7435         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7436         HAVE_WCSNCASECMP.
7437         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7438         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7439
7440 2011-02-06  Bruno Haible  <bruno@clisp.org>
7441
7442         New module 'wcscasecmp'.
7443         * modules/wcscasecmp: New file.
7444         * lib/wchar.in.h (wcscasecmp): New declaration.
7445         * lib/wcscasecmp.c: New file.
7446         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7447         * m4/wcscasecmp.m4: New file.
7448         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7449         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7450         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7451         HAVE_WCSCASECMP.
7452         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7453         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7454
7455 2011-02-05  Bruno Haible  <bruno@clisp.org>
7456
7457         New module 'wcsncmp'.
7458         * modules/wcsncmp: New file.
7459         * lib/wchar.in.h (wcsncmp): New declaration.
7460         * lib/wcsncmp.c: New file.
7461         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7462         * m4/wcsncmp.m4: New file.
7463         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7464         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7465         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7466         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7467         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7468
7469 2011-02-05  Bruno Haible  <bruno@clisp.org>
7470
7471         New module 'wcscmp'.
7472         * modules/wcscmp: New file.
7473         * lib/wchar.in.h (wcscmp): New declaration.
7474         * lib/wcscmp.c: New file.
7475         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7476         * m4/wcscmp.m4: New file.
7477         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7478         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7479         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7480         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7481         * doc/posix-functions/wcscmp.texi: Mention the new module.
7482
7483 2011-02-05  Bruno Haible  <bruno@clisp.org>
7484
7485         New module 'wcsncat'.
7486         * modules/wcsncat: New file.
7487         * lib/wchar.in.h (wcsncat): New declaration.
7488         * lib/wcsncat.c: New file.
7489         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7490         * m4/wcsncat.m4: New file.
7491         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7492         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7493         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7494         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7495         * doc/posix-functions/wcsncat.texi: Mention the new module.
7496
7497 2011-02-05  Bruno Haible  <bruno@clisp.org>
7498
7499         New module 'wcscat'.
7500         * modules/wcscat: New file.
7501         * lib/wchar.in.h (wcscat): New declaration.
7502         * lib/wcscat.c: New file.
7503         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7504         * m4/wcscat.m4: New file.
7505         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7506         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7507         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7508         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7509         * doc/posix-functions/wcscat.texi: Mention the new module.
7510
7511 2011-02-05  Bruno Haible  <bruno@clisp.org>
7512
7513         New module 'wcpncpy'.
7514         * modules/wcpncpy: New file.
7515         * lib/wchar.in.h (wcpncpy): New declaration.
7516         * lib/wcpncpy.c: New file.
7517         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7518         * m4/wcpncpy.m4: New file.
7519         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7520         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7521         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7522         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7523         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7524
7525 2011-02-05  Bruno Haible  <bruno@clisp.org>
7526
7527         New module 'wcsncpy'.
7528         * modules/wcsncpy: New file.
7529         * lib/wchar.in.h (wcsncpy): New declaration.
7530         * lib/wcsncpy.c: New file.
7531         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7532         * m4/wcsncpy.m4: New file.
7533         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7534         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7535         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7536         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7537         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7538
7539 2011-02-05  Bruno Haible  <bruno@clisp.org>
7540
7541         New module 'wcpcpy'.
7542         * modules/wcpcpy: New file.
7543         * lib/wchar.in.h (wcpcpy): New declaration.
7544         * lib/wcpcpy.c: New file.
7545         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7546         * m4/wcpcpy.m4: New file.
7547         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7548         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7549         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7550         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7551         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7552
7553 2011-02-05  Bruno Haible  <bruno@clisp.org>
7554
7555         New module 'wcscpy'.
7556         * modules/wcscpy: New file.
7557         * lib/wchar.in.h (wcscpy): New declaration.
7558         * lib/wcscpy.c: New file.
7559         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7560         * m4/wcscpy.m4: New file.
7561         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7562         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7563         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7564         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7565         * doc/posix-functions/wcscpy.texi: Mention the new module.
7566
7567 2011-02-05  Bruno Haible  <bruno@clisp.org>
7568
7569         New module 'wcsnlen'.
7570         * modules/wcsnlen: New file.
7571         * lib/wchar.in.h (wcsnlen): New declaration.
7572         * lib/wcsnlen.c: New file.
7573         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7574         * m4/wcsnlen.m4: New file.
7575         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7576         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7577         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7578         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7579         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7580
7581 2011-02-05  Bruno Haible  <bruno@clisp.org>
7582
7583         New module 'wcslen'.
7584         * modules/wcslen: New file.
7585         * lib/wchar.in.h (wcslen): New declaration.
7586         * lib/wcslen.c: New file.
7587         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7588         * m4/wcslen.m4: New file.
7589         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7590         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7591         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7592         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7593         * doc/posix-functions/wcslen.texi: Mention the new module.
7594
7595 2011-02-05  Bruno Haible  <bruno@clisp.org>
7596
7597         New module 'wmemset'.
7598         * modules/wmemset: New file.
7599         * lib/wchar.in.h (wmemset): New declaration.
7600         * lib/wmemset.c: New file.
7601         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7602         * m4/wmemset.m4: New file.
7603         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7604         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7605         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7606         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7607         * doc/posix-functions/wmemset.texi: Mention the new module.
7608
7609 2011-02-05  Bruno Haible  <bruno@clisp.org>
7610
7611         New module 'wmemmove'.
7612         * modules/wmemmove: New file.
7613         * lib/wchar.in.h (wmemmove): New declaration.
7614         * lib/wmemmove.c: New file.
7615         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7616         * m4/wmemmove.m4: New file.
7617         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7618         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7619         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7620         HAVE_WMEMMOVE.
7621         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7622         * doc/posix-functions/wmemmove.texi: Mention the new module.
7623
7624 2011-02-05  Bruno Haible  <bruno@clisp.org>
7625
7626         New module 'wmemcpy'.
7627         * modules/wmemcpy: New file.
7628         * lib/wchar.in.h (wmemcpy): New declaration.
7629         * lib/wmemcpy.c: New file.
7630         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7631         * m4/wmemcpy.m4: New file.
7632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7634         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7635         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7636         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7637
7638 2011-02-05  Bruno Haible  <bruno@clisp.org>
7639
7640         New module 'wmemcmp'.
7641         * modules/wmemcmp: New file.
7642         * lib/wchar.in.h (wmemcmp): New declaration.
7643         * lib/wmemcmp.c: New file.
7644         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7645         * m4/wmemcmp.m4: New file.
7646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7648         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7649         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7650         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7651
7652 2011-02-07  Jim Meyering  <meyering@redhat.com>
7653
7654         di-set, ino-map: new modules, from coreutils
7655         * lib/di-set.c: New file.
7656         * lib/di-set.h: Likewise.
7657         * lib/ino-map.c: Likewise.
7658         * lib/ino-map.h: Likewise.
7659         * modules/di-set: Likewise.
7660         * modules/di-set-tests: Likewise.
7661         * modules/ino-map: Likewise.
7662         * modules/ino-map-tests: Likewise.
7663         * tests/test-di-set.c: Likewise.
7664         * tests/test-ino-map.c: Likewise.
7665
7666 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7667
7668         getloadavg: merge minor changes from Emacs
7669
7670         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7671         (getloadavg): Use memset, not bzero.
7672
7673         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7674         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7675         clash (bug#86).
7676
7677 2010-11-14  Bruno Haible  <bruno@clisp.org>
7678
7679         Allow multiple gnulib generated replacements to coexist.
7680         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7681         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7682         * lib/langinfo.in.h (nl_item): Likewise.
7683         * lib/math.in.h (_NaN, NAN): Likewise.
7684         * lib/netdb.in.h (struct addrinfo): Likewise.
7685         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7686         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7687         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7688         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7689         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7690         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7691         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7692         pthread_mutexattr_init, pthread_mutexattr_settype,
7693         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7694         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7695         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7696         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7697         * lib/sched.in.h (struct sched_param): Likewise.
7698         * lib/se-selinux.in.h (security_class_t, security_context_t,
7699         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7700         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7701         lsetfilecon, fsetfilecon, security_check_context,
7702         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7703         Likewise.
7704         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7705         Likewise.
7706         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7707         _gl_function_taking_int_returning_void_t, union sigval,
7708         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7709         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7710         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7711         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7712         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7713         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7714         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7715         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7716         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7717         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7718         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7719         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7720         socklen_t, rpl_fd_isset): Likewise.
7721         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7722         * lib/sys_time.in.h (struct timeval): Likewise.
7723         * lib/sys_times.in.h (struct tms): Likewise.
7724         * lib/sys_utsname.in.h (struct utsname):
7725         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7726         * lib/unistd.in.h (getpagesize): Likewise.
7727         * lib/wchar.in.h (mbstate_t): Likewise.
7728         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7729         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7730         towlower, towupper): Likewise.
7731         Reported by Sam Steingold <sds@gnu.org>.
7732
7733 2011-02-05  Eric Blake  <eblake@redhat.com>
7734
7735         unsetenv: work around Haiku issues
7736         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7737         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7738
7739 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7740
7741         libposix: avoid calling error() within libposix
7742         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7743         is defined.
7744
7745 2011-02-05  Eric Blake  <eblake@redhat.com>
7746
7747         strerror_r-posix: port to cygwin
7748         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7749         implementation.
7750         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7751         * tests/test-strerror_r.c (main): Fix test.
7752         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7753         issue.
7754
7755 2011-02-05  Bruno Haible  <bruno@clisp.org>
7756
7757         New module 'wmemchr'.
7758         * modules/wmemchr: New file.
7759         * lib/wchar.in.h (wmemchr): New declaration.
7760         * lib/wmemchr.c: New file.
7761         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7762         * m4/wmemchr.m4: New file.
7763         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7764         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7765         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7766         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7767         * doc/posix-functions/wmemchr.texi: Mention the new module.
7768
7769 2011-02-04  Eric Blake  <eblake@redhat.com>
7770
7771         fdopendir: detect FreeBSD bug
7772         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7773         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7774
7775 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7776
7777         stdbool: do not define HAVE_STDBOOL_H
7778         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7779         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7780         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7781         imported from the latest Autoconf git.  It was motivated by Emacs,
7782         which uses gnulib but does not need HAVE_STDBOOL_H.
7783
7784 2011-02-04  Bruno Haible  <bruno@clisp.org>
7785
7786         wcsnrtombs: Prepare for new module wwcsnrtombs.
7787         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7788         * lib/wcsnrtombs.c: Include it.
7789         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7790
7791         wcsrtombs: Prepare for new module wwcsrtombs.
7792         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7793         * lib/wcsrtombs.c: Include it.
7794         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7795
7796         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7797         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7798         * lib/mbsnrtowcs.c: Include it.
7799         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7800
7801         mbsrtowcs: Prepare for new module mbsrtowwcs.
7802         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7803         * lib/mbsrtowcs.c: Include it.
7804         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7805
7806 2011-02-04  Bruno Haible  <bruno@clisp.org>
7807
7808         vasnprintf: Reduce use of malloc for small format strings.
7809         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7810         (arguments): Add room for the first 7 arguments.
7811         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7812         (char_directives, u8_directives, u16_directives, u32_directives): Add
7813         room for the first 7 directives.
7814         * lib/printf-parse.c: Include <string.h>.
7815         (PRINTF_PARSE): Change memory handling code so that it uses the first
7816         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7817         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7818         Reported by Pádraig Brady <P@draigbrady.com>.
7819
7820 2011-01-31  Eric Blake  <eblake@redhat.com>
7821
7822         dup2: work around Haiku bug
7823         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7824         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7825         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7826         * tests/test-dup2.c (main): Enhance test.
7827
7828 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7829
7830         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7831         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7832         declared by eglibc 2.11.2.
7833         * lib/stdio.in.h: Likewise.
7834
7835 2011-01-31  Eric Blake  <eblake@redhat.com>
7836
7837         ignore-value: add missing test dependency
7838         * tests/test-ignore-value.c: Revert previous change; stdio.h
7839         provides off_t.
7840         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7841
7842 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7843
7844         mktime: clarify long_int width checking
7845         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7846         the top level, to make it clearer that the assumption about
7847         long_int width is being checked.  See
7848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7849
7850 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7851
7852         ignore-value: Fix self-test.
7853         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7854
7855 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7856
7857         TYPE_MAXIMUM: avoid theoretically undefined behavior
7858         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7859         negative number, which the C Standard says has undefined behavior.
7860         In practice this is not a problem, but might as well do it by the book.
7861         Reported by Rich Felker and Eric Blake; see
7862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7863         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7864         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7866         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7867         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7868         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7869
7870         mktime: #undef mktime before #defining it
7871         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7872
7873         mktime: systematically normalize tm_isdst comparisons
7874         * lib/mktime.c (isdst_differ): New function.
7875         (__mktime_internal): Use it systematically for all isdst comparisons.
7876         This completes the fix for libc BZ #6723, and removes the need for
7877         normalizing tm_isdst.  See
7878         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7879         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7880
7881         mktime: fix some integer overflow issues and sidestep the rest
7882
7883         This was prompted by a bug report by Benjamin Lindner for MinGW
7884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7885         His bug is due to signed integer overflow (0 - INT_MIN), and I
7886         I scanned through mktime.c looking for other integer overflow
7887         problems, fixing all the bugs I found.
7888
7889         Although the C Standard says the resulting code is still not safe
7890         in the presence of integer overflow, in practice it should be good
7891         enough for all real-world two's-complement implementations, except
7892         for debugging environments that deliberately trap on integer
7893         overflow (e.g., gcc -ftrapv).
7894
7895         * lib/mktime.c (WRAPV): New macro.
7896         (SHR): Also check that long_int and time_t shift right in the
7897         usual way, before using the fast-but-unportable method.
7898         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7899         used.  The code already assumed two's complement, so there's
7900         no need to test for alternatives.  All uses removed.
7901         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7902         the C standard.  Problem reported by Rich Felker in
7903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7904         (twos_complement_arithmetic): Also check long_int and time_t.
7905         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7906         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7907         (__mktime_internal): Avoid integer overflow with unary subtraction
7908         in two instances where -1 - X is an adequate replacement for -X,
7909         since the calculations are approximate.
7910
7911 2011-01-29  Eric Blake  <eblake@redhat.com>
7912
7913         mktime: avoid infinite loop
7914         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7915         type; behavior is still undefined but portable to all known targets.
7916         Reported by Rich Felker.
7917
7918 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7919
7920         rename, unlink, same-inode: Relicense.
7921         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7922         * modules/unlink (License): Likewise.
7923         * modules/same-inode (License): Likewise.
7924
7925 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7926
7927         mktime: avoid problems on NetBSD 5 / i386
7928         * lib/mktime.c (long_int): New type.  This works around a problem
7929         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7930         but time_t is 64 bits, and where I expect the existing code is
7931         wrong in some cases.
7932         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7933         (ydhms_diff): Bring back the compile-time check for wide-enough
7934         year and yday.
7935
7936         mktime: fix misspelling in comment
7937         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7938         This merges all recent glibc changes of importance.
7939
7940 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7941
7942         move-if-change: cope with concurrent mv of identical file.
7943         * build-aux/move-if-change (CMPPROG): Accept environment
7944         variable as an override for `cmp'.
7945         (usage): Document CMPPROG.
7946         Adjust comparison to drop stdout.  Cope with failure of mv if
7947         the target file exists and is identical to the source, for
7948         parallel builds.
7949         Report from H.J. Lu against binutils in PR binutils/12283.
7950
7951 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7952
7953         * users.txt: Mention sharutils.
7954
7955 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7956
7957         * users.txt: Mention OATH Toolkit.
7958
7959 2011-01-27  Bruno Haible  <bruno@clisp.org>
7960
7961         Prepare for supporting FreeBSD 10.
7962         * build-aux/config.libpath: Remove handling of freebsd1*.
7963
7964 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7965
7966         Prepare for supporting FreeBSD 10.
7967         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7968         match FreeBSD 10.0.
7969
7970 2011-01-27  Bruno Haible  <bruno@clisp.org>
7971
7972         vma-iter, get-rusage-as: Add OpenBSD support.
7973         * modules/vma-iter (configure.ac): Test for mquery.
7974         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7975         * lib/vma-iter.c: Include <sys/mman.h>.
7976         (vma_iterate): Add an implementation based on mquery().
7977         * lib/resource-ext.h (get_rusage_as): Update comments.
7978         * lib/get-rusage-as.c: Likewise.
7979         * lib/get-rusage-data.c: Likewise.
7980
7981 2011-01-26  Karl Berry  <karl@gnu.org>
7982
7983         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7984         variables to make it easier to override the makeinfo program used.
7985
7986 2011-01-26  Eric Blake  <eblake@redhat.com>
7987
7988         fcntl: work around Haiku F_DUPFD bugs
7989         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7990         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7991         cloexec bit on duplication.
7992         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7993
7994 2011-01-26  Bruno Haible  <bruno@clisp.org>
7995
7996         Enable memory leak tests on AIX.
7997         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7998         * tests/test-fprintf-posix3.c (main): Likewise.
7999
8000 2011-01-26  Bruno Haible  <bruno@clisp.org>
8001
8002         Tests for module 'get-rusage-data'.
8003         * modules/get-rusage-data-tests: New file.
8004         * tests/test-get-rusage-data.c: New file.
8005
8006         New module 'get-rusage-data'.
8007         * lib/resource-ext.h (get_rusage_data): New declaration.
8008         * lib/get-rusage-data.c: New file.
8009         * modules/get-rusage-data: New file.
8010
8011 2011-01-25  Bruno Haible  <bruno@clisp.org>
8012
8013         get-rusage-as: Allow for easier testing.
8014         * lib/resource-ext.h (get_rusage_as): Add comment.
8015         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
8016         (main): New function for interactive testing.
8017
8018 2011-01-25  Bruno Haible  <bruno@clisp.org>
8019
8020         vma-iter: Treat Haiku like BeOS.
8021         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
8022         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
8023
8024 2011-01-25  Eric Blake  <eblake@redhat.com>
8025
8026         c-stack: fix regression on cygwin when libsigsegv is present
8027         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
8028
8029 2011-01-24  Bruno Haible  <bruno@clisp.org>
8030
8031         vma-iter: Avoid empty intervals.
8032         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
8033         on an empty interval.
8034
8035 2011-01-24  Jim Meyering  <meyering@redhat.com>
8036
8037         u64: remove unnecessary #include
8038         * lib/u64.h: Don't include <stddef.h>.  It was not used.
8039
8040 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8041
8042         Allow the user to avoid the HAVE_RAW_DECL_* macros.
8043         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
8044
8045 2011-01-23  Bruno Haible  <bruno@clisp.org>
8046
8047         New module 'vma-iter'.
8048         * lib/vma-iter.h: New file.
8049         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
8050         * modules/vma-iter: New file.
8051         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
8052         for get_rusage_as_via_iterator.
8053         (vma_iterate_callback): New function.
8054         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
8055         * modules/get-rusage-as (Depends-on): Add vma-iter.
8056
8057 2011-01-23  Bruno Haible  <bruno@clisp.org>
8058
8059         uninorm: Tweak includes.
8060         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
8061         Reported by Jim Meyering.
8062
8063 2011-01-23  Bruno Haible  <bruno@clisp.org>
8064
8065         get-rusage-as: Improve on NetBSD.
8066         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
8067         /proc, like on FreeBSD.
8068
8069 2011-01-23  Jim Meyering  <meyering@redhat.com>
8070
8071         xreadlink.h: remove unnecessary #include
8072         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
8073
8074         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
8075         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
8076
8077 2011-01-23  Bruno Haible  <bruno@clisp.org>
8078
8079         get-rusage-as: Fix bug.
8080         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
8081         original limit when aborting the first loop.
8082
8083 2011-01-23  Bruno Haible  <bruno@clisp.org>
8084
8085         wctype: Ensure valid C syntax.
8086         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
8087         unconditionally, instead of gl_NEXT_HEADERS conditionally.
8088
8089 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8090
8091         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
8092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
8093         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
8094         as they are needed only for configure's test case.
8095         This removes two unnecessary symbols from config.h.
8096
8097         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
8098         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
8099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
8100         AC_CHECK_HEADERS_ONCE on a header that we also invoke
8101         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
8102         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
8103         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
8104         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8105         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8106         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8107         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8108         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8109         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8110         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8111         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8112         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8113         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8114         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8115
8116 2011-01-21  Eric Blake  <eblake@redhat.com>
8117
8118         maintainer-makefile: work with older git for submodule check
8119         * top/maint.mk (public-submodule-commit): Rewrite to avoid
8120         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
8121         Reported by Matthias Bolte.
8122
8123         bootstrap: minor portability fixes
8124         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
8125         (usage): Omit leading capital and trailing . on help phrases, per
8126         GNU Coding Standards.
8127         (check_versions, top level): Prefix messages with script name.
8128
8129 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
8130
8131         bootstrap: support --no-git option
8132         * build-aux/bootstrap: Add --no-git option, to be used when
8133         --gnulib-srcdir points to the exact desired checkout.
8134
8135 2011-01-21  Eric Blake  <eblake@redhat.com>
8136
8137         strerror_r-posix: work with glibc 2.13
8138         * lib/strerror_r.c (strerror_r): Fix return type.
8139
8140 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8141             Bruno Haible  <bruno@clisp.org>
8142
8143         uN_strstr: New unit tests.
8144         * modules/unistr/u8-strstr-tests: New file.
8145         * modules/unistr/u16-strstr-tests: New file.
8146         * modules/unistr/u32-strstr-tests: New file.
8147         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
8148         * tests/unistr/test-u8-strstr.c: New file.
8149         * tests/unistr/test-u16-strstr.c: New file.
8150         * tests/unistr/test-u32-strstr.c: New file.
8151
8152 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8153             Bruno Haible  <bruno@clisp.org>
8154
8155         Make uN_strstr functions O(n) worst-case.
8156         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
8157         16-bit and 32-bit unit cases, use the unibyte algorithm from
8158         lib/mbsstr.c.
8159         * lib/unistr/u8-strstr.c: Include <string.h>.
8160         (UNIT_IS_UINT8_T): New macro.
8161         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
8162         (U_STRLEN, U_STRNLEN): New macros.
8163         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
8164         (U_STRLEN, U_STRNLEN): New macros.
8165         * modules/unistr/u8-strstr (Depends-on): Add strstr.
8166         (configure.ac): Update required libunistring version.
8167         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
8168         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
8169         malloca.
8170         (configure.ac): Update required libunistring version.
8171         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
8172         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
8173         malloca.
8174         (configure.ac): Update required libunistring version.
8175
8176 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8177             Bruno Haible  <bruno@clisp.org>
8178
8179         Prepare for faster uN_strstr functions.
8180         * lib/str-kmp.h: Support definable UNITs.
8181         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
8182         needle_len argument.
8183         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
8184         * lib/mbscasestr.c (mbscasestr): Likewise.
8185
8186 2011-01-21  Pádraig Brady <P@draigBrady.com>
8187
8188         malloca-tests: make faster by unsetting MALLOC_PERTURB_
8189         * tests/test-malloca.c (main): Unset the environment variable
8190         to greatly speed up the test.
8191         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
8192         * modules/malloca-tests: Depend on unsetenv.
8193
8194 2011-01-21  Pádraig Brady <P@draigBrady.com>
8195
8196         ignore-value: remove stdint dependency
8197         * lib/ignore-value.h: Remove <stdint.h>
8198         * modules/ignore-value: Remove stdint dependency.
8199
8200 2011-01-21  Jim Meyering  <meyering@redhat.com>
8201
8202         maint.mk: adjust variable name to be consistent with other gl_ vars
8203         * top/maint.mk (gl_public_submodule_commit): Rename the variable
8204         to be lower case.
8205
8206 2011-01-20  Jim Meyering  <meyering@redhat.com>
8207
8208         maint.mk: make "check" depend on public-submodule-commit by default
8209         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
8210
8211 2011-01-20  Bruno Haible  <bruno@clisp.org>
8212
8213         mbfile, mbiter: Complete change from 2008-12-21.
8214         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
8215         * m4/mbiter.m4 (gl_MBITER): Likewise.
8216
8217 2011-01-20  Jim Meyering  <meyering@redhat.com>
8218
8219         init.sh: insert space between each function name and "()"
8220         * tests/init.sh: Make it a little easier to see that a function's
8221         name is "warn_", and not "warn" when looking at the first part of
8222         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
8223
8224 2011-01-20  Jim Meyering  <meyering@redhat.com>
8225
8226         mountlist: clean up code formatting
8227         * lib/mountlist.c (read_file_system_list): Split a long line,
8228         correct bracing style, use NULL in place of "(struct statfs *)0",
8229         don't parenthesize return value, add spaces around "=" and after
8230         ";-in-for-stmt".
8231
8232 2011-01-14  Markus Duft <mduft@gentoo.org>
8233
8234         mountlist: add support for Interix
8235         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
8236         Apply statvfs to all entries of /dev/fs.
8237         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
8238         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
8239
8240 2011-01-20  Jim Meyering  <meyering@redhat.com>
8241
8242         maint.mk: improve the public-submodule-commit rule
8243         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8244         to suppress printing of its commands... unless V=1.
8245         Add git submodule's --quiet option to suppress printing of e.g.,
8246         "Entering gnulib" output.
8247         "cd" into $(srcdir) before running git submodule.
8248
8249 2011-01-20  Bruno Haible  <bruno@clisp.org>
8250
8251         include_next: Fix bug introduced on 2011-01-18.
8252         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8253         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8254         ac_cv_header_... variable if the second argument is not 'check'.
8255         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8256         gl_NEXT_HEADERS_INTERNAL.
8257
8258 2011-01-20  Bruno Haible  <bruno@clisp.org>
8259
8260         Allow the user to avoid the GNULIB_TEST_* macros.
8261         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8262         Suggested by Paul Eggert.
8263
8264 2011-01-14  Jim Meyering  <meyering@redhat.com>
8265
8266         bootstrap: avoid failure when there is no .gitmodules file
8267         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8268         has been assigned to, even when its value is the empty string.
8269         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8270         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8271         Reported by John W. Eaton <jwe@gnu.org>.
8272
8273 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8274
8275         assume <ctype.h>, ..., <time.h> exist
8276         For years gnulib has been assuming the existence of the headers
8277         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8278         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8279         them, since they don't appear to be needed.
8280         * README (Portability guidelines): Document this.
8281         * lib/flock.c: Assume <fcntl.h> exists.
8282         * lib/regex_internal.h: Assume <locale.h> exists.
8283         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8284         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8285         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8286         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8287         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8288         * m4/regex.m4 (gl_REGEX): Likewise.
8289         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8290         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8291         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8292         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8293         * tests/test-argp.c: Likewise.
8294         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8295
8296         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8297         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8298         AA_APPLE_UNIVERSAL_BUILD.  See
8299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8300         * NEWS: Document this.
8301
8302 2011-01-19  Eric Blake  <eblake@redhat.com>
8303
8304         c-stack: assume stack overflow if SA_SIGINFO unsupported
8305         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8306         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8307         sigaction will work.
8308         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8309         behavior match Linux.
8310         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8311
8312         stdbool-tests: accomodate Haiku
8313         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8314
8315         binary-io: fix O_TEXT on Haiku
8316         * modules/binary-io (Depends-on): Add fcntl-h.
8317         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8318         than blindly undefining O_TEXT.
8319         Reported by Scott McCreary.
8320
8321 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8322
8323         include_next: do not check for standard headers like stddef.h
8324
8325         I found this problem when modifying Emacs to use gnulib.
8326         I noticed that it added HAVE_STDDEF_H to config.h, even though
8327         gnulib always assumes <stddef.h> exists as per README and this
8328         symbol is unnecessary.
8329         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8330         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8331         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8332         faster for headers like stddef.h that are known to exist.
8333         (gl_CHECK_NEXT_HEADERS): Use it.
8334         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8335         rather than gl_CHECK_NEXT_HEADERS.
8336         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8337         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8338
8339 2011-01-18  Eric Blake  <eblake@redhat.com>
8340
8341         ansi-c++-opt: skip C++ dependency style if C++ is unused
8342         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8343         tests when we know C++ compilation is not desired.
8344         Reported by Scott McCreary.
8345
8346 2011-01-18  Bruno Haible  <bruno@clisp.org>
8347
8348         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8349         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8350         (main): Perform test also when getrlimit and setrlimit don't exist or
8351         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8352         limiting the address space size using setrlimit, compare the address
8353         space size before and after the the test.
8354         * tests/test-dprintf-posix2.c: Likewise.
8355         * tests/test-fprintf-posix3.sh: Update skip messages.
8356         * tests/test-dprintf-posix2.sh: Likewise.
8357         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8358         * modules/dprintf-posix-tests (Depends-on): Likewise.
8359         Reported by Bruce Korb <bkorb@gnu.org> and
8360         Gary V. Vaughan <gary@gnu.org>.
8361
8362 2011-01-18  Bruno Haible  <bruno@clisp.org>
8363
8364         get-rusage-as: Improvement for Cygwin.
8365         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8366         areas that are merely reserved.
8367
8368 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8369
8370         strftime: remove dependencies on multibyte modules
8371
8372         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8373         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8374         only if __osf__ is defined, and I suspect OSF doesn't need these
8375         other modules.  If my guess is wrong, we'll need to come up with a
8376         variant of strftime that doesn't need the multibyte modules.
8377
8378         I discovered this problem when attempting modify Emacs to use the
8379         strftime module.  With the previous gnulib, this caused Emacs to
8380         need 31 new files, ranging from lib/config.charset to
8381         m4/wint_t.m4.  This was overkill and I expect would be offputting
8382         to the Emacs maintainers.  After this change, only 6 new files are
8383         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8384         stdbool.m4, and tm_gmtoff.m4.
8385
8386         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8387         Suggested by Bruno Haible in
8388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8389         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8390         and do not check for wchar.h.
8391         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8392         (Depends-on): Remove mbrlen, mbsinit, wchar.
8393
8394 2011-01-18  Bruno Haible  <bruno@clisp.org>
8395
8396         Tests for module 'get-rusage-as'.
8397         * modules/get-rusage-as-tests: New file.
8398         * tests/test-get-rusage-as.c: New file.
8399
8400         New module 'get-rusage-as'.
8401         * modules/get-rusage-as: New file.
8402         * lib/resource-ext.h: New file.
8403         * lib/get-rusage-as.c: New file.
8404
8405 2011-01-17  Eric Blake  <eblake@redhat.com>
8406
8407         sigaction: relax license from LGPLv3+ to LGPLv2+
8408         * modules/sigaction (License): Relax to LGPLv2+.
8409
8410 2011-01-14  Bruno Haible  <bruno@clisp.org>
8411
8412         filemode: Make function declarations usable in C++ mode.
8413         * lib/filemode.h: Enclose function declarations in extern "C" block.
8414         Reported by John W. Eaton <jwe@gnu.org>.
8415
8416 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8417
8418         save-cwd: no longer include "xgetcwd.h"
8419         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8420         This avoids a compilation failure in projects that use save-cwd
8421         without also using the xgetcwd module.
8422
8423 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8424
8425         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8426         This is so that a program like Emacs, which needs only dtoastr,
8427         does not have to bother with distributing and compiling ftoastr
8428         and ldtoastr.
8429         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8430         * modules/dtoastr, modules/ldtoastr: New files.
8431         * modules/ftoastr: Now works just for 'float'.
8432         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8433         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8434         dtoastr.c, ldtoastr.c.
8435
8436 2011-01-11  Jim Meyering  <meyering@redhat.com>
8437
8438         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8439         There is no need to work around the lack of the fchdir function,
8440         since gnulib can now provide a replacement when required.
8441         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8442         * modules/save-cwd (Depends-on): Add fchdir.
8443
8444 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8445
8446         openat, save-cwd: avoid xmalloc
8447
8448         This removes a direct (but undocumented) dependency of openat on
8449         xalloc, along with an indirect dependency via save-cwd.  It also
8450         removes a dependency of save-cwd on xgetcwd, and thereby
8451         indirectly on xalloc.  This change causes the openat substitute
8452         to fall back on save_cwd when memory is tight, and for save_cwd to
8453         fail instead of dying when memory is tight, but that's good enough.
8454         Problem and initial idea for fix reported by Bastien Roucaries in
8455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8456
8457         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8458         xalloc.h (for xmalloc).
8459         (openat_proc_name): Use malloc, not xmalloc.
8460         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8461         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8462
8463         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8464         This avoids heap allocation for file names whose lengths are in
8465         the range 512..1023, with the upper bound increasing to at most
8466         4031 depending on the platform's PATH_MAX.  (We do not want
8467         pathmax.h here as it might supply a non-constant PATH_MAX.)
8468         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8469         Perhaps they should be moved to malloca.h?
8470         (OPENAT_BUFFER_SIZE): Use them.
8471
8472 2011-01-10  Bruno Haible  <bruno@clisp.org>
8473
8474         doc: Update users.txt.
8475         * users.txt: Add recutils.
8476
8477 2011-01-09  Karl Berry  <karl@gnu.org>
8478
8479         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8480
8481         * doc/configmake.texi: New file.
8482         * doc/gnulib.texi: Include it.
8483         * modules/configmake: Move documentation from here.
8484
8485 2011-01-09  Bruno Haible  <bruno@clisp.org>
8486
8487         Update to Unicode 6.0.0.
8488         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8489         (get_lbp): Update for Unicode 6.0.0.
8490         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8491         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8492         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8493         U+11001, U+11038..U+11046. Remove U+06DE.
8494         (uc_width): Fix bounds of planes.
8495         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8496         lib/uniwidth/width.c.
8497         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8498         trailing whitespace removed.
8499         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8500         without comments, but with the original copyright notice.
8501         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8502         * lib/unicase/ignorable.h: Likewise.
8503         * lib/unicase/tocasefold.h: Likewise.
8504         * lib/unicase/tolower.h: Likewise.
8505         * lib/unicase/totitle.h: Likewise.
8506         * lib/unicase/toupper.h: Likewise.
8507         * lib/unictype/bidi_of.h: Likewise.
8508         * lib/unictype/blocks.h: Likewise.
8509         * lib/unictype/categ_C.h: Likewise.
8510         * lib/unictype/categ_Cn.h: Likewise.
8511         * lib/unictype/categ_L.h: Likewise.
8512         * lib/unictype/categ_Ll.h: Likewise.
8513         * lib/unictype/categ_Lm.h: Likewise.
8514         * lib/unictype/categ_Lo.h: Likewise.
8515         * lib/unictype/categ_Lu.h: Likewise.
8516         * lib/unictype/categ_M.h: Likewise.
8517         * lib/unictype/categ_Mc.h: Likewise.
8518         * lib/unictype/categ_Me.h: Likewise.
8519         * lib/unictype/categ_Mn.h: Likewise.
8520         * lib/unictype/categ_N.h: Likewise.
8521         * lib/unictype/categ_Nd.h: Likewise.
8522         * lib/unictype/categ_No.h: Likewise.
8523         * lib/unictype/categ_P.h: Likewise.
8524         * lib/unictype/categ_Po.h: Likewise.
8525         * lib/unictype/categ_S.h: Likewise.
8526         * lib/unictype/categ_Sc.h: Likewise.
8527         * lib/unictype/categ_Sk.h: Likewise.
8528         * lib/unictype/categ_Sm.h: Likewise.
8529         * lib/unictype/categ_So.h: Likewise.
8530         * lib/unictype/categ_of.h: Likewise.
8531         * lib/unictype/combining.h: Likewise.
8532         * lib/unictype/ctype_alnum.h: Likewise.
8533         * lib/unictype/ctype_alpha.h: Likewise.
8534         * lib/unictype/ctype_graph.h: Likewise.
8535         * lib/unictype/ctype_lower.h: Likewise.
8536         * lib/unictype/ctype_print.h: Likewise.
8537         * lib/unictype/ctype_punct.h: Likewise.
8538         * lib/unictype/ctype_upper.h: Likewise.
8539         * lib/unictype/decdigit.h: Likewise.
8540         * lib/unictype/digit.h: Likewise.
8541         * lib/unictype/numeric.h: Likewise.
8542         * lib/unictype/pr_alphabetic.h: Likewise.
8543         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8544         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8545         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8546         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8547         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8548         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8549         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8550         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8551         * lib/unictype/pr_case_ignorable.h: Likewise.
8552         * lib/unictype/pr_cased.h: Likewise.
8553         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8554         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8555         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8556         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8557         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8558         * lib/unictype/pr_combining.h: Likewise.
8559         * lib/unictype/pr_composite.h: Likewise.
8560         * lib/unictype/pr_currency_symbol.h: Likewise.
8561         * lib/unictype/pr_decimal_digit.h: Likewise.
8562         * lib/unictype/pr_deprecated.h: Likewise.
8563         * lib/unictype/pr_format_control.h: Likewise.
8564         * lib/unictype/pr_grapheme_base.h: Likewise.
8565         * lib/unictype/pr_grapheme_extend.h: Likewise.
8566         * lib/unictype/pr_grapheme_link.h: Likewise.
8567         * lib/unictype/pr_id_continue.h: Likewise.
8568         * lib/unictype/pr_id_start.h: Likewise.
8569         * lib/unictype/pr_ideographic.h: Likewise.
8570         * lib/unictype/pr_lowercase.h: Likewise.
8571         * lib/unictype/pr_math.h: Likewise.
8572         * lib/unictype/pr_numeric.h: Likewise.
8573         * lib/unictype/pr_other_alphabetic.h: Likewise.
8574         * lib/unictype/pr_other_id_continue.h: Likewise.
8575         * lib/unictype/pr_other_math.h: Likewise.
8576         * lib/unictype/pr_punctuation.h: Likewise.
8577         * lib/unictype/pr_sentence_terminal.h: Likewise.
8578         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8579         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8580         * lib/unictype/pr_unified_ideograph.h: Likewise.
8581         * lib/unictype/pr_uppercase.h: Likewise.
8582         * lib/unictype/pr_xid_continue.h: Likewise.
8583         * lib/unictype/pr_xid_start.h: Likewise.
8584         * lib/unictype/scripts.h: Likewise.
8585         * lib/unictype/scripts_byname.gperf: Likewise.
8586         * lib/unictype/sy_java_ident.h: Likewise.
8587         * lib/unigbrk/gbrkprop.h: Likewise.
8588         * lib/unilbrk/lbrkprop1.h: Likewise.
8589         * lib/unilbrk/lbrkprop2.h: Likewise.
8590         * lib/uninorm/decomposition-table2.h: Likewise.
8591         * lib/uniwbrk/wbrkprop.h: Likewise.
8592         * tests/unicase/test-cased.c: Likewise.
8593         * tests/unicase/test-ignorable.c: Likewise.
8594         * tests/unicase/test-uc_tolower.c: Likewise.
8595         * tests/unicase/test-uc_totitle.c: Likewise.
8596         * tests/unicase/test-uc_toupper.c: Likewise.
8597         * tests/unictype/test-categ_C.c: Likewise.
8598         * tests/unictype/test-categ_Cn.c: Likewise.
8599         * tests/unictype/test-categ_L.c: Likewise.
8600         * tests/unictype/test-categ_Ll.c: Likewise.
8601         * tests/unictype/test-categ_Lm.c: Likewise.
8602         * tests/unictype/test-categ_Lo.c: Likewise.
8603         * tests/unictype/test-categ_Lu.c: Likewise.
8604         * tests/unictype/test-categ_M.c: Likewise.
8605         * tests/unictype/test-categ_Mc.c: Likewise.
8606         * tests/unictype/test-categ_Me.c: Likewise.
8607         * tests/unictype/test-categ_Mn.c: Likewise.
8608         * tests/unictype/test-categ_N.c: Likewise.
8609         * tests/unictype/test-categ_Nd.c: Likewise.
8610         * tests/unictype/test-categ_No.c: Likewise.
8611         * tests/unictype/test-categ_P.c: Likewise.
8612         * tests/unictype/test-categ_Po.c: Likewise.
8613         * tests/unictype/test-categ_S.c: Likewise.
8614         * tests/unictype/test-categ_Sc.c: Likewise.
8615         * tests/unictype/test-categ_Sk.c: Likewise.
8616         * tests/unictype/test-categ_Sm.c: Likewise.
8617         * tests/unictype/test-categ_So.c: Likewise.
8618         * tests/unictype/test-ctype_alnum.c: Likewise.
8619         * tests/unictype/test-ctype_alpha.c: Likewise.
8620         * tests/unictype/test-ctype_graph.c: Likewise.
8621         * tests/unictype/test-ctype_lower.c: Likewise.
8622         * tests/unictype/test-ctype_print.c: Likewise.
8623         * tests/unictype/test-ctype_punct.c: Likewise.
8624         * tests/unictype/test-ctype_upper.c: Likewise.
8625         * tests/unictype/test-decdigit.h: Likewise.
8626         * tests/unictype/test-digit.h: Likewise.
8627         * tests/unictype/test-numeric.h: Likewise.
8628         * tests/unictype/test-pr_alphabetic.c: Likewise.
8629         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8630         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8631         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8632         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8633         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8634         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8635         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8636         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8637         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8638         * tests/unictype/test-pr_cased.c: Likewise.
8639         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8640         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8641         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8642         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8643         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8644         * tests/unictype/test-pr_combining.c: Likewise.
8645         * tests/unictype/test-pr_composite.c: Likewise.
8646         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8647         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8648         * tests/unictype/test-pr_deprecated.c: Likewise.
8649         * tests/unictype/test-pr_format_control.c: Likewise.
8650         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8651         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8652         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8653         * tests/unictype/test-pr_id_continue.c: Likewise.
8654         * tests/unictype/test-pr_id_start.c: Likewise.
8655         * tests/unictype/test-pr_ideographic.c: Likewise.
8656         * tests/unictype/test-pr_lowercase.c: Likewise.
8657         * tests/unictype/test-pr_math.c: Likewise.
8658         * tests/unictype/test-pr_numeric.c: Likewise.
8659         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8660         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8661         * tests/unictype/test-pr_other_math.c: Likewise.
8662         * tests/unictype/test-pr_punctuation.c: Likewise.
8663         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8664         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8665         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8666         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8667         * tests/unictype/test-pr_uppercase.c: Likewise.
8668         * tests/unictype/test-pr_xid_continue.c: Likewise.
8669         * tests/unictype/test-pr_xid_start.c: Likewise.
8670         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8671         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8672         changes.
8673         * lib/unictype/categ_Cc.h: Likewise.
8674         * lib/unictype/categ_Cf.h: Likewise.
8675         * lib/unictype/categ_Co.h: Likewise.
8676         * lib/unictype/categ_Cs.h: Likewise.
8677         * lib/unictype/categ_Lt.h: Likewise.
8678         * lib/unictype/categ_Nl.h: Likewise.
8679         * lib/unictype/categ_Pc.h: Likewise.
8680         * lib/unictype/categ_Pd.h: Likewise.
8681         * lib/unictype/categ_Pe.h: Likewise.
8682         * lib/unictype/categ_Pf.h: Likewise.
8683         * lib/unictype/categ_Pi.h: Likewise.
8684         * lib/unictype/categ_Ps.h: Likewise.
8685         * lib/unictype/categ_Z.h: Likewise.
8686         * lib/unictype/categ_Zl.h: Likewise.
8687         * lib/unictype/categ_Zp.h: Likewise.
8688         * lib/unictype/categ_Zs.h: Likewise.
8689         * lib/unictype/ctype_blank.h: Likewise.
8690         * lib/unictype/ctype_cntrl.h: Likewise.
8691         * lib/unictype/ctype_digit.h: Likewise.
8692         * lib/unictype/ctype_space.h: Likewise.
8693         * lib/unictype/ctype_xdigit.h: Likewise.
8694         * lib/unictype/mirror.h: Likewise.
8695         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8696         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8697         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8698         * lib/unictype/pr_bidi_control.h: Likewise.
8699         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8700         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8701         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8702         * lib/unictype/pr_bidi_pdf.h: Likewise.
8703         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8704         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8705         * lib/unictype/pr_dash.h: Likewise.
8706         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8707         * lib/unictype/pr_diacritic.h: Likewise.
8708         * lib/unictype/pr_extender.h: Likewise.
8709         * lib/unictype/pr_hex_digit.h: Likewise.
8710         * lib/unictype/pr_hyphen.h: Likewise.
8711         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8712         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8713         * lib/unictype/pr_ignorable_control.h: Likewise.
8714         * lib/unictype/pr_iso_control.h: Likewise.
8715         * lib/unictype/pr_join_control.h: Likewise.
8716         * lib/unictype/pr_left_of_pair.h: Likewise.
8717         * lib/unictype/pr_line_separator.h: Likewise.
8718         * lib/unictype/pr_logical_order_exception.h: Likewise.
8719         * lib/unictype/pr_non_break.h: Likewise.
8720         * lib/unictype/pr_not_a_character.h: Likewise.
8721         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8722         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8723         * lib/unictype/pr_other_id_start.h: Likewise.
8724         * lib/unictype/pr_other_lowercase.h: Likewise.
8725         * lib/unictype/pr_other_uppercase.h: Likewise.
8726         * lib/unictype/pr_paired_punctuation.h: Likewise.
8727         * lib/unictype/pr_paragraph_separator.h: Likewise.
8728         * lib/unictype/pr_pattern_syntax.h: Likewise.
8729         * lib/unictype/pr_pattern_white_space.h: Likewise.
8730         * lib/unictype/pr_private_use.h: Likewise.
8731         * lib/unictype/pr_quotation_mark.h: Likewise.
8732         * lib/unictype/pr_radical.h: Likewise.
8733         * lib/unictype/pr_soft_dotted.h: Likewise.
8734         * lib/unictype/pr_space.h: Likewise.
8735         * lib/unictype/pr_titlecase.h: Likewise.
8736         * lib/unictype/pr_variation_selector.h: Likewise.
8737         * lib/unictype/pr_white_space.h: Likewise.
8738         * lib/unictype/pr_zero_width.h: Likewise.
8739         * lib/unictype/sy_c_ident.h: Likewise.
8740         * lib/unictype/sy_c_whitespace.h: Likewise.
8741         * lib/unictype/sy_java_whitespace.h: Likewise.
8742         * lib/uninorm/composition-table.gperf: Likewise.
8743         * lib/uninorm/decomposition-table1.h: Likewise.
8744         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8745         LB8.
8746         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8747         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8748         * modules/unictype/*: Bump version number of expected libunistring
8749         version.
8750
8751 2011-01-09  Bruno Haible  <bruno@clisp.org>
8752
8753         Update to Unicode 5.2.0.
8754         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8755         trailing whitespace removed.
8756
8757 2011-01-09  Bruno Haible  <bruno@clisp.org>
8758
8759         New Unicode character properties, from Unicode 5.2.0.
8760         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8761         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8762         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8763         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8764         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8765         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8766         uc_is_property_cased, uc_is_property_case_ignorable,
8767         uc_is_property_changes_when_lowercased,
8768         uc_is_property_changes_when_uppercased,
8769         uc_is_property_changes_when_titlecased,
8770         uc_is_property_changes_when_casefolded,
8771         uc_is_property_changes_when_casemapped): New declarations.
8772         * lib/unictype/pr_byname.gperf: Add the new properties.
8773         * modules/unictype/property-byname (Depends-on): Depend on the new
8774         properties modules.
8775         * modules/unictype/property-all (Depends-on): Likewise.
8776         * MODULES.html.sh (Unicode string functions): Add
8777         unictype/property-case-ignorable, unictype/property-cased,
8778         unictype/property-changes-when-casefolded,
8779         unictype/property-changes-when-casemapped,
8780         unictype/property-changes-when-lowercased,
8781         unictype/property-changes-when-titlecased,
8782         unictype/property-changes-when-uppercased.
8783
8784         New module 'unictype/property-changes-when-casemapped'.
8785         * modules/unictype/property-changes-when-casemapped: New file.
8786         * lib/unictype/pr_changes_when_casemapped.c: New file.
8787         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8788         generated by gen-uni-tables.
8789         * modules/unictype/property-changes-when-casemapped-tests: New file.
8790         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8791         automatically generated by gen-uni-tables.
8792
8793         New module 'unictype/property-changes-when-casefolded'.
8794         * modules/unictype/property-changes-when-casefolded: New file.
8795         * lib/unictype/pr_changes_when_casefolded.c: New file.
8796         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8797         generated by gen-uni-tables.
8798         * modules/unictype/property-changes-when-casefolded-tests: New file.
8799         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8800         automatically generated by gen-uni-tables.
8801
8802         New module 'unictype/property-changes-when-titlecased'.
8803         * modules/unictype/property-changes-when-titlecased: New file.
8804         * lib/unictype/pr_changes_when_titlecased.c: New file.
8805         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8806         generated by gen-uni-tables.
8807         * modules/unictype/property-changes-when-titlecased-tests: New file.
8808         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8809         automatically generated by gen-uni-tables.
8810
8811         New module 'unictype/property-changes-when-uppercased'.
8812         * modules/unictype/property-changes-when-uppercased: New file.
8813         * lib/unictype/pr_changes_when_uppercased.c: New file.
8814         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8815         generated by gen-uni-tables.
8816         * modules/unictype/property-changes-when-uppercased-tests: New file.
8817         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8818         automatically generated by gen-uni-tables.
8819
8820         New module 'unictype/property-changes-when-lowercased'.
8821         * modules/unictype/property-changes-when-lowercased: New file.
8822         * lib/unictype/pr_changes_when_lowercased.c: New file.
8823         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8824         generated by gen-uni-tables.
8825         * modules/unictype/property-changes-when-lowercased-tests: New file.
8826         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8827         automatically generated by gen-uni-tables.
8828
8829         New module 'unictype/property-case-ignorable'.
8830         * modules/unictype/property-case-ignorable: New file.
8831         * lib/unictype/pr_case_ignorable.c: New file.
8832         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8833         by gen-uni-tables.
8834         * modules/unictype/property-case-ignorable-tests: New file.
8835         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8836         generated by gen-uni-tables.
8837
8838         New module 'unictype/property-cased'.
8839         * modules/unictype/property-cased: New file.
8840         * lib/unictype/pr_cased.c: New file.
8841         * lib/unictype/pr_cased.h: New file, automatically generated by
8842         gen-uni-tables.
8843         * modules/unictype/property-cased-tests: New file.
8844         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8845         gen-uni-tables.
8846
8847 2011-01-09  Bruno Haible  <bruno@clisp.org>
8848
8849         Update to Unicode 5.2.0.
8850         * lib/gen-uni-tables.c (output_predicate, output_category,
8851         output_combclass, output_bidi_category, output_decimal_digit_test,
8852         output_decimal_digit, output_digit_test, output_digit,
8853         output_numeric_test, output_numeric, output_mirror, output_scripts,
8854         output_scripts_byname, output_blocks, output_ident_category): Fix
8855         comment header.
8856         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8857         get_wbp.
8858         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8859         items.
8860         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8861         Changes_When_Lowercased, Changes_When_Uppercased,
8862         Changes_When_Titlecased, Changes_When_Casefolded,
8863         Changes_When_Casemapped.
8864         (is_property_alphabetic, is_property_default_ignorable_code_point):
8865         Update for Unicode 5.2.0.
8866         (is_property_cased, is_property_case_ignorable,
8867         is_property_changes_when_lowercased,
8868         is_property_changes_when_uppercased,
8869         is_property_changes_when_titlecased,
8870         is_property_changes_when_casefolded,
8871         is_property_changes_when_casemapped): New functions.
8872         (output_properties): Output also the properties cased, case_ignorable,
8873         changes_when_lowercased, changes_when_uppercased,
8874         changes_when_titlecased, changes_when_casefolded,
8875         changes_when_casemapped.
8876         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8877         Unicode TR#11 revision 17 -> 19.
8878         (LBP_CP): New enumeration value.
8879         (LBP_*): Adjust values accordingly.
8880         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8881         TR#14 revision 22 -> 24.
8882         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8883         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8884         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8885         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8886         is_WBP_MIDLETTER.
8887         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8888         the code1 and code2 of each composition rule.
8889         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8890         * lib/unicase/ignorable.h: Likewise.
8891         * lib/unicase/tocasefold.h: Likewise.
8892         * lib/unicase/tolower.h: Likewise.
8893         * lib/unicase/totitle.h: Likewise.
8894         * lib/unicase/toupper.h: Likewise.
8895         * lib/unictype/bidi_of.h: Likewise.
8896         * lib/unictype/blocks.h: Likewise.
8897         * lib/unictype/categ_C.h: Likewise.
8898         * lib/unictype/categ_Cf.h: Likewise.
8899         * lib/unictype/categ_Cn.h: Likewise.
8900         * lib/unictype/categ_L.h: Likewise.
8901         * lib/unictype/categ_Ll.h: Likewise.
8902         * lib/unictype/categ_Lm.h: Likewise.
8903         * lib/unictype/categ_Lo.h: Likewise.
8904         * lib/unictype/categ_Lu.h: Likewise.
8905         * lib/unictype/categ_M.h: Likewise.
8906         * lib/unictype/categ_Mc.h: Likewise.
8907         * lib/unictype/categ_Mn.h: Likewise.
8908         * lib/unictype/categ_N.h: Likewise.
8909         * lib/unictype/categ_Nd.h: Likewise.
8910         * lib/unictype/categ_Nl.h: Likewise.
8911         * lib/unictype/categ_No.h: Likewise.
8912         * lib/unictype/categ_P.h: Likewise.
8913         * lib/unictype/categ_Pd.h: Likewise.
8914         * lib/unictype/categ_Po.h: Likewise.
8915         * lib/unictype/categ_S.h: Likewise.
8916         * lib/unictype/categ_Sc.h: Likewise.
8917         * lib/unictype/categ_So.h: Likewise.
8918         * lib/unictype/categ_of.h: Likewise.
8919         * lib/unictype/combining.h: Likewise.
8920         * lib/unictype/ctype_alnum.h: Likewise.
8921         * lib/unictype/ctype_alpha.h: Likewise.
8922         * lib/unictype/ctype_graph.h: Likewise.
8923         * lib/unictype/ctype_lower.h: Likewise.
8924         * lib/unictype/ctype_print.h: Likewise.
8925         * lib/unictype/ctype_punct.h: Likewise.
8926         * lib/unictype/ctype_upper.h: Likewise.
8927         * lib/unictype/decdigit.h: Likewise.
8928         * lib/unictype/digit.h: Likewise.
8929         * lib/unictype/numeric.h: Likewise.
8930         * lib/unictype/pr_alphabetic.h: Likewise.
8931         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8932         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8933         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8934         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8935         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8936         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8937         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8938         * lib/unictype/pr_combining.h: Likewise.
8939         * lib/unictype/pr_composite.h: Likewise.
8940         * lib/unictype/pr_currency_symbol.h: Likewise.
8941         * lib/unictype/pr_dash.h: Likewise.
8942         * lib/unictype/pr_decimal_digit.h: Likewise.
8943         * lib/unictype/pr_deprecated.h: Likewise.
8944         * lib/unictype/pr_diacritic.h: Likewise.
8945         * lib/unictype/pr_extender.h: Likewise.
8946         * lib/unictype/pr_grapheme_base.h: Likewise.
8947         * lib/unictype/pr_grapheme_extend.h: Likewise.
8948         * lib/unictype/pr_grapheme_link.h: Likewise.
8949         * lib/unictype/pr_id_continue.h: Likewise.
8950         * lib/unictype/pr_id_start.h: Likewise.
8951         * lib/unictype/pr_ideographic.h: Likewise.
8952         * lib/unictype/pr_ignorable_control.h: Likewise.
8953         * lib/unictype/pr_logical_order_exception.h: Likewise.
8954         * lib/unictype/pr_lowercase.h: Likewise.
8955         * lib/unictype/pr_numeric.h: Likewise.
8956         * lib/unictype/pr_other_alphabetic.h: Likewise.
8957         * lib/unictype/pr_punctuation.h: Likewise.
8958         * lib/unictype/pr_sentence_terminal.h: Likewise.
8959         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8960         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8961         * lib/unictype/pr_unified_ideograph.h: Likewise.
8962         * lib/unictype/pr_uppercase.h: Likewise.
8963         * lib/unictype/pr_xid_continue.h: Likewise.
8964         * lib/unictype/pr_xid_start.h: Likewise.
8965         * lib/unictype/pr_zero_width.h: Likewise.
8966         * lib/unictype/scripts.h: Likewise.
8967         * lib/unictype/scripts_byname.gperf: Likewise.
8968         * lib/unictype/sy_java_ident.h: Likewise.
8969         * lib/unigbrk/gbrkprop.h: Likewise.
8970         * lib/unilbrk/lbrkprop1.h: Likewise.
8971         * lib/unilbrk/lbrkprop2.h: Likewise.
8972         * lib/unilbrk/lbrktables.h: Likewise.
8973         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8974         LBP_CP. Implement rule LB30.
8975         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8976         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8977         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8978         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8979         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8980         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8981         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8982         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8983         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8984         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8985         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8986         bits instead of 16 bits in the code1 and code2 of each composition
8987         rule.
8988         (uc_composition): Update for Unicode 5.2.0.
8989         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8990         * lib/uninorm/decomposition-table2.h: Likewise.
8991         * lib/uniwbrk/wbrkprop.h: Likewise.
8992         * tests/unicase/test-cased.c: Likewise.
8993         * tests/unicase/test-ignorable.c: Likewise.
8994         * tests/unicase/test-uc_tolower.c: Likewise.
8995         * tests/unicase/test-uc_totitle.c: Likewise.
8996         * tests/unicase/test-uc_toupper.c: Likewise.
8997         * tests/unictype/test-categ_C.c: Likewise.
8998         * tests/unictype/test-categ_Cf.c: Likewise.
8999         * tests/unictype/test-categ_Cn.c: Likewise.
9000         * tests/unictype/test-categ_L.c: Likewise.
9001         * tests/unictype/test-categ_Ll.c: Likewise.
9002         * tests/unictype/test-categ_Lm.c: Likewise.
9003         * tests/unictype/test-categ_Lo.c: Likewise.
9004         * tests/unictype/test-categ_Lu.c: Likewise.
9005         * tests/unictype/test-categ_M.c: Likewise.
9006         * tests/unictype/test-categ_Mc.c: Likewise.
9007         * tests/unictype/test-categ_Mn.c: Likewise.
9008         * tests/unictype/test-categ_N.c: Likewise.
9009         * tests/unictype/test-categ_Nd.c: Likewise.
9010         * tests/unictype/test-categ_Nl.c: Likewise.
9011         * tests/unictype/test-categ_No.c: Likewise.
9012         * tests/unictype/test-categ_P.c: Likewise.
9013         * tests/unictype/test-categ_Pd.c: Likewise.
9014         * tests/unictype/test-categ_Po.c: Likewise.
9015         * tests/unictype/test-categ_S.c: Likewise.
9016         * tests/unictype/test-categ_Sc.c: Likewise.
9017         * tests/unictype/test-categ_So.c: Likewise.
9018         * tests/unictype/test-ctype_alnum.c: Likewise.
9019         * tests/unictype/test-ctype_alpha.c: Likewise.
9020         * tests/unictype/test-ctype_graph.c: Likewise.
9021         * tests/unictype/test-ctype_lower.c: Likewise.
9022         * tests/unictype/test-ctype_print.c: Likewise.
9023         * tests/unictype/test-ctype_punct.c: Likewise.
9024         * tests/unictype/test-ctype_upper.c: Likewise.
9025         * tests/unictype/test-decdigit.h: Likewise.
9026         * tests/unictype/test-digit.h: Likewise.
9027         * tests/unictype/test-numeric.h: Likewise.
9028         * tests/unictype/test-pr_alphabetic.c: Likewise.
9029         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9030         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9031         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9032         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9033         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9034         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9035         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9036         * tests/unictype/test-pr_combining.c: Likewise.
9037         * tests/unictype/test-pr_composite.c: Likewise.
9038         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9039         * tests/unictype/test-pr_dash.c: Likewise.
9040         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9041         * tests/unictype/test-pr_deprecated.c: Likewise.
9042         * tests/unictype/test-pr_diacritic.c: Likewise.
9043         * tests/unictype/test-pr_extender.c: Likewise.
9044         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9045         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9046         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9047         * tests/unictype/test-pr_id_continue.c: Likewise.
9048         * tests/unictype/test-pr_id_start.c: Likewise.
9049         * tests/unictype/test-pr_ideographic.c: Likewise.
9050         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9051         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9052         * tests/unictype/test-pr_lowercase.c: Likewise.
9053         * tests/unictype/test-pr_numeric.c: Likewise.
9054         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9055         * tests/unictype/test-pr_punctuation.c: Likewise.
9056         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9057         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9058         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9059         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9060         * tests/unictype/test-pr_uppercase.c: Likewise.
9061         * tests/unictype/test-pr_xid_continue.c: Likewise.
9062         * tests/unictype/test-pr_xid_start.c: Likewise.
9063         * tests/unictype/test-pr_zero_width.c: Likewise.
9064         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9065         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
9066         changed behaviour: line breaking is now disallowed between a letter
9067         or '=' and '('.
9068         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9069         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9070         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9071         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
9072         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9073         lib/uniwidth/width.c.
9074         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
9075         without comments, but with the original copyright notice.
9076         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9077         changes.
9078         * lib/unictype/categ_Cc.h: Likewise.
9079         * lib/unictype/categ_Co.h: Likewise.
9080         * lib/unictype/categ_Cs.h: Likewise.
9081         * lib/unictype/categ_Lt.h: Likewise.
9082         * lib/unictype/categ_Me.h: Likewise.
9083         * lib/unictype/categ_Pc.h: Likewise.
9084         * lib/unictype/categ_Pe.h: Likewise.
9085         * lib/unictype/categ_Pf.h: Likewise.
9086         * lib/unictype/categ_Pi.h: Likewise.
9087         * lib/unictype/categ_Ps.h: Likewise.
9088         * lib/unictype/categ_Sk.h: Likewise.
9089         * lib/unictype/categ_Sm.h: Likewise.
9090         * lib/unictype/categ_Z.h: Likewise.
9091         * lib/unictype/categ_Zl.h: Likewise.
9092         * lib/unictype/categ_Zp.h: Likewise.
9093         * lib/unictype/categ_Zs.h: Likewise.
9094         * lib/unictype/ctype_blank.h: Likewise.
9095         * lib/unictype/ctype_cntrl.h: Likewise.
9096         * lib/unictype/ctype_digit.h: Likewise.
9097         * lib/unictype/ctype_space.h: Likewise.
9098         * lib/unictype/ctype_xdigit.h: Likewise.
9099         * lib/unictype/mirror.h: Likewise.
9100         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9101         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9102         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9103         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9104         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9105         * lib/unictype/pr_bidi_control.h: Likewise.
9106         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9107         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9108         * lib/unictype/pr_bidi_pdf.h: Likewise.
9109         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9110         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9111         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9112         * lib/unictype/pr_format_control.h: Likewise.
9113         * lib/unictype/pr_hex_digit.h: Likewise.
9114         * lib/unictype/pr_hyphen.h: Likewise.
9115         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9116         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9117         * lib/unictype/pr_iso_control.h: Likewise.
9118         * lib/unictype/pr_join_control.h: Likewise.
9119         * lib/unictype/pr_left_of_pair.h: Likewise.
9120         * lib/unictype/pr_line_separator.h: Likewise.
9121         * lib/unictype/pr_math.h: Likewise.
9122         * lib/unictype/pr_non_break.h: Likewise.
9123         * lib/unictype/pr_not_a_character.h: Likewise.
9124         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9125         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9126         * lib/unictype/pr_other_id_continue.h: Likewise.
9127         * lib/unictype/pr_other_id_start.h: Likewise.
9128         * lib/unictype/pr_other_lowercase.h: Likewise.
9129         * lib/unictype/pr_other_math.h: Likewise.
9130         * lib/unictype/pr_other_uppercase.h: Likewise.
9131         * lib/unictype/pr_paired_punctuation.h: Likewise.
9132         * lib/unictype/pr_paragraph_separator.h: Likewise.
9133         * lib/unictype/pr_pattern_syntax.h: Likewise.
9134         * lib/unictype/pr_pattern_white_space.h: Likewise.
9135         * lib/unictype/pr_private_use.h: Likewise.
9136         * lib/unictype/pr_quotation_mark.h: Likewise.
9137         * lib/unictype/pr_radical.h: Likewise.
9138         * lib/unictype/pr_soft_dotted.h: Likewise.
9139         * lib/unictype/pr_space.h: Likewise.
9140         * lib/unictype/pr_titlecase.h: Likewise.
9141         * lib/unictype/pr_variation_selector.h: Likewise.
9142         * lib/unictype/pr_white_space.h: Likewise.
9143         * lib/unictype/sy_c_ident.h: Likewise.
9144         * lib/unictype/sy_c_whitespace.h: Likewise.
9145         * lib/unictype/sy_java_whitespace.h: Likewise.
9146         * modules/uni*/*: Bump version number of expected libunistring version.
9147         Reported by Simon Josefsson.
9148
9149 2011-01-09  Karl Heuer  <kwzh@gnu.org>
9150
9151         useless-if-before-free: fix typo in --help and make the internal,
9152         automatic version date update process work once again.
9153         --help output contained a NUL character instead of the
9154         backslash-zero that was intended.  Also, the "must lie within
9155         the first 8 lines" line is on line 9, and hence not getting
9156         automatically updated.
9157         * build-aux/useless-if-before-free: Fix the former by adding a
9158         backslash, and the latter by condensing the three lines of what-it-does
9159         to a single line, leaving one line of slack for the future.
9160
9161 2011-01-09  Bruno Haible  <bruno@clisp.org>
9162
9163         uniwidth/width: Fix width of U+1D173..U+1D17A.
9164         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
9165         symbolic_width, output_width_property_test): New functions.
9166         (main): Invoke output_nonspacing_property, output_width_property_test.
9167         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
9168         U+1D173..U+1D17A.
9169         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
9170         1.
9171         * modules/uniwidth/*: Bump version number of expected libunistring
9172         version.
9173         * modules/unilbrk/*: Likewise.
9174
9175 2011-01-08  Bruno Haible  <bruno@clisp.org>
9176
9177         uninorm tests: Preserve copyright of Unicode data file.
9178         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
9179         Mention modifications.
9180
9181 2011-01-08  Bruno Haible  <bruno@clisp.org>
9182
9183         gen-uni-tables: Prepare for Unicode 5.2.0.
9184         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
9185         (debug_output_lbp, output_lbp): Update.
9186
9187 2011-01-08  Bruno Haible  <bruno@clisp.org>
9188
9189         unilbrk: Clarify gen-uni-tables.c code.
9190         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
9191         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
9192         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
9193
9194 2011-01-07  Bruno Haible  <bruno@clisp.org>
9195
9196         strtod: Restore errno when successfully parsing Infinity or NaN.
9197         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
9198         restore the original errno.
9199
9200 2011-01-07  Bruno Haible  <bruno@clisp.org>
9201
9202         remove test: Avoid failure on HP-UX 11.
9203         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
9204
9205 2011-01-07  Bruno Haible  <bruno@clisp.org>
9206
9207         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
9208         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
9209         error code.
9210
9211 2011-01-07  Pádraig Brady <P@draigBrady.com>
9212
9213         ignore-value: fixup comments, and add Eric Blake
9214         as an author since he rewrote the macros.
9215         * lib/ignore-value.h (ignore_value):  State that
9216         we now support aggregates.  Also specify exactly
9217         when the GCC warn_unused_result feature was added.
9218
9219 2011-01-06  Eric Blake  <eblake@redhat.com>
9220
9221         ignore-value: support aggregate types
9222         * lib/ignore-value.h (ignore_value): Provide separate gcc
9223         definition.
9224         * modules/ignore-value-tests: New test module.
9225         * tests/test-ignore-value.c: New test.
9226
9227         maint.mk: improve sc_prohibit_strcmp regex
9228         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
9229         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
9230         definition of STRNEQ.
9231
9232         signal: work around Haiku issue with SIGBUS
9233         * lib/siglist.h: Add comment.
9234         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
9235         strsignal's favoring of SIGSEGV.
9236         * tests/test-signal.c (main): Avoid test failure.
9237         * doc/posix-headers/signal.texi (signal.h): Document the issue.
9238         Reported by Scott McCreary.
9239
9240         maint.mk: add pre-release check to ensure submodule commits are public
9241         * top/maint.mk (public-submodule-commit): New rule.
9242         (submodule-checks): New variable.
9243         (alpha beta stable): Depend on the variable.
9244
9245 2011-01-05  Pádraig Brady <P@draigBrady.com>
9246         and Jim Meyering  <meyering@redhat.com>
9247
9248         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9249         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9250         (ATTRIBUTE_DEPRECATED): Define.
9251         (_ignore_case): New function.
9252         (ignore_value): New macro, to replace the old function.
9253         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9254         * modules/ignore-value (Depends-on): Add stdint.
9255
9256 2011-01-04  Eric Blake  <eblake@redhat.com>
9257
9258         doc: regenerate INSTALL
9259         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9260         @firstparagraphindent support, now that autoconf dropped it.
9261         (INSTALL_PRELUDE): Reinstate old macro.
9262         * doc/install.texi: Resync from autoconf.
9263         * doc/INSTALL: Reflect recent autoconf update.
9264         * doc/INSTALL.ISO: Likewise.
9265         * doc/INSTALL.UTF-8: Likewise.
9266         Reported by Karl Berry.
9267
9268 2011-01-04  Bruce Korb  <address@hidden>
9269
9270         git-version-gen: avoid a sub-shell
9271         * build-aux/git-version-gen: Redirect stderr in `...` via
9272         "exec 2>...", rather than via an added sub-shell.
9273
9274 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9275
9276         git-version-gen: use (...) rather than sh -c '...'
9277         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9278         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9279
9280 2011-01-03  Jim Meyering  <meyering@redhat.com>
9281
9282         git-version-gen: convert leading TABs to spaces
9283         * build-aux/git-version-gen: Expand leading TABs.
9284
9285         git-version-gen: handle failed "git rev-list"
9286         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9287         from git and proceeding as if it had succeeded but printed no SHA1
9288         checksums, suppress the diagnostic and handle the failure.
9289         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9290
9291         git-version-gen: include command name in one more diagnostic
9292         * build-aux/git-version-gen: When the required .tarball-version file
9293         was missing or unreadable, you might see the diagnostic from "cat",
9294         but no trace of the name of the invoking script.  Now, you still see
9295         the diagnostic from cat, but also get one from "git-version-gen: ".
9296         Inspired by a patch from Bruce Korb.
9297
9298         update-copyright: adjust test to match changed code
9299         * tests/test-update-copyright.sh: Change test's expected output
9300         to match new actual output.
9301
9302 2011-01-02  Bruno Haible  <bruno@clisp.org>
9303
9304         getlogin_r: Avoid test failure on HP-UX 11.
9305         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9306         ERANGE when the second argument is zero.
9307         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9308         portability problem.
9309
9310 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9311
9312         * build-aux/update-copyright: doc Simon's changes
9313
9314 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9315
9316         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9317         environment variable.
9318
9319 2011-01-02  Bruno Haible  <bruno@clisp.org>
9320
9321         unigbrk: Avoid gcc warnings.
9322         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9323         unused variable.
9324         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9325         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9326         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9327         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9328         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9329         Change type of first argument to 'const char *'.
9330         (main): Remove unused variable.
9331         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9332         type of first argument to 'const char *'.
9333         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9334         Likewise.
9335         (main): Change type of variable 's'.
9336         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9337         to 'int'.
9338
9339 2011-01-02  Bruno Haible  <bruno@clisp.org>
9340
9341         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9342         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9343         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9344         bug.
9345         * lib/pwrite.c: Undo 2010-12-31 patch.
9346         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9347
9348 2011-01-02  Bruno Haible  <bruno@clisp.org>
9349
9350         pread: Fix test whether it works.
9351         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9352
9353 2011-01-02  Bruno Haible  <bruno@clisp.org>
9354
9355         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9356         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9357         ends in "6". Don't require a specific month name. Try also the locale
9358         names found on HP-UX 11 and Solaris 7.
9359
9360 2011-01-02  Bruno Haible  <bruno@clisp.org>
9361
9362         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9363         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9364         C linkage.
9365         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9366
9367 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9368
9369         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9370         for consistency, since the "cluster" term is not used elsewhere.
9371         * lib/unigbrk.in.h: Update name.
9372         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9373         * lib/unigbrk/u16-grapheme-next.c: Update name.
9374         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9375         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9376         * lib/unigbrk/u32-grapheme-next.c: Update name.
9377         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9378         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9379         * lib/unigbrk/u8-grapheme-next.c: Update name.
9380         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9381         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9382         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9383         Suggested by Bruno Haible.
9384
9385 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9386
9387         Remove module 'u8-grapheme-len' as too redundant with
9388         'u8-grapheme-next'.
9389         * modules/unigbrk/u8-grapheme-len: Delete file.
9390         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9391         * lib/unigbrk.in.h: Remove prototype for deleted function.
9392         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9393         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9394
9395         Remove module 'u16-grapheme-len' as too redundant with
9396         'u16-grapheme-next'.
9397         * modules/unigbrk/u16-grapheme-len: Delete file.
9398         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9399         * lib/unigbrk.in.h: Remove prototype for deleted function.
9400         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9401         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9402
9403         Remove module 'u32-grapheme-len' as too redundant with
9404         'u32-grapheme-next'.
9405         * modules/unigbrk/u32-grapheme-len: Delete file.
9406         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9407         * lib/unigbrk.in.h: Remove prototype for deleted function.
9408         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9409         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9410
9411         Suggested by Bruno Haible.
9412
9413 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9414
9415         * unigbrk.in.h: Fix typo: "ben" => "been".
9416         Reported by Bruno Haible.
9417
9418 2011-01-01  Jim Meyering  <meyering@redhat.com>
9419
9420         maint: update almost all copyright ranges to include 2011
9421         Run the new "make update-copyright" rule.
9422
9423 2011-01-01  Jim Meyering  <meyering@redhat.com>
9424
9425         maint: update-copyright: exempt doc/INSTALL*
9426         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9427         since they are generated.  Suggested by Bruno Haible.
9428
9429 2011-01-01  Jim Meyering  <meyering@redhat.com>
9430
9431         maint: refine the update-copyright rule
9432         * Makefile (update-copyright): Also exclude any file that includes
9433         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9434         code that merely generates the comment.
9435
9436 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9437
9438         New module 'u8-grapheme-len'.
9439         * modules/unigbrk/u8-grapheme-len: New file.
9440         * modules/unigbrk/u8-grapheme-len-tests: New file.
9441         * lib/unigbrk.in.h: Add prototype for new function.
9442         * lib/unigbrk/u8-grapheme-len.c: New file.
9443         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9444
9445         New module 'u16-grapheme-len'.
9446         * modules/unigbrk/u16-grapheme-len: New file.
9447         * modules/unigbrk/u16-grapheme-len-tests: New file.
9448         * lib/unigbrk.in.h: Add prototype for new function.
9449         * lib/unigbrk/u16-grapheme-len.c: New file.
9450         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9451
9452         New module 'u32-grapheme-len'.
9453         * modules/unigbrk/u32-grapheme-len: New file.
9454         * modules/unigbrk/u32-grapheme-len-tests: New file.
9455         * lib/unigbrk.in.h: Add prototype for new function.
9456         * lib/unigbrk/u32-grapheme-len.c: New file.
9457         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9458
9459         New module 'u8-grapheme-next'.
9460         * modules/unigbrk/u8-grapheme-next: New file.
9461         * modules/unigbrk/u8-grapheme-next-tests: New file.
9462         * lib/unigbrk.in.h: Add prototype for new function.
9463         * lib/unigbrk/u8-grapheme-next.c: New file.
9464         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9465
9466         New module 'u16-grapheme-next'.
9467         * modules/unigbrk/u16-grapheme-next: New file.
9468         * modules/unigbrk/u16-grapheme-next-tests: New file.
9469         * lib/unigbrk.in.h: Add prototype for new function.
9470         * lib/unigbrk/u16-grapheme-next.c: New file.
9471         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9472
9473         New module 'u32-grapheme-next'.
9474         * modules/unigbrk/u32-grapheme-next: New file.
9475         * modules/unigbrk/u32-grapheme-next-tests: New file.
9476         * lib/unigbrk.in.h: Add prototype for new function.
9477         * lib/unigbrk/u32-grapheme-next.c: New file.
9478         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9479
9480         New module 'u8-grapheme-prev'.
9481         * modules/unigbrk/u8-grapheme-prev: New file.
9482         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9483         * lib/unigbrk.in.h: Add prototype for new function.
9484         * lib/unigbrk/u8-grapheme-prev.c: New file.
9485         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9486
9487         New module 'u16-grapheme-prev'.
9488         * modules/unigbrk/u16-grapheme-prev: New file.
9489         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9490         * lib/unigbrk.in.h: Add prototype for new function.
9491         * lib/unigbrk/u16-grapheme-prev.c: New file.
9492         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9493
9494         New module 'u32-grapheme-prev'.
9495         * modules/unigbrk/u32-grapheme-prev: New file.
9496         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9497         * lib/unigbrk.in.h: Add prototype for new function.
9498         * lib/unigbrk/u32-grapheme-prev.c: New file.
9499         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9500
9501         New module 'u8-grapheme-breaks'.
9502         * modules/unigbrk/u8-grapheme-breaks: New file.
9503         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9504         * lib/unigbrk.in.h: Add prototype for new function.
9505         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9506         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9507
9508         New module 'u16-grapheme-breaks'.
9509         * modules/unigbrk/u16-grapheme-breaks: New file.
9510         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9511         * lib/unigbrk.in.h: Add prototype for new function.
9512         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9513         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9514
9515         New module 'u32-grapheme-breaks'.
9516         * modules/unigbrk/u32-grapheme-breaks: New file.
9517         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9518         * lib/unigbrk.in.h: Add prototype for new function.
9519         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9520         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9521
9522         New module 'ulc-grapheme-breaks'.
9523         * modules/unigbrk/ulc-grapheme-breaks: New file.
9524         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9525         * m4/locale-ar.m4: New file.
9526         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9527         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9528         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9529
9530 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9531
9532         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9533         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9534         modified how this file was generated before I initially submitted
9535         the module, but failed to regenerate it.  This meant that several
9536         of the level2 entries were wrong.
9537         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9538         Remove the division-by-2 that is folded into the table now that
9539         gbrkprop.h has been regenerated properly.  Now -1 entries are
9540         handled correctly.
9541
9542         New module 'unigbrk/uc-gbrk-prop-tests'.
9543         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9544         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9545         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9546         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9547
9548 2011-01-01  Bruno Haible  <bruno@clisp.org>
9549
9550         Avoid use of hexadecimal escapes.
9551         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9552         instead of hexadecimal escapes.
9553
9554 2011-01-01  Jim Meyering  <meyering@redhat.com>
9555
9556         maint: new rule to update copyright year ranges
9557         * Makefile (update-copyright): New rule.
9558
9559         maint: indent with TABs in Makefile
9560         * Makefile: Expand leading sequences of spaces to TABs
9561
9562         version-etc: update the copyright year it reports
9563         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9564
9565 2010-12-31  Bruno Haible  <bruno@clisp.org>
9566
9567         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9568         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9569         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9570         zero.
9571
9572 2010-12-31  Bruno Haible  <bruno@clisp.org>
9573
9574         pwrite: Work around HP-UX 11.11 bug.
9575         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9576         works and set REPLACE_PWRITE if not.
9577         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9578         function.
9579         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9580
9581 2010-12-31  Bruno Haible  <bruno@clisp.org>
9582
9583         pread: Work around HP-UX 11 bugs.
9584         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9585         and set REPLACE_PREAD if not.
9586         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9587
9588 2010-12-31  Eric Blake  <eblake@redhat.com>
9589
9590         nl_langinfo: fix YESEXPR on Irix 6.5
9591         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9592         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9593         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9594         it.
9595
9596 2010-12-31  Bruno Haible  <bruno@clisp.org>
9597
9598         iconv: Document HP-UX 11 bug.
9599         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9600
9601 2010-12-31  Bruno Haible  <bruno@clisp.org>
9602
9603         ldexpl: Fix link error on HP-UX 11.
9604         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9605         LDEXPL_LIBM, using $ISNANL_LIBM.
9606
9607 2010-12-31  Eric Blake  <eblake@redhat.com>
9608
9609         ftello: avoid compilation failure with SunStudio c89
9610         * lib/ftello.c (ftello): Use lseek, not llseek.
9611
9612         tests: avoid failing coreutils tests on cygwin
9613         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9614         (create_exe_shims_): Return 0 when skipping.
9615
9616 2010-12-31  Bruno Haible  <bruno@clisp.org>
9617
9618         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9619         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9620
9621 2010-12-31  Bruno Haible  <bruno@clisp.org>
9622
9623         waitpid: Fix link error in C++ mode.
9624         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9625
9626 2010-12-31  Bruno Haible  <bruno@clisp.org>
9627
9628         isnan: Use GCC built-ins when possible.
9629         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9630         __builtin_isnan.
9631         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9632         (isnan): Define using GCC built-ins for GCC >= 4.0.
9633
9634 2010-12-31  Bruno Haible  <bruno@clisp.org>
9635
9636         isnand: Fix mistake.
9637         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9638         __builtin_isnand.
9639
9640 2010-12-31  Bruno Haible  <bruno@clisp.org>
9641
9642         open: Avoid C++ error on HP-UX 11.
9643         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9644
9645 2010-12-31  Bruno Haible  <bruno@clisp.org>
9646
9647         time_r: Add missing declarations on HP-UX 11.
9648         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9649         instead of HAVE_LOCALTIME_R.
9650         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9651         HAVE_LOCALTIME_R always.
9652         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9653         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9654         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9655         HAVE_LOCALTIME_R.
9656         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9657         * doc/posix-functions/localtime_r.texi: Likewise.
9658
9659 2010-12-29  Eric Blake  <eblake@redhat.com>
9660
9661         mountlist: tweak previous commit
9662         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9663         Reported by Paul Eggert.
9664
9665         mountlist: fix local drive detection on cygwin
9666         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9667         that works for cygwin.
9668
9669 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9670
9671         ftoastr, snprintf: ftoastr + snprintf module
9672         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9673         since the snprintf module now should be good enough here.
9674         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9675         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9676         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9677         GNULIB_SNPRINTF only for the test directory, and the latter
9678         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9679         seems to suffice by itself.
9680
9681 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9682
9683         alloca: one step towards thread-safety
9684         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9685         need for a static variable.  All callers changed.  This does not
9686         make the alloca replacement thread-safe, but it's one step.
9687
9688         tests: minor indenting change
9689         * tests/init.sh: Sync from coreutils housekeeping patch
9690         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9691         to keep lines within 80 columns.
9692
9693 2010-12-28  Jim Meyering  <meyering@redhat.com>
9694
9695         regex: don't infloop on persistent failing calloc
9696         * lib/regexec.c (build_trtable): Return failure indication upon
9697         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9698         In glibc, this was fixed for version 2.13:
9699         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9700
9701 2010-12-28  Bruno Haible  <bruno@clisp.org>
9702             Paul Eggert <eggert@cs.ucla.edu>
9703
9704         linkat: Make implementation robust against system behaviour variations.
9705         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9706         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9707         way, and to -2 if it needs a generic runtime test.
9708         * lib/linkat.c (solaris_optimized_link_immediate,
9709         solaris_optimized_link_follow): New functions.
9710         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9711         (check_same_link): Use it.
9712
9713 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9714
9715         New module 'unigbrk/base'.
9716         * modules/unigbrk/base: New file.
9717         * lib/unigbrk.in.h: New file.
9718
9719         New module 'unigbrk/uc-gbrk-prop'.
9720         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9721         * modules/unigbrk/uc-gbrk-prop: New file.
9722         * lib/unigbrk/gbrkprop.h: New file.
9723         * lib/unigbrk/uc-gbrk-prop.c: New file.
9724
9725         New module 'unigbrk/uc-is-grapheme-break'.
9726         * modules/unigbrk/uc-is-grapheme-break: New file.
9727         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9728         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9729         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9730         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9731         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9732
9733         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9734
9735 2010-12-27  Bruno Haible  <bruno@clisp.org>
9736
9737         linkat test: Avoid failure on Solaris 11 2010-11.
9738         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9739
9740 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9741
9742         utimens: work around glibc rounding bug on more platforms
9743         * lib/utimens.c (fdutimens): Work around rounding bug even if
9744         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9745         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9746
9747 2010-12-27  Bruno Haible  <bruno@clisp.org>
9748
9749         select tests: Improve comments.
9750         * tests/test-select.c (do_select): Add comments.
9751
9752 2010-12-27  Bruno Haible  <bruno@clisp.org>
9753
9754         select tests: Safer way of handling timeout.
9755         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9756         at every invocation.
9757
9758 2010-12-27  Bruno Haible  <bruno@clisp.org>
9759
9760         select tests: Use 'bool' where appropriate.
9761         * tests/test-select.c (connect_to_socket): Change argument type to
9762         'bool'.
9763
9764 2010-12-27  Bruno Haible  <bruno@clisp.org>
9765
9766         select tests: Use existing modules.
9767         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9768         (configure.ac): Don't test for unistd.h.
9769         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9770         declared in <unistd.h>.
9771
9772 2010-12-27  Bruno Haible  <bruno@clisp.org>
9773
9774         mbrtowc: Work around a Solaris 7 bug.
9775         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9776         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9777         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9778         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9779         MBRTOWC_NULL_ARG1_BUG.
9780         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9781         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9782         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9783         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9784
9785 2010-12-27  Jim Meyering  <meyering@redhat.com>
9786
9787         read-file.c: tweak syntax
9788         * lib/read-file.c (fread_file): Remove space after "*" in function
9789         definitions.
9790
9791 2010-12-27  Bruno Haible  <bruno@clisp.org>
9792
9793         times test: Avoid gcc warnings on OSF/1.
9794         * tests/test-times.c (main): Cast printf arguments from clock_t to
9795         'long int'.
9796
9797 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9798
9799         utimens: work around glibc rounding bug on older Linux kernels
9800         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9801         on Linux with a glibc whose utimes might not work, then work
9802         around a longstanding glibc bug involving rounding rather than
9803         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9804         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9805
9806 2010-12-26  Bruno Haible  <bruno@clisp.org>
9807
9808         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9809         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9810         _GL_CXXALIAS_SYS.
9811         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9812
9813 2010-12-26  Bruno Haible  <bruno@clisp.org>
9814
9815         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9816         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9817         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9818         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9819         looking for the declaration.
9820         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9821         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9822         problem.
9823         * doc/posix-functions/inet_pton.texi: Likewise.
9824
9825 2010-12-26  Bruno Haible  <bruno@clisp.org>
9826
9827         arpa_inet: Use the common idioms with C++ support.
9828         * lib/arpa_inet.in.h: Include c++defs.h.
9829         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9830         support.
9831         * modules/arpa_inet (Depends-on): Add c++defs.
9832         (Makefile.am): Substitute the contents of c++defs.h.
9833         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9834         * modules/arpa_inet-c++-tests: New file.
9835         * tests/test-arpa_inet-c++.cc: New file.
9836
9837 2010-12-25  Bruno Haible  <bruno@clisp.org>
9838
9839         Fix more C++ link errors on Solaris 8.
9840         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9841         $(LIB_EACCESS).
9842         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9843         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9844         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9845         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9846         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9847
9848 2010-12-25  Bruno Haible  <bruno@clisp.org>
9849
9850         printf-posix: Fix link error when a non-GCC compiler is used.
9851         * lib/stdio.in.h (printf): When not using GCC, override printf
9852         correctly.
9853         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9854
9855 2010-12-25  Bruno Haible  <bruno@clisp.org>
9856
9857         strerror_r-posix: Update doc.
9858         * doc/posix-functions/strerror_r.texi: Update doc about the return
9859         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9860
9861 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9862
9863         utimens: simplify the logic of the previous change
9864         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9865         This should not affect whether the test succeeds or fails.
9866
9867         utimens: configure better on hosts with NFS clock skew
9868         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9869         uses the clock of the local host.  It might use the clock of the
9870         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9871         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9872
9873 2010-12-25  Bruno Haible  <bruno@clisp.org>
9874
9875         ptsname test: Avoid failure on Solaris.
9876         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9877         open a pseudo-terminal; don't use BSD-style ptys.
9878         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9879
9880 2010-12-25  Bruno Haible  <bruno@clisp.org>
9881
9882         ptsname: Avoid ERANGE failure on some systems.
9883         * lib/ptsname.c (buffer): Increase size.
9884
9885 2010-12-25  Bruno Haible  <bruno@clisp.org>
9886
9887         rename, renameat: Avoid test failures at NFS mounted locations.
9888         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9889         so that subsequent mkdir calls succeed.
9890
9891 2010-12-25  Bruno Haible  <bruno@clisp.org>
9892
9893         iswblank: Fix C++ link error on Solaris 8.
9894         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9895         _GL_FUNCDECL_SYS.
9896
9897 2010-12-25  Bruno Haible  <bruno@clisp.org>
9898
9899         unistd: Fix C++ link error on Solaris 8.
9900         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9901
9902 2010-12-25  Bruno Haible  <bruno@clisp.org>
9903
9904         readlink doc: Mention an old glibc bug.
9905         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9906
9907 2010-12-25  Bruno Haible  <bruno@clisp.org>
9908
9909         fcntl-h: Fix for use of C++ on glibc systems.
9910         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9911         also on glibc systems in C++ mode.
9912         Reported by Gary V. Vaughan <gary@gnu.org>.
9913
9914 2010-12-25  Bruno Haible  <bruno@clisp.org>
9915
9916         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9917         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9918
9919 2010-12-25  Bruno Haible  <bruno@clisp.org>
9920
9921         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9922         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9923         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9924         test whether truncl works according to ISO C 99 with IEC 60559.
9925         * m4/truncl-ieee.m4: New file.
9926         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9927         m4/signbit.m4.
9928         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9929
9930 2010-12-25  Bruno Haible  <bruno@clisp.org>
9931
9932         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9933         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9934         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9935         test whether ceill works according to ISO C 99 with IEC 60559.
9936         * m4/ceill-ieee.m4: New file.
9937         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9938         m4/signbit.m4.
9939         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9940
9941 2010-12-25  Bruno Haible  <bruno@clisp.org>
9942
9943         Ensure all prerequisites of <wchar.h> are included.
9944         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9945         before <wchar.h>.
9946         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9947         gl_MBRLEN_NUL_RETVAL): Likewise.
9948         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9949         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9950         AC_FUNC_MBRTOWC): Likewise.
9951         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9952         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9953         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9954         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9955         Likewise.
9956         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9957         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9958         (gl_WCHAR_H): Improve comments.
9959         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9960
9961 2010-12-25  Bruno Haible  <bruno@clisp.org>
9962
9963         strtok_r: Fix C syntax error in autoconf macro.
9964         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9965         characters in test program.
9966
9967 2010-12-24  Bruno Haible  <bruno@clisp.org>
9968
9969         ceil, trunc, round: Fix gcc warnings.
9970         * lib/ceil.c (MIN): Undefine before redefining.
9971         * lib/trunc.c (MIN): Likewise.
9972         * lib/round.c (MIN): Likewise.
9973         Include <math.h> first.
9974
9975 2010-12-24  Bruno Haible  <bruno@clisp.org>
9976
9977         select tests: Avoid failures on OSF/1 5.1.
9978         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9979         failure of closing the last socket; it may fail with ECONNRESET.
9980
9981 2010-12-24  Eric Blake  <eblake@redhat.com>
9982
9983         stdint: avoid HP-UX 10.20 preprocessor bug
9984         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9985         than #if.
9986         * tests/test-floor2.c (main): Likewise.
9987         Reported by Peter O'Gorman.
9988
9989         pipe: make obsoletion transition easier
9990         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9991         * modules/pipe (Files): Include revived file.
9992         (Include): Drop reference, to mirror getdate's behavior.
9993
9994 2010-12-24  Bruno Haible  <bruno@clisp.org>
9995
9996         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9997         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9998         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9999         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10000
10001 2010-12-24  Bruno Haible  <bruno@clisp.org>
10002
10003         gethostname: Ensure declaration on NonStop Kernel.
10004         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
10005         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10006
10007 2010-12-24  Bruno Haible  <bruno@clisp.org>
10008
10009         sys_select: Ensure all necessary types on NonStop Kernel.
10010         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
10011         include <sys/time.h>.
10012         * doc/posix-headers/sys_select.texi: Mention that it's missing on
10013         NonStop Kernel.
10014         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10015
10016 2010-12-24  Bruno Haible  <bruno@clisp.org>
10017
10018         sys_select: Remove unneeded include.
10019         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
10020         have <sys/select.h>.
10021
10022 2010-12-24  Bruno Haible  <bruno@clisp.org>
10023
10024         gethostname: Provide a fallback for HOST_NAME_MAX.
10025         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
10026         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
10027         instead.
10028         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10029
10030 2010-12-24  Bruno Haible  <bruno@clisp.org>
10031
10032         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
10033         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
10034         (SA_RESTART): Likewise.
10035         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10036
10037 2010-12-24  Bruno Haible  <bruno@clisp.org>
10038
10039         signal: Define NSIG.
10040         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
10041         * tests/test-signal.c (nsig): New variable.
10042         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10043
10044 2010-12-24  Bruno Haible  <bruno@clisp.org>
10045
10046         rename, renameat: Avoid test failures on OSF/1 5.1.
10047         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
10048         alternative error codes.
10049         * tests/test-renameat.c (main): Likewise.
10050
10051 2010-12-24  Bruno Haible  <bruno@clisp.org>
10052
10053         *printf: Detect large precisions bug on Solaris 10/SPARC.
10054         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
10055         by Paul Eggert.
10056         * tests/test-snprintf-posix.h (test_function): Add this test code here
10057         too.
10058         * tests/test-sprintf-posix.h (test_function): Likewise.
10059         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10060         * tests/test-vasprintf-posix.c (test_function): Likewise.
10061         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
10062         around by gnulib.
10063         * doc/posix-functions/printf.texi: Likewise.
10064         * doc/posix-functions/snprintf.texi: Likewise.
10065         * doc/posix-functions/sprintf.texi: Likewise.
10066         * doc/posix-functions/vfprintf.texi: Likewise.
10067         * doc/posix-functions/vprintf.texi: Likewise.
10068         * doc/posix-functions/vsnprintf.texi: Likewise.
10069         * doc/posix-functions/vsprintf.texi: Likewise.
10070         * doc/posix-functions/dprintf.texi: Undo last commit.
10071         * doc/posix-functions/vdprintf.texi: Likewise.
10072
10073 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10074
10075         tests: port test-fdutimensat.c to Solaris 8
10076         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
10077         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
10078         On Solaris 8, it fails with errno == ENOSYS, because there is no
10079         futimens (so it can't use the fd), and there is no lutimens (so it
10080         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
10081
10082         vsnprintf: make more consistent with snprintf; doc fixes
10083
10084         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
10085         the byte count return problem was promoted from the snprintf-posix
10086         to the snprintf module.
10087         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10088         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
10089         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
10090         * tests/test-snprintf.c (main): Check the byte count returned.
10091         * tests/test-vsnprintf.c (main): Likewise.
10092
10093 2010-12-23  Eric Blake  <eblake@redhat.com>
10094
10095         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
10096         * modules/sigpipe (License): Relax license.
10097
10098 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10099
10100         doc: document Solaris printf bug with large float precisions
10101         * doc/posix-functions/dprintf.texi (dprintf):
10102         * doc/posix-functions/fprintf.texi (fprintf):
10103         * doc/posix-functions/printf.texi (printf):
10104         * doc/posix-functions/snprintf.texi (snprintf):
10105         * doc/posix-functions/sprintf.texi (sprintf):
10106         * doc/posix-functions/vdprintf.texi (vdprintf):
10107         * doc/posix-functions/vfprintf.texi (vfprintf):
10108         * doc/posix-functions/vprintf.texi (vprintf):
10109         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10110         * doc/posix-functions/vsprintf.texi (vsprintf):
10111         Mention that these functions mishandle large floating point
10112         precisions on Solaris 10.  The same bug is also present in Solaris
10113         8, and I assume earlier.  This causes "cd gnulib-tests; make
10114         check" to fail on Solaris 8 (and I assume, later) when building
10115         the latest coreutils, in test-vasprintf-posix's call to
10116         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
10117         the wide flavors (e.g., wprintf) so this patch just updates the
10118         documentation for the narrow ones.
10119
10120         test-posixtm.c: add two tests
10121         * tests/test-posixtm.c: Add two tests, to highlight the
10122         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
10123         around this bug; this is merely to document it.
10124
10125 2010-12-22  Bruno Haible  <bruno@clisp.org>
10126
10127         getlogin_r: Work around portability problem on OSF/1.
10128         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
10129         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
10130         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
10131         test for a truncated result.
10132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
10133         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
10134         * modules/getlogin_r (Depends-on): Add memchr.
10135         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
10136
10137 2010-12-22  Bruno Haible  <bruno@clisp.org>
10138
10139         ptsname: Avoid test failure on OSF/1 5.1.
10140         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
10141         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
10142         (same_slave): New function.
10143         (main): Use it to compare ptsname's result with the expected file name.
10144
10145 2010-12-22  Bruno Haible  <bruno@clisp.org>
10146
10147         Port extended stdio modules to HP NonStop Kernel.
10148         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
10149         macros.
10150         * lib/fbufmode.c: Update comments.
10151         * lib/fflush.c: Likewise.
10152         * lib/fpurge.c: Likewise.
10153         * lib/freadable.c: Likewise.
10154         * lib/freadahead.c: Likewise.
10155         * lib/freading.c: Likewise.
10156         * lib/freadptr.c: Likewise.
10157         * lib/freadseek.c: Likewise.
10158         * lib/fseeko.c: Likewise.
10159         * lib/fseterr.c: Likewise.
10160         * lib/fwritable.c: Likewise.
10161         * lib/fwriting.c: Likewise.
10162         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10163
10164 2010-12-22  Bruno Haible  <bruno@clisp.org>
10165
10166         ttyname_r: Work around bug on OSF/1 5.1.
10167         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
10168         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
10169         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
10170         present.
10171         * lib/ttyname_r.c (ttyname_r): Update comments.
10172
10173 2010-12-22  Bruno Haible  <bruno@clisp.org>
10174
10175         round: Implement result sign according to IEEE 754.
10176         * lib/round.c (MIN, MINUS_ZERO): New macros.
10177         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
10178         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
10179         * tests/test-round-ieee.c (main): Likewise.
10180         * tests/test-roundl-ieee.c (main): Likewise.
10181
10182         trunc: Implement result sign according to IEEE 754.
10183         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
10184         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
10185         * tests/test-trunc2.c: Include minus-zero.h.
10186         (MINUS_ZERO): New macro.
10187         (trunc_reference): Keep in sync with lib/trunc.c.
10188         * tests/test-truncf2.c: Include minus-zero.h.
10189         (MINUS_ZERO): New macro.
10190         (truncf_reference): Keep in sync with lib/trunc.c.
10191         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
10192         * tests/test-trunc-ieee.c (main): Likewise.
10193         * tests/test-truncl-ieee.c (main): Likewise.
10194
10195         ceil: Implement result sign according to IEEE 754.
10196         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
10197         (FUNC): Return -0.0 for -1 < x < 0.
10198         * tests/test-ceil2.c: Include minus-zero.h.
10199         (MINUS_ZERO): New macro.
10200         (ceil_reference): Keep in sync with lib/ceil.c.
10201         * tests/test-ceilf2.c: Include minus-zero.h.
10202         (MINUS_ZERO): New macro.
10203         (ceilf_reference): Keep in sync with lib/ceil.c.
10204         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
10205         * tests/test-ceil-ieee.c (main): Likewise.
10206         * tests/test-ceill-ieee.c (main): Likewise.
10207
10208         floor: Implement result sign according to IEEE 754.
10209         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
10210         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
10211         * tests/test-floorf2.c (floorf_reference): Likewise.
10212         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
10213         * tests/test-floor-ieee.c (main): Likewise.
10214         * tests/test-floorl-ieee.c (main): Likewise.
10215
10216 2010-12-22  Bruno Haible  <bruno@clisp.org>
10217
10218         getaddrinfo: Update doc.
10219         * doc/posix-functions/gai_strerror.texi: Return type is also different
10220         on AIX and HP-UX.
10221
10222 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10223
10224         getaddrinfo, inet_ntop: Update doc for Solaris.
10225         * doc/posix-functions/gai_strerror.texi: Return type is also an
10226         issue on Solaris 9 and earlier.
10227         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
10228         on Solaris 10 and earlier.
10229
10230 2010-12-21  Bruno Haible  <bruno@clisp.org>
10231
10232         New module 'roundl-ieee'.
10233         * modules/roundl-ieee: New file.
10234         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
10235         test whether roundl works according to ISO C 99 with IEC 60559.
10236         * m4/roundl-ieee.m4: New file.
10237         * modules/roundl-ieee-tests: New file.
10238         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
10239         * tests/test-roundl.c (main): Remove signbit tests.
10240         * modules/roundl-tests (Depends-on): Remove signbit.
10241         * doc/posix-functions/roundl.texi: Mention the new module.
10242
10243 2010-12-21  Bruno Haible  <bruno@clisp.org>
10244
10245         New module 'truncl-ieee'.
10246         * modules/truncl-ieee: New file.
10247         * modules/truncl-ieee-tests: New file.
10248         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10249         * tests/test-truncl.c (main): Remove signbit tests.
10250         * modules/truncl-tests (Depends-on): Remove signbit.
10251         * doc/posix-functions/truncl.texi: Mention the new module.
10252
10253 2010-12-21  Bruno Haible  <bruno@clisp.org>
10254
10255         New module 'ceill-ieee'.
10256         * modules/ceill-ieee: New file.
10257         * modules/ceill-ieee-tests: New file.
10258         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10259         * tests/test-ceill.c (main): Remove signbit tests.
10260         * modules/ceill-tests (Depends-on): Remove signbit.
10261         * doc/posix-functions/ceill.texi: Mention the new module.
10262
10263 2010-12-21  Bruno Haible  <bruno@clisp.org>
10264
10265         New module 'floorl-ieee'.
10266         * modules/floorl-ieee: New file.
10267         * modules/floorl-ieee-tests: New file.
10268         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10269         * tests/test-floorl.c (main): Remove signbit tests.
10270         * modules/floorl-tests (Depends-on): Remove signbit.
10271         * doc/posix-functions/floorl.texi: Mention the new module.
10272
10273 2010-12-21  Bruno Haible  <bruno@clisp.org>
10274
10275         New module 'round-ieee'.
10276         * modules/round-ieee: New file.
10277         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10278         whether round works according to ISO C 99 with IEC 60559.
10279         * m4/round-ieee.m4: New file.
10280         * modules/round-ieee-tests: New file.
10281         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10282         * tests/test-round1.c (main): Remove signbit tests.
10283         * modules/round-tests (Depends-on): Remove 'signbit'.
10284         * doc/posix-functions/round.texi: Mention the new module.
10285
10286 2010-12-21  Bruno Haible  <bruno@clisp.org>
10287
10288         New module 'trunc-ieee'.
10289         * modules/trunc-ieee: New file.
10290         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10291         whether trunc works according to ISO C 99 with IEC 60559.
10292         * m4/trunc-ieee.m4: New file.
10293         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10295         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10296         * modules/trunc-ieee-tests: New file.
10297         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10298         * tests/test-trunc1.c (main): Remove signbit tests.
10299         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10300         * doc/posix-functions/trunc.texi: Mention the new module.
10301
10302 2010-12-21  Bruno Haible  <bruno@clisp.org>
10303
10304         New module 'ceil-ieee'.
10305         * modules/ceil-ieee: New file.
10306         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10307         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10308         ISO C 99 with IEC 60559.
10309         * m4/ceil-ieee.m4: New file.
10310         * modules/ceil (Files): Add lib/ceil.c.
10311         (Depends-on): Add 'float'.
10312         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10313         * lib/math.in.h (ceil): New declaration.
10314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10315         REPLACE_CEIL.
10316         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10317         * modules/ceil-ieee-tests: New file.
10318         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10319         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10320         * doc/posix-functions/ceil.texi: Mention the new module.
10321
10322 2010-12-21  Bruno Haible  <bruno@clisp.org>
10323
10324         New module 'floor-ieee'.
10325         * modules/floor-ieee: New file.
10326         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10327         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10328         ISO C 99 with IEC 60559.
10329         * m4/floor-ieee.m4: New file.
10330         * modules/floor (Files): Add lib/floor.c.
10331         (Depends-on): Add 'float'.
10332         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10333         * lib/math.in.h (floor): New declaration.
10334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10335         REPLACE_FLOOR.
10336         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10337         * modules/floor-ieee-tests: New file.
10338         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10339         * tests/test-math-c++.cc: Check the signature of 'floor'.
10340         * doc/posix-functions/floor.texi: Mention the new module.
10341
10342 2010-12-21  Bruno Haible  <bruno@clisp.org>
10343
10344         New module 'roundf-ieee'.
10345         * modules/roundf-ieee: New file.
10346         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10347         test whether roundf works according to ISO C 99 with IEC 60559.
10348         * m4/roundf-ieee.m4: New file.
10349         * modules/roundf-ieee-tests: New file.
10350         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10351         * tests/test-roundf1.c (main): Remove signbit tests.
10352         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10353         * doc/posix-functions/roundf.texi: Mention the new module.
10354
10355 2010-12-21  Bruno Haible  <bruno@clisp.org>
10356
10357         New module 'truncf-ieee'.
10358         * modules/truncf-ieee: New file.
10359         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10360         test whether truncf works according to ISO C 99 with IEC 60559.
10361         * m4/truncf-ieee.m4: New file.
10362         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10364         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10365         * modules/truncf-ieee-tests: New file.
10366         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10367         * tests/test-truncf1.c (main): Remove signbit tests.
10368         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10369         * doc/posix-functions/truncf.texi: Mention the new module.
10370
10371 2010-12-21  Bruno Haible  <bruno@clisp.org>
10372
10373         New module 'ceilf-ieee'.
10374         * modules/ceilf-ieee: New file.
10375         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10376         test whether ceilf works according to ISO C 99 with IEC 60559.
10377         * m4/ceilf-ieee.m4: New file.
10378         * modules/ceilf-ieee-tests: New file.
10379         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10380         * tests/test-ceilf1.c (main): Remove signbit tests.
10381         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10382         * doc/posix-functions/ceilf.texi: Mention the new module.
10383
10384 2010-12-21  Bruno Haible  <bruno@clisp.org>
10385
10386         New module 'floorf-ieee'.
10387         * modules/floorf-ieee: New file.
10388         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10389         test whether floorf works according to ISO C 99 with IEC 60559.
10390         * m4/floorf-ieee.m4: New file.
10391         * modules/floorf-ieee-tests: New file.
10392         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10393         * tests/test-floorf1.c (main): Remove signbit tests.
10394         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10395         * doc/posix-functions/floorf.texi: Mention the new module.
10396
10397 2010-12-21  Bruno Haible  <bruno@clisp.org>
10398
10399         Support for minus zero in autoconf macros.
10400         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10401         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10402         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10403         * tests/minus-zero.h: Update comments.
10404
10405 2010-12-21  Bruno Haible  <bruno@clisp.org>
10406
10407         Tests for module 'ceil'.
10408         * modules/ceil-tests: New file.
10409         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10410         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10411
10412 2010-12-21  Bruno Haible  <bruno@clisp.org>
10413
10414         Tests for module 'floor'.
10415         * modules/floor-tests: New file.
10416         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10417         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10418
10419 2010-12-21  Bruno Haible  <bruno@clisp.org>
10420
10421         math: Fix indentation.
10422         * lib/math.in.h (floorf): Fix indentation.
10423
10424 2010-12-21  Bruno Haible  <bruno@clisp.org>
10425
10426         Fix cross-compilation guesses on Solaris.
10427         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10428         not match "solaris2.10".
10429         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10430         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10431         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10432
10433 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10434
10435         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10436         This fixes a problem observed with the latest coreutils snapshot
10437         that caused a test to fail on Solaris 8.  src/csplit.c's call
10438         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10439         earlier, instead of returning the number of bytes that would have
10440         been generated; this causes csplit to incorrectly report memory
10441         exhaustion.
10442         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10443         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10444         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10445         comments to match.
10446         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10447         Fix typo in matching older versions of Solaris: "solaris2.10"
10448         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10449         only for guessing while cross-compiling.
10450         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10451
10452 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10453
10454         ftoastr: fix comment again
10455         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10456         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10457         Also, simplify example a bit by using flags = 0.
10458
10459 2010-12-20  Bruno Haible  <bruno@clisp.org>
10460
10461         round*, trunc*: Update documentation regarding glibc.
10462         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10463         * doc/posix-functions/round.texi: Likewise.
10464         * doc/posix-functions/roundl.texi: Likewise.
10465         * doc/posix-functions/truncf.texi: Likewise.
10466         * doc/posix-functions/trunc.texi: Likewise.
10467         * doc/posix-functions/truncl.texi: Likewise.
10468
10469 2010-12-20  Bruno Haible  <bruno@clisp.org>
10470
10471         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10472         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10473         * doc/posix-functions/round.texi: Likewise.
10474         * doc/posix-functions/roundl.texi: Likewise.
10475
10476 2010-12-20  Bruno Haible  <bruno@clisp.org>
10477
10478         ttyname_r: Add missing declaration on HP-UX 11.
10479         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10480         HAVE_TTYNAME_R.
10481         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10482         declared. Set HAVE_TTYNAME_R always.
10483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10484         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10485         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10486         HAVE_TTYNAME_R.
10487         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10488
10489 2010-12-20  Bruno Haible  <bruno@clisp.org>
10490
10491         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10492         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10493         * doc/posix-functions/getlogin_r.texi: Likewise.
10494         * tests/test-getlogin.c: Include <errno.h>.
10495         (main): Avoid test failure on HP-UX 11.11.
10496         * tests/test-getlogin_r.c (main): Likewise.
10497
10498 2010-12-20  Bruno Haible  <bruno@clisp.org>
10499
10500         getlogin_r: Add missing declaration on HP-UX 11.
10501         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10502         declared also when it exists as a function.
10503         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10504
10505 2010-12-20  Bruno Haible  <bruno@clisp.org>
10506
10507         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10508         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10509         through wcrtomb.
10510
10511 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10512
10513         ftoastr: fix comment
10514         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10515         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10516
10517 2010-12-19  Bruno Haible  <bruno@clisp.org>
10518
10519         isnan: Ensure it is a macro.
10520         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10521         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10522         Solaris.
10523
10524 2010-12-19  Bruno Haible  <bruno@clisp.org>
10525
10526         ldexpl test: Fix link error on OSF/1 5.1.
10527         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10528
10529 2010-12-19  Bruno Haible  <bruno@clisp.org>
10530
10531         wctype: Make it work in C++ mode on OSF/1 5.1.
10532         * lib/wctype.in.h (iswblank): Declare but not define here.
10533         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10534         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10535         * modules/wctype (Files): Add lib/iswblank.c.
10536
10537 2010-12-19  Bruno Haible  <bruno@clisp.org>
10538
10539         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10540         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10541         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10542
10543 2010-12-19  Bruno Haible  <bruno@clisp.org>
10544
10545         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10546         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10547         _POSIX_PII_SOCKET.
10548         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10549         * doc/posix-functions/recvfrom.texi: Likewise.
10550         * doc/posix-functions/send.texi: Likewise.
10551         * doc/posix-functions/sendto.texi: Likewise.
10552
10553 2010-12-19  Bruno Haible  <bruno@clisp.org>
10554
10555         tcgetsid: Add missing declaration on OSF/1 5.1.
10556         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10557         HAVE_TCGETSID.
10558         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10559         Don't set HAVE_TCGETSID.
10560         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10561         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10562         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10563         HAVE_TCGETSID.
10564         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10565
10566 2010-12-19  Bruno Haible  <bruno@clisp.org>
10567
10568         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10569         * lib/stdio.in.h: During the include_next statement, let recursive
10570         includes of this file include only the system header file.
10571
10572 2010-12-19  Bruno Haible  <bruno@clisp.org>
10573
10574         iconv_open: Fix regression from 2010-12-04.
10575         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10576         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10577
10578 2010-12-19  Bruno Haible  <bruno@clisp.org>
10579
10580         stdbool test: Avoid a gcc warning.
10581         * tests/test-stdbool.c (main): Fail if e1 is false.
10582         Reported by Jim Meyering.
10583
10584 2010-12-19  Jim Meyering  <meyering@redhat.com>
10585
10586         setenv: restore to working order
10587         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10588         mistakenly removed.
10589         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10590         HAVE_SETENV.
10591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10592         HAVE_SETENV.
10593
10594 2010-12-19  Bruno Haible  <bruno@clisp.org>
10595
10596         Document some different function declarations on OSF/1 5.1.
10597         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10598         * doc/posix-functions/inet_ntop.texi: Likewise.
10599         * doc/posix-functions/gethostname.texi: Likewise.
10600         * lib/unistd.in.h (gethostname): Update comment.
10601
10602 2010-12-19  Bruno Haible  <bruno@clisp.org>
10603
10604         doc: Mention vasprintf-posix module.
10605         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10606         the 'vasprintf-posix' module.
10607         * doc/glibc-functions/vasprintf.texi: Likewise.
10608
10609 2010-12-19  Bruno Haible  <bruno@clisp.org>
10610
10611         unsetenv: Add missing declaration on OSF/1 5.1.
10612         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10613         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10614         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10616         not HAVE_UNSETENV.
10617         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10618         HAVE_UNSETENV.
10619         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10620
10621 2010-12-19  Bruno Haible  <bruno@clisp.org>
10622
10623         setenv: Add missing declaration on OSF/1 5.1.
10624         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10625         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10626         declared. Don't set HAVE_SETENV.
10627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10628         not HAVE_SETENV.
10629         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10630         HAVE_SETENV.
10631         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10632
10633 2010-12-19  Bruno Haible  <bruno@clisp.org>
10634
10635         nl_langinfo tests: Avoid gcc warning.
10636         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10637
10638 2010-12-19  Bruno Haible  <bruno@clisp.org>
10639
10640         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10641         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10642         _GL_CXXALIAS_SYS.
10643
10644 2010-12-19  Bruno Haible  <bruno@clisp.org>
10645
10646         stdbool: Relax test.
10647         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10648         address to 'bool' work in static initializer, for compilers other than
10649         GCC.
10650
10651 2010-12-19  Bruno Haible  <bruno@clisp.org>
10652
10653         ftello: Add missing declaration on OSF/1 5.1.
10654         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10655         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10657         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10658         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10659
10660 2010-12-19  Bruno Haible  <bruno@clisp.org>
10661
10662         fseeko: Add missing declaration on OSF/1 5.1.
10663         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10664         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10666         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10667         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10668
10669 2010-12-19  Bruno Haible  <bruno@clisp.org>
10670
10671         fchdir: Add missing declaration on OSF/1 5.1.
10672         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10675         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10676         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10677
10678 2010-12-19  Bruno Haible  <bruno@clisp.org>
10679
10680         relocatable-prog-wrapper: Separate from relocatable-prog.
10681         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10682         uninstall-relocwrapper rule here.
10683         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10684         Reported by Ian Beckwith <ianb@erislabs.net>.
10685
10686 2010-12-19  Bruno Haible  <bruno@clisp.org>
10687
10688         unistr/u8-mbsnlen: Add missing dependency.
10689         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10690         Reported by Ian Beckwith <ianb@erislabs.net>.
10691
10692 2010-12-19  Bruno Haible  <bruno@clisp.org>
10693
10694         iconv: Make it possible again to use this module without 'iconv-h'.
10695         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10696         if it is not defined.
10697         Reported by Ian Beckwith <ianb@erislabs.net>.
10698
10699 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10700
10701         acl: port to Solaris 8 when copying from tmpfs to ufs
10702         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10703         error number.  Problem observed on Solaris 8 with latest
10704         coreutils, with "mv A B", where A is on a tmpfs file system and B
10705         is on a ufs file system.  This caused coreutils' mv/part-symlink
10706         test to fail.
10707
10708         tests: set fail=0 at start
10709         * tests/init.sh (setup_): Move fail=0 initialization here ...
10710         (mktempd_): ... from here, so that tests can rely on fail being
10711         set to 0 initially.  This fixes a problem in coreutils; see:
10712         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10713
10714 2010-12-18  Bruno Haible  <bruno@clisp.org>
10715
10716         memmem-simple: Stylistic changes.
10717         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10718         Fix preprocessor directive indentation.
10719
10720 2010-12-15  Pádraig Brady <P@draigBrady.com>
10721
10722         memmem, memmem-simple: reorganize and expand empty needle check
10723         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10724         functional checks to memmem-simple so that one has a fully functional
10725         memmem by using just this module.
10726         Restrict the performance only check to the memmem module.
10727         Also expand the empty needle check to ensure the correct
10728         pointer is returned, not just a non NULL pointer.
10729         * doc/glibc-functions/memmem.texi: Rearrange the portability
10730         documentation to correlate with the rearranged checks.
10731         Clarify exactly how the memmem and memmem-simple modules
10732         relate to each other.
10733
10734 2010-12-15  Pádraig Brady <P@draigBrady.com>
10735             Bruno Haible  <bruno@clisp.org>
10736
10737         Improve cross-compilation guesses for uClibc.
10738         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10739         that uClibc does not have the glibc bug.
10740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10741         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10742
10743 2010-12-14  Eric Blake  <eblake@redhat.com>
10744
10745         configmake: provide fallbacks for oldest supported autotools
10746         * m4/configmake.m4: New file.
10747         * modules/configmake (Files): Ship it.
10748         (configure.ac): Use it to guarantee fallbacks.
10749
10750 2010-12-13  Pádraig Brady <P@draigBrady.com>
10751
10752         read-file: Improve handling of large files
10753         * lib/read-file.c (fread_file): Minimize realloc()s
10754         for regular files, and better manage sizes around SIZE_MAX.
10755
10756 2010-12-13  Eric Blake  <eblake@redhat.com>
10757
10758         cloexec, fcntl: relax license
10759         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10760         consent from all contributors.
10761         * modules/fcntl (License): Likewise.
10762
10763 2010-12-10  Bruno Haible  <bruno@clisp.org>
10764
10765         Tests for module 'pipe-posix'.
10766         * modules/pipe-posix-tests: New file.
10767         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10768
10769 2010-12-10  Bruno Haible  <bruno@clisp.org>
10770
10771         pipe-posix: Make it work in C++ mode.
10772         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10773         (pipe): Use common idiom, not a macro definition.
10774         * lib/pipe.c: New file.
10775         * m4/pipe.m4: New file.
10776         * modules/pipe-posix (Description): Enhance.
10777         (Files): Add lib/pipe.c, m4/pipe.m4.
10778         (configure.ac): Invoke gl_FUNC_PIPE.
10779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10780         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10781         * tests/test-unistd-c++.cc: Check the signature of pipe.
10782
10783 2010-12-10  Bruno Haible  <bruno@clisp.org>
10784
10785         Rename module 'pipe' to 'spawn-pipe'.
10786         * modules/spawn-pipe: New file, renamed from modules/pipe.
10787         (Files, configure.ac, Makefile.am): Update.
10788         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10789         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10790         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10791         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10792         "spawn-pipe.h" instead of "pipe.h".
10793         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10794         to gl_SPAWN_PIPE.
10795         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10796         (Files, Makefile.am): Update.
10797         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10798         Update.
10799         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10800         Include "spawn-pipe.h" instead of "pipe.h".
10801         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10802         * lib/javacomp.c: Likewise.
10803         * lib/javaversion.c: Likewise.
10804         * lib/pipe-filter-gi.c: Likewise.
10805         * lib/pipe-filter-ii.c: Likewise.
10806         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10807         * modules/javacomp (Depends-on): Likewise.
10808         * modules/javaversion (Depends-on): Likewise.
10809         * modules/pipe-filter-gi (Depends-on): Likewise.
10810         * modules/pipe-filter-ii (Depends-on): Likewise.
10811         * MODULES.html.sh (Executing programs): Update.
10812         * NEWS: Mention the change.
10813
10814 2010-12-10  Eric Blake  <eblake@redhat.com>
10815
10816         pipe-posix: new module
10817         * modules/pipe-posix: New file.
10818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10819         (gl_UNISTD_H): Check for declaration.
10820         * modules/unistd (Makefile.am): Substitute it.
10821         * lib/unistd.in.h (pipe): Provide it for mingw.
10822         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10823         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10824
10825 2010-12-07  Bruno Haible  <bruno@clisp.org>
10826
10827         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10828         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10829         u8_strcmp_gnu.
10830         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10831
10832 2010-12-06  Bruno Haible  <bruno@clisp.org>
10833
10834         Update internal documentation.
10835         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10836
10837 2010-12-04  Bruno Haible  <bruno@clisp.org>
10838
10839         Put more information about failed tests into the test return codes.
10840         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10841         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10842         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10843         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10844         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10845         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10846         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10847         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10848         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10850         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10851         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10852         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10853         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10854         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10855         returns a bit mask.
10856         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10857         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10858         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10859         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10860         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10861         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10862         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10863         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10864         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10865         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10866         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10867         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10868         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10869         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10870         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10871         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10872         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10873         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10874         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10875         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10877         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10878         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10879         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10880         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10881         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10882         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10883         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10884         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10885         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10886         gl_PRINTF_PRECISION): Likewise.
10887         * m4/regex.m4 (gl_REGEX): Likewise.
10888         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10889         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10890         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10891         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10893         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10894         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10895         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10896         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10897         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10898         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10899         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10900         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10901         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10902         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10903         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10904         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10905         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10907         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10908         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10909         enumerated value.
10910         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10911
10912 2010-12-04  Bruno Haible  <bruno@clisp.org>
10913
10914         Update for Solaris 11 2010-11.
10915         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10916         Express, released in November 2010.
10917
10918 2010-12-04  Bruno Haible  <bruno@clisp.org>
10919
10920         nproc: Relax license.
10921         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10922         and Paul Eggert.
10923         Requested by Ludovic Courtès <ludo@gnu.org>.
10924
10925 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10926
10927         utimecmp: fine-grained src to nearby coarse-grained dest
10928
10929         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10930         and the source is on a file system with higher-resolution time
10931         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10932         not work, and the time stamps are close together, the algorithm to
10933         determine the exact resolution from the read-back mtime was buggy:
10934         it had a "!=" where it should have had an "==".  This bug has been
10935         in the code ever since it was introduced to gnulib.
10936         Problem reported by Dan Jacobson in
10937         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10938
10939 2010-11-30  Bruno Haible  <bruno@clisp.org>
10940
10941         strerror_r-posix: Fix autoconf test.
10942         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10943
10944 2010-11-28  Bruno Haible  <bruno@clisp.org>
10945             Paul Eggert  <eggert@cs.ucla.edu>
10946
10947         Tests for module 'getdomainname'.
10948         * modules/getdomainname-tests: New file.
10949         * tests/test-getdomainname.c: New file, based on
10950         tests/test-gethostname.c.
10951
10952 2010-11-28  Bruno Haible  <bruno@clisp.org>
10953             Paul Eggert  <eggert@cs.ucla.edu>
10954
10955         getdomainname: Use the system function when possible.
10956         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10957         (getdomainname): Replace if needed. Provide the declaration if it is
10958         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10959         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10960         (getdomainname): When the system has getdomainname, call the system
10961         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10962         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10963         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10964         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10965         the function if its second argument is of type 'int' or if it is found
10966         in libnsl.
10967         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10968         <sys/systeminfo.h> and sysinfo().
10969         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10971         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10972         HAVE_GETDOMAINNAME.
10973         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10974         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10975         * doc/glibc-functions/getdomainname.texi: Document the problems with
10976         the getdomainname declaration.
10977
10978 2010-11-28  Bruno Haible  <bruno@clisp.org>
10979
10980         sys_socket: Ensure ss_family field on AIX.
10981         * lib/sys_socket.in.h (ss_family): New macro definition.
10982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10983         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10984         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10985         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10986         * modules/sys_socket (Makefile.am): Substitute
10987         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10988         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10989
10990 2010-11-27  Bruno Haible  <bruno@clisp.org>
10991
10992         readline: Improve configure output.
10993         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10994         "checking for readline..." result understandable.
10995
10996 2010-11-27  Bruno Haible  <bruno@clisp.org>
10997
10998         *printf-posix: Detect a bug on Solaris 10/x86.
10999         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
11000         for floating-point output.
11001         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
11002         directive.
11003         * tests/test-snprintf-posix.h (test_function): Likewise.
11004         * tests/test-sprintf-posix.h (test_function): Likewise.
11005         * tests/test-vasprintf-posix.c (test_function): Likewise.
11006         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
11007         * doc/posix-functions/printf.texi: Likewise.
11008         * doc/posix-functions/snprintf.texi: Likewise.
11009         * doc/posix-functions/sprintf.texi: Likewise.
11010         * doc/posix-functions/vfprintf.texi: Likewise.
11011         * doc/posix-functions/vprintf.texi: Likewise.
11012         * doc/posix-functions/vsnprintf.texi: Likewise.
11013         * doc/posix-functions/vsprintf.texi: Likewise.
11014         * doc/glibc-functions/obstack_printf.texi: Likewise.
11015         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11016
11017 2010-11-27  Bruno Haible  <bruno@clisp.org>
11018
11019         Fix link error when module libunistring-optional is in use.
11020         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
11021         * modules/striconveha-tests (Makefile.am): Likewise.
11022
11023 2010-11-27  Bruno Haible  <bruno@clisp.org>
11024
11025         regex: Mention link dependencies.
11026         * modules/regex (Link): New section.
11027         * modules/rpmatch (Link): Likewise.
11028         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
11029
11030 2010-11-27  Bruno Haible  <bruno@clisp.org>
11031
11032         ftoastr: Fix compilation error on Solaris.
11033         * lib/ftoastr.c: Include <config.h>.
11034
11035 2010-11-27  Bruno Haible  <bruno@clisp.org>
11036
11037         getloadavg: Update documentation.
11038         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
11039
11040 2010-11-27  Bruno Haible  <bruno@clisp.org>
11041
11042         sys_socket: Fix test whether the functions are declared.
11043         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
11044         not <sys/select.h>.
11045
11046 2010-11-27  Bruno Haible  <bruno@clisp.org>
11047
11048         getpass: Make sure to get system declaration on some platforms.
11049         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
11050         gl_USE_SYSTEM_EXTENSIONS.
11051         * modules/getpass (Depends-on): Add extensions.
11052
11053 2010-11-26  Bruno Haible  <bruno@clisp.org>
11054
11055         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
11056         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
11057         'iconv' module is present.
11058         (ICONV_CONST): New macro.
11059         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
11060         ICONV_CONST.
11061         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
11062         set ICONV_CONST.
11063         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
11064         here.
11065         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
11066         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
11067         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
11068         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
11069         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
11070         present.
11071
11072 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
11073
11074         ftoastr: comment fix
11075         * lib/ftoastr.c: "little" -> "little or no" in comment
11076
11077 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
11078
11079         stdint: port to GCC 4.3 + OSX + Octave
11080         On this platform, stdint.h is buggy and defines int64_t to long
11081         long int.  The replacement defined it to long int, causing
11082         problems with C++ style name mangling.  Instead, trust the system
11083         definition if INT64_MAX is defined, and likewise for the unsigned
11084         variant.   Problem reported by Jarno Rajahalme in
11085         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
11086         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
11087         and don't mess with int64_t and INT64_MAX in this case.
11088         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
11089
11090 2010-11-24  Bruno Haible  <bruno@clisp.org>
11091
11092         doc: Corrections regarding MacOS X 10.4 and 10.5.
11093         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
11094         MacOS X.
11095         Reported by Simon Josefsson.
11096
11097 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
11098
11099         Uninstall ".bin" files installed by relocwrapper.
11100         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
11101         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
11102         unless it is already there.
11103
11104 2010-11-21  Bruno Haible  <bruno@clisp.org>
11105
11106         Update for NetBSD 5.0.
11107         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11108         NetBSD; the test fails on NetBSD 5.0.
11109         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11110         about NetBSD.
11111
11112 2010-11-21  Bruno Haible  <bruno@clisp.org>
11113
11114         Update for HP-UX 11.23 and HP-UX 11.31.
11115         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
11116         HP-UX.
11117
11118 2010-11-21  Bruno Haible  <bruno@clisp.org>
11119
11120         Update for MacOS X 10.5.
11121         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11122         MacOS X; the test fails on MacOS X 10.5.8.
11123         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11124         about MacOS X.
11125
11126 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
11127
11128         bootstrap: add bootstrap_sync option.
11129         See discussion at
11130         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
11131         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
11132         * build-aux/bootstrap: Accept --bootstrap-sync to update
11133         bootstrap if it is not identical to the local gnulib's
11134         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
11135         enable this by default.  Accept --no-bootstrap-sync to disable
11136         it.
11137
11138 2010-11-20  Bruno Haible  <bruno@clisp.org>
11139
11140         Ensure that <features.h> is included before __GLIBC__ is tested.
11141         * lib/printf-parse.h: Include <features.h>.
11142         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
11143         Reported by Mike Frysinger <vapier@gentoo.org>.
11144
11145         Ensure that <features.h> is included before __GLIBC__ is tested.
11146         * lib/wchar.in.h: Include <features.h>.
11147         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
11148         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
11149         Reported by Mike Frysinger <vapier@gentoo.org>.
11150
11151         Ensure that <features.h> is included before __GLIBC__ is tested.
11152         * lib/arpa_inet.in.h: Include <features.h>.
11153         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
11154         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
11155         Reported by Mike Frysinger <vapier@gentoo.org>.
11156
11157         Ensure that <features.h> is included before __GLIBC__ is tested.
11158         * build-aux/link-warning.h: Include <features.h>.
11159         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
11160         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
11161         Reported by Mike Frysinger <vapier@gentoo.org>.
11162
11163         Ensure that <features.h> is included before __GLIBC__ is tested.
11164         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
11165         Reported by Mike Frysinger <vapier@gentoo.org>.
11166
11167 2010-11-20  Bruno Haible  <bruno@clisp.org>
11168
11169         memmem: Fix autoconf test.
11170         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
11171
11172 2010-11-20  Bruno Haible  <bruno@clisp.org>
11173
11174         Port to uClibc.
11175         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
11176         * lib/fcntl.in.h: Likewise.
11177         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
11178         * lib/mbrtowc.c (mbrtowc): Likewise.
11179         * lib/relocatable.c (find_shared_library_fullname): Likewise.
11180         * lib/strerror_r.c: Likewise.
11181         * lib/unistr/u8-strnlen.c: Likewise.
11182         * lib/vasnprintf.c (decimal_point_char): Likewise.
11183         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11184         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11185         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11186         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11187         * tests/test-sigaction.c (handler, main): Likewise.
11188         * lib/freading.h: Treat uClibc like a non-glibc platform.
11189         * lib/freading.c: Likewise.
11190         * lib/gettext.h: Likewise.
11191         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
11192         Likewise.
11193         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
11194         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11195         * lib/propername.c (proper_name_utf8): Likewise.
11196         * lib/spawn.in.h: Likewise.
11197         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
11198         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
11199         mem_cd_iconveh_internal): Likewise.
11200         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
11201         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11202         strstr, strcasestr): Likewise.
11203         * lib/unicodeio.c (unicode_to_mb): Likewise.
11204         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
11205         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
11206         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
11207         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
11208         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
11209         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
11210         * lib/unistr/u8-stpncpy.c: Likewise.
11211         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11212         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
11213         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11214         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11215         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11216         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
11217         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
11218         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
11219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11220         Likewise.
11221         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11222         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11223         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11224         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11225         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11226         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11227         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11228         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11229         * tests/test-getopt.h (OPTIND_MIN): Likewise.
11230         * tests/test-striconveha.c (main): Likewise.
11231         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11232         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
11233         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
11234         * doc/posix-functions/getline.texi: Likewise.
11235         Reported by Mike Frysinger <vapier@gentoo.org>.
11236
11237 2010-11-20  Bruno Haible  <bruno@clisp.org>
11238
11239         nproc: Fix condition.
11240         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11241         HAVE_PTHREAD_AFFINITY_NP.
11242
11243 2010-11-20  Bruno Haible  <bruno@clisp.org>
11244
11245         Fix a comment.
11246         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11247
11248 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11249
11250         ftoastr: don't assume snprintf
11251         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11252         Implement a subset of snprintf here, by using sprintf safely.
11253         * modules/ftoastr (Depends-on): Remove snprintf.
11254
11255 2010-11-19  Jim Meyering  <meyering@redhat.com>
11256
11257         test-rename.h: fix compilation failure
11258         * tests/test-rename.h (test_rename): Add omitted "}".
11259
11260 2010-11-17  Jim Meyering  <meyering@redhat.com>
11261
11262         maint.mk: add a URL discussing the no-@acronym policy
11263         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11264
11265 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11266
11267         ftoastr: depend on snprintf, improve comments
11268         * lib/ftoastr.c: Also mention Loitsch's draft.
11269         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11270         needed in the current implementation, but it might simplify
11271         speeding up the code later.
11272         * modules/ftoastr: Depend on snprintf; this improves portability.
11273         Suggested by Bruno Haible in the same email.
11274
11275         ftoastr: port to hosts lacking strtof and strtold
11276         Problem reported by Bruno Haible in
11277         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11278         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11279         environment and strtold (and presumably strtof) are not available.
11280         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11281         (configure.ac): Require gl_C99_STRTOLD.
11282
11283 2010-11-18  Bruno Haible  <bruno@clisp.org>
11284
11285         c-strtold: Avoid link error on AIX 7.
11286         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11287         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11288         (gl_C_STRTOLD): Test whether strtold_l exists.
11289         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11290
11291 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11292
11293         intprops: new macro INT_BITS_STRLEN_BOUND
11294         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11295         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11296         not exposed.  Also, it uses a slightly tighter bound than before;
11297         though this makes no practical difference, we might as well be as
11298         tight as we easily can.
11299
11300         ftoastr: new module, for lossless conversion of floats to short strings
11301         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11302         * modules/ftoastr: New files.
11303
11304 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11305
11306         bootstrap: port to Solaris sed
11307         * build-aux/bootstrap (get_version): Port to Solaris sed.
11308         See Ralf Wildenhues's note in
11309         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11310
11311 2010-11-14  Jim Meyering  <meyering@redhat.com>
11312
11313         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11314         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11315         and move definition closer to sole use.
11316
11317 2010-11-13  Jim Meyering  <meyering@redhat.com>
11318
11319         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11320         Now we require at least autoconf-2.59, which means the work-around
11321         is no longer needed.
11322         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11323         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11324         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11325         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11326         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11327
11328 2010-11-13  Bruno Haible  <bruno@clisp.org>
11329
11330         rename, renameat: Avoid test failures at NFS mounted locations.
11331         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11332         functions.
11333         (test_rename): Use assert_nonexistent.
11334         * tests/test-rename.c: Include <dirent.h>.
11335         * tests/test-renameat.c: Likewise.
11336         Reported by Gary V. Vaughan <gary@gnu.org>.
11337
11338         rename, renameat: Document Linux bug with NFS
11339         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11340         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11341         * doc/posix-functions/renameat.texi: Likewise.
11342         Suggested by Eric Blake.
11343
11344 2010-11-13  Bruno Haible  <bruno@clisp.org>
11345
11346         rename test: Add comments.
11347         * tests/test-rename.h (test_rename): Add structure and comments.
11348
11349 2010-11-13  Eric Blake  <eblake@redhat.com>
11350
11351         maintainer-makefile: cover a few more files
11352         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11353         scripts generated within C files, for libvirt.
11354
11355 2010-11-13  Bruno Haible  <bruno@clisp.org>
11356
11357         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11358         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11359         character, return the number of bytes that belong together, not always
11360         1.
11361         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11362         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11363         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11364         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11365         number of bytes of an invalid character.
11366         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11367         (main): Invoke it.
11368         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11369         results.
11370         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11371         malformed byte sequences.
11372         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11373         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11374         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11375         Reported by Ben Pfaff and Paolo Bonzini.
11376
11377 2010-11-13  Bruno Haible  <bruno@clisp.org>
11378
11379         openat: Work around glibc bug with fchownat() and empty file names.
11380         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11381         (gl_FUNC_FCHOWNAT): Invoke it.
11382         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11383         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11384         Reported by Gary V. Vaughan <gary@gnu.org>.
11385
11386 2010-11-13  Bruno Haible  <bruno@clisp.org>
11387
11388         openat: Ensure autoconf macro ordering.
11389         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11390         gl_USE_SYSTEM_EXTENSIONS.
11391         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11392
11393 2010-11-13  Bruno Haible  <bruno@clisp.org>
11394
11395         Update comments.
11396         * lib/unistr/u8-check.c: Update file name in comments.
11397         * lib/unistr/u8-mblen.c: Likewise.
11398         * lib/unistr/u8-prev.c: Likewise.
11399         * lib/unistr/u8-strmblen.c: Likewise.
11400         * lib/unistr/u8-strmbtouc.c: Likewise.
11401
11402 2010-11-13  Jim Meyering  <meyering@redhat.com>
11403
11404         tests: avoid test failure on Solaris 10 due to lack of PATH export
11405         * tests/test-update-copyright.sh: Don't forget to export PATH.
11406
11407         init.sh: ensure that IFS is defined, just in case...
11408         * tests/init.sh (setup_): Ensure that IFS is defined,
11409         so that saving and restoring it works as expected.  This
11410         appears to be useful at least for an old version of dash
11411         from a long time ago (RH 6).  See here for details:
11412         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11413
11414         maint.mk: tighten "test a == b" check
11415         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11416         test to files that contain something like #!/bin/sh.
11417         Without this, coreutils would get two false positives in
11418         the comments of C source files.
11419
11420 2010-11-12  Eric Blake  <eblake@redhat.com>
11421
11422         bootstrap: fix typo in previous attempt
11423         * build-aux/bootstrap (buildreq): Correct the grouping.
11424         Reported by Paul Eggert.
11425
11426         maintainer-makefile: prohibit test x == x
11427         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11428         Based on a report by Matthias Bolte.
11429
11430         bootstrap: allow FreeBSD gzip
11431         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11432         which has no '.' and goes to stderr.
11433         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11434         Reported by Matthias Bolte.
11435
11436         maintainer-makefile: check for i18n setup
11437         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11438         will likely work.
11439
11440 2010-11-12  Bruno Haible  <bruno@clisp.org>
11441
11442         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11443         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11444         * lib/nanosleep.c (nanosleep): Likewise.
11445
11446 2010-11-11  Bruno Haible  <bruno@clisp.org>
11447
11448         fcntl-h: Fix for use of C++ on glibc systems.
11449         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11450         also on glibc systems in C++ mode.
11451         Reported by Gary V. Vaughan <gary@gnu.org>.
11452
11453 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11454
11455         mknod: avoid false failure with dash
11456         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11457
11458 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11459
11460         unlink: Fix "is it should" typo in diagnostic.
11461         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11462         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11463
11464 2010-11-11  Bruno Haible  <bruno@clisp.org>
11465
11466         Tests for module 'strerror_r-posix'.
11467         * modules/strerror_r-posix-tests: New file.
11468         * tests/test-strerror_r.c: New file.
11469         * tests/test-string-c++.cc: Check the signature of strerror_r.
11470
11471         New module 'strerror_r-posix'.
11472         * lib/string.in.h (strerror_r): New declaration.
11473         * lib/strerror_r.c: New file.
11474         * m4/strerror_r.m4: New file.
11475         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11476         of strerror_r.
11477         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11478         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11479         * modules/strerror_r-posix: New file.
11480         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11481         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11482         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11483         portability problems.
11484
11485 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11486
11487         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11488         line is also considered for output. Quoted function name in shell
11489         command, so temporary files for functions like MyClass::operator()
11490         are removed correctly without errors.
11491
11492 2010-11-09  Bruno Haible  <bruno@clisp.org>
11493
11494         * doc/posix-functions/strerror.texi: List more failing platforms.
11495
11496         * doc/posix-functions/strerror.texi: Add a comment.
11497
11498 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11499
11500         fdopendir: fix bug on MacOS X when low on file descriptors
11501
11502         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11503         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11504         All callers changed.
11505         (fdopendir): Invoke save_cwd at the top level, not after using
11506         multiple dup() calls to use up file descriptors.  Then retry
11507         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11508         less than the maximum number of open file descriptors, because
11509         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11510         on Mac OS X 10.6.4 for tar 1.24
11511         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11512         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11513         and for tar 1.25
11514         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11515
11516 2010-11-07  Bruno Haible  <bruno@clisp.org>
11517
11518         vasnprintf: Support I flag on glibc systems.
11519         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11520         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11521         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11522         snprintf function.
11523         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11524         glibc systems.
11525         * tests/test-vasnprintf-posix3.c: New file.
11526         * modules/vasnprintf-posix-tests (Files): Add it.
11527         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11528
11529 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11530
11531         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11532         * MODULES.html.sh: For compiler warnings, use name
11533         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11534
11535 2010-11-05  Eric Blake  <eblake@redhat.com>
11536
11537         ceil, floor: avoid spurious failure with icc
11538         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11539         [denormals-as-zero] when optimizing without -mieee-fp option.
11540         * tests/test-floorf2.c (floorf_reference): Likewise.
11541         * tests/test-ceilf1.c (dummy): New function.
11542         (main): Use it to outsmart icc's optimization.
11543         * tests/test-floorf1.c (dummy, main): Likewise.
11544
11545         tests: require working signbit
11546         * modules/ceilf-tests (Depends-on): Add signbit.
11547         * modules/ceill-tests (Depends-on): Likewise.
11548         * modules/floorf-tests (Depends-on): Likewise.
11549         * modules/floorl-tests (Depends-on): Likewise.
11550         * modules/round-tests (Depends-on): Likewise.
11551         * modules/roundf-tests (Depends-on): Likewise.
11552         * modules/roundl-tests (Depends-on): Likewise.
11553         * modules/trunc-tests (Depends-on): Likewise.
11554         * modules/truncf-tests (Depends-on): Likewise.
11555         * modules/truncl-tests (Depends-on): Likewise.
11556
11557         strtod: work around icc bug
11558         * lib/strtod.c (minus_zero): Define to working value.
11559         (strtod): Use it to avoid icc bug.
11560
11561         copysign: enhance tests
11562         * modules/copysign-tests (Files): Add minus-zero.h.
11563         * tests/test-copysign.c (main): Also test zeros.
11564
11565 2010-11-04  Eric Blake  <eblake@redhat.com>
11566
11567         ceil, floor, round, trunc: enhance tests of -0
11568         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11569         * tests/test-ceill.c (main): Likewise.
11570         * tests/test-floorf1.c (main): Likewise.
11571         * tests/test-floorl.c (main): Likewise.
11572         * tests/test-round1.c (main): Likewise.
11573         * tests/test-roundf1.c (main): Likewise.
11574         * tests/test-roundl.c (main): Likewise.
11575         * tests/test-trunc1.c (main): Likewise.
11576         * tests/test-truncf1.c (main): Likewise.
11577         * tests/test-truncl.c (main): Likewise.
11578
11579 2010-11-04  Eric Blake  <eblake@redhat.com>
11580
11581         frexp, tests: work around ICC bug with -zero
11582         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11583         works with more compilers.
11584         * tests/minus-zero.h: New file.
11585         * modules/ceilf-tests (Files): Include it.
11586         * modules/ceill-tests (Files): Likewise.
11587         * modules/floorf-tests (Files): Likewise.
11588         * modules/floorl-tests (Files): Likewise.
11589         * modules/frexp-nolibm-tests (Files): Likewise.
11590         * modules/frexp-tests (Files): Likewise.
11591         * modules/frexpl-nolibm-tests (Files): Likewise.
11592         * modules/frexpl-tests (Files): Likewise.
11593         * modules/isnan-tests (Files): Likewise.
11594         * modules/isnand-nolibm-tests (Files): Likewise.
11595         * modules/isnand-tests (Files): Likewise.
11596         * modules/isnanf-nolibm-tests (Files): Likewise.
11597         * modules/isnanf-tests (Files): Likewise.
11598         * modules/isnanl-nolibm-tests (Files): Likewise.
11599         * modules/isnanl-tests (Files): Likewise.
11600         * modules/round-tests (Files): Likewise.
11601         * modules/roundf-tests (Files): Likewise.
11602         * modules/roundl-tests (Files): Likewise.
11603         * modules/ldexpl-tests (Files): Likewise.
11604         * modules/signbit-tests (Files): Likewise.
11605         * modules/snprintf-posix-tests (Files): Likewise.
11606         * modules/sprintf-posix-tests (Files): Likewise.
11607         * modules/strtod-tests (Files): Likewise.
11608         * modules/trunc-tests (Files): Likewise.
11609         * modules/truncf-tests (Files): Likewise.
11610         * modules/truncl-tests (Files): Likewise.
11611         * modules/vsnprintf-posix-tests (Files): Likewise.
11612         * modules/vsprintf-posix-tests (Files): Likewise.
11613         * modules/vasnprintf-posix-tests (Files): Likewise.
11614         * modules/vasprintf-posix-tests (Files): Likewise.
11615         * tests/test-ceilf1.c (main): Use it.
11616         * tests/test-ceill.c (main): Likewise.
11617         * tests/test-floorf1.c (main): Likewise.
11618         * tests/test-floorl.c (main): Likewise.
11619         * tests/test-frexp.c (main): Likewise.
11620         * tests/test-frexpl.c (main): Likewise.
11621         * tests/test-isnan.c (main): Likewise.
11622         * tests/test-isnand.h (main): Likewise.
11623         * tests/test-isnanf.h (main): Likewise.
11624         * tests/test-isnanl.h (main): Likewise.
11625         * tests/test-ldexpl.c (main): Likewise.
11626         * tests/test-round.c (main): Likewise.
11627         * tests/test-roundf.c (main): Likewise.
11628         * tests/test-roundl.c (main): Likewise.
11629         * tests/test-signbit.c (test_signbitf, test_signbitd)
11630         (test_signbitl): Likewise.
11631         * tests/test-snprintf-posix.h (test_function): Likewise.
11632         * tests/test-sprintf-posix.h (test_function): Likewise.
11633         * tests/test-strtod.c (main): Likewise.
11634         * tests/test-trunc1.c (main): Likewise.
11635         * tests/test-truncf1.c (main): Likewise.
11636         * tests/test-truncl.c (main): Likewise.
11637
11638         isnanl: work around icc bug
11639         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11640
11641 2010-11-03  Eric Blake  <eblake@redhat.com>
11642
11643         tests: fix compiler warnings
11644         * tests/test-getopt.h (test_getopt): Fix condition.
11645         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11646         * tests/test-pipe2.c (main): Likewise.
11647         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11648
11649         utimens: fix broken m4 test
11650         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11651
11652 2010-10-28  Bruno Haible  <bruno@clisp.org>
11653
11654         posix_spawn*, getdtablesize: Relax license.
11655         * modules/posix_spawn (License): Change to LGPLv2+.
11656         * modules/posix_spawnp (License): Likewise.
11657         * modules/posix_spawn-internal (License): Likewise.
11658         * modules/posix_spawnattr_init (License): Likewise.
11659         * modules/posix_spawnattr_getflags (License): Likewise.
11660         * modules/posix_spawnattr_setflags (License): Likewise.
11661         * modules/posix_spawnattr_getpgroup (License): Likewise.
11662         * modules/posix_spawnattr_setpgroup (License): Likewise.
11663         * modules/posix_spawnattr_getschedparam (License): Likewise.
11664         * modules/posix_spawnattr_setschedparam (License): Likewise.
11665         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11666         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11667         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11668         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11669         * modules/posix_spawnattr_getsigmask (License): Likewise.
11670         * modules/posix_spawnattr_setsigmask (License): Likewise.
11671         * modules/posix_spawnattr_destroy (License): Likewise.
11672         * modules/posix_spawn_file_actions_init (License): Likewise.
11673         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11674         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11675         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11676         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11677         * modules/getdtablesize (License): Likewise.
11678         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11679
11680 2010-10-26  Bruno Haible  <bruno@clisp.org>
11681
11682         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11683         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11684         Cygwin and mingw.
11685         Suggested by Eric Blake.
11686
11687 2010-10-26  Bruno Haible  <bruno@clisp.org>
11688
11689         stdio: Work around compilation error due to renameat() on Solaris 10.
11690         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11691         * lib/renameat.c: Don't include <unistd.h> here.
11692         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11693         Reported by Paul Eggert and Eric Blake.
11694
11695 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11696
11697         renameat: port to Solaris 10, which declares renameat in unistd.h
11698
11699         * lib/renameat.c: Include unistd.h before stdio.h, because
11700         Solaris 10 declares renameat in unistd.h.  Problem encountered
11701         when building GNU tar 1.24 on Solaris 10.
11702
11703 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11704
11705         fdopendir: fix C89 compilation
11706         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11707         compilers.
11708
11709 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11710
11711         inttostr: simplify by removing unnecessary redundancy
11712         * lib/anytostr.c: Don't include verify.h.
11713         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11714         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11715         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11716         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11717         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11718         Likewise.
11719         * modules/inttostr (Depends-on): Remove 'verify'.
11720
11721 2010-10-23  Bruno Haible  <bruno@clisp.org>
11722
11723         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11724         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11725         Reported by Eric Blake.
11726
11727 2010-10-23  Bruno Haible  <bruno@clisp.org>
11728
11729         Tests: Fix LOCALE_JA on MirBSD 10.
11730         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11731         to an UTF-8 locale.
11732         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11733         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11734         Reported by Eric Blake.
11735
11736 2010-10-21  Bruno Haible  <bruno@clisp.org>
11737
11738         nl_langinfo test: Avoid test failure on NetBSD 5.
11739         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11740         Reported by Eric Blake.
11741
11742 2010-10-21  Eric Blake  <eblake@redhat.com>
11743
11744         c-stack: work around libsigsegv 2.8 bug
11745         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11746         overflow on at least PowerPC64.
11747
11748 2010-10-17  Bruno Haible  <bruno@clisp.org>
11749
11750         userspec: Drop redundant file.
11751         * modules/userspec (Files): Remove lib/inttostr.h.
11752
11753 2010-10-17  Bruno Haible  <bruno@clisp.org>
11754
11755         nl_langinfo tests: Silence some warnings.
11756         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11757         Reported by Jim Meyering.
11758
11759 2010-10-17  Bruno Haible  <bruno@clisp.org>
11760
11761         Make use of GCC's attribute __alloc_size__.
11762         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11763         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11764         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11765         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11766         __alloc_size__.
11767         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11768         Suggested by Jim Meyering.
11769
11770 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11771
11772         bootstrap: anchor .gitignore entries.
11773         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11774         with...
11775         (insert_vc_ignore): ... this new function, which prepends `/' to
11776         all .gitignore entries before passing them to
11777         insert_sorted_if_absent.
11778
11779 2010-10-16  Bruno Haible  <bruno@clisp.org>
11780
11781         nextafter: Fix configure check.
11782         * modules/nextafter (configure.ac): Correct expected prototype.
11783
11784 2010-10-16  Bruno Haible  <bruno@clisp.org>
11785
11786         termios: Update documentation.
11787         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11788
11789 2010-10-16  Bruno Haible  <bruno@clisp.org>
11790
11791         tests: Make them compile with TinyCC.
11792         * tests/test-strstr.c (main): Remove parentheses around array
11793         initializer.
11794
11795 2010-10-15  Eric Blake  <eblake@redhat.com>
11796
11797         ignore-value: make header idempotent
11798         * lib/ignore-value.h: Add double-inclusion guards.
11799         Reported by Stefan Berger.
11800
11801 2010-10-15  Jim Meyering  <meyering@redhat.com>
11802
11803         GNUmakefile: handle "stable" target, not "major"
11804         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11805         lists in maint.mk and announce-gen.  Without this, "make stable"
11806         would fail to ensure that $(VERSION) is up to date.
11807
11808 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11809
11810         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11811         & co.
11812
11813 2010-10-14  Bruno Haible  <bruno@clisp.org>
11814
11815         vasnprintf: Don't set errno to 0.
11816         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11817         block that sets it to 0.
11818         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11819
11820 2010-10-14  Bruno Haible  <bruno@clisp.org>
11821
11822         socketlib: Fix.
11823         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11824         gl_PREREQ_SYS_H_WINSOCK2.
11825         Reported by Ian Beckwith <ianb@erislabs.net>.
11826
11827 2010-10-13  Jim Meyering  <meyering@redhat.com>
11828
11829         test-select-stdin.c: avoid warn_unused_result warnings
11830         * tests/test-select-stdin.c: Include "macros.h".
11831         ASSERT that read and fflush succeed.
11832
11833 2010-10-13  Jim Meyering  <meyering@redhat.com>
11834
11835         git-version-gen: do require git-VC'd files in cwd
11836         * build-aux/git-version-gen: Reject a git version string
11837         if there are no commits associated with the current directory.
11838         This avoids an unlikely false-positive (unrelated dir whose parent
11839         repository also contains a tag matching v*), as pointed out
11840         by Giuseppe Scrivano in
11841         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11842
11843 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11844
11845         argv-iter: omit nonconforming declaration
11846         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11847         enum arg_iter_err declaration, which doesn't conform to C99.
11848         Solaris 10 cc warns about this.
11849
11850 2010-10-13  Eric Blake  <eblake@redhat.com>
11851
11852         termios: fix compilation on mingw
11853         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11854         (gl_TERMIOS_H): Adjust it on mingw.
11855         * modules/termios (Makefile.am): Substitute new key.
11856         * lib/termios.in.h (includes): Make include_next conditional.
11857         * doc/posix-headers/termios.texi (termios.h): Update
11858         documentation.
11859         Reported by Daniel P. Berrange.
11860
11861 2010-10-13  Jim Meyering  <meyering@redhat.com>
11862
11863         git-version-gen: don't require that .git/ be in the current dir
11864         * build-aux/git-version-gen: Adjust this script so that it works
11865         when run from any working directory beneath the top-level .git/-
11866         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11867         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11868
11869         test-select: avoid warn_unused_result warnings
11870         * tests/test-select.c: Include "macros.h".
11871         ASSERT that each call to read, write, and pipe succeeds.
11872         While not technically required, also check each "close".
11873         * modules/select-tests (Files): Add tests/macros.h.
11874
11875         test-symlinkat: remove declaration of unused local
11876         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11877
11878         test-inttostr: avoid shadowing warnings
11879         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11880         and use malloc rather than the stack for the same reason as
11881         mentioned in the comment justifying the other allocation.
11882
11883 2010-10-11  Bruno Haible  <bruno@clisp.org>
11884
11885         stdlib: Allow multiple gnulib generated replacements to coexist.
11886         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11887         Reported by Sam Steingold <sds@gnu.org>.
11888
11889 2010-10-11  Jim Meyering  <meyering@redhat.com>
11890
11891         fix a documentation typo
11892         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11893
11894 2010-10-11  Eric Blake  <eblake@redhat.com>
11895
11896         futimens: work around Solaris 11 bug
11897         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11898         * tests/test-futimens.h (test_futimens): Enhance, rather than
11899         weaken test.
11900         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11901
11902 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11903
11904         Indentation.
11905         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11906         higher-level operators more to the left.
11907
11908 2010-10-11  Jim Meyering  <meyering@redhat.com>
11909
11910         test-futimens: avoid unwarranted test failure on Solaris 5.11
11911         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11912         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11913         because it tries to dereference the NULL name argument.
11914
11915 2010-10-11  Bruno Haible  <bruno@clisp.org>
11916
11917         Indentation.
11918         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11919         indentation.
11920
11921 2010-10-11  Jim Meyering  <meyering@redhat.com>
11922
11923         spawn.in.h: make indentation consistent with parentheses
11924         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11925         Make indentation consistent with parentheses.
11926
11927 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11928
11929         Fix mismatched parens in previous commit
11930         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11931         parens.
11932
11933 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11934
11935         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11936
11937         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11938         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11939         * lib/malloca.c: Include "verify.h".
11940         (verify1): Remove, replacing with a verify call.
11941         * lib/relocwrapper.c (verify1): Likewise.
11942         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11943         Likewise.
11944         * modules/malloca (Depends-on): Add 'verify'.
11945         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11946         * modules/vasnprintf (Depends-on): Add 'verify'.
11947         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11948         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11949         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11950         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11951         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11952         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11953         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11954
11955         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11956
11957         Formerly the style was sometimes 2*X - 1, because the C standard
11958         was wrongly thought to disallow ?: in integral constant expressions.
11959         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11960         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11961         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11962         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11963         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11964         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11965         verify that time_t cannot be floating.
11966
11967 2010-10-08  Eric Blake  <eblake@redhat.com>
11968
11969         time: enforce recent POSIX ruling that time_t is integral
11970         * lib/time.in.h (__time_t_must_be_integral): Detect any
11971         problematic systems, allowing the rest of gnulib to assume POSIX.
11972
11973 2010-10-08  Jim Meyering  <meyering@redhat.com>
11974
11975         fdopendir: fix a bug on systems lacking openat and /proc support
11976         OpenBSD 4.7 is one such system.  The most noticeable effect was
11977         failure of any application making nontrivial use of fts: rm, du,
11978         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11979           ./rm: traversal failed: `a': Bad file descriptor
11980         Debugging that, you see that even though FD 6 was closed just
11981         prior to the opendir call in fd_clone_opendir, its resulting
11982         dir->dd_fd was 8, rather than the expected value of 6:
11983
11984         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11985         93                close (fd);
11986         (gdb) n
11987         94                dir = fd_clone_opendir (dupfd);
11988         (gdb) n
11989         95                saved_errno = errno;
11990         (gdb) p dir->dd_fd
11991         $11 = 8
11992
11993         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11994         The problem is that on OpenBSD, fd_clone_opendir has to resort
11995         to using the old-style save/restore CWD mechanism, due to its
11996         lack of openat/proc support, and *that* would steal the FD (6)
11997         that opendir was supposed to use.
11998
11999         The fix is to squirrel away the desired FD so that save_cwd uses a
12000         different one, and then free the dest FD right before calling opendir.
12001         That guarantees opendir will use the required file descriptor.
12002
12003         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
12004
12005 2010-10-08  Bruno Haible  <bruno@clisp.org>
12006
12007         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
12008         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
12009
12010 2010-10-08  Bruno Haible  <bruno@clisp.org>
12011
12012         nanosleep: Make replacement POSIX compliant.
12013         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
12014         is out of range.
12015         Reported by Jim Meyering.
12016
12017 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12018
12019         bootstrap: add hook for altering gnulib.mk, for Bison
12020         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
12021         the Bison bootstrapping process can rewrite file names and variables
12022         in this file before later parts of 'bootstrap' use the file.
12023         Bison wants to include lib/gnulib.mk from the top-level makefile,
12024         so it needs the file names in this file to be relative to the top
12025         level, not relative to lib; plus it needs variable names to be
12026         rewritten.
12027         (slurp): Use the new function.
12028
12029         bootstrap: reformat for readability
12030         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
12031
12032 2010-10-08  Eric Blake  <eblake@redhat.com>
12033
12034         docs: update cygwin progress
12035         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
12036         1.7.7.
12037         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
12038         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
12039         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
12040         * doc/posix-functions/carg.texi (carg): Likewise.
12041         * doc/posix-functions/cargf.texi (cargf): Likewise.
12042         * doc/posix-functions/casin.texi (casin): Likewise.
12043         * doc/posix-functions/casinf.texi (casinf): Likewise.
12044         * doc/posix-functions/casinh.texi (casinh): Likewise.
12045         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
12046         * doc/posix-functions/catan.texi (catan): Likewise.
12047         * doc/posix-functions/catanf.texi (catanf): Likewise.
12048         * doc/posix-functions/catanh.texi (catanh): Likewise.
12049         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
12050         * doc/posix-functions/ccos.texi (ccos): Likewise.
12051         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
12052         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
12053         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
12054         * doc/posix-functions/cexp.texi (cexp): Likewise.
12055         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
12056         * doc/posix-functions/cimag.texi (cimag): Likewise.
12057         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
12058         * doc/posix-functions/clog.texi (clog): Likewise.
12059         * doc/posix-functions/clogf.texi (clogf): Likewise.
12060         * doc/posix-functions/conj.texi (conj): Likewise.
12061         * doc/posix-functions/conjf.texi (conjf): Likewise.
12062         * doc/posix-functions/cpow.texi (cpow): Likewise.
12063         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
12064         * doc/posix-functions/cproj.texi (cproj): Likewise.
12065         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
12066         * doc/posix-functions/creal.texi (creal): Likewise.
12067         * doc/posix-functions/crealf.texi (crealf): Likewise.
12068         * doc/posix-functions/csin.texi (csin): Likewise.
12069         * doc/posix-functions/csinf.texi (csinf): Likewise.
12070         * doc/posix-functions/csinh.texi (csinh): Likewise.
12071         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
12072         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
12073         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
12074         * doc/posix-functions/ctan.texi (ctan): Likewise.
12075         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
12076         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
12077         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
12078         * doc/posix-headers/complex.texi (complex.h): Likewise.
12079
12080 2010-10-07  Jim Meyering  <meyering@redhat.com>
12081
12082         parse-datetime: avoid compilation failure on OpenBSD 4.7
12083         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
12084         This works around a compilation failure on OpenBSD 4.7:
12085         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
12086
12087 2010-10-07  Eric Blake  <eblake@redhat.com>
12088
12089         docs: update cygwin progress
12090         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
12091         1.7.6.
12092         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12093         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
12094         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
12095         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
12096         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
12097         Likewise.
12098         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
12099         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
12100         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
12101         Likewise.
12102         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
12103         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
12104         Likewise.
12105         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
12106         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
12107         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
12108         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
12109         Likewise.
12110         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
12111         Likewise.
12112         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
12113
12114         docs: update parse-datetime history
12115         * doc/parse-datetime.texi (Authors of parse_datetime): Better
12116         documentation of this function's history and alternatives.
12117
12118         cygwin: use more robust version check
12119         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
12120         exclude an eventual cygwin 1.9.1.
12121         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12122         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12123         (gl_FUNC_STRCASESTR): Likewise.
12124         Reported by Bruno Haible.
12125
12126 2010-10-06  Bruno Haible  <bruno@clisp.org>
12127
12128         string, sys_select: Avoid #including large headers unless necessary.
12129         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
12130         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
12131         OSF/1, BeOS, Haiku.
12132         Reported by Jim Meyering.
12133
12134 2010-10-05  Eric Blake  <eblake@redhat.com>
12135
12136         memmem, strstr, strcasestr: fix bug with long periodic needle
12137         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
12138         periodic needle having false positive.
12139         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
12140         and cygwin 1.7.7.
12141         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
12142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12143         (gl_FUNC_STRCASESTR): Likewise.
12144         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12145         * tests/test-memmem.c (main): Expose the bug.
12146         * tests/test-strcasestr.c (main): Likewise.
12147         * tests/test-strstr.c (main): Likewise.
12148         * tests/test-c-strcasestr.c (main): Likewise.
12149         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
12150         * doc/posix-functions/strstr.texi (strstr): Likewise.
12151         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12152         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
12153
12154 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12155
12156         parse-datetime: do some more renaming
12157         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
12158         parse_datetime, not get_date.  Mention the renaming.
12159         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
12160         in comments.
12161         * m4/bison.m4: Likewise.
12162
12163 2010-10-05  Eric Blake  <eblake@redhat.com>
12164
12165         parse-datetime: better name than get_date
12166         * NEWS: Reword the deprecation notice.
12167         * modules/get_date: Rename to modules/parse-datetime.
12168         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
12169         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
12170         * lib/get_date.y: Rename to lib/parse-datetime.y.
12171         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
12172         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
12173         * doc/getdate.texi: Provide fallback wrapper.
12174         * lib/getdate.h: Move guts, and wrap...
12175         * lib/parse-datetime.h: ...new file.
12176         * lib/parse-datetime.y (get_date): Rename...
12177         (parse_datetime): ...to this.
12178         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
12179         (gl_PARSE_DATETIME): ...to this.
12180         * doc/posix-functions/getdate.texi (get_date): Provide fallback
12181         documentation.
12182         * modules/getdate (Files): Provide fallback docs and header.
12183         (Notice, Depends-on): Update references.
12184         * tests/test-parse-datetime.c: Likewise.
12185         * DEPENDENCIES: Likewise.
12186         * MODULES.html.sh (Date and time <time.h>): Likewise.
12187         * doc/parse-datetime.texi (Date input formats)
12188         (Authors of parse_datetime): Likewise.
12189         * modules/parse-datetime (Files, configure.ac, Makefile.am)
12190         (Include): Likewise.
12191         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
12192         * gnulib-tool: Likewise.
12193         * m4/bison.m4 (gl_BISON): Likewise.
12194         Suggested by Bruno Haible.
12195
12196 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12197
12198         more ports to Solaris tr, which needs [] around ranges
12199         * gnulib-tool: Solaris tr needs [] around ranges.
12200         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12201         * tests/test-pipe-filter-gi1.c (main): Likewise.
12202         * tests/test-pipe-filter-ii1.c (main): Likewise.
12203
12204 2010-10-05  Eric Blake  <eblake@redhat.com>
12205
12206         bootstrap: fix Solaris regression
12207         * build-aux/bootstrap (check_versions): Solaris tr still needs []
12208         around ranges.
12209         Reported by Pádraig Brady.
12210
12211         bootstrap: work with pkg-config
12212         * build-aux/bootstrap (check_versions): Also transliterate - in
12213         prerequisite name.
12214         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
12215         prerequisites that were already found, to avoid confusion.
12216         Reported by Justin Clift.
12217
12218         faccessat: remove unused wrappers
12219         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
12220         presence of these wrappers dragged in -lgen on Solaris.
12221         Reported by Clemens Brogi; fix suggested by Paul Eggert.
12222
12223 2010-10-05  Jim Meyering  <meyering@redhat.com>
12224
12225         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
12226         * Makefile (sc_pragma_columns): New syntax-check rule.
12227
12228 2010-10-04  Bruno Haible  <bruno@clisp.org>
12229
12230         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
12231         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
12232         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
12233         Reported by Bruce Korb and Eric Blake.
12234
12235 2010-10-04  Bruno Haible  <bruno@clisp.org>
12236
12237         threadlib: Make option --with-libpth-prefix work.
12238         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
12239         use $LIBPTH, not just -lpth.
12240
12241 2010-10-04  Bruno Haible  <bruno@clisp.org>
12242
12243         Avoid line length limitation from HP NonStop system header files.
12244         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12245         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12246         * lib/ctype.in.h: Likewise.
12247         * lib/dirent.in.h: Likewise.
12248         * lib/errno.in.h: Likewise.
12249         * lib/fcntl.in.h: Likewise.
12250         * lib/float.in.h: Likewise.
12251         * lib/getopt.in.h: Likewise.
12252         * lib/iconv.in.h: Likewise.
12253         * lib/inttypes.in.h: Likewise.
12254         * lib/langinfo.in.h: Likewise.
12255         * lib/locale.in.h: Likewise.
12256         * lib/math.in.h: Likewise.
12257         * lib/netdb.in.h: Likewise.
12258         * lib/netinet_in.in.h: Likewise.
12259         * lib/poll.in.h: Likewise.
12260         * lib/pthread.in.h: Likewise.
12261         * lib/pty.in.h: Likewise.
12262         * lib/sched.in.h: Likewise.
12263         * lib/se-selinux.in.h: Likewise.
12264         * lib/search.in.h: Likewise.
12265         * lib/signal.in.h: Likewise.
12266         * lib/spawn.in.h: Likewise.
12267         * lib/stdarg.in.h: Likewise.
12268         * lib/stddef.in.h: Likewise.
12269         * lib/stdint.in.h: Likewise.
12270         * lib/stdio.in.h: Likewise.
12271         * lib/stdlib.in.h: Likewise.
12272         * lib/string.in.h: Likewise.
12273         * lib/strings.in.h: Likewise.
12274         * lib/sys_file.in.h: Likewise.
12275         * lib/sys_ioctl.in.h: Likewise.
12276         * lib/sys_select.in.h: Likewise.
12277         * lib/sys_socket.in.h: Likewise.
12278         * lib/sys_stat.in.h: Likewise.
12279         * lib/sys_time.in.h: Likewise.
12280         * lib/sys_times.in.h: Likewise.
12281         * lib/sys_utsname.in.h: Likewise.
12282         * lib/sys_wait.in.h: Likewise.
12283         * lib/sysexits.in.h: Likewise.
12284         * lib/termios.in.h: Likewise.
12285         * lib/time.in.h: Likewise.
12286         * lib/unistd.in.h: Likewise.
12287         * lib/wchar.in.h: Likewise.
12288         * lib/wctype.in.h: Likewise.
12289         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12290         * modules/ctype (Makefile.am): Likewise.
12291         * modules/dirent (Makefile.am): Likewise.
12292         * modules/errno (Makefile.am): Likewise.
12293         * modules/fcntl-h (Makefile.am): Likewise.
12294         * modules/float (Makefile.am): Likewise.
12295         * modules/getopt-posix (Makefile.am): Likewise.
12296         * modules/iconv-h (Makefile.am): Likewise.
12297         * modules/inttypes (Makefile.am): Likewise.
12298         * modules/langinfo (Makefile.am): Likewise.
12299         * modules/locale (Makefile.am): Likewise.
12300         * modules/math (Makefile.am): Likewise.
12301         * modules/netdb (Makefile.am): Likewise.
12302         * modules/netinet_in (Makefile.am): Likewise.
12303         * modules/poll-h (Makefile.am): Likewise.
12304         * modules/pthread (Makefile.am): Likewise.
12305         * modules/pty (Makefile.am): Likewise.
12306         * modules/sched (Makefile.am): Likewise.
12307         * modules/search (Makefile.am): Likewise.
12308         * modules/selinux-h (Makefile.am): Likewise.
12309         * modules/signal (Makefile.am): Likewise.
12310         * modules/spawn (Makefile.am): Likewise.
12311         * modules/stdarg (Makefile.am): Likewise.
12312         * modules/stddef (Makefile.am): Likewise.
12313         * modules/stdint (Makefile.am): Likewise.
12314         * modules/stdio (Makefile.am): Likewise.
12315         * modules/stdlib (Makefile.am): Likewise.
12316         * modules/string (Makefile.am): Likewise.
12317         * modules/strings (Makefile.am): Likewise.
12318         * modules/sys_file (Makefile.am): Likewise.
12319         * modules/sys_ioctl (Makefile.am): Likewise.
12320         * modules/sys_select (Makefile.am): Likewise.
12321         * modules/sys_socket (Makefile.am): Likewise.
12322         * modules/sys_stat (Makefile.am): Likewise.
12323         * modules/sys_time (Makefile.am): Likewise.
12324         * modules/sys_times (Makefile.am): Likewise.
12325         * modules/sys_utsname (Makefile.am): Likewise.
12326         * modules/sys_wait (Makefile.am): Likewise.
12327         * modules/sysexits (Makefile.am): Likewise.
12328         * modules/termios (Makefile.am): Likewise.
12329         * modules/time (Makefile.am): Likewise.
12330         * modules/unistd (Makefile.am): Likewise.
12331         * modules/wchar (Makefile.am): Likewise.
12332         * modules/wctype (Makefile.am): Likewise.
12333
12334 2010-10-04  Bruno Haible  <bruno@clisp.org>
12335
12336         read-file tests: Avoid a test failure on NonStop Kernel.
12337         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12338         a regular file.
12339         Reported by Joachim Schmitz <schmitz@hp.com>.
12340
12341 2010-10-03  Bruno Haible  <bruno@clisp.org>
12342
12343         gnulib-tool: Fixes for --create-testdir with --libtool.
12344         * gnulib-tool (func_get_automake_snippet): Don't augment
12345         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12346         an executable.
12347         (func_create_testdir): Handle module 'alloca' like func_import.
12348         Reported by Bruce Korb <bruce.korb@gmail.com>.
12349
12350 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12351
12352         Avoid some lines longer than 80 characters.
12353         * lib/stdint.in.h: Break long comment lines.
12354         * lib/math.in.h: Likewise.
12355         (_GL_NUM_UINT_WORDS): New macro, for readability.
12356         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12357         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12358         * lib/stdlib.in.h: Likewise.
12359         * lib/spawn.in.h: Likewise.
12360         * lib/sys_socket.in.h: Update an URL.
12361         * lib/sys_stat.in.h: Break long line.
12362
12363 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12364
12365         Improve pmccabe2html.
12366         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12367         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12368         when the sources change. Remove the line in the HTML about "Used
12369         ranges" (which implied that there might be other unused ranges),
12370         rename "Resume" to "Summary" (easier to understand for more users).
12371         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12372         styles, and some unnecessary blank lines.
12373
12374 2010-10-03  Bruno Haible  <bruno@clisp.org>
12375             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12376
12377         acl: Add support for ACLs on NonStop Kernel.
12378         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12379         Check whether the function aclsort() exists.
12380         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12381         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12382         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12383         (acl_nontrivial [HAVE_ACLSORT]: New function.
12384         (file_has_acl): Implement for NonStop Kernel.
12385         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12386         (qset_acl): Implement for NonStop Kernel.
12387         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12388         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12389         (main): Implement for NonStop Kernel.
12390         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12391         Kernel. Handle this flavor.
12392         * tests/test-set-mode-acl.sh: Likewise.
12393         * tests/test-copy-acl.sh: Likewise.
12394         * tests/test-copy-file.sh: Likewise.
12395
12396 2010-10-03  Bruno Haible  <bruno@clisp.org>
12397
12398         Info about ACLs on NonStop Kernel.
12399         * doc/acl-resources.txt: Add info about NonStop Kernel.
12400         References by Joachim Schmitz <schmitz@hp.com>.
12401
12402 2010-10-02  Bruno Haible  <bruno@clisp.org>
12403
12404         Define missing EDQUOT on NonStop Kernel.
12405         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12406         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12407         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12408         missing.
12409         * doc/posix-headers/errno.texi: Mention the NSK bug.
12410         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12411         Reported by Joachim Schmitz <schmitz@hp.com>.
12412
12413 2010-10-02  Bruno Haible  <bruno@clisp.org>
12414
12415         Update doc for POSIX:2008.
12416         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12417         Update URL of POSIX specification.
12418
12419 2010-10-02  Bruno Haible  <bruno@clisp.org>
12420
12421         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12422         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12423         from gnulib, not from Automake.
12424
12425 2010-10-02  Bruno Haible  <bruno@clisp.org>
12426
12427         New module 'system-posix'.
12428         * modules/system-posix: New file.
12429         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12430         module is present.
12431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12432         GNULIB_SYSTEM_POSIX.
12433         * modules/stdlib (Depends-on): Remove sys_wait.
12434         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12435         * doc/posix-functions/system.texi: Mention the new module.
12436         * doc/posix-headers/stdlib.texi: Likewise.
12437         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12438         define test_sys_wait_macros to a no-op.
12439         Reported by Sam Steingold <sds@gnu.org>.
12440
12441 2010-09-30  Bruno Haible  <bruno@clisp.org>
12442
12443         More renaming from 'getdate' to 'get_date'.
12444         * doc/get_date.texi: Renamed from doc/getdate.texi.
12445         * modules/get_date (Files): Update.
12446         * MODULES.html.sh (Date and time <time.h>): Update.
12447         * DEPENDENCIES: Update.
12448         * gnulib-tool: Update comment.
12449         * m4/bison.m4 (gl_BISON): Likewise.
12450         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12451
12452 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12453
12454         bootstrap: support ACLOCAL_FLAGS during aclocal
12455         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12456         can add additional -I dir for third-party .m4 files.
12457
12458 2010-09-30  Eric Blake  <eblake@redhat.com>
12459
12460         bootstrap: use glibtoolize on MacOS
12461         * build-aux/bootstrap (check_versions): Convert libtool into
12462         libtoolize.
12463         (tool search): Move libtool check earlier, and look for
12464         glibtoolize for MacOS.
12465         (gnulib_tool_options): Auto-add --libtool when appropriate.
12466         Reported by Justin Clift.
12467
12468         poll: fix typo that broke test on MacOS
12469         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12470         Reported by Justin Clift.
12471
12472         getdate: rename to get_date
12473         Note: getdate.h is not renamed, to minimize client impact.
12474         * modules/getdate: Mark obsolete.  Move old contents...
12475         * modules/get_date: ...to new module name.
12476         * modules/getdate-tests: Move...
12477         * modules/get_date-tests: ...here.
12478         * m4/getdate.m4: Move...
12479         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12480         * lib/getdate.y: Move...
12481         * lib/get_date.y: ...here.
12482         * tests/test-getdate.c: Move...
12483         * tests/test-get_date.c: ...here.
12484         * doc/posix-functions/getdate.texi (getdate): Update name.
12485         * NEWS: Mention the change.
12486
12487 2010-09-29  Bruno Haible  <bruno@clisp.org>
12488
12489         Separate the module 'waitpid' from the module 'sys_wait'.
12490         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12491         present.
12492         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12493         gl_MODULE_INDICATOR_FOR_TESTS.
12494         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12495         * modules/sys_wait (Depends-on): Remove waitpid.
12496         (Makefile.am): Substitute GNULIB_WAITPID.
12497         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12498         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12499         signature only if the 'waitpid' module is present.
12500         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12501         * NEWS: Mention the change.
12502         * modules/grantpt (Depends-on): Add waitpid.
12503         * modules/wait-process (Depends-on): Likewise.
12504
12505 2010-09-29  Bruno Haible  <bruno@clisp.org>
12506
12507         More tests for module 'sys_wait'.
12508         * modules/sys_wait-c++-tests: New file.
12509         * tests/test-sys_wait-c++.cc: New file.
12510         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12511         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12512
12513 2010-09-29  Bruno Haible  <bruno@clisp.org>
12514
12515         New module 'waitpid'.
12516         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12517         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12518         Don't include <process.h>.
12519         (waitpid): Declare only, using modern idiom.
12520         * m4/waitpid.m4: New file.
12521         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12522         * modules/waitpid: New file.
12523         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12524         (Makefile.am): Update.
12525         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12526
12527 2010-09-28  Bruno Haible  <bruno@clisp.org>
12528
12529         poll: Assume ANSI C.
12530         * lib/poll.c (poll): Use an ANSI C declaration.
12531
12532 2010-09-28  Bruno Haible  <bruno@clisp.org>
12533
12534         poll-h: Create poll.h on all platforms.
12535         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12536         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12537         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12538         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12539         (gl_REPLACE_POLL_H): Don't set POLL_H.
12540         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12541         * modules/poll-h (Depends-on): Add include_next.
12542         (Makefile.am): Create poll.h unconditionally. Substitute also
12543         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12544
12545 2010-09-28  Bruno Haible  <bruno@clisp.org>
12546
12547         Tests for module 'poll-h'.
12548         * modules/poll-h-c++-tests: New file.
12549         * tests/test-poll-h-c++.cc: New file.
12550
12551         Tests for module 'poll-h'.
12552         * modules/poll-h-tests: New file.
12553         * tests/test-poll-h.c: New file.
12554
12555 2010-09-28  Bruno Haible  <bruno@clisp.org>
12556
12557         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12558         * modules/poll-h (Depends-on): Add 'extensions'.
12559
12560 2010-09-28  Bruno Haible  <bruno@clisp.org>
12561
12562         New module 'poll-h'.
12563         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12564         (poll): Use modern idiom.
12565         * modules/poll-h: New file.
12566         * modules/poll (Files): Remove lib/poll.in.h.
12567         (Depends-on): Add poll-h.
12568         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12569         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12570         * m4/poll_h.m4: New file.
12571         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12572         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12573         and invoke gl_REPLACE_POLL_H.
12574         * lib/poll.c: Use common idiom.
12575         * tests/test-poll.c: Likewise.
12576         * doc/posix-headers/poll.texi: Mention the poll-h module.
12577         Suggested by Eric Blake.
12578
12579 2010-09-26  Bruno Haible  <bruno@clisp.org>
12580
12581         sys_wait: Implement WSTOPSIG.
12582         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12583         Reported by Simon Josefsson.
12584
12585 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12586
12587         stdlib, sys_wait: Avoid compilation error on mingw.
12588         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12589
12590 2010-09-26  Bruno Haible  <bruno@clisp.org>
12591
12592         stdlib tests: Avoid code duplication.
12593         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12594         * modules/sys_wait-tests (Files): Likewise.
12595         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12596         * tests/test-stdlib.c: Include test-sys_wait.h.
12597         (main): Invoke test_sys_wait_macros.
12598         * tests/test-sys_wait.c: Include test-sys_wait.h.
12599         (main): Invoke test_sys_wait_macros.
12600
12601 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12602
12603         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12604         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12605         sure Windows sockets are working before calling getaddrinfo.
12606         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12607         * doc/gnulib.texi (Windows sockets): Fix typo.
12608
12609 2010-09-25  Bruno Haible  <bruno@clisp.org>
12610
12611         Tests for module 'regex-quote'.
12612         * modules/regex-quote-tests: New file.
12613         * tests/test-regex-quote.c: New file.
12614
12615         New module 'regex-quote'.
12616         * lib/regex-quote.h: New file.
12617         * lib/regex-quote.c: New file.
12618         * modules/regex-quote: New file.
12619         Suggested by Reuben Thomas <rrt@sc3d.org>.
12620
12621 2010-09-24  Bruno Haible  <bruno@clisp.org>
12622
12623         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12624         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12625
12626 2010-09-23  Bruno Haible  <bruno@clisp.org>
12627
12628         setenv: Relax license.
12629         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12630         Blake.
12631         Requested by Eric Blake.
12632
12633 2010-09-22  Bruno Haible  <bruno@clisp.org>
12634
12635         termios: Relax license.
12636         * modules/termios (License): Change to LGPLv2+.
12637         Requested by Eric Blake.
12638
12639 2010-09-22  Bruno Haible  <bruno@clisp.org>
12640
12641         threadlib: Allow the package to change the default to 'no'.
12642         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12643         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12644         Reported by Paul Eggert.
12645
12646 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12647             Bruno Haible  <bruno@clisp.org>
12648
12649         Fix endless loop in mbmemcasecoll.
12650         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12651         byte.
12652         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12653
12654 2010-09-22  Bruno Haible  <bruno@clisp.org>
12655
12656         Tests for module 'memcoll'.
12657         * modules/memcoll-tests: New file.
12658         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12659
12660         memcoll, xmemcoll: Clarify size vs. length.
12661         * modules/memcoll.c (memcoll0): Clarify specification.
12662         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12663         passed to collate_error.
12664
12665 2010-09-22  Bruno Haible  <bruno@clisp.org>
12666
12667         Tests for module 'memcasecmp'.
12668         * modules/memcasecmp-tests: New file.
12669         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12670
12671 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12672
12673         * lib/pthread.in.h: Add split double-inclusion guard, and include
12674         system <pthread.h> if there is one.  Use @@-style as in other
12675         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12676         pthread.h doesn't.
12677         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12678         (pthread_mutexattr_settype, pthread_mutex_trylock):
12679         New static inline functions, if there's no system <pthread.h>.
12680         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12681         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12682         Approximate with mutexes if the system lacks spinlocks, as in
12683         MacOS.
12684         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12685         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12686         @@-style.  Check for spinlocks separately.
12687         (gl_PTHREAD_DEFAULTS): New macro.
12688         * modules/pthread: Redo to use a more typical style for in.h files.
12689
12690 2010-09-21  Eric Blake  <eblake@redhat.com>
12691
12692         net_if: enhance tests
12693         * tests/test-net_if.c (main): Move signature checks earlier.
12694         Print failures to stderr.
12695         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12696         Document the bug that we do not yet fix.
12697
12698 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12699
12700         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12701         about gnulib, not GSS.
12702
12703 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12704
12705         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12706         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12707         for Emacs.
12708         * build-aux/pmccabe2html: Make Makefile.am example code more
12709         cut-and-paste friendly.
12710
12711 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12712
12713         * tests/test-net_if.c: New file.
12714         * modules/net_if-tests: New file.
12715
12716 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12717
12718         pthread: add pthread_spin_destroy
12719         * lib/pthread.in.h (pthread_spin_destroy): New function.
12720
12721 2010-09-19  Bruno Haible  <bruno@clisp.org>
12722
12723         gnulib-tool: Fix --help output.
12724         * gnulib-tool (func_usage): Fix help message.
12725         Reported by Reuben Thomas <rrt@sc3d.org>.
12726
12727 2010-09-18  Jim Meyering  <meyering@redhat.com>
12728
12729         maint.mk: avoid unexpanded \n in two diagnostics
12730         * top/maint.mk (sc_prohibit_always_true_header_tests):
12731         Don't use a literal \n in a halt=... assignment.  It would not be
12732         expanded, and the two \n bytes would appear in the diagnostic output
12733         rather than the desired newline.  Use halt=$$(printf ... instead.
12734         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12735
12736 2010-09-18  Bruno Haible  <bruno@clisp.org>
12737
12738         netinet_in: Doc tweak.
12739         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12740         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12741
12742 2010-09-18  Jim Meyering  <meyering@redhat.com>
12743
12744         init.sh: correct an outdated comment
12745         * tests/init.sh (create_exe_shims_):  s/function/alias/
12746
12747         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12748         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12749         a file named "*.exe" is removed between the glob expansion and the
12750         processing of that oddly named file.
12751
12752 2010-09-17  Eric Blake  <eblake@redhat.com>
12753
12754         mirbsd: add some more support
12755         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12756         in BSD family.
12757         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12758         devices as OpenBSD.
12759         * m4/host-os.m4 (mirbsd): Add MirBSD.
12760
12761         tests: fix unportable assumption on sys/wait.h
12762         * tests/test-sys_wait.c (main): Relax test.
12763         * tests/test-stdlib.c (main): Likewise.
12764
12765         init.sh: accomodate directory with no .exes
12766         * tests/init.sh: Accomodate directory containing only scripts.
12767
12768         tests: avoid compiler warning
12769         * tests/test-stdlib.c (main): Use the variable.
12770
12771         fdutimens, fdutimensat: update signature, again
12772         * lib/utimens.h (gl_futimens): Delete, and move signature...
12773         (fdutimens): ...here.
12774         (fdutimensat): Rearrange signature.
12775         (lutimensat): Rename variable for clarity.
12776         * lib/fdutimensat.c (fdutimensat): Update signature.
12777         * lib/utimens.c (fdutimens): Likewise.
12778         (gl_futimens): Delete.
12779         (utimens, lutimens): Update callers.
12780         * lib/futimens.c (futimens): Likewise.
12781         * tests/test-fdutimensat.c: Likewise.
12782         * tests/test-utimens.c: Likewise.
12783         * tests/test-futimens.h: Update comment.
12784         * NEWS: Mention this.
12785         Suggested by Paul Eggert.
12786
12787 2010-09-17  Bruno Haible  <bruno@clisp.org>
12788
12789         Take over the maintenance of some older macros from Autoconf.
12790         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12791         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12792         GNU Autoconf.
12793         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12794         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12795
12796 2010-09-17  Eric Blake  <eblake@redhat.com>
12797
12798         fdutimensat: drop atflag validation
12799         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12800         with valid fd, to close a race scenario where futimens is
12801         unsupported and FILE was replaced by a symlink.
12802         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12803         accordingly.
12804         Suggested by Paul Eggert.
12805
12806 2010-09-16  Bruno Haible  <bruno@clisp.org>
12807
12808         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12809         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12810
12811 2010-09-16  Bruno Haible  <bruno@clisp.org>
12812
12813         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12814         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12815         login_tty exists.
12816         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12817
12818 2010-09-16  Bruno Haible  <bruno@clisp.org>
12819
12820         login_tty: Make the replacement code work on BSD systems.
12821         * lib/login_tty.c: Include <sys/ioctl.h>.
12822         (login_tty): Use ioctl TIOCSCTTY when available.
12823         * modules/login_tty (Depends-on): Add sys_ioctl.
12824         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12825
12826 2010-09-16  Bruno Haible  <bruno@clisp.org>
12827
12828         login_tty: Stricter unit test.
12829         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12830         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12831         and tcgetsid() after login_tty.
12832         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12833
12834 2010-09-16  Bruno Haible  <bruno@clisp.org>
12835
12836         New module 'tcgetsid'.
12837         * lib/tcgetsid.c: New file.
12838         * m4/tcgetsid.m4: New file.
12839         * modules/tcgetsid: New file.
12840         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12841         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12842         GNULIB_TCGETSID, HAVE_TCGETSID.
12843         * lib/termios.in.h: Include <sys/types.h>.
12844         (tcgetsid): New declaration.
12845         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12846         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12847         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12848         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12849
12850 2010-09-16  Bruno Haible  <bruno@clisp.org>
12851
12852         Tests for module 'termios'.
12853         * modules/termios-c++-tests: New file.
12854         * modules/termios-tests: New file.
12855         * tests/test-termios-c++.cc: New file.
12856         * tests/test-termios.c: New file.
12857
12858         New module 'termios'.
12859         * modules/termios: New file.
12860         * lib/termios.in.h: New file.
12861         * m4/termios_h.m4: New file.
12862         * doc/posix-headers/termios.texi: Mention the new module.
12863
12864 2010-09-16  Eric Blake  <eblake@redhat.com>
12865
12866         fdutimensat: add an atflag parameter
12867         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12868         * lib/utimens.h (fdutimensat): Update prototype.
12869         * tests/test-fdutimensat.c: Adjust test to match.
12870         * NEWS: Document the change.
12871         Suggested by Paul Eggert.
12872
12873 2010-09-16  Bruno Haible  <bruno@clisp.org>
12874
12875         Fix typos in comments.
12876         * lib/striconveh.h: Fix typo in comment.
12877         * lib/login_tty.c (login_tty): Likewise.
12878
12879 2010-09-15  Bruno Haible  <bruno@clisp.org>
12880
12881         stdlib: clarify MirBSD WEXITSTATUS bug
12882         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12883         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12884
12885 2010-09-15  Eric Blake  <eblake@redhat.com>
12886
12887         stdlib: work around MirBSD WEXITSTATUS bug
12888         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12889         * modules/stdlib (Depends-on): Add sys_wait.
12890         * tests/test-sys_wait.c (main): Enhance test.
12891         * tests/test-stdlib.c (main): Likewise.
12892         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12893
12894         docs: mention MacOS issue with WEXITSTATUS(constant)
12895         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12896         issue.
12897         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12898
12899         strnlen: add tests
12900         * modules/strnlen-tests: New file.
12901         * tests/test-strnlen.c: Likewise.
12902
12903 2010-09-14  Bruno Haible  <bruno@clisp.org>
12904
12905         unistr/base: Avoid link errors when module 'libunistring' is also used.
12906         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12907         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12908         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12909         Declare also when HAVE_LIBUNISTRING is set.
12910         Reported by Pádraig Brady <P@draigbrady.com>.
12911
12912 2010-09-14  Eric Blake  <eblake@redhat.com>
12913
12914         test-rawmemchr: make more robust
12915         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12916         (Depends-on, configure.ac): Add needed prerequisites to use it.
12917         * modules/memchr-tests (Files, Depends-on, configure.ac):
12918         Likewise, to avoid implicit reliance on memchr module prereqs.
12919         * tests/test-memchr.c (main): Ensure proper masking.
12920         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12921         reads.
12922
12923         memchr: detect glibc Alpha bug
12924         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12925         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12926         Alpha.
12927         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12928         * tests/test-memchr.c (main): Enhance test.
12929         Reported by Nelson H. F. Beebe.
12930
12931 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12932
12933         fts, getcwd, glob: audit for dirfd returning -1
12934         * lib/fts.c (opendir): Remove #define; no longer used.
12935         (opendirat): New arg PDIR_FD.  All callers changed.
12936         (fts_build, _opendir2): Use new opendirat to avoid the need for
12937         dirfd, or for checking whether dirfd returns a negative value.
12938         Don't use opendir; always use openat followed by fdopendir.
12939         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12940         it.
12941         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12942         returns -1 here.
12943         * modules/fts (Depends-on): Remove dirfd.
12944         * modules/getcwd (Depends-on): Likewise.
12945
12946 2010-09-13  Eric Blake  <eblake@redhat.com>
12947
12948         float: fix broken MirBSD header
12949         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12950         * doc/posix-headers/float.texi (float.h): Document it.
12951
12952 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12953
12954         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12955         * lib/fts.c (opendirat): New arg extra_flags.
12956         (__opendir2): Use it to avoid following symlinks when opening
12957         a directory, if symlinks are not supposed to be followed.  See
12958         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12959
12960         fdopendir: preserve argument fd before returning
12961         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12962         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12963         (fdopendir): Use them, arranging for FD to be open to the same
12964         directory that it was when it started.  (It might be temporarily
12965         closed while fdopendir is running, so this not thread- or
12966         signal-safe.)  Be careful to do the right thing even when file
12967         descriptors are scarce and dup fails with errno == EMFILE.  See
12968         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12969
12970 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12971
12972         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12973         * NEWS: Document change.
12974         * m4/regex.m4: Disable test for regoff_t size.
12975
12976 2010-09-13  Jim Meyering  <meyering@redhat.com>
12977
12978         fts: don't operate on an invalid file descriptor after failed dup
12979         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12980         negative file descriptor.
12981
12982 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12983
12984         savedir: add streamsavedir, deprecate fdsavedir
12985         * NEWS: Mention deprecation of fdsavedir.
12986         * lib/savedir.c (streamsavedir): New extern function, whose name
12987         ends in "savedir" to be consistent with the others.  This differs
12988         from savedirstream in that it doesn't close its argument.  The
12989         next version of GNU tar will use this instead of fdsavedir, to
12990         avoid some race conditions and conserve file descriptors.
12991         (savedirstream): Reimplement as a wrapper around streamsavedir.
12992         (fdsavedir): Add a comment deprecating this function.  As far as
12993         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12994         * lib/savedir.h (streamsavedir): New decl.
12995         (fdsavedir): Add a comment deprecating this.
12996
12997 2010-09-10  Bruno Haible  <bruno@clisp.org>
12998
12999         langinfo: Fix last commit.
13000         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
13001         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
13002         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13003
13004 2010-09-10  Bruno Haible  <bruno@clisp.org>
13005
13006         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
13007         * lib/progreloc.c (O_EXEC): Define fallback.
13008
13009 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13010
13011         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
13012         * NEWS: Document recent changes to fcntl-h.
13013         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
13014         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
13015         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
13016         Similarly for O_SEARCH; this last was already true, but not documented.
13017         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
13018         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
13019         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
13020         Likewise.
13021         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
13022         is zero, not whether it is defined.
13023         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
13024         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
13025         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
13026
13027 2010-09-10  Bruno Haible  <bruno@clisp.org>
13028
13029         langinfo, nl_langinfo: Fix for IRIX 5.3.
13030         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
13031         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
13032         HAVE_LANGINFO_YESEXPR.
13033         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
13034         HAVE_LANGINFO_YESEXPR.
13035         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
13036         HAVE_LANGINFO_T_FMT_AMPM is 0.
13037         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
13038         HAVE_LANGINFO_YESEXPR is 0.
13039         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
13040         NOEXPR.
13041         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
13042         * doc/posix-functions/nl_langinfo.texi: Likewise.
13043         Reported by Eric Blake.
13044
13045 2010-09-10  Bruno Haible  <bruno@clisp.org>
13046
13047         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
13048         * doc/glibc-functions/login_tty.texi: Mention the include file problem
13049         on FreeBSD 8.0 and OpenBSD 4.6.
13050         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
13051         * m4/pty_h.m4 (gl_PTY_H): Likewise.
13052         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
13053         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
13054         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
13055         ac_includes_default.
13056         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13057
13058 2010-09-09  Eric Blake  <eblake@redhat.com>
13059
13060         strsignal: work around NetBSD bug
13061         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
13062         * lib/string.in.h (includes): Likewise.
13063         * doc/posix-functions/strsignal.texi (strsignal): Document the
13064         bug.
13065         Reported by Nelson H. F. Beebe.
13066
13067         gnulib-tool: work with NetBSD /bin/sh
13068         * gnulib-tool (func_cache_var, func_cache_lookup_module)
13069         (func_get_description, func_get_comment, func_get_status)
13070         (func_get_notice, func_get_applicability, func_get_filelist)
13071         (func_get_dependencies, func_get_autoconf_early_snippet)
13072         (func_get_autoconf_snippet, func_get_automake_snippet)
13073         (func_get_include_directive, func_get_link_directive)
13074         (func_get_license, func_get_maintainer, func_import): Avoid
13075         shell syntax errors from parsing syntax extensions.
13076
13077 2010-09-09  Bruno Haible  <bruno@clisp.org>
13078
13079         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13080         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
13081         a reliable way to determine whether the 'alias' command works.
13082
13083 2010-09-08  Jim Meyering  <meyering@redhat.com>
13084
13085         init.sh: penalize a set-x-impaired shell; don't disqualify it
13086         * tests/init.sh: Too many shells corrupt application stderr when
13087         you set -x, so we can't afford to disqualify them, since at least
13088         on Irix-6.5, that would disqualify all bourne shells.
13089         Instead, use a two-pass approach.
13090         On the first pass, try to find a shell that meets the stricter
13091         condition that set -x does not corrupt stderr.
13092         If no shell meets the stricter condition, retest each candidate
13093         shell, but without that extra condition.  Finally, when
13094         VERBOSE=yes is requested and set -x might cause trouble, simply
13095         issue a warning and refrain from enabling debug output.
13096
13097 2010-09-08  Eric Blake  <eblake@redhat.com>
13098
13099         unsetenv: fix OpenBSD bug
13100         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
13101         * doc/posix-functions/unsetenv.texi (unsetenv): Update
13102         documentation.
13103         Reported by Jim Meyering.
13104
13105         strtod: work around IRIX 6.5 bug
13106         * lib/strtod.c (strtod): Reparse number on shorter string if
13107         exponent parse was invalid.
13108         * tests/test-strtod.c (main): Add check for "0x1p 2".
13109         Reported by Tom G. Christensen.
13110
13111         getopt: optimize previous patch
13112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
13113         empty variable.  Speed up awk script.
13114         Reported by Paolo Bonzini.
13115
13116 2010-09-08  Jim Meyering  <meyering@redhat.com>
13117
13118         test.sh: disqualify shells for which set -x corrupts stderr
13119         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
13120         and OpenBSD 4.7.  They make it so with "set -x", environment settings
13121         appear in stderr output.  For example, this command:
13122             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
13123         prints "P=1" on those two systems:
13124
13125 2010-09-08  Bruno Haible  <bruno@clisp.org>
13126
13127         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13128         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
13129         commands, because some shells ignore redirections when there is an
13130         error in the command lookup.
13131         Reported by Eric Blake.
13132
13133 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
13134
13135         * lib/regex.h: Fix a mention of `regex_compile' (should be
13136         `re_compile_pattern').
13137         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
13138         (re_set_registers): Correct name of parameter in comment.
13139
13140         * doc/regex.texi: Add documentation for missing syntax flags.
13141         Remove commented-out documentation of defunct syntax option
13142         RE_NO_EMPTY_ALTS.
13143         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
13144         Add documentation of re_set_registers.
13145         Document trick to re-use a pattern buffer by setting fastmap manually.
13146         Update documentation of struct re_pattern_buffer per public members.
13147         Uncomment documentation of equivalence class operators and
13148         collating symbol operators, since they are now implemented,
13149         Explain leftmost-longest matching in relation to alternatives.
13150         Tidy documentation of substring matching.
13151         Remove POSIX documentation, which is done better in
13152         glibc, and refer the reader there. Keep BSD API documentation, as
13153         that is not readily available elsewhere.
13154
13155 2010-09-07  Eric Blake  <eblake@redhat.com>
13156
13157         getopt: handle POSIXLY_CORRECT set but not exported
13158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
13159         export state of POSIXLY_CORRECT, due to bash set -o posix.
13160         Reported by Dustin J. Mitchell.
13161
13162 2010-09-05  Bruno Haible  <bruno@clisp.org>
13163
13164         gnulib-tool: Highlight the changed options.
13165         * gnulib-tool (func_usage): Display the --import, --add-import,
13166         --remove-import explanations in bold font.
13167
13168 2010-09-06  Karl Berry  <karl@gnu.org>
13169
13170         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
13171
13172 2010-09-05  Bruno Haible  <bruno@clisp.org>
13173
13174         uniwidth/width: Update comment.
13175         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
13176         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
13177
13178 2010-09-05  Bruno Haible  <bruno@clisp.org>
13179
13180         isinf, isnan: Relax license.
13181         * modules/isinf (License): Change from GPL to LGPL, with consent from
13182         Ben Pfaff.
13183         * modules/isnan (License): Likewise.
13184         Requested by Ludovic Courtès.
13185
13186 2010-09-04  Bruno Haible  <bruno@clisp.org>
13187
13188         gnulib-tool: Help migration from --import to --add-import or --update.
13189         * gnulib-tool: Emit a verbose error message when --import is used
13190         without any module name.
13191
13192 2010-09-04  Bruno Haible  <bruno@clisp.org>
13193
13194         Update doc about gnulib-tool.
13195         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
13196         'gnulib-tool --update' in more detail.
13197         Reported by Eric Blake.
13198
13199 2010-09-04  Bruno Haible  <bruno@clisp.org>
13200
13201         gnulib-tool: Change --import. New options --add/remove-import.
13202         * gnulib-tool: New options --add-import, --remove-import.
13203         (func_usage): Document them.
13204         (have_associative): Define always.
13205         (func_import): In import mode, don't merge the specified settings with
13206         the cached settings. Implement remove-import mode.
13207         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
13208         Explain when to use them versus --import.
13209         (Simple update): Use --add-import instead of --import.
13210         * NEWS: Mention the change.
13211
13212 2010-09-04  Bruno Haible  <bruno@clisp.org>
13213
13214         * doc/gnulib-tool.texi (Initial import): Update paragraph about
13215         separate gnulib.mk.
13216
13217 2010-09-04  Bruno Haible  <bruno@clisp.org>
13218
13219         gnulib-tool: Don't talk about CVS any more.
13220         * gnulib-tool (func_usage, func_import): Write "version control"
13221         instead of CVS.
13222
13223 2010-09-04  Jim Meyering  <meyering@redhat.com>
13224
13225         maint.mk: avoid obscure sc_copyright_check failure in coreutils
13226         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
13227         false positives (whose names may be ill-chosen) when searching
13228         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
13229         would cause a false-positive.
13230
13231         avoid coreutils "make distcheck" failure
13232         Coreutils tests with an absolute build directory name that contains
13233         a space.  Not quoting this directory name caused a failure.
13234         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
13235         * tests/test-vc-list-files-cvs.sh: Likewise.
13236
13237 2010-09-04  Bruno Haible  <bruno@clisp.org>
13238
13239         gnulib-tool: Avoid error when run in a package without Makefile.am.
13240         * gnulib-tool: When collecting the m4dirs in a package that does not
13241         have a Makefile.am, eliminate those directories that contain no
13242         gnulib-cache.m4. Fix expression that counts these directories.
13243
13244 2010-09-04  Bruno Haible  <bruno@clisp.org>
13245
13246         update-copyright test: Improve output when perl is missing or too old.
13247         * tests/test-update-copyright.sh: Move test of Perl version down after
13248         the test whether Perl exists. Provide an explanation relating Perl's
13249         error message to Automake's SKIP: message.
13250
13251 2010-09-04  Bruno Haible  <bruno@clisp.org>
13252
13253         Don't augment PATH in TESTS_ENVIRONMENT.
13254         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13255         set abs_aux_dir instead of augmenting PATH.
13256         * modules/vc-list-files-tests (Makefile.am): Likewise.
13257         * tests/test-update-copyright.sh: Augment PATH here.
13258         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13259         path_prepend_.
13260         * tests/test-vc-list-files-git.sh: Likewise.
13261
13262 2010-09-04  Jim Meyering  <meyering@redhat.com>
13263
13264         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13265         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13266
13267 2010-09-04  Bruno Haible  <bruno@clisp.org>
13268
13269         strdup: Fix compilation error in C++ mode.
13270         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13271         the macro.
13272
13273 2010-09-04  Bruno Haible  <bruno@clisp.org>
13274
13275         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13276         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13277         macro into a function.
13278         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13279
13280 2010-09-04  Bruno Haible  <bruno@clisp.org>
13281
13282         Set PATH_SEPARATOR the same way autoconf does.
13283         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13284         the value of PATH_SEPARATOR the same way autoconf-generated configure
13285         scripts do.
13286         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13287         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13288
13289 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13290
13291         Set PATH_SEPARATOR the same way autoconf does.
13292         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13293         the same way autoconf-generated configure scripts do.
13294         * posix-modules: Likewise.
13295
13296 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13297
13298         hash: fix safe_hasher const typo
13299         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13300         const; otherwise, there is a type error later.
13301
13302 2010-09-02  Jim Meyering  <meyering@redhat.com>
13303
13304         test-update-copyright.sh: require perl 5.8.0
13305         * tests/test-update-copyright.sh: Require 5.8.0,
13306         which Tom G. Christensen has confirmed is adequate,
13307         while 5.6.1 is not.
13308
13309 2010-09-02  Eric Blake  <eblake@redhat.com>
13310
13311         tests: init.sh improvements for re-exec'ing with zsh
13312         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13313         -vx through shell re-exec.
13314         Reported by Tom G. Christensen.
13315
13316         wctype: fix typo in previous commit
13317         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13318         Reported by Ludovic Courtès.
13319
13320 2010-09-02  Jim Meyering  <meyering@redhat.com>
13321
13322         test-update-copyright.sh: skip test if Perl is too old
13323         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13324         Reported by Tom G. Christensen.
13325
13326 2010-09-02  Bruno Haible  <bruno@clisp.org>
13327
13328         wctype: Avoid compilation error on IRIX 6.5.30.
13329         * lib/wctype.in.h (iswblank): Declare with a replacement if
13330         REPLACE_ISWBLANK is set.
13331         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13332         declared. Set REPLACE_ISWBLANK.
13333         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13334         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13335         * doc/posix-headers/wctype.texi: Likewise.
13336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13337
13338 2010-09-01  Bruno Haible  <bruno@clisp.org>
13339
13340         New module 'socketlib'.
13341         * modules/socketlib: New file.
13342         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13343         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13344         * modules/sockets (Depends-on): Add socketlib.
13345         Suggested by Sam Steingold <sds@gnu.org>.
13346
13347 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13348
13349         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13350
13351         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13352         when one needs search access to a directory but not read access.
13353         On systems where it is available, it works in some cases where
13354         O_RDONLY does not, namely on directories that are searchable but
13355         not readable, and which need only to be searchable.  If O_SEARCH
13356         is not available, fall back to the traditional method of using
13357         O_RDONLY.
13358
13359         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13360         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13361         when opening a directory that needs only to be searchable.
13362         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13363         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13364         * lib/openat-proc.c (openat_proc_name): Likewise.
13365         * lib/openat.c (openat_needs_fchdir): Likewise.
13366         * lib/save-cwd.c (save_cwd): Likewise.
13367         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13368
13369 2010-08-28  Bruno Haible  <bruno@clisp.org>
13370
13371         New module 'host-cpu-c-abi'.
13372         * modules/host-cpu-c-abi: New file.
13373         * m4/host-cpu-c-abi.m4: New file, based on part of
13374         clisp/src/m4/general.m4.
13375         Requested by Sam Steingold <sds@gnu.org>.
13376
13377 2010-08-31  Eric Blake  <eblake@redhat.com>
13378         and Jim Meyering  <meyering@redhat.com>
13379
13380         hash: factor, and guard against misbehaving hasher function
13381         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13382         of table->hasher's return value.  Also protect against a hash value
13383         so large that adding it to table->bucket results in a NULL pointer.
13384         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13385         Use it in place of open-coded check-and-abort.
13386
13387 2010-08-30  Bruno Haible  <bruno@clisp.org>
13388
13389         hash: silence spurious clang warning
13390         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13391         Reported by Eric Blake.
13392
13393 2010-08-30  Eric Blake  <eblake@redhat.com>
13394
13395         strstr, memmem, strcasestr: avoid leaked shell message
13396         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13397         FreeBSD.
13398         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13399         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13400
13401         tests: silence clang warning
13402         * tests/test-malloca.c (do_allocation): Avoid dead store.
13403
13404 2010-08-29  Bruno Haible  <bruno@clisp.org>
13405
13406         gettext: Fix recent mistake.
13407         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13408
13409 2010-08-29  Bruno Haible  <bruno@clisp.org>
13410
13411         selinux-h: Offer a --without-selinux option.
13412         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13413         --without-selinux was specified, skip all tests and define
13414         HAVE_SELINUX_SELINUX_H to 0.
13415         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13416         set LIB_SELINUX to empty.
13417         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13418         gl_LIBSELINUX. If --without-selinux was specified, replace
13419         selinux/context.h.
13420         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13421
13422 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13423             Bruno Haible  <bruno@clisp.org>
13424
13425         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13426         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13427         of HAVE_REALLOC.
13428         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13429         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13430         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13431         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13432
13433 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13434             Bruno Haible  <bruno@clisp.org>
13435
13436         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13437         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13438         HAVE_CALLOC.
13439         * lib/xmalloc.c: Update accordingly.
13440         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13441         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13442         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13443
13444 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13445             Bruno Haible  <bruno@clisp.org>
13446
13447         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13448         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13449         HAVE_MALLOC.
13450         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13451         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13452         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13453
13454 2010-08-29  Bruno Haible  <bruno@clisp.org>
13455
13456         Update modules list.
13457         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13458         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13459         (String handling <string.h>): Add astrxfrm.
13460         (File system functions): Add readlinkat.
13461
13462 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13463
13464         Tests for module 'realloc-gnu'.
13465         * modules/realloc-gnu-tests: New file.
13466         * tests/test-realloc-gnu.c: New file.
13467
13468         Tests for module 'calloc-gnu'.
13469         * modules/calloc-gnu-tests: New file.
13470         * tests/test-calloc-gnu.c: New file.
13471
13472         Tests for module 'malloc-gnu'.
13473         * modules/malloc-gnu-tests: New file.
13474         * tests/test-malloc-gnu.c: New file.
13475
13476 2010-08-28  Bruno Haible  <bruno@clisp.org>
13477
13478         Rename module 'realloc' -> 'realloc-gnu'.
13479         * modules/realloc-gnu: New file, copied from modules/realloc.
13480         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13481         obsolete.
13482         * modules/mgetgroups (Depends-on): Update.
13483         * doc/posix-functions/realloc.texi: Update.
13484         * NEWS: Mention the change.
13485
13486         Rename module 'calloc' -> 'calloc-gnu'.
13487         * modules/calloc-gnu: New file, copied from modules/calloc.
13488         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13489         obsolete.
13490         * doc/posix-functions/calloc.texi: Update.
13491         * NEWS: Mention the change.
13492
13493         Rename module 'malloc' -> 'malloc-gnu'.
13494         * modules/malloc-gnu: New file, copied from modules/malloc.
13495         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13496         obsolete.
13497         * modules/argp (Depends-on): Update.
13498         * modules/regex (Depends-on): Update.
13499         * doc/posix-functions/malloc.texi: Update.
13500         * NEWS: Mention the change.
13501
13502 2010-08-28  Eric Blake  <eblake@redhat.com>
13503
13504         pread, pwrite: add missing dependency
13505         * modules/pread (Depends-on): Add extensions.
13506         * modules/pwrite (Depends-on): Likewise.
13507
13508 2010-08-28  Bruno Haible  <bruno@clisp.org>
13509
13510         unistr/u*-strchr: Fix tests dependencies.
13511         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13512         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13513         Reported by Ian Beckwith <ianb@erislabs.net>.
13514
13515 2010-08-28  Bruno Haible  <bruno@clisp.org>
13516
13517         read-file: Don't occupy too much unused memory.
13518         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13519
13520 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13521             Eric Blake  <eblake@redhat.com>
13522             Bruno Haible  <bruno@clisp.org>
13523
13524         read-file: Avoid memory reallocations with regular files.
13525         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13526         (fread_file): With regular files, use the remaining length as the
13527         initial buffer size.  Check against overflow.
13528         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13529         sys_stat.
13530
13531 2010-08-28  Bruno Haible  <bruno@clisp.org>
13532
13533         ftello: Relax license.
13534         * modules/ftello (License): Relax to LGPLv2+.
13535         Reported by Eric Blake.
13536
13537 2010-08-28  Bruno Haible  <bruno@clisp.org>
13538
13539         Avoid relocwrapper link errors due to gnulib replacement functions.
13540         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13541         function.
13542         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13543
13544 2010-08-28  Bruno Haible  <bruno@clisp.org>
13545
13546         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13547         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13548         defined.
13549         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13550         Suggested by Eric Blake.
13551
13552 2010-08-28  Bruno Haible  <bruno@clisp.org>
13553
13554         sys_socket, netdb: Ensure socklen_t gets defined.
13555         * modules/sys_socket (Depends-on): Add socklen.
13556         * modules/netdb (Depends-on): Likewise.
13557         * modules/getaddrinfo (Depends-on): Remove socklen.
13558         * modules/getsockopt (Depends-on): Likewise.
13559         * modules/setsockopt (Depends-on): Likewise.
13560         * tests/test-sys_socket.c: Check that socklen_t is defined.
13561         * tests/test-netdb.c: Likewise.
13562         * m4/socklen.m4: Update comments.
13563         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13564
13565 2010-08-27  Eric Blake  <eblake@redhat.com>
13566
13567         login_tty: add missing dependency
13568         * modules/login_tty (Depends-on): Add pty.
13569
13570 2010-08-26  Eric Blake  <eblake@redhat.com>
13571
13572         lib-symbol-versions: fix m4 quoting
13573         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13574         format for AC_LINK_IFELSE.
13575
13576         glob: fix compile test
13577         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13578
13579         btowc: fix missing file
13580         * modules/btowc (Files): Also ship locale-fr.m4.
13581
13582         lseek: fix link test
13583         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13584         AC_LINK_IFELSE.
13585
13586         include_next: silence autoconf 2.68 warning
13587         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13588         AC_COMPILE_IFELSE as special.
13589         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13590         autoconf < 2.68.
13591
13592         acl: fix compilation test
13593         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13594         AC_COMPILE_IFELSE.
13595
13596 2010-08-26  Bruno Haible  <bruno@clisp.org>
13597
13598         Modernize AC_TRY_RUN invocations.
13599         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13600         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13601         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13602         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13603         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13604         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13605         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13606         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13607         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13608         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13609         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13610         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13611         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13612         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13613         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13614         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13615         gl_MBRLEN_NUL_RETVAL): Likewise.
13616         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13617         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13618         Likewise.
13619         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13620         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13621         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13622         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13623         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13624         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13625         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13626         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13627         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13628         Likewise.
13629         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13630         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13631         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13632         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13633         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13634         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13635         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13636         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13637         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13639
13640 2010-08-26  Bruno Haible  <bruno@clisp.org>
13641
13642         Modernize AC_TRY_LINK invocations.
13643         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13644         AC_TRY_LINK.
13645         * m4/argp.m4 (gl_ARGP): Likewise.
13646         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13647         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13648         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13649         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13650         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13651         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13652         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13653         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13654         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13655         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13656         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13657         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13658         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13659         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13660         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13661         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13662         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13663         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13664         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13665         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13666         Likewise.
13667         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13668         Likewise.
13669         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13670         Likewise.
13671         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13672         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13673         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13674         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13675         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13676         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13677         * m4/servent.m4 (gl_SERVENT): Likewise.
13678         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13679         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13680         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13681         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13682         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13683         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13684         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13685         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13686         * modules/tsearch-tests (configure.ac): Likewise.
13687
13688 2010-08-26  Bruno Haible  <bruno@clisp.org>
13689
13690         Modernize AC_TRY_COMPILE invocations.
13691         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13692         AC_TRY_COMPILE.
13693         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13694         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13695         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13696         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13697         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13698         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13699         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13700         * m4/lock.m4 (gl_LOCK): Likewise.
13701         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13702         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13703         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13704         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13705         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13706         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13707         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13708         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13709         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13710         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13711         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13712         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13713         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13714         extraneous semicolon.
13715
13716 2010-08-26  Jim Meyering  <meyering@redhat.com>
13717
13718         stat-time: relax license LGPL
13719         * modules/stat-time (License): Change from GPL to LGPL,
13720         with consent from all contributors, for use in libguile.
13721         Requested by Ludovic Courtès.
13722
13723 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13724
13725         poll: return immediately on POLLHUP.
13726         * lib/poll.c (poll): Always set timeout before wait_timeout is
13727         computed.
13728
13729 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13730
13731         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13732         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13733         rmdir ("dir/.//"), unlinkat.
13734
13735 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13736
13737         stdbool: avoid spurious failure with modern xlc
13738         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13739
13740 2010-08-24  Bruno Haible  <bruno@clisp.org>
13741
13742         getloadavg: simplify code
13743         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13744         gl_have_func. Update comments.
13745
13746 2010-08-24  Eric Blake  <eblake@redhat.com>
13747
13748         getloadavg: don't define SVR4 on cygwin
13749         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13750         only define SVR4 when -lkvm is required.
13751         Reported by Yaakov Selkowitz.
13752
13753 2010-08-24  Bruno Haible  <bruno@clisp.org>
13754
13755         priv-set: fix comment
13756         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13757
13758 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13759
13760         priv-set: fix comments
13761         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13762         to match code, as suggested by David Bartley in:
13763         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13764
13765 2010-08-23  Eric Blake  <eblake@redhat.com>
13766
13767         stdbool: avoid rejecting clang
13768         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13769         * tests/test-stdbool.c: Enable more tests if using the system
13770         <stdbool.h> instead of the gnulib replacement.
13771         (main): Move xlc bug test to a runtime test for all compilers.
13772         Reported by Anders Kaseorg.
13773
13774         argz: fix shell quoting issue
13775         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13776         Reported by Charles Wilson.
13777
13778 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13779             Erik Faye-Lund <kusmabite@gmail.com>
13780
13781         poll, select: handle ERROR_BROKEN_PIPE.
13782         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13783         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13784         * lib/select.c (win32_compute_revents): Do not mark a pipe
13785         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13786
13787 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13788
13789         fts: allow compilation with C++
13790         * lib/fts_.h: Specify extern "C" linkage with C++.
13791
13792 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13793
13794         Fix gnulib-tool sed script de-commentation for AIX sed.
13795         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13796         sed.
13797
13798 2010-08-17  Eric Blake  <eblake@redhat.com>
13799
13800         test-stddef: test for (some) offsetof bugs
13801         * tests/test-stddef.c: Enhance test to ensure correct type of
13802         offsetof.
13803         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13804         that we are not fixing at this time.
13805
13806 2010-08-15  Bruno Haible  <bruno@clisp.org>
13807
13808         stpncpy: Allow stpncpy to be defined as a macro.
13809         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13810         if it's already correctly declared.
13811         * lib/string.in.h (stpncpy): Undefine before redefining.
13812         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13813
13814 2010-08-14  Bruno Haible  <bruno@clisp.org>
13815
13816         Rename module 'memxfrm' to 'amemxfrm'.
13817         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13818         (amemxfrm): Renamed from memxfrm.
13819         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13820         (amemxfrm): Renamed from memxfrm.
13821         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13822         * NEWS: Mention the change.
13823         * MODULES.html.sh (String handling <string.h>): Update.
13824         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13825         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13826         * lib/unicase/u16-casexfrm.c: Likewise.
13827         * lib/unicase/u32-casexfrm.c: Likewise.
13828         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13829         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13830         * lib/uninorm/u16-normxfrm.c: Likewise.
13831         * lib/uninorm/u32-normxfrm.c: Likewise.
13832         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13833         memxfrm.
13834         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13835         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13836         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13837         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13838         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13839         Suggested by Paul Eggert.
13840
13841 2010-08-14  Bruno Haible  <bruno@clisp.org>
13842
13843         Tests for module 'astrxfrm'.
13844         * modules/astrxfrm-tests: New file.
13845         * tests/test-astrxfrm.c: New file.
13846
13847         New module 'astrxfrm'.
13848         * lib/astrxfrm.h: New file.
13849         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13850         * modules/astrxfrm: New file.
13851
13852 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13853
13854         regex: Tweak doc.
13855         * doc/regex.texi (Overview): Don't mention regex.c.
13856         (GNU Regular Expression Compiling): Likewise.
13857         (Match-end-of-line Operator): Mention 'not_eol'.
13858
13859 2010-08-14  Brian Gough  <bjg@gnu.org>
13860             Bruno Haible  <bruno@clisp.org>
13861
13862         git-merge-changelog: add doc relating to use with bzr and hg.
13863         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13864
13865 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13866
13867         pthread: fix pthread.h creation for srcdir != builddir
13868         * modules/pthread (Makefile.am): Fix the rule to work also in a
13869         non-srcdir build.
13870
13871 2010-08-13  Karl Berry  <karl@gnu.org>
13872
13873         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13874         * doc/posix-*/*: force line break before @url of POSIX
13875         specifications.
13876         Suggested by Werner Lemberg.
13877
13878 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13879
13880         strtod: fix const diagnostic
13881         * lib/strtod.c (strtod): Don't assign const char * to char *,
13882         as this elicits a warning from GCC when warnings are enabled.
13883
13884 2010-08-10  Pádraig Brady <P@draigbrady.com>
13885         and Eric Blake  <eblake@redhat.com>
13886
13887         copy-acl: ignore ENOTSUP on HP-UX
13888         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13889         so that it is available for HP-UX.
13890         * lib/copy-acl.c (qcopy_acl): Use it.
13891         Reported by Patrick M. Callahan.
13892
13893 2010-08-10  Eric Blake  <eblake@redhat.com>
13894
13895         open, chown: relax license
13896         * modules/open (License): Change to LGPLv2+, with consent by all
13897         authors, for use in augeas.
13898         * modules/chown (License): Likewise.
13899         * modules/lchown (Likewise): Likewise.
13900         Requested by Adam Stokes.
13901
13902 2010-08-09  Karl Berry  <karl@gnu.org>
13903
13904         * build-aux/ar-lib: new file, import from Automake.
13905         * config/srclist.txt: autocheck for updates.
13906
13907 2010-08-09  Eric Blake  <eblake@redhat.com>
13908
13909         readlinkat: adjust client modules
13910         * modules/areadlinkat (Depends-on): Use readlinkat, not
13911         symlinkat.
13912         * modules/areadlinkat-with-size (Depends-on): Likewise.
13913
13914         mknod: be more vocal about danger of running tests as root
13915         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13916         root, since that is just asking for problems.
13917         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13918
13919         readlinkat: split into its own module
13920         * modules/symlinkat: Split readlinkat...
13921         * modules/readlinkat: ...into separate module.
13922         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13923         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13924         * lib/symlinkat.c (readlinkat): Move...
13925         * lib/readlinkat.c: ...into new file.
13926         * modules/symlinkat-tests: Split readlinkat test...
13927         * modules/readlinkat-tests: ...into separate module.
13928         * tests/test-symlinkat.c: Split...
13929         * tests/test-readlinkat.c: ...into new file.
13930         * NEWS: Document the split.
13931         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13932         * lib/unistd.in.h (readlinkat): Likewise.
13933         Suggested by Bruno Haible.
13934
13935 2010-08-08  Bruno Haible  <bruno@clisp.org>
13936
13937         memxfrm: Speed up.
13938         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13939         that usually only one call to strxfrm is necessary for each string
13940         part.
13941         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13942
13943 2010-08-07  Karl Berry  <karl@gnu.org>
13944
13945         * doc/posix-headers/limits.texi,
13946         * doc/posix-functions/malloc.texi,
13947         * doc/posix-functions/strsignal.texi: missing @item.
13948         * doc/ld-version-script.texi: spurious leading i.
13949         * doc/regex.texi (Interval Operators): no commas inside @var.
13950
13951 2010-08-01  Bruno Haible  <bruno@clisp.org>
13952
13953         Integrate the regex documentation.
13954         * doc/gnulib.texi: Define 'cn' index.
13955         (Regular expressions): New a chapter that includes regex.texi and
13956         regexprops-generic.texi.
13957         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13958         syntax.
13959
13960         Whitespace cleanup.
13961         * doc/regex.texi: Remove trailing spaces.
13962
13963         Add regex documentation.
13964         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13965         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13966         Written by Kathy A. Hargreaves and Karl Berry.
13967
13968 2010-08-01  Bruno Haible  <bruno@clisp.org>
13969
13970         link: Update documentation.
13971         * doc/posix-functions/link.texi: Update regarding Solaris.
13972
13973 2010-07-31  Bruno Haible  <bruno@clisp.org>
13974
13975         Update modules list.
13976         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13977         (String handling <string.h>): Add memcmp2, memxfrm.
13978         (Container data structures): Add xlist, xsublist, xoset.
13979         (Core language properties): Add alignof, unused-parameter.
13980         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13981         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13982         (Unibyte characters <ctype.h>): New section.
13983         (String handling <string.h>): New section.
13984         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13985         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13986         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13987         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13988         tan, tanh, tanl, y0, y1, yn.
13989         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13990         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13991         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13992         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13993         unlockpt, vdprintf, vdprintf-posix.
13994         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13995         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13996         xconcat-filename.
13997         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13998         getdtablesize, pipe2, pipe2-safer.
13999         (Security): New section.
14000         (Networking functions): Add accept4.
14001         (Signal handling): Add sigpipe.
14002         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
14003         mbmemcasecoll.
14004         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
14005         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
14006         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
14007         pipe-filter-ii.
14008         (Misc): Add argp-version-etc, login_tty, parse-duration.
14009
14010 2010-07-31  Bruno Haible  <bruno@clisp.org>
14011
14012         Improve doc in MODULES.html.
14013         * modules/linkat (Description): Add the word "function".
14014         * modules/mkfifo (Description): Likewise.
14015         * modules/mknod (Description): Likewise.
14016         * modules/remove (Description): Likewise.
14017         * modules/renameat (Description): Likewise.
14018         * modules/stat (Description): Likewise.
14019         * modules/symlink (Description): Likewise.
14020         * modules/unlink (Description): Likewise.
14021
14022 2010-07-31  Bruno Haible  <bruno@clisp.org>
14023
14024         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
14025         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
14026         option --enable/disable-c++ instead of --enable/disable-cxx.
14027         * NEWS: Mention the change.
14028
14029 2010-07-31  Bruno Haible  <bruno@clisp.org>
14030
14031         readlink, areadlink: Relax test a bit.
14032         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
14033         alternative to ENOTDIR.
14034         * tests/test-areadlink.h (test_areadlink): Likewise.
14035         Reported by Rainer Tammer.
14036
14037 2010-07-31  Bruno Haible  <bruno@clisp.org>
14038
14039         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
14040         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
14041         character, perform the search using U_STRCHR.
14042         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
14043         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
14044         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
14045         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
14046         Suggested by Paolo Bonzini.
14047
14048 2010-07-31  Bruno Haible  <bruno@clisp.org>
14049
14050         unistr/u*-strstr: Fix dependencies.
14051         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
14052         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
14053         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
14054
14055 2010-07-31  Bruno Haible  <bruno@clisp.org>
14056
14057         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
14058         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
14059         the beginning of the loop.
14060         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
14061         cases in 'switch' statement.
14062
14063         unistr/u8-strchr: Fix several bugs.
14064         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
14065         the string. When not found, return NULL, not a pointer near the end.
14066
14067         More tests for unistr/u8-strchr.
14068         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
14069         that the function does not read past the first occurrence of the byte
14070         being searched.
14071         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
14072         * tests/unistr/test-u16-strchr.c (main): New function.
14073         * tests/unistr/test-u32-strchr.c (main): New function.
14074
14075 2010-07-31  Bruno Haible  <bruno@clisp.org>
14076
14077         posix-modules: Ignore backup files of documentation files.
14078         * posix-modules: grep only through files named *.texi.
14079
14080 2010-07-31  Bruno Haible  <bruno@clisp.org>
14081
14082         symlinkat: Fix documentation.
14083         * doc/posix-functions/readlinkat.texi: Fix module name.
14084
14085 2010-07-31  Bruno Haible  <bruno@clisp.org>
14086
14087         fchownat: Replace also when chown has the trailing slash bug.
14088         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
14089         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
14090         introduced on 2010-04-10.
14091         Reported by Rainer Tammer.
14092
14093 2010-07-31  Bruno Haible  <bruno@clisp.org>
14094
14095         linkat: Work around AIX 7.1 bug.
14096         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
14097         whether linkat handles trailing slash correctly. If not, replace linkat
14098         and define LINKAT_TRAILING_SLASH_BUG.
14099         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
14100         check whether (fd1,file1) points to a directory if file1 or file2 ends
14101         in a slash. Code taken from lib/link.c.
14102         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
14103         Reported by Rainer Tammer.
14104
14105 2010-07-31  Bruno Haible  <bruno@clisp.org>
14106
14107         Correctly determine whether pow is available in libc on AIX 7 with xlc.
14108         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
14109         This disables an xlc optimization that was causing wrong test results.
14110         Reported by Rainer Tammer.
14111
14112 2010-07-31  Bruno Haible  <bruno@clisp.org>
14113
14114         iconv: Work around AIX 6.1..7.1 bug.
14115         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
14116         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
14117         cross-compiling, guess no on all versions of AIX.
14118         Reported by Rainer Tammer.
14119
14120 2010-07-31  Bruno Haible  <bruno@clisp.org>
14121
14122         readlink: Relax test a bit.
14123         * tests/test-readlink.h (test_readlink): Allow different errno value
14124         when readlink is called with a file name that ends in / and refers to
14125         a file.
14126         Suggested by Eric Blake.
14127         Reported by Rainer Tammer.
14128
14129 2010-07-31  Bruno Haible  <bruno@clisp.org>
14130
14131         copysign: Does not require -lm on glibc systems.
14132         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
14133         gl_COMMON_DOUBLE_MATHFUNC.
14134         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
14135
14136 2010-07-31  Bruno Haible  <bruno@clisp.org>
14137
14138         duplocale: Work around AIX 7.1 bug.
14139         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
14140         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
14141         * lib/duplocale.c (rpl_duplocale): Update comment.
14142         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
14143         Reported by Rainer Tammer.
14144
14145 2010-07-30  Bruno Haible  <bruno@clisp.org>
14146
14147         dirfd: Avoid link error on AIX 7.1.
14148         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
14149         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
14150         exist, set REPLACE_DIRFD.
14151         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
14152         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
14153         * doc/posix-functions/dirfd.texi: Update.
14154         Reported by Rainer Tammer.
14155
14156 2010-07-30  Eric Blake  <eblake@redhat.com>
14157
14158         strtod: next round of AIX fixes
14159         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
14160         exponent.
14161         * tests/test-strtod.c (main): Enhance tests.
14162         * doc/posix-functions/strtod.texi (strtod): Document next bug.
14163         Reported by Rainer Tammer.
14164
14165         futimens: fix configure check
14166         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
14167         Reported by Bruno Haible.
14168
14169 2010-07-30  Bruno Haible  <bruno@clisp.org>
14170
14171         getline: Update regarding AIX.
14172         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
14173         Reported by Rainer Tammer.
14174
14175 2010-07-30  Bruno Haible  <bruno@clisp.org>
14176
14177         wcwidth: Drop replacement on AIX 7.
14178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
14179         AIX 7.
14180         Reported by Rainer Tammer.
14181
14182 2010-07-30  Bruno Haible  <bruno@clisp.org>
14183
14184         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
14185         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
14186         a 'char *'.
14187         Reported by Rainer Tammer.
14188
14189 2010-07-30  Bruno Haible  <bruno@clisp.org>
14190
14191         unlink: Update regarding AIX.
14192         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
14193         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
14194         Reported by Rainer Tammer.
14195
14196 2010-07-30  Bruno Haible  <bruno@clisp.org>
14197
14198         symlink: Update regarding AIX.
14199         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
14200         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
14201         Reported by Rainer Tammer.
14202
14203 2010-07-30  Bruno Haible  <bruno@clisp.org>
14204
14205         strndup: Update regarding AIX.
14206         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
14207         AIX 7.
14208         Reported by Rainer Tammer.
14209
14210 2010-07-30  Bruno Haible  <bruno@clisp.org>
14211
14212         stat: Update regarding AIX.
14213         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
14214         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
14215         Reported by Rainer Tammer.
14216
14217 2010-07-30  Bruno Haible  <bruno@clisp.org>
14218
14219         truncl: Fix autoconf test.
14220         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
14221         whether truncl works.
14222         Reported by Rainer Tammer.
14223
14224 2010-07-30  Bruno Haible  <bruno@clisp.org>
14225
14226         round: Update regarding AIX.
14227         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
14228         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
14229         Reported by Rainer Tammer.
14230
14231 2010-07-30  Bruno Haible  <bruno@clisp.org>
14232
14233         rename: Update regarding AIX.
14234         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
14235         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
14236         Reported by Rainer Tammer.
14237
14238 2010-07-30  Bruno Haible  <bruno@clisp.org>
14239
14240         printf.m4: Update regarding AIX.
14241         * m4/printf.m4: Update comments regarding AIX.
14242         Reported by Rainer Tammer.
14243
14244 2010-07-30  Bruno Haible  <bruno@clisp.org>
14245
14246         iconv: Update regarding AIX.
14247         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14248         AIX 7.
14249         Reported by Rainer Tammer.
14250
14251 2010-07-30  Bruno Haible  <bruno@clisp.org>
14252
14253         getopt: Update regarding AIX.
14254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14255         no on AIX.
14256         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14257         Reported by Rainer Tammer.
14258
14259 2010-07-30  Bruno Haible  <bruno@clisp.org>
14260
14261         ldexpl; Update regarding AIX.
14262         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14263         on AIX 7.
14264         Reported by Rainer Tammer.
14265
14266 2010-07-30  Bruno Haible  <bruno@clisp.org>
14267
14268         frexpl: Update regarding AIX.
14269         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14270         on AIX 7.
14271         Reported by Rainer Tammer.
14272
14273 2010-07-30  Bruno Haible  <bruno@clisp.org>
14274
14275         open, fopen: Update regarding AIX.
14276         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14277         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14278         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14279         * doc/posix-functions/fopen.texi: Likewise.
14280         Reported by Rainer Tammer.
14281
14282 2010-07-30  Bruno Haible  <bruno@clisp.org>
14283
14284         chown: Update doc regarding AIX.
14285         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14286         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14287         Reported by Rainer Tammer.
14288
14289 2010-07-30  Eric Blake  <eblake@redhat.com>
14290
14291         strtod: fix bug in replacement function on AIX
14292         * lib/strtod.c (strtod): Special case broken "0x" parse in
14293         underlying strtod.
14294         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14295         * doc/posix-functions/strtod.texi (strtod): Likewise.
14296         Reported by Rainer Tammer.
14297
14298 2010-07-30  Bruno Haible  <bruno@clisp.org>
14299
14300         mbrlen: Fix cross-compilation guess for AIX.
14301         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14302         guess. Leftover from 2008-12-22.
14303
14304 2010-07-30  Bruno Haible  <bruno@clisp.org>
14305
14306         mbrtowc: Fix cross-compilation guess for AIX.
14307         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14308         guess. Leftover from 2008-12-21.
14309
14310 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14311
14312         init.sh: work around trap limitation of some shells
14313         * tests/init.sh (setup_): Move exit trap outside of shell function.
14314
14315 2010-07-29  Eric Blake  <eblake@redhat.com>
14316
14317         strtod: aid debugging
14318         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14319         understanding why strtod is rejected.
14320
14321 2010-07-28  Bruno Haible  <bruno@clisp.org>
14322
14323         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14324         * lib/unistr/u8-chr.c: Include <string.h>.
14325         * tests/unistr/test-u8-chr.c: Likewise.
14326         * tests/unistr/test-u16-chr.c: Likewise.
14327         * tests/unistr/test-u32-chr.c: Likewise.
14328         * tests/unistr/test-u8-strchr.c: Likewise.
14329         * tests/unistr/test-u16-strchr.c: Likewise.
14330         * tests/unistr/test-u32-strchr.c: Likewise.
14331         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14332         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14333         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14334         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14335
14336 2010-07-28  Bruno Haible  <bruno@clisp.org>
14337
14338         Use spaces for indentation, not tabs.
14339         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14340
14341 2010-07-27  Bruno Haible  <bruno@clisp.org>
14342
14343         mbspcasecmp: Fix function specification.
14344         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14345         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14346         Reported by Eric Blake <eblake@redhat.com>.
14347
14348 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14349
14350         timespec: use cast and not conditional, as truncation isn't possible
14351         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14352         instead of a conditional.  Comment about the situation in more detail.
14353         This undoes most of the 2009-10-29 patch.
14354
14355 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14356
14357         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14358         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14359         * lib/unistr/u8-strchr.c: Likewise.
14360         * modules/unistr/u8-chr: Depend on memchr.
14361
14362         unistr/u*-strchr: add tests
14363         * modules/unistr/u8-strchr-tests: New file.
14364         * modules/unistr/u16-strchr-tests: New file.
14365         * modules/unistr/u32-strchr-tests: New file.
14366         * tests/unistr/test-strchr.h: New file.
14367         * tests/unistr/test-u8-strchr.c: New file.
14368         * tests/unistr/test-u16-strchr.c: New file.
14369         * tests/unistr/test-u32-strchr.c: New file.
14370
14371         unistr/u*-chr: test multibyte sequences more
14372         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14373         test vector.
14374         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14375         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14376         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14377
14378         unistr/u*-chr: test multibyte sequences
14379         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14380
14381         unistr/u*-chr: prepare for multibyte tests
14382         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14383         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14384         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14385         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14386         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14387         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14388
14389 2010-07-18  Bruno Haible  <bruno@clisp.org>
14390
14391         unistr/u8-strchr: Optimize non-ASCII argument case.
14392         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14393         because the first byte often matches anyway.
14394         Reported by Pádraig Brady <P@draigbrady.com>.
14395
14396 2010-07-15  Karl Berry  <karl@gnu.org>
14397
14398         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14399
14400 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14401
14402         getcwd: on Solaris, work better if ancestors are inaccessible
14403         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14404         buffer and size, try again with a large buffer.  This works better
14405         on Solaris, since its getcwd succeeds even if the path to the root
14406         is inaccessible, and this is helpful in common cases such as .zfs
14407         hidden directories.  Problem reported by J Chapman Flack in
14408         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14409         Use system getcwd if it's declared, not merely if it's partly
14410         working; use the partly-working test only to avoid needless effort
14411         if the system getcwd fails.
14412         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14413         comment that was already obsolete and is now even more obsolete.
14414         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14415         now might call strdup.
14416
14417 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14418
14419         pthread: Add enough so that coreutils/src/sort.c compiles.
14420         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14421         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14422         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14423         Include <sys/types.h>, in case it defines pthread_t.
14424         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14425         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14426         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14427         (pthread_rwlockattr_t, pthread_spinlock_t):
14428         New typedefs, if HAVE_PTHREAD_T is not defined.
14429         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14430         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14431         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14432         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14433         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14434         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14435         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14436         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14437         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14438         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14439         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14440         New macros.
14441         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14442         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14443         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14444         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14445         (pthread_spin_unlock): New dummy functions.
14446         (pthread_create): Return EAGAIN; don't set errno.
14447         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14448         require AC_C_INLINE.
14449         * modules/pthread (Depends-on): Add sched, time.
14450         (pthread.h): Use AM_V_GEN.
14451
14452 2010-07-13  Bruno Haible  <bruno@clisp.org>
14453
14454         striconveh: Don't malloc memory if the result buffer is sufficient.
14455         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14456         buffer if its size is sufficient.
14457         Reported by Ludovic Courtès <ludo@gnu.org>.
14458
14459 2010-07-13  Bruno Haible  <bruno@clisp.org>
14460
14461         strtod: Add safety check.
14462         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14463
14464 2010-07-12  Bruno Haible  <bruno@clisp.org>
14465
14466         Unify tests that set gl_cv_func_ldexpl_no_libm.
14467         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14468         gl_FUNC_LDEXPL.
14469         (gl_FUNC_LDEXPL): Invoke it.
14470         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14471
14472 2010-07-12  Bruno Haible  <bruno@clisp.org>
14473
14474         Unify tests that set gl_cv_func_ldexp_no_libm.
14475         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14476         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14477         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14478         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14479         * modules/strtod (Files): Add m4/ldexp.m4.
14480
14481 2010-07-12  Bruno Haible  <bruno@clisp.org>
14482
14483         Unify tests that set gl_cv_func_frexpl_no_libm.
14484         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14485         gl_FUNC_FREXPL_NO_LIBM.
14486         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14487         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14488
14489 2010-07-12  Bruno Haible  <bruno@clisp.org>
14490
14491         Unify tests that set gl_cv_func_frexp_no_libm.
14492         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14493         gl_FUNC_FREXP_NO_LIBM.
14494         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14495         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14496
14497 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14498
14499         memcoll: clarify sizes versus lengths, document better, and tweak perf
14500         * lib/memcoll.c (strcoll_loop, memcoll0):
14501         Improve quality of descriptive comments.  Name variables
14502         consistently as to whether they are lengths (which do not include
14503         terminating null) versus sizes (which do).
14504         * lib/xmemcoll.c (xmemcoll0): Likewise.
14505         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14506         returned when s1size == 0; this is easier to compile and saves
14507         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14508
14509 2010-07-12  Bruno Haible  <bruno@clisp.org>
14510
14511         Tests for module '_Exit'.
14512         * modules/_Exit-tests: New file.
14513         * tests/test-_Exit.sh: New file.
14514         * tests/test-_Exit.c: New file.
14515
14516         New module '_Exit'.
14517         * lib/stdlib.in.h (__attribute__): New macro.
14518         (_Exit): New declaration.
14519         * lib/_Exit.c: New file.
14520         * m4/_Exit.m4: New file.
14521         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14522         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14523         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14524         * modules/_Exit: New file.
14525         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14526         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14527
14528 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14529
14530         strtod: make it more-accurate typically, and don't require libm
14531         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14532         Include limits.h.  Don't include string.h.
14533         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14534         (locale_isspace): New function, so that no casts are needed to
14535         check whether *s is a space.
14536         (ldexp): Provide an unused dummy if not available.
14537         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14538         (strtod): Use them.  This implementation prefers to use the
14539         underlying strtod if available, falling back on our own code
14540         only to fix known bugs.  This is more likely to produce an
14541         accurate result.  Also, it avoids the use of libm functions.
14542         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14543         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14544         was absent, but it caused a test failure with coreutils.
14545         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14546         with libm.
14547         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14548         * modules/strtod-tests (Makefile.am): Likewise.
14549
14550 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14551             Bruno Haible  <bruno@clisp.org>
14552
14553         unistr/u8-strchr: Optimize ASCII argument case.
14554         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14555
14556 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14557
14558         (x)memcoll: minor tweaks
14559         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14560         is after the type that it qualifies.
14561         (memcoll0): Likewise.
14562         * lib/memcoll.h (memcoll0): Likewise.
14563         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14564         * lib/xmemcoll.h (xmemcoll0): Likewise.
14565         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14566         differs from memcoll in that the NUL byte is part of the argument.
14567         Omit the abort-checks, as performance is a real issue here.  Plus,
14568         the checks were wrong anyway (an off-by-one error).  Omit local
14569         variable 'diff', as it's a bit clearer that way.
14570         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14571         no longer needed.
14572
14573 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14574
14575         (x)memcoll: speedup when input is known to be NUL delimited
14576         * lib/memcoll.c: Include stdlib.
14577         (memcoll0): New function.
14578         (strcoll_loop): New function, refactored for use in both memcoll
14579         and memcoll0.
14580         * lib/memcoll.h (memcoll0): Add prototype.
14581         * lib/xmemcoll.c (xmemcoll0): New function.
14582         (collate_error): New function, refactored for use in both xmemcoll
14583         and xmemcoll0.
14584         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14585         * m4/memcoll.m4: add inline invocation.
14586
14587 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14588
14589         * build-aux/bootstrap: Remove any local translations
14590         from the translation project synchronization directory,
14591         so that local only translations are not distributed.
14592
14593 2010-07-04  Bruno Haible  <bruno@clisp.org>
14594
14595         fsusage: Clarify which code applies to which platforms.
14596         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14597         platform.
14598         * lib/fsusage.c (get_fs_usage): Likewise.
14599
14600 2010-07-04  Bruno Haible  <bruno@clisp.org>
14601
14602         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14603         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14604         Reported by Martin Lambers <marlam@marlam.de>.
14605
14606 2010-07-04  Jim Meyering  <meyering@redhat.com>
14607
14608         hash: once again explicitly disallow insertion of NULL
14609         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14610         inserting a NULL pointer cannot work with these functions.
14611         Add a comment with details.
14612         This reverts part of the 2010-07-01 commit, 5bef1a35
14613         "hash: extend module to deal with non-pointer keys".
14614
14615 2010-07-01  Bruno Haible  <bruno@clisp.org>
14616
14617         stdbool: Update doc.
14618         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14619         Info from Christian Weisgerber <naddy@mips.inka.de>.
14620
14621 2010-07-01  Jim Meyering  <meyering@redhat.com>
14622
14623         hash: extend module to deal with non-pointer keys
14624         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14625         but that allows insertion of non-pointer entries.
14626         Do not disallow an ENTRY value of NULL.
14627         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14628         * lib/hash.h (hash_insert0): Declare.
14629
14630 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14631
14632         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14633         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14634         not present (i.e. with autoconf 2.59 and when using gettextize, not
14635         gnulib), require AC_GNU_SOURCE instead.
14636
14637 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14638
14639         idpriv-drop: Fix tests.
14640         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14641         not to the test-idpriv-droptemp program.
14642
14643 2010-06-29  Bruno Haible  <bruno@clisp.org>
14644
14645         string: Fix syntax error with g++ 2.96.
14646         * lib/string.in.h (__pure__): Remove definition.
14647         (_GL_ATTRIBUTE_PURE): New macro.
14648         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14649         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14650         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14651
14652 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14653
14654         unitypes: Fix bug introduced on 2010-05-18.
14655         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14656
14657 2010-06-22  Eric Blake  <eblake@redhat.com>
14658
14659         memmem: slight optimization
14660         * lib/str-two-way.h (critical_factorization): Update comments.
14661         Reduce work during factorization phase.
14662         Reported by Carlos Bueno <carlos@bueno.org>.
14663
14664 2010-06-21  Bruno Haible  <bruno@clisp.org>
14665
14666         Fix HAVE_CALLOC_POSIX misnomer.
14667         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14668         !HAVE_CALLOC_POSIX.
14669         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14670         HAVE_CALLOC_POSIX.
14671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14672         instead of HAVE_CALLOC_POSIX.
14673         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14674         HAVE_CALLOC_POSIX.
14675
14676         Use modern idiom for calloc() replacement.
14677         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14678         AC_FUNC_CALLOC.
14679         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14680         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14681         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14682         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14683         (gl_REPLACE_CALLOC): New macro.
14684
14685 2010-06-21  Bruno Haible  <bruno@clisp.org>
14686
14687         Fix HAVE_REALLOC_POSIX misnomer.
14688         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14689         !HAVE_REALLOC_POSIX.
14690         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14691         HAVE_REALLOC_POSIX.
14692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14693         instead of HAVE_REALLOC_POSIX.
14694         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14695         HAVE_REALLOC_POSIX.
14696
14697         Use modern idiom for realloc() replacement.
14698         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14699         AC_FUNC_REALLOC.
14700         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14701         Autoconf's AC_FUNC_REALLOC.
14702         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14703         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14704         (gl_REPLACE_REALLOC): New macro.
14705         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14706
14707 2010-06-21  Bruno Haible  <bruno@clisp.org>
14708
14709         Fix HAVE_MALLOC_POSIX misnomer.
14710         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14711         !HAVE_MALLOC_POSIX.
14712         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14713         HAVE_MALLOC_POSIX.
14714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14715         instead of HAVE_MALLOC_POSIX.
14716         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14717         HAVE_MALLOC_POSIX.
14718
14719         Use modern idiom for malloc() replacement.
14720         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14721         AC_FUNC_MALLOC.
14722         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14723         Autoconf's AC_FUNC_MALLOC.
14724         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14725         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14726         (gl_REPLACE_MALLOC): New macro.
14727         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14728
14729 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14730
14731         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14732         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14733         This macro takes 3 arguments, not 4.
14734
14735 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14736
14737         ipv6: fix detection under mingw
14738         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14739         in6_addr.
14740
14741 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14742
14743         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14744         that strtod() works when cross-compiling to a glibc version known
14745         to work.
14746
14747 2010-06-15  Bruno Haible  <bruno@clisp.org>
14748
14749         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14750
14751 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14752
14753         select: Correct timeout.
14754         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14755
14756 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14757
14758         git-version-gen: init shell var to avoid env var influence
14759         * build-aux/git-version-gen (v): Init shell var to empty.
14760
14761 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14762
14763         priv-set: Don't assume that priv.h exists merely because getppriv does.
14764         See Jan Andersen's bug report about AIX 5L in
14765         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14766         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14767         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14768         * lib/priv-set.h: Likewise.
14769         * tests/test-priv-set.c: Likewise.
14770
14771 2010-06-13  Bruno Haible  <bruno@clisp.org>
14772
14773         relocatable: Make it easier to test whether to install wrappers.
14774         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14775         RELOCATABLE_VIA_WRAPPER.
14776
14777 2010-06-13  Bruno Haible  <bruno@clisp.org>
14778
14779         gnulib-tool: Display specified modules and dependencies differently.
14780         * gnulib-tool (func_show_module_list): New function.
14781         (func_import, func_create_testdir): Invoke it.
14782         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14783
14784 2010-06-13  Bruno Haible  <bruno@clisp.org>
14785
14786         gnulib-tool: Align code of func_import and func_create_testdir.
14787         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14788         specified_modules.
14789
14790 2010-06-12  Jim Meyering  <meyering@redhat.com>
14791
14792         test-inttostr: avoid spurious failure on Solaris 9
14793         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14794         to accept "%ju".  Reported by Bruno Haible.
14795
14796 2010-06-11  Jim Meyering  <meyering@redhat.com>
14797
14798         test-sys_socket: mark variables as used more readably
14799         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14800         as "used" explicitly via (void) statement casts.  This is more
14801         readable than using them in an artificial return expression.
14802         Suggestion from Bruno Haible.
14803
14804 2010-06-11  Bruno Haible  <bruno@clisp.org>
14805
14806         Avoid some more warnings from "gcc -Wwrite-strings".
14807         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14808         to 'const char *'.
14809         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14810         * tests/test-c-strcasestr.c (main): Likewise.
14811         * tests/test-mbscasestr1.c (main): Likewise.
14812         * tests/test-mbscasestr2.c (main): Likewise.
14813         * tests/test-memmem.c (main): Likewise.
14814         * tests/test-strstr.c (main): Likewise.
14815         * tests/test-strcasestr.c (main): Likewise.
14816
14817 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14818
14819         init.sh: change framework_failure_ to fail with status 99, not 1
14820         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14821         automake's parallel-tests rule that this is an unexpected failure,
14822         even if the test is listed in XFAIL_TESTS.
14823
14824 2010-06-11  Jim Meyering  <meyering@redhat.com>
14825
14826         test-inttostr: avoid warnings about 4-6KB literal strings
14827         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14828         Include "macros.h", for its definition of ASSERT.
14829         (CK): s/assert/ASSERT/
14830         * modules/inttostr-tests (Files): Add macros.h.
14831
14832         init.sh: don't use $ME_ or skip_ before they are defined
14833         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14834         their first uses.  Also hoist their companions: warn_, fail_,
14835         framework_failure_, $stderr_fileno.  Prompted by a patch from
14836         Stefano Lattarini.
14837
14838         test-sys_socket: avoid set-but-not-used warnings from gcc
14839         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14840         avoid warning about set-but-not-used variables.
14841
14842         test-xvasprintf: avoid 'const' discard warnings
14843         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14844         "const" when assigning from literal strings.
14845         (test_xasprintf): Add "void" in function argument list to placate
14846         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14847
14848         tests: avoid compilation warnings in argmatch and exclude tests...
14849         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14850         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14851         Since it always exits, declare with the "noreturn" attribute.
14852         * tests/test-argmatch.c: Likewise.
14853
14854         tests: avoid 'const' discard warnings in mbsstr tests
14855         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14856         * tests/test-mbsstr2.c (main): Likewise.
14857
14858         test-verify: avoid warning from gcc's -Wmissing-declarations
14859         * tests/test-verify.c (function): Declare to be static.
14860
14861         test-inttostr.c: include <string.h> for use of strcmp
14862         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14863
14864         test-linkat: avoid failed assertion on "other" architectures
14865         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14866         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14867         sparc: https://bugs.launchpad.net/bugs/591968
14868
14869 2010-06-11  Jim Meyering  <meyering@redhat.com>
14870
14871         printf.m4: avoid autoconf's "Expanded Before Required" warning
14872         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14873         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14874         autoconf warning.
14875
14876 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14877
14878         Replacement header templates are now named with ".in", not "_".
14879         * doc/gnulib-intro.texi: Correct.
14880
14881 2010-06-10  Jim Meyering  <meyering@redhat.com>
14882
14883         inttostr-tests: depend on snprintf, not snprintf-posix
14884         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14885         snprintf-posix, to avoid this aclocal failure:
14886           missing file gnulib-tests/vasnprintf.c
14887           configure.ac:45: error: expected source file, required through \
14888           AC_LIBSOURCES, not found
14889
14890 2010-06-10  Jim Meyering  <meyering@redhat.com>
14891
14892         inttostr: add a new function, inttostr, and tests
14893         The namesake function was not available.  The existence of the
14894         template file, inttostr.c makes its addition nontrivial.
14895         * lib/anytostr.c: Rename from inttostr.c.
14896         (anytostr): Rename from inttostr.
14897         * lib/inttostr.c: New file.
14898         * modules/inttostr (Files): Add anytostr.c.
14899         (Makefile.am): Set lib_SOURCES instead of ...
14900         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14901         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14902         * lib/offtostr.c: Likewise.
14903         * lib/uinttostr.c: Likewise.
14904         * lib/umaxtostr.c: Likewise.
14905         * modules/inttostr-tests: New file.
14906         * tests/test-inttostr.c: New file.  Test these functions.
14907
14908 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14909             Bruno Haible  <bruno@clisp.org>
14910
14911         Add "Extending Gnulib" chapter to manual.
14912         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14913         chapter.
14914         (Extending Gnulib): New chapter.
14915         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14916         chapter.
14917
14918 2010-06-09  Bruno Haible  <bruno@clisp.org>
14919
14920         Avoid relocwrapper link errors due to gnulib replacement functions.
14921         * lib/areadlink.c: Use the system's malloc, realloc functions.
14922         (areadlink): Set errno to ENOMEM explicitly.
14923         * modules/areadlink (Depends-on): Remove malloc-posix.
14924         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14925
14926 2010-06-09  Bruno Haible  <bruno@clisp.org>
14927
14928         Avoid relocwrapper link errors due to gnulib replacement functions.
14929         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14930         * lib/malloca.c: Likewise.
14931         * lib/relocatable.c: Likewise.
14932         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14933         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14934         * lib/setenv.c: Use the system's malloc, realloc functions.
14935         * lib/strerror.c: Use the system's sprintf function.
14936         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14937
14938 2010-06-04  Bruno Haible  <bruno@clisp.org>
14939
14940         Prefer documented low-level autoconf macro names.
14941         * m4/lib-link.m4: Use m4_translit instead of translit.
14942         * m4/environ.m4: Likewise.
14943         * m4/mathfunc.m4: Likewise.
14944         * m4/onceonly.m4: Likewise.
14945         * m4/stdint.m4: Likewise.
14946         Suggested by Eric Blake.
14947
14948 2010-06-04  Martin Lambers  <marlam@marlam.de>
14949             Bruno Haible  <bruno@clisp.org>
14950
14951         havelib: Allow library names with '+' characters.
14952         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14953         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14954
14955 2010-06-09  Bruno Haible  <bruno@clisp.org>
14956
14957         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14958         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14959         realloc failed.
14960
14961 2010-06-08  Peter Simons  <simons@cryp.to>
14962
14963         maint.mk: make the news-check rule more configurable
14964         * top/maint.mk (news-check-lines-spec): New variable.
14965         (news-check): Use "sed -n 1,10p" in place of "head".
14966
14967 2010-06-07  Jim Meyering  <meyering@redhat.com>
14968
14969         do-release-commit-and-tag: fix typo in --help
14970         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14971
14972         regex: avoid new dead-code warning with gcc-4.6.0
14973         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14974         if-block containing a while-loop.  It's been unused for at least
14975         5 years.
14976
14977 2010-06-05  Bruno Haible  <bruno@clisp.org>
14978
14979         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14980         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14981
14982 2010-06-04  Bruno Haible  <bruno@clisp.org>
14983
14984         Update to GNU gettext 0.18.1.
14985         * modules/gettext (configure.ac): Require gettext infrastructure from
14986         version 0.18.1.
14987
14988 2010-06-03  Bruno Haible  <bruno@clisp.org>
14989
14990         Don't use AC_LIBOBJ with file names in subdirectories.
14991         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14992         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14993         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14994         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14995         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14996         gl_LIBUNISTRING_LIBSOURCE.
14997         (Makefile.am): Augment lib_SOURCES here, conditionally.
14998         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14999
15000 2010-06-03  Bruno Haible  <bruno@clisp.org>
15001
15002         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
15003         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
15004         expansion does not end with a newline.
15005         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
15006         unnecessary newline.
15007
15008 2010-06-03  Bruno Haible  <bruno@clisp.org>
15009
15010         Reduce dependencies.
15011         * tests/test-quotearg.h: New file, extracted from
15012         tests/test-quotearg.c.
15013         * tests/test-quotearg-simple.c: New file, extracted from
15014         tests/test-quotearg.c.
15015         * tests/test-quotearg.c: Don't include <ctype.h>.
15016         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
15017         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
15018         use_quote_double_quotes, use_quotearg_colon): Moved to
15019         tests/test-quotearg.h.
15020         (results_g, flag_results, custom_quotes, custom_results): Moved
15021         to tests/test-quotearg-simple.c.
15022         (main): Moved the part that does not depend on gettext to
15023         tests/test-quotearg-simple.c. Return 77 if the test cannot be
15024         performed.
15025         * modules/quotearg-simple: New file.
15026         * modules/quotearg-simple-tests: New file.
15027         * modules/quotearg (Depends-on): Add quotearg-simple.
15028         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
15029         (Files): Add tests/test-quotearg.h.
15030         Reported by Paolo Bonzini.
15031
15032 2010-06-03  Bruno Haible  <bruno@clisp.org>
15033
15034         Reduce dependencies.
15035         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
15036
15037 2010-06-03  Bruno Haible  <bruno@clisp.org>
15038
15039         time: Undefine more broken macros.
15040         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
15041         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
15042         Reported by Eric Blake.
15043
15044 2010-06-03  Bruno Haible  <bruno@clisp.org>
15045
15046         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
15047         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
15048         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
15049         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
15050         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
15051         Reported by Ludovic Courtès <ludo@gnu.org>.
15052
15053 2010-06-02  Eric Blake  <eblake@redhat.com>
15054
15055         time: work with mingw + pthreads-win32 library
15056         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
15057         if timespec is defined only in pthread.h.
15058         * modules/time (Makefile.am): Substitute it.
15059         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
15060         <pthread.h>, when needed.
15061         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
15062         from the library.
15063
15064 2010-05-31  Bruno Haible  <bruno@clisp.org>
15065
15066         Avoid expanding two macros in the wrong order.
15067         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
15068         gl_LIBUNISTRING if it is defined.
15069         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
15070         autoconf >= 2.64.
15071         Reported by Ludovic Courtès <ludo@gnu.org>.
15072
15073 2010-05-27  Jim Meyering  <meyering@redhat.com>
15074
15075         maint.mk: also prohibit "#undef" of always-defined symbols
15076         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
15077         Allow more than one space before the symbol name.
15078         (sc_prohibit_always-defined_macros): Use grep's -E, now that
15079         the regexp uses alternation.
15080
15081 2010-05-26  Eric Blake  <eblake@redhat.com>
15082
15083         maint.mk: avoid echo -e
15084         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
15085         Convert all uses of echo -* to printf.
15086         Reported by Matthias Bolte.
15087
15088 2010-05-25  Bruno Haible  <bruno@clisp.org>
15089
15090         Update to GNU gettext 0.18, part 2.
15091         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
15092         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
15093
15094 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15095
15096         Add missing include in test-pwrite.c.
15097         * tests/test-pwrite.c: Include string.h, for strcmp.
15098
15099 2010-05-24  Bruno Haible  <bruno@clisp.org>
15100
15101         * NEWS: Mention requirement for Automake option 'subdir-objects'.
15102
15103 2010-05-24  Bruno Haible  <bruno@clisp.org>
15104
15105         Don't use conversion with transliteration in u{8,16,32}_strcoll.
15106         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
15107         iconveh_error argument.
15108         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
15109         U_STRCONV_TO_LOCALE.
15110         * lib/unistr/u16-strcoll.c: Likewise.
15111         * lib/unistr/u32-strcoll.c: Likewise.
15112         * modules/unistr/u8-strcoll (Depends-on): Add
15113         uniconv/u8-strconv-to-enc, localcharset. Remove
15114         uniconv/u8-strconv-to-locale.
15115         (configure.ac): Bump version number.
15116         * modules/unistr/u16-strcoll (Depends-on): Add
15117         uniconv/u16-strconv-to-enc, localcharset. Remove
15118         uniconv/u16-strconv-to-locale.
15119         (configure.ac): Bump version number.
15120         * modules/unistr/u32-strcoll (Depends-on): Add
15121         uniconv/u32-strconv-to-enc, localcharset. Remove
15122         uniconv/u32-strconv-to-locale.
15123         (configure.ac): Bump version number.
15124
15125 2010-05-24  Bruno Haible  <bruno@clisp.org>
15126
15127         Avoid a test failure on NetBSD 5.0.
15128         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
15129         an iconv() bug.
15130
15131 2010-05-24  Bruno Haible  <bruno@clisp.org>
15132
15133         Adjust #include directive style.
15134         * modules/regex (Includes): Recommend to write <regex.h>.
15135
15136 2010-05-24  Bruno Haible  <bruno@clisp.org>
15137
15138         regex: Don't require alloca.
15139         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
15140         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
15141         only inside if (0).
15142
15143 2010-05-23  Jim Meyering  <meyering@redhat.com>
15144
15145         test-renameat.c: include <sys/stat.h>
15146         * tests/test-renameat.c: Include <sys/stat.h>; required for
15147         definition of S_IS* macros.
15148
15149 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
15150
15151         Update maintainer documentation for 'relocatable-prog' module.
15152         * doc/relocatable-maint.texi: Update.
15153         Comments by Bruno Haible.
15154
15155 2010-05-23  Bruno Haible  <bruno@clisp.org>
15156
15157         git-merge-changelog: Enable --split-merged-entry by default.
15158         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
15159         (usage): Don't mention this option any more.
15160         Reported by Ralf Wildenhues.
15161
15162 2010-05-23  Jim Meyering  <meyering@redhat.com>
15163
15164         test-pwrite: do not leave behind a test file named "out"
15165         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
15166         The trivial-looking use of init.sh is really necessary.
15167         It ensures that the temporary file, "out", is created in
15168         a temporary directory, and removed upon termination.
15169         * tests/test-pwrite.sh: Re-add file.
15170         * modules/pwrite-tests: Reference it.
15171
15172 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15173
15174         Fix output redirection buglet in init.sh.
15175         * tests/init.sh: Fix redirection of stderr.
15176
15177 2010-05-20  Simon Josefsson  <simon@josefsson.org>
15178
15179         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
15180
15181 2010-05-17  Simon Josefsson  <simon@josefsson.org>
15182
15183         * modules/valgrind-tests: New file.
15184         * m4/valgrind-tests.m4: New file.
15185         * doc/valgrind-tests.texi: New file.
15186         * doc/gnulib.texi (Running self-tests under valgrind): New
15187         section.
15188
15189 2010-05-19  Bruno Haible  <bruno@clisp.org>
15190
15191         Clean up dead code in recent commit.
15192         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
15193         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
15194         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
15195         Suggested by Paolo Bonzini.
15196
15197 2010-05-19  Bruno Haible  <bruno@clisp.org>
15198
15199         Avoid valgrind error reports from libunistring.
15200         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
15201         * modules/libunistring (Files): Add it.
15202         * modules/libunistring-optional (Files): Likewise.
15203
15204 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
15205             Bruno Haible  <bruno@clisp.org>
15206
15207         New module 'libunistring-optional'.
15208         * modules/libunistring-optional: New file.
15209         * m4/libunistring-base.m4: New file.
15210         * m4/libunistring-optional.m4: New file.
15211         * lib/unicase.in.h: Renamed from lib/unicase.h.
15212         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
15213         * lib/unictype.in.h: Renamed from lib/unictype.h.
15214         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
15215         * lib/uniname.in.h: Renamed from lib/uniname.h.
15216         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
15217         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
15218         * lib/unistr.in.h: Renamed from lib/unistr.h.
15219         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
15220         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
15221         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
15222         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
15223         gl_LIBUNISTRING. If the library was found, determine the installed
15224         version and set LIBUNISTRING_VERSION.
15225         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
15226         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
15227         handle a configuration option --with-included-libunistring.
15228         * modules/libunistring (Files): Add m4/absolute-header.m4.
15229         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
15230         Add m4/libunistring-base.m4.
15231         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15232         (Makefile.am): Build unicase.h from unicase.in.h.
15233         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
15234         Add m4/libunistring-base.m4.
15235         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15236         (Makefile.am): Build uniconv.h from uniconv.in.h.
15237         * modules/unictype/base (Files): Use unictype.in.h instead of
15238         unictype.h. Add m4/libunistring-base.m4.
15239         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15240         (Makefile.am): Build unictype.h from unictype.in.h.
15241         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15242         Add m4/libunistring-base.m4.
15243         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15244         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15245         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15246         Add m4/libunistring-base.m4.
15247         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15248         (Makefile.am): Build uniname.h from uniname.in.h.
15249         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15250         Add m4/libunistring-base.m4.
15251         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15252         (Makefile.am): Build uninorm.h from uninorm.in.h.
15253         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15254         unistdio.h. Add m4/libunistring-base.m4.
15255         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15256         (Makefile.am): Build unistdio.h from unistdio.in.h.
15257         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15258         Add m4/libunistring-base.m4.
15259         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15260         (Makefile.am): Build unistr.h from unistr.in.h.
15261         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15262         Add m4/libunistring-base.m4.
15263         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15264         (Makefile.am): Build unitypes.h from unitypes.in.h.
15265         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15266         Add m4/libunistring-base.m4.
15267         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15268         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15269         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15270         uniwidth.h. Add m4/libunistring-base.m4.
15271         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15272         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15273         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15274         instead of augmenting lib_SOURCES.
15275         * modules/unicase/empty-suffix-context: Likewise.
15276         * modules/unicase/locale-language: Likewise.
15277         * modules/unicase/tolower: Likewise.
15278         * modules/unicase/totitle: Likewise.
15279         * modules/unicase/toupper: Likewise.
15280         * modules/unicase/u8-casecmp: Likewise.
15281         * modules/unicase/u8-casecoll: Likewise.
15282         * modules/unicase/u8-casefold: Likewise.
15283         * modules/unicase/u8-casexfrm: Likewise.
15284         * modules/unicase/u8-ct-casefold: Likewise.
15285         * modules/unicase/u8-ct-tolower: Likewise.
15286         * modules/unicase/u8-ct-totitle: Likewise.
15287         * modules/unicase/u8-ct-toupper: Likewise.
15288         * modules/unicase/u8-is-cased: Likewise.
15289         * modules/unicase/u8-is-casefolded: Likewise.
15290         * modules/unicase/u8-is-lowercase: Likewise.
15291         * modules/unicase/u8-is-titlecase: Likewise.
15292         * modules/unicase/u8-is-uppercase: Likewise.
15293         * modules/unicase/u8-prefix-context: Likewise.
15294         * modules/unicase/u8-suffix-context: Likewise.
15295         * modules/unicase/u8-tolower: Likewise.
15296         * modules/unicase/u8-totitle: Likewise.
15297         * modules/unicase/u8-toupper: Likewise.
15298         * modules/unicase/u16-casecmp: Likewise.
15299         * modules/unicase/u16-casecoll: Likewise.
15300         * modules/unicase/u16-casefold: Likewise.
15301         * modules/unicase/u16-casexfrm: Likewise.
15302         * modules/unicase/u16-ct-casefold: Likewise.
15303         * modules/unicase/u16-ct-tolower: Likewise.
15304         * modules/unicase/u16-ct-totitle: Likewise.
15305         * modules/unicase/u16-ct-toupper: Likewise.
15306         * modules/unicase/u16-is-cased: Likewise.
15307         * modules/unicase/u16-is-casefolded: Likewise.
15308         * modules/unicase/u16-is-lowercase: Likewise.
15309         * modules/unicase/u16-is-titlecase: Likewise.
15310         * modules/unicase/u16-is-uppercase: Likewise.
15311         * modules/unicase/u16-prefix-context: Likewise.
15312         * modules/unicase/u16-suffix-context: Likewise.
15313         * modules/unicase/u16-tolower: Likewise.
15314         * modules/unicase/u16-totitle: Likewise.
15315         * modules/unicase/u16-toupper: Likewise.
15316         * modules/unicase/u32-casecmp: Likewise.
15317         * modules/unicase/u32-casecoll: Likewise.
15318         * modules/unicase/u32-casefold: Likewise.
15319         * modules/unicase/u32-casexfrm: Likewise.
15320         * modules/unicase/u32-ct-casefold: Likewise.
15321         * modules/unicase/u32-ct-tolower: Likewise.
15322         * modules/unicase/u32-ct-totitle: Likewise.
15323         * modules/unicase/u32-ct-toupper: Likewise.
15324         * modules/unicase/u32-is-cased: Likewise.
15325         * modules/unicase/u32-is-casefolded: Likewise.
15326         * modules/unicase/u32-is-lowercase: Likewise.
15327         * modules/unicase/u32-is-titlecase: Likewise.
15328         * modules/unicase/u32-is-uppercase: Likewise.
15329         * modules/unicase/u32-prefix-context: Likewise.
15330         * modules/unicase/u32-suffix-context: Likewise.
15331         * modules/unicase/u32-tolower: Likewise.
15332         * modules/unicase/u32-totitle: Likewise.
15333         * modules/unicase/u32-toupper: Likewise.
15334         * modules/unicase/ulc-casecmp: Likewise.
15335         * modules/unicase/ulc-casecoll: Likewise.
15336         * modules/unicase/ulc-casexfrm: Likewise.
15337         * modules/uniconv/u8-conv-from-enc: Likewise.
15338         * modules/uniconv/u8-conv-to-enc: Likewise.
15339         * modules/uniconv/u8-strconv-from-enc: Likewise.
15340         * modules/uniconv/u8-strconv-from-locale: Likewise.
15341         * modules/uniconv/u8-strconv-to-enc: Likewise.
15342         * modules/uniconv/u8-strconv-to-locale: Likewise.
15343         * modules/uniconv/u16-conv-from-enc: Likewise.
15344         * modules/uniconv/u16-conv-to-enc: Likewise.
15345         * modules/uniconv/u16-strconv-from-enc: Likewise.
15346         * modules/uniconv/u16-strconv-from-locale: Likewise.
15347         * modules/uniconv/u16-strconv-to-enc: Likewise.
15348         * modules/uniconv/u16-strconv-to-locale: Likewise.
15349         * modules/uniconv/u32-conv-from-enc: Likewise.
15350         * modules/uniconv/u32-conv-to-enc: Likewise.
15351         * modules/uniconv/u32-strconv-from-enc: Likewise.
15352         * modules/uniconv/u32-strconv-from-locale: Likewise.
15353         * modules/uniconv/u32-strconv-to-enc: Likewise.
15354         * modules/uniconv/u32-strconv-to-locale: Likewise.
15355         * modules/unictype/bidicategory-byname: Likewise.
15356         * modules/unictype/bidicategory-name: Likewise.
15357         * modules/unictype/bidicategory-of: Likewise.
15358         * modules/unictype/bidicategory-test: Likewise.
15359         * modules/unictype/block-list: Likewise.
15360         * modules/unictype/block-test: Likewise.
15361         * modules/unictype/category-C: Likewise.
15362         * modules/unictype/category-Cc: Likewise.
15363         * modules/unictype/category-Cf: Likewise.
15364         * modules/unictype/category-Cn: Likewise.
15365         * modules/unictype/category-Co: Likewise.
15366         * modules/unictype/category-Cs: Likewise.
15367         * modules/unictype/category-L: Likewise.
15368         * modules/unictype/category-Ll: Likewise.
15369         * modules/unictype/category-Lm: Likewise.
15370         * modules/unictype/category-Lo: Likewise.
15371         * modules/unictype/category-Lt: Likewise.
15372         * modules/unictype/category-Lu: Likewise.
15373         * modules/unictype/category-M: Likewise.
15374         * modules/unictype/category-Mc: Likewise.
15375         * modules/unictype/category-Me: Likewise.
15376         * modules/unictype/category-Mn: Likewise.
15377         * modules/unictype/category-N: Likewise.
15378         * modules/unictype/category-Nd: Likewise.
15379         * modules/unictype/category-Nl: Likewise.
15380         * modules/unictype/category-No: Likewise.
15381         * modules/unictype/category-P: Likewise.
15382         * modules/unictype/category-Pc: Likewise.
15383         * modules/unictype/category-Pd: Likewise.
15384         * modules/unictype/category-Pe: Likewise.
15385         * modules/unictype/category-Pf: Likewise.
15386         * modules/unictype/category-Pi: Likewise.
15387         * modules/unictype/category-Po: Likewise.
15388         * modules/unictype/category-Ps: Likewise.
15389         * modules/unictype/category-S: Likewise.
15390         * modules/unictype/category-Sc: Likewise.
15391         * modules/unictype/category-Sk: Likewise.
15392         * modules/unictype/category-Sm: Likewise.
15393         * modules/unictype/category-So: Likewise.
15394         * modules/unictype/category-Z: Likewise.
15395         * modules/unictype/category-Zl: Likewise.
15396         * modules/unictype/category-Zp: Likewise.
15397         * modules/unictype/category-Zs: Likewise.
15398         * modules/unictype/category-and: Likewise.
15399         * modules/unictype/category-and-not: Likewise.
15400         * modules/unictype/category-byname: Likewise.
15401         * modules/unictype/category-name: Likewise.
15402         * modules/unictype/category-none: Likewise.
15403         * modules/unictype/category-of: Likewise.
15404         * modules/unictype/category-or: Likewise.
15405         * modules/unictype/category-test: Likewise.
15406         * modules/unictype/combining-class: Likewise.
15407         * modules/unictype/ctype-alnum: Likewise.
15408         * modules/unictype/ctype-alpha: Likewise.
15409         * modules/unictype/ctype-blank: Likewise.
15410         * modules/unictype/ctype-cntrl: Likewise.
15411         * modules/unictype/ctype-digit: Likewise.
15412         * modules/unictype/ctype-graph: Likewise.
15413         * modules/unictype/ctype-lower: Likewise.
15414         * modules/unictype/ctype-print: Likewise.
15415         * modules/unictype/ctype-punct: Likewise.
15416         * modules/unictype/ctype-space: Likewise.
15417         * modules/unictype/ctype-upper: Likewise.
15418         * modules/unictype/ctype-xdigit: Likewise.
15419         * modules/unictype/decimal-digit: Likewise.
15420         * modules/unictype/digit: Likewise.
15421         * modules/unictype/mirror: Likewise.
15422         * modules/unictype/numeric: Likewise.
15423         * modules/unictype/property-alphabetic: Likewise.
15424         * modules/unictype/property-ascii-hex-digit: Likewise.
15425         * modules/unictype/property-bidi-arabic-digit: Likewise.
15426         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15427         * modules/unictype/property-bidi-block-separator: Likewise.
15428         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15429         * modules/unictype/property-bidi-common-separator: Likewise.
15430         * modules/unictype/property-bidi-control: Likewise.
15431         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15432         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15433         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15434         * modules/unictype/property-bidi-european-digit: Likewise.
15435         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15436         * modules/unictype/property-bidi-left-to-right: Likewise.
15437         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15438         * modules/unictype/property-bidi-other-neutral: Likewise.
15439         * modules/unictype/property-bidi-pdf: Likewise.
15440         * modules/unictype/property-bidi-segment-separator: Likewise.
15441         * modules/unictype/property-bidi-whitespace: Likewise.
15442         * modules/unictype/property-byname: Likewise.
15443         * modules/unictype/property-combining: Likewise.
15444         * modules/unictype/property-composite: Likewise.
15445         * modules/unictype/property-currency-symbol: Likewise.
15446         * modules/unictype/property-dash: Likewise.
15447         * modules/unictype/property-decimal-digit: Likewise.
15448         * modules/unictype/property-default-ignorable-code-point: Likewise.
15449         * modules/unictype/property-deprecated: Likewise.
15450         * modules/unictype/property-diacritic: Likewise.
15451         * modules/unictype/property-extender: Likewise.
15452         * modules/unictype/property-format-control: Likewise.
15453         * modules/unictype/property-grapheme-base: Likewise.
15454         * modules/unictype/property-grapheme-extend: Likewise.
15455         * modules/unictype/property-grapheme-link: Likewise.
15456         * modules/unictype/property-hex-digit: Likewise.
15457         * modules/unictype/property-hyphen: Likewise.
15458         * modules/unictype/property-id-continue: Likewise.
15459         * modules/unictype/property-id-start: Likewise.
15460         * modules/unictype/property-ideographic: Likewise.
15461         * modules/unictype/property-ids-binary-operator: Likewise.
15462         * modules/unictype/property-ids-trinary-operator: Likewise.
15463         * modules/unictype/property-ignorable-control: Likewise.
15464         * modules/unictype/property-iso-control: Likewise.
15465         * modules/unictype/property-join-control: Likewise.
15466         * modules/unictype/property-left-of-pair: Likewise.
15467         * modules/unictype/property-line-separator: Likewise.
15468         * modules/unictype/property-logical-order-exception: Likewise.
15469         * modules/unictype/property-lowercase: Likewise.
15470         * modules/unictype/property-math: Likewise.
15471         * modules/unictype/property-non-break: Likewise.
15472         * modules/unictype/property-not-a-character: Likewise.
15473         * modules/unictype/property-numeric: Likewise.
15474         * modules/unictype/property-other-alphabetic: Likewise.
15475         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15476         * modules/unictype/property-other-grapheme-extend: Likewise.
15477         * modules/unictype/property-other-id-continue: Likewise.
15478         * modules/unictype/property-other-id-start: Likewise.
15479         * modules/unictype/property-other-lowercase: Likewise.
15480         * modules/unictype/property-other-math: Likewise.
15481         * modules/unictype/property-other-uppercase: Likewise.
15482         * modules/unictype/property-paired-punctuation: Likewise.
15483         * modules/unictype/property-paragraph-separator: Likewise.
15484         * modules/unictype/property-pattern-syntax: Likewise.
15485         * modules/unictype/property-pattern-white-space: Likewise.
15486         * modules/unictype/property-private-use: Likewise.
15487         * modules/unictype/property-punctuation: Likewise.
15488         * modules/unictype/property-quotation-mark: Likewise.
15489         * modules/unictype/property-radical: Likewise.
15490         * modules/unictype/property-sentence-terminal: Likewise.
15491         * modules/unictype/property-soft-dotted: Likewise.
15492         * modules/unictype/property-space: Likewise.
15493         * modules/unictype/property-terminal-punctuation: Likewise.
15494         * modules/unictype/property-test: Likewise.
15495         * modules/unictype/property-titlecase: Likewise.
15496         * modules/unictype/property-unassigned-code-value: Likewise.
15497         * modules/unictype/property-unified-ideograph: Likewise.
15498         * modules/unictype/property-uppercase: Likewise.
15499         * modules/unictype/property-variation-selector: Likewise.
15500         * modules/unictype/property-white-space: Likewise.
15501         * modules/unictype/property-xid-continue: Likewise.
15502         * modules/unictype/property-xid-start: Likewise.
15503         * modules/unictype/property-zero-width: Likewise.
15504         * modules/unictype/scripts: Likewise.
15505         * modules/unictype/syntax-c-ident: Likewise.
15506         * modules/unictype/syntax-c-whitespace: Likewise.
15507         * modules/unictype/syntax-java-ident: Likewise.
15508         * modules/unictype/syntax-java-whitespace: Likewise.
15509         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15510         * modules/unilbrk/u8-width-linebreaks: Likewise.
15511         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15512         * modules/unilbrk/u16-width-linebreaks: Likewise.
15513         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15514         * modules/unilbrk/u32-width-linebreaks: Likewise.
15515         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15516         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15517         * modules/uniname/uniname: Likewise.
15518         * modules/uninorm/canonical-decomposition: Likewise.
15519         * modules/uninorm/composition: Likewise.
15520         * modules/uninorm/decomposing-form: Likewise.
15521         * modules/uninorm/decomposition: Likewise.
15522         * modules/uninorm/filter: Likewise.
15523         * modules/uninorm/nfc: Likewise.
15524         * modules/uninorm/nfd: Likewise.
15525         * modules/uninorm/nfkc: Likewise.
15526         * modules/uninorm/nfkd: Likewise.
15527         * modules/uninorm/u8-normalize: Likewise.
15528         * modules/uninorm/u8-normcmp: Likewise.
15529         * modules/uninorm/u8-normcoll: Likewise.
15530         * modules/uninorm/u8-normxfrm: Likewise.
15531         * modules/uninorm/u16-normalize: Likewise.
15532         * modules/uninorm/u16-normcmp: Likewise.
15533         * modules/uninorm/u16-normcoll: Likewise.
15534         * modules/uninorm/u16-normxfrm: Likewise.
15535         * modules/uninorm/u32-normalize: Likewise.
15536         * modules/uninorm/u32-normcmp: Likewise.
15537         * modules/uninorm/u32-normcoll: Likewise.
15538         * modules/uninorm/u32-normxfrm: Likewise.
15539         * modules/unistdio/u8-asnprintf: Likewise.
15540         * modules/unistdio/u8-asprintf: Likewise.
15541         * modules/unistdio/u8-snprintf: Likewise.
15542         * modules/unistdio/u8-sprintf: Likewise.
15543         * modules/unistdio/u8-u8-asnprintf: Likewise.
15544         * modules/unistdio/u8-u8-asprintf: Likewise.
15545         * modules/unistdio/u8-u8-snprintf: Likewise.
15546         * modules/unistdio/u8-u8-sprintf: Likewise.
15547         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15548         * modules/unistdio/u8-u8-vasprintf: Likewise.
15549         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15550         * modules/unistdio/u8-u8-vsprintf: Likewise.
15551         * modules/unistdio/u8-vasnprintf: Likewise.
15552         * modules/unistdio/u8-vasprintf: Likewise.
15553         * modules/unistdio/u8-vsnprintf: Likewise.
15554         * modules/unistdio/u8-vsprintf: Likewise.
15555         * modules/unistdio/u16-asnprintf: Likewise.
15556         * modules/unistdio/u16-asprintf: Likewise.
15557         * modules/unistdio/u16-snprintf: Likewise.
15558         * modules/unistdio/u16-sprintf: Likewise.
15559         * modules/unistdio/u16-u16-asnprintf: Likewise.
15560         * modules/unistdio/u16-u16-asprintf: Likewise.
15561         * modules/unistdio/u16-u16-snprintf: Likewise.
15562         * modules/unistdio/u16-u16-sprintf: Likewise.
15563         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15564         * modules/unistdio/u16-u16-vasprintf: Likewise.
15565         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15566         * modules/unistdio/u16-u16-vsprintf: Likewise.
15567         * modules/unistdio/u16-vasnprintf: Likewise.
15568         * modules/unistdio/u16-vasprintf: Likewise.
15569         * modules/unistdio/u16-vsnprintf: Likewise.
15570         * modules/unistdio/u16-vsprintf: Likewise.
15571         * modules/unistdio/u32-asnprintf: Likewise.
15572         * modules/unistdio/u32-asprintf: Likewise.
15573         * modules/unistdio/u32-snprintf: Likewise.
15574         * modules/unistdio/u32-sprintf: Likewise.
15575         * modules/unistdio/u32-u32-asnprintf: Likewise.
15576         * modules/unistdio/u32-u32-asprintf: Likewise.
15577         * modules/unistdio/u32-u32-snprintf: Likewise.
15578         * modules/unistdio/u32-u32-sprintf: Likewise.
15579         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15580         * modules/unistdio/u32-u32-vasprintf: Likewise.
15581         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15582         * modules/unistdio/u32-u32-vsprintf: Likewise.
15583         * modules/unistdio/u32-vasnprintf: Likewise.
15584         * modules/unistdio/u32-vasprintf: Likewise.
15585         * modules/unistdio/u32-vsnprintf: Likewise.
15586         * modules/unistdio/u32-vsprintf: Likewise.
15587         * modules/unistdio/ulc-asnprintf: Likewise.
15588         * modules/unistdio/ulc-asprintf: Likewise.
15589         * modules/unistdio/ulc-fprintf: Likewise.
15590         * modules/unistdio/ulc-snprintf: Likewise.
15591         * modules/unistdio/ulc-sprintf: Likewise.
15592         * modules/unistdio/ulc-vasnprintf: Likewise.
15593         * modules/unistdio/ulc-vasprintf: Likewise.
15594         * modules/unistdio/ulc-vfprintf: Likewise.
15595         * modules/unistdio/ulc-vsnprintf: Likewise.
15596         * modules/unistdio/ulc-vsprintf: Likewise.
15597         * modules/unistr/u8-check: Likewise.
15598         * modules/unistr/u8-chr: Likewise.
15599         * modules/unistr/u8-cmp: Likewise.
15600         * modules/unistr/u8-cmp2: Likewise.
15601         * modules/unistr/u8-cpy: Likewise.
15602         * modules/unistr/u8-cpy-alloc: Likewise.
15603         * modules/unistr/u8-endswith: Likewise.
15604         * modules/unistr/u8-mblen: Likewise.
15605         * modules/unistr/u8-mbsnlen: Likewise.
15606         * modules/unistr/u8-mbtouc: Likewise.
15607         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15608         * modules/unistr/u8-mbtoucr: Likewise.
15609         * modules/unistr/u8-move: Likewise.
15610         * modules/unistr/u8-next: Likewise.
15611         * modules/unistr/u8-prev: Likewise.
15612         * modules/unistr/u8-set: Likewise.
15613         * modules/unistr/u8-startswith: Likewise.
15614         * modules/unistr/u8-stpcpy: Likewise.
15615         * modules/unistr/u8-stpncpy: Likewise.
15616         * modules/unistr/u8-strcat: Likewise.
15617         * modules/unistr/u8-strchr: Likewise.
15618         * modules/unistr/u8-strcmp: Likewise.
15619         * modules/unistr/u8-strcoll: Likewise.
15620         * modules/unistr/u8-strcpy: Likewise.
15621         * modules/unistr/u8-strcspn: Likewise.
15622         * modules/unistr/u8-strdup: Likewise.
15623         * modules/unistr/u8-strlen: Likewise.
15624         * modules/unistr/u8-strmblen: Likewise.
15625         * modules/unistr/u8-strmbtouc: Likewise.
15626         * modules/unistr/u8-strncat: Likewise.
15627         * modules/unistr/u8-strncmp: Likewise.
15628         * modules/unistr/u8-strncpy: Likewise.
15629         * modules/unistr/u8-strnlen: Likewise.
15630         * modules/unistr/u8-strpbrk: Likewise.
15631         * modules/unistr/u8-strrchr: Likewise.
15632         * modules/unistr/u8-strspn: Likewise.
15633         * modules/unistr/u8-strstr: Likewise.
15634         * modules/unistr/u8-strtok: Likewise.
15635         * modules/unistr/u8-to-u16: Likewise.
15636         * modules/unistr/u8-to-u32: Likewise.
15637         * modules/unistr/u8-uctomb: Likewise.
15638         * modules/unistr/u16-check: Likewise.
15639         * modules/unistr/u16-chr: Likewise.
15640         * modules/unistr/u16-cmp: Likewise.
15641         * modules/unistr/u16-cmp2: Likewise.
15642         * modules/unistr/u16-cpy: Likewise.
15643         * modules/unistr/u16-cpy-alloc: Likewise.
15644         * modules/unistr/u16-endswith: Likewise.
15645         * modules/unistr/u16-mblen: Likewise.
15646         * modules/unistr/u16-mbsnlen: Likewise.
15647         * modules/unistr/u16-mbtouc: Likewise.
15648         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15649         * modules/unistr/u16-mbtoucr: Likewise.
15650         * modules/unistr/u16-move: Likewise.
15651         * modules/unistr/u16-next: Likewise.
15652         * modules/unistr/u16-prev: Likewise.
15653         * modules/unistr/u16-set: Likewise.
15654         * modules/unistr/u16-startswith: Likewise.
15655         * modules/unistr/u16-stpcpy: Likewise.
15656         * modules/unistr/u16-stpncpy: Likewise.
15657         * modules/unistr/u16-strcat: Likewise.
15658         * modules/unistr/u16-strchr: Likewise.
15659         * modules/unistr/u16-strcmp: Likewise.
15660         * modules/unistr/u16-strcoll: Likewise.
15661         * modules/unistr/u16-strcpy: Likewise.
15662         * modules/unistr/u16-strcspn: Likewise.
15663         * modules/unistr/u16-strdup: Likewise.
15664         * modules/unistr/u16-strlen: Likewise.
15665         * modules/unistr/u16-strmblen: Likewise.
15666         * modules/unistr/u16-strmbtouc: Likewise.
15667         * modules/unistr/u16-strncat: Likewise.
15668         * modules/unistr/u16-strncmp: Likewise.
15669         * modules/unistr/u16-strncpy: Likewise.
15670         * modules/unistr/u16-strnlen: Likewise.
15671         * modules/unistr/u16-strpbrk: Likewise.
15672         * modules/unistr/u16-strrchr: Likewise.
15673         * modules/unistr/u16-strspn: Likewise.
15674         * modules/unistr/u16-strstr: Likewise.
15675         * modules/unistr/u16-strtok: Likewise.
15676         * modules/unistr/u16-to-u32: Likewise.
15677         * modules/unistr/u16-to-u8: Likewise.
15678         * modules/unistr/u16-uctomb: Likewise.
15679         * modules/unistr/u32-check: Likewise.
15680         * modules/unistr/u32-chr: Likewise.
15681         * modules/unistr/u32-cmp: Likewise.
15682         * modules/unistr/u32-cmp2: Likewise.
15683         * modules/unistr/u32-cpy: Likewise.
15684         * modules/unistr/u32-cpy-alloc: Likewise.
15685         * modules/unistr/u32-endswith: Likewise.
15686         * modules/unistr/u32-mblen: Likewise.
15687         * modules/unistr/u32-mbsnlen: Likewise.
15688         * modules/unistr/u32-mbtouc: Likewise.
15689         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15690         * modules/unistr/u32-mbtoucr: Likewise.
15691         * modules/unistr/u32-move: Likewise.
15692         * modules/unistr/u32-next: Likewise.
15693         * modules/unistr/u32-prev: Likewise.
15694         * modules/unistr/u32-set: Likewise.
15695         * modules/unistr/u32-startswith: Likewise.
15696         * modules/unistr/u32-stpcpy: Likewise.
15697         * modules/unistr/u32-stpncpy: Likewise.
15698         * modules/unistr/u32-strcat: Likewise.
15699         * modules/unistr/u32-strchr: Likewise.
15700         * modules/unistr/u32-strcmp: Likewise.
15701         * modules/unistr/u32-strcoll: Likewise.
15702         * modules/unistr/u32-strcpy: Likewise.
15703         * modules/unistr/u32-strcspn: Likewise.
15704         * modules/unistr/u32-strdup: Likewise.
15705         * modules/unistr/u32-strlen: Likewise.
15706         * modules/unistr/u32-strmblen: Likewise.
15707         * modules/unistr/u32-strmbtouc: Likewise.
15708         * modules/unistr/u32-strncat: Likewise.
15709         * modules/unistr/u32-strncmp: Likewise.
15710         * modules/unistr/u32-strncpy: Likewise.
15711         * modules/unistr/u32-strnlen: Likewise.
15712         * modules/unistr/u32-strpbrk: Likewise.
15713         * modules/unistr/u32-strrchr: Likewise.
15714         * modules/unistr/u32-strspn: Likewise.
15715         * modules/unistr/u32-strstr: Likewise.
15716         * modules/unistr/u32-strtok: Likewise.
15717         * modules/unistr/u32-to-u16: Likewise.
15718         * modules/unistr/u32-to-u8: Likewise.
15719         * modules/unistr/u32-uctomb: Likewise.
15720         * modules/uniwbrk/u8-wordbreaks: Likewise.
15721         * modules/uniwbrk/u16-wordbreaks: Likewise.
15722         * modules/uniwbrk/u32-wordbreaks: Likewise.
15723         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15724         * modules/uniwbrk/wordbreak-property: Likewise.
15725         * modules/uniwidth/u8-strwidth: Likewise.
15726         * modules/uniwidth/u8-width: Likewise.
15727         * modules/uniwidth/u16-strwidth: Likewise.
15728         * modules/uniwidth/u16-width: Likewise.
15729         * modules/uniwidth/u32-strwidth: Likewise.
15730         * modules/uniwidth/u32-width: Likewise.
15731         * modules/uniwidth/width: Likewise.
15732         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15733         with $(LIBUNISTRING).
15734         * modules/unicase/ignorable-tests: Likewise.
15735         * modules/unicase/locale-language-tests: Likewise.
15736         * modules/unicase/tolower-tests: Likewise.
15737         * modules/unicase/totitle-tests: Likewise.
15738         * modules/unicase/toupper-tests: Likewise.
15739         * modules/unicase/u8-casecmp-tests: Likewise.
15740         * modules/unicase/u8-casecoll-tests: Likewise.
15741         * modules/unicase/u8-casefold-tests: Likewise.
15742         * modules/unicase/u8-is-cased-tests: Likewise.
15743         * modules/unicase/u8-is-casefolded-tests: Likewise.
15744         * modules/unicase/u8-is-lowercase-tests: Likewise.
15745         * modules/unicase/u8-is-titlecase-tests: Likewise.
15746         * modules/unicase/u8-is-uppercase-tests: Likewise.
15747         * modules/unicase/u8-tolower-tests: Likewise.
15748         * modules/unicase/u8-totitle-tests: Likewise.
15749         * modules/unicase/u8-toupper-tests: Likewise.
15750         * modules/unicase/u16-casecmp-tests: Likewise.
15751         * modules/unicase/u16-casecoll-tests: Likewise.
15752         * modules/unicase/u16-casefold-tests: Likewise.
15753         * modules/unicase/u16-is-cased-tests: Likewise.
15754         * modules/unicase/u16-is-casefolded-tests: Likewise.
15755         * modules/unicase/u16-is-lowercase-tests: Likewise.
15756         * modules/unicase/u16-is-titlecase-tests: Likewise.
15757         * modules/unicase/u16-is-uppercase-tests: Likewise.
15758         * modules/unicase/u16-tolower-tests: Likewise.
15759         * modules/unicase/u16-totitle-tests: Likewise.
15760         * modules/unicase/u16-toupper-tests: Likewise.
15761         * modules/unicase/u32-casecmp-tests: Likewise.
15762         * modules/unicase/u32-casecoll-tests: Likewise.
15763         * modules/unicase/u32-casefold-tests: Likewise.
15764         * modules/unicase/u32-is-cased-tests: Likewise.
15765         * modules/unicase/u32-is-casefolded-tests: Likewise.
15766         * modules/unicase/u32-is-lowercase-tests: Likewise.
15767         * modules/unicase/u32-is-titlecase-tests: Likewise.
15768         * modules/unicase/u32-is-uppercase-tests: Likewise.
15769         * modules/unicase/u32-tolower-tests: Likewise.
15770         * modules/unicase/u32-totitle-tests: Likewise.
15771         * modules/unicase/u32-toupper-tests: Likewise.
15772         * modules/unicase/ulc-casecmp-tests: Likewise.
15773         * modules/unicase/ulc-casecoll-tests: Likewise.
15774         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15775         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15776         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15777         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15778         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15779         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15780         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15781         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15782         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15783         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15784         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15785         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15786         * modules/unictype/bidicategory-byname-tests: Likewise.
15787         * modules/unictype/bidicategory-name-tests: Likewise.
15788         * modules/unictype/bidicategory-of-tests: Likewise.
15789         * modules/unictype/bidicategory-test-tests: Likewise.
15790         * modules/unictype/block-list-tests: Likewise.
15791         * modules/unictype/block-of-tests: Likewise.
15792         * modules/unictype/block-test-tests: Likewise.
15793         * modules/unictype/category-C-tests: Likewise.
15794         * modules/unictype/category-Cc-tests: Likewise.
15795         * modules/unictype/category-Cf-tests: Likewise.
15796         * modules/unictype/category-Cn-tests: Likewise.
15797         * modules/unictype/category-Co-tests: Likewise.
15798         * modules/unictype/category-Cs-tests: Likewise.
15799         * modules/unictype/category-L-tests: Likewise.
15800         * modules/unictype/category-Ll-tests: Likewise.
15801         * modules/unictype/category-Lm-tests: Likewise.
15802         * modules/unictype/category-Lo-tests: Likewise.
15803         * modules/unictype/category-Lt-tests: Likewise.
15804         * modules/unictype/category-Lu-tests: Likewise.
15805         * modules/unictype/category-M-tests: Likewise.
15806         * modules/unictype/category-Mc-tests: Likewise.
15807         * modules/unictype/category-Me-tests: Likewise.
15808         * modules/unictype/category-Mn-tests: Likewise.
15809         * modules/unictype/category-N-tests: Likewise.
15810         * modules/unictype/category-Nd-tests: Likewise.
15811         * modules/unictype/category-Nl-tests: Likewise.
15812         * modules/unictype/category-No-tests: Likewise.
15813         * modules/unictype/category-P-tests: Likewise.
15814         * modules/unictype/category-Pc-tests: Likewise.
15815         * modules/unictype/category-Pd-tests: Likewise.
15816         * modules/unictype/category-Pe-tests: Likewise.
15817         * modules/unictype/category-Pf-tests: Likewise.
15818         * modules/unictype/category-Pi-tests: Likewise.
15819         * modules/unictype/category-Po-tests: Likewise.
15820         * modules/unictype/category-Ps-tests: Likewise.
15821         * modules/unictype/category-S-tests: Likewise.
15822         * modules/unictype/category-Sc-tests: Likewise.
15823         * modules/unictype/category-Sk-tests: Likewise.
15824         * modules/unictype/category-Sm-tests: Likewise.
15825         * modules/unictype/category-So-tests: Likewise.
15826         * modules/unictype/category-Z-tests: Likewise.
15827         * modules/unictype/category-Zl-tests: Likewise.
15828         * modules/unictype/category-Zp-tests: Likewise.
15829         * modules/unictype/category-Zs-tests: Likewise.
15830         * modules/unictype/category-and-not-tests: Likewise.
15831         * modules/unictype/category-and-tests: Likewise.
15832         * modules/unictype/category-byname-tests: Likewise.
15833         * modules/unictype/category-name-tests: Likewise.
15834         * modules/unictype/category-none-tests: Likewise.
15835         * modules/unictype/category-of-tests: Likewise.
15836         * modules/unictype/category-or-tests: Likewise.
15837         * modules/unictype/category-test-withtable-tests: Likewise.
15838         * modules/unictype/combining-class-tests: Likewise.
15839         * modules/unictype/ctype-alnum-tests: Likewise.
15840         * modules/unictype/ctype-alpha-tests: Likewise.
15841         * modules/unictype/ctype-blank-tests: Likewise.
15842         * modules/unictype/ctype-cntrl-tests: Likewise.
15843         * modules/unictype/ctype-digit-tests: Likewise.
15844         * modules/unictype/ctype-graph-tests: Likewise.
15845         * modules/unictype/ctype-lower-tests: Likewise.
15846         * modules/unictype/ctype-print-tests: Likewise.
15847         * modules/unictype/ctype-punct-tests: Likewise.
15848         * modules/unictype/ctype-space-tests: Likewise.
15849         * modules/unictype/ctype-upper-tests: Likewise.
15850         * modules/unictype/ctype-xdigit-tests: Likewise.
15851         * modules/unictype/decimal-digit-tests: Likewise.
15852         * modules/unictype/digit-tests: Likewise.
15853         * modules/unictype/mirror-tests: Likewise.
15854         * modules/unictype/numeric-tests: Likewise.
15855         * modules/unictype/property-alphabetic-tests: Likewise.
15856         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15857         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15858         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15859         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15860         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15861         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15862         * modules/unictype/property-bidi-control-tests: Likewise.
15863         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15864         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15865         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15866         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15867         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15868         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15869         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15870         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15871         * modules/unictype/property-bidi-pdf-tests: Likewise.
15872         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15873         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15874         * modules/unictype/property-byname-tests: Likewise.
15875         * modules/unictype/property-combining-tests: Likewise.
15876         * modules/unictype/property-composite-tests: Likewise.
15877         * modules/unictype/property-currency-symbol-tests: Likewise.
15878         * modules/unictype/property-dash-tests: Likewise.
15879         * modules/unictype/property-decimal-digit-tests: Likewise.
15880         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15881         * modules/unictype/property-deprecated-tests: Likewise.
15882         * modules/unictype/property-diacritic-tests: Likewise.
15883         * modules/unictype/property-extender-tests: Likewise.
15884         * modules/unictype/property-format-control-tests: Likewise.
15885         * modules/unictype/property-grapheme-base-tests: Likewise.
15886         * modules/unictype/property-grapheme-extend-tests: Likewise.
15887         * modules/unictype/property-grapheme-link-tests: Likewise.
15888         * modules/unictype/property-hex-digit-tests: Likewise.
15889         * modules/unictype/property-hyphen-tests: Likewise.
15890         * modules/unictype/property-id-continue-tests: Likewise.
15891         * modules/unictype/property-id-start-tests: Likewise.
15892         * modules/unictype/property-ideographic-tests: Likewise.
15893         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15894         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15895         * modules/unictype/property-ignorable-control-tests: Likewise.
15896         * modules/unictype/property-iso-control-tests: Likewise.
15897         * modules/unictype/property-join-control-tests: Likewise.
15898         * modules/unictype/property-left-of-pair-tests: Likewise.
15899         * modules/unictype/property-line-separator-tests: Likewise.
15900         * modules/unictype/property-logical-order-exception-tests: Likewise.
15901         * modules/unictype/property-lowercase-tests: Likewise.
15902         * modules/unictype/property-math-tests: Likewise.
15903         * modules/unictype/property-non-break-tests: Likewise.
15904         * modules/unictype/property-not-a-character-tests: Likewise.
15905         * modules/unictype/property-numeric-tests: Likewise.
15906         * modules/unictype/property-other-alphabetic-tests: Likewise.
15907         * modules/unictype/property-other-default-ignorable-code-point-tests:
15908         Likewise.
15909         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15910         * modules/unictype/property-other-id-continue-tests: Likewise.
15911         * modules/unictype/property-other-id-start-tests: Likewise.
15912         * modules/unictype/property-other-lowercase-tests: Likewise.
15913         * modules/unictype/property-other-math-tests: Likewise.
15914         * modules/unictype/property-other-uppercase-tests: Likewise.
15915         * modules/unictype/property-paired-punctuation-tests: Likewise.
15916         * modules/unictype/property-paragraph-separator-tests: Likewise.
15917         * modules/unictype/property-pattern-syntax-tests: Likewise.
15918         * modules/unictype/property-pattern-white-space-tests: Likewise.
15919         * modules/unictype/property-private-use-tests: Likewise.
15920         * modules/unictype/property-punctuation-tests: Likewise.
15921         * modules/unictype/property-quotation-mark-tests: Likewise.
15922         * modules/unictype/property-radical-tests: Likewise.
15923         * modules/unictype/property-sentence-terminal-tests: Likewise.
15924         * modules/unictype/property-soft-dotted-tests: Likewise.
15925         * modules/unictype/property-space-tests: Likewise.
15926         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15927         * modules/unictype/property-test-tests: Likewise.
15928         * modules/unictype/property-titlecase-tests: Likewise.
15929         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15930         * modules/unictype/property-unified-ideograph-tests: Likewise.
15931         * modules/unictype/property-uppercase-tests: Likewise.
15932         * modules/unictype/property-variation-selector-tests: Likewise.
15933         * modules/unictype/property-white-space-tests: Likewise.
15934         * modules/unictype/property-xid-continue-tests: Likewise.
15935         * modules/unictype/property-xid-start-tests: Likewise.
15936         * modules/unictype/property-zero-width-tests: Likewise.
15937         * modules/unictype/scripts-tests: Likewise.
15938         * modules/unictype/syntax-c-ident-tests: Likewise.
15939         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15940         * modules/unictype/syntax-java-ident-tests: Likewise.
15941         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15942         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15943         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15944         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15945         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15946         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15947         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15948         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15949         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15950         * modules/uniname/uniname-tests: Likewise.
15951         * modules/uninorm/canonical-decomposition-tests: Likewise.
15952         * modules/uninorm/compat-decomposition-tests: Likewise.
15953         * modules/uninorm/composition-tests: Likewise.
15954         * modules/uninorm/decomposing-form-tests: Likewise.
15955         * modules/uninorm/decomposition-tests: Likewise.
15956         * modules/uninorm/filter-tests: Likewise.
15957         * modules/uninorm/nfc-tests: Likewise.
15958         * modules/uninorm/nfd-tests: Likewise.
15959         * modules/uninorm/nfkc-tests: Likewise.
15960         * modules/uninorm/nfkd-tests: Likewise.
15961         * modules/uninorm/u8-normcmp-tests: Likewise.
15962         * modules/uninorm/u8-normcoll-tests: Likewise.
15963         * modules/uninorm/u16-normcmp-tests: Likewise.
15964         * modules/uninorm/u16-normcoll-tests: Likewise.
15965         * modules/uninorm/u32-normcmp-tests: Likewise.
15966         * modules/uninorm/u32-normcoll-tests: Likewise.
15967         * modules/unistdio/u8-asnprintf-tests: Likewise.
15968         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15969         * modules/unistdio/u8-vasprintf-tests: Likewise.
15970         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15971         * modules/unistdio/u8-vsprintf-tests: Likewise.
15972         * modules/unistdio/u16-asnprintf-tests: Likewise.
15973         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15974         * modules/unistdio/u16-vasprintf-tests: Likewise.
15975         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15976         * modules/unistdio/u16-vsprintf-tests: Likewise.
15977         * modules/unistdio/u32-asnprintf-tests: Likewise.
15978         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15979         * modules/unistdio/u32-vasprintf-tests: Likewise.
15980         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15981         * modules/unistdio/u32-vsprintf-tests: Likewise.
15982         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15983         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15984         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15985         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15986         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15987         * modules/unistr/u8-check-tests: Likewise.
15988         * modules/unistr/u8-chr-tests: Likewise.
15989         * modules/unistr/u8-cmp-tests: Likewise.
15990         * modules/unistr/u8-cmp2-tests: Likewise.
15991         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15992         * modules/unistr/u8-cpy-tests: Likewise.
15993         * modules/unistr/u8-mblen-tests: Likewise.
15994         * modules/unistr/u8-mbsnlen-tests: Likewise.
15995         * modules/unistr/u8-mbtouc-tests: Likewise.
15996         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15997         * modules/unistr/u8-mbtoucr-tests: Likewise.
15998         * modules/unistr/u8-move-tests: Likewise.
15999         * modules/unistr/u8-next-tests: Likewise.
16000         * modules/unistr/u8-prev-tests: Likewise.
16001         * modules/unistr/u8-set-tests: Likewise.
16002         * modules/unistr/u8-stpcpy-tests: Likewise.
16003         * modules/unistr/u8-stpncpy-tests: Likewise.
16004         * modules/unistr/u8-strcat-tests: Likewise.
16005         * modules/unistr/u8-strcmp-tests: Likewise.
16006         * modules/unistr/u8-strcoll-tests: Likewise.
16007         * modules/unistr/u8-strcpy-tests: Likewise.
16008         * modules/unistr/u8-strdup-tests: Likewise.
16009         * modules/unistr/u8-strlen-tests: Likewise.
16010         * modules/unistr/u8-strmblen-tests: Likewise.
16011         * modules/unistr/u8-strmbtouc-tests: Likewise.
16012         * modules/unistr/u8-strncat-tests: Likewise.
16013         * modules/unistr/u8-strncmp-tests: Likewise.
16014         * modules/unistr/u8-strncpy-tests: Likewise.
16015         * modules/unistr/u8-strnlen-tests: Likewise.
16016         * modules/unistr/u8-to-u16-tests: Likewise.
16017         * modules/unistr/u8-to-u32-tests: Likewise.
16018         * modules/unistr/u8-uctomb-tests: Likewise.
16019         * modules/unistr/u16-check-tests: Likewise.
16020         * modules/unistr/u16-chr-tests: Likewise.
16021         * modules/unistr/u16-cmp-tests: Likewise.
16022         * modules/unistr/u16-cmp2-tests: Likewise.
16023         * modules/unistr/u16-cpy-alloc-tests: Likewise.
16024         * modules/unistr/u16-cpy-tests: Likewise.
16025         * modules/unistr/u16-mblen-tests: Likewise.
16026         * modules/unistr/u16-mbsnlen-tests: Likewise.
16027         * modules/unistr/u16-mbtouc-tests: Likewise.
16028         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
16029         * modules/unistr/u16-mbtoucr-tests: Likewise.
16030         * modules/unistr/u16-move-tests: Likewise.
16031         * modules/unistr/u16-next-tests: Likewise.
16032         * modules/unistr/u16-prev-tests: Likewise.
16033         * modules/unistr/u16-set-tests: Likewise.
16034         * modules/unistr/u16-stpcpy-tests: Likewise.
16035         * modules/unistr/u16-stpncpy-tests: Likewise.
16036         * modules/unistr/u16-strcat-tests: Likewise.
16037         * modules/unistr/u16-strcmp-tests: Likewise.
16038         * modules/unistr/u16-strcoll-tests: Likewise.
16039         * modules/unistr/u16-strcpy-tests: Likewise.
16040         * modules/unistr/u16-strdup-tests: Likewise.
16041         * modules/unistr/u16-strlen-tests: Likewise.
16042         * modules/unistr/u16-strmblen-tests: Likewise.
16043         * modules/unistr/u16-strmbtouc-tests: Likewise.
16044         * modules/unistr/u16-strncat-tests: Likewise.
16045         * modules/unistr/u16-strncmp-tests: Likewise.
16046         * modules/unistr/u16-strncpy-tests: Likewise.
16047         * modules/unistr/u16-strnlen-tests: Likewise.
16048         * modules/unistr/u16-to-u32-tests: Likewise.
16049         * modules/unistr/u16-to-u8-tests: Likewise.
16050         * modules/unistr/u16-uctomb-tests: Likewise.
16051         * modules/unistr/u32-check-tests: Likewise.
16052         * modules/unistr/u32-chr-tests: Likewise.
16053         * modules/unistr/u32-cmp-tests: Likewise.
16054         * modules/unistr/u32-cmp2-tests: Likewise.
16055         * modules/unistr/u32-cpy-alloc-tests: Likewise.
16056         * modules/unistr/u32-cpy-tests: Likewise.
16057         * modules/unistr/u32-mblen-tests: Likewise.
16058         * modules/unistr/u32-mbsnlen-tests: Likewise.
16059         * modules/unistr/u32-mbtouc-tests: Likewise.
16060         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
16061         * modules/unistr/u32-mbtoucr-tests: Likewise.
16062         * modules/unistr/u32-move-tests: Likewise.
16063         * modules/unistr/u32-next-tests: Likewise.
16064         * modules/unistr/u32-prev-tests: Likewise.
16065         * modules/unistr/u32-set-tests: Likewise.
16066         * modules/unistr/u32-stpcpy-tests: Likewise.
16067         * modules/unistr/u32-stpncpy-tests: Likewise.
16068         * modules/unistr/u32-strcat-tests: Likewise.
16069         * modules/unistr/u32-strcmp-tests: Likewise.
16070         * modules/unistr/u32-strcoll-tests: Likewise.
16071         * modules/unistr/u32-strcpy-tests: Likewise.
16072         * modules/unistr/u32-strdup-tests: Likewise.
16073         * modules/unistr/u32-strlen-tests: Likewise.
16074         * modules/unistr/u32-strmblen-tests: Likewise.
16075         * modules/unistr/u32-strmbtouc-tests: Likewise.
16076         * modules/unistr/u32-strncat-tests: Likewise.
16077         * modules/unistr/u32-strncmp-tests: Likewise.
16078         * modules/unistr/u32-strncpy-tests: Likewise.
16079         * modules/unistr/u32-strnlen-tests: Likewise.
16080         * modules/unistr/u32-to-u16-tests: Likewise.
16081         * modules/unistr/u32-to-u8-tests: Likewise.
16082         * modules/unistr/u32-uctomb-tests: Likewise.
16083         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
16084         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
16085         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
16086         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
16087         * modules/uniwidth/u8-strwidth-tests: Likewise.
16088         * modules/uniwidth/u8-width-tests: Likewise.
16089         * modules/uniwidth/u16-strwidth-tests: Likewise.
16090         * modules/uniwidth/u16-width-tests: Likewise.
16091         * modules/uniwidth/u32-strwidth-tests: Likewise.
16092         * modules/uniwidth/u32-width-tests: Likewise.
16093         * modules/uniwidth/width-tests: Likewise.
16094
16095 2010-05-18  Richard Jones  <rjones@redhat.com>
16096
16097         doc: users.txt: list hivex
16098         * users.txt: Add hivex.
16099
16100 2010-05-18  Richard Jones  <rjones@redhat.com>
16101
16102         doc: users.txt: list febootstrap
16103         * users.txt: Add febootstrap.
16104
16105 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
16106
16107         bootstrap: fix an error when gnulib is not used as a git submodule
16108         * build-aux/bootstrap (gnulib_path): If its length is zero then
16109         assign "gnulib" to it.
16110         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
16111
16112 2010-05-16  Bruno Haible  <bruno@clisp.org>
16113
16114         Avoid autoconf warnings about AM_ICONV.
16115         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
16116         2.64.
16117
16118 2010-05-16  Bruno Haible  <bruno@clisp.org>
16119
16120         absolute-header: Make the macro usable in more situations.
16121         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
16122         from gl_ABSOLUTE_HEADER.
16123         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
16124
16125 2010-05-16  James Youngman  <jay@gnu.org>
16126
16127         doc: update users.txt
16128         * users.txt: Add CSSC.
16129
16130 2010-05-16  Jim Meyering  <meyering@redhat.com>
16131
16132         init.sh: fix an error in the previous change; add more comments
16133         * tests/init.sh: Compare exit code in loop against 9, not 2.
16134         Patch by Bruno Haible.
16135         Make the two tests more similar by adding an empty "then" clause.
16136         Add comments.
16137
16138         init.sh: avoid unnecessary shell re-exec
16139         * tests/init.sh: Improve the re-exec-required check to first test the
16140         current shell.  If it passes the test, do not search for a shell that
16141         does pass, and do not re-exec.  This test is particularly contorted to
16142         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
16143         of $(...) evokes a syntax error and causes immediate shell exit with
16144         status 2.  Bruno Haible reported that the re-exec made it impossible
16145         to single-step through any init.sh-using script.
16146
16147 2010-05-16  Bruno Haible  <bruno@clisp.org>
16148
16149         Fix collision between gnulib's and libintl's printf replacements.
16150         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
16151         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
16152         (printf): When using GNU C, map the __printf__ function to rpl_printf
16153         via __asm__. When not using GNU C, define rpl_printf instead of
16154         __printf__.
16155         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
16156         commit.
16157         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
16158         commit.
16159         * m4/asm-underscore.m4: New file.
16160         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
16161         * modules/stdio (Files): Add m4/asm-underscore.m4.
16162         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
16163         Reported by Ben Pfaff.
16164
16165 2010-05-16  Bruno Haible  <bruno@clisp.org>
16166
16167         verify: Avoid skipping the test on openSUSE 11.0.
16168         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
16169
16170 2010-05-13  Bruno Haible  <bruno@clisp.org>
16171
16172         Avoid useless warnings from G++.
16173         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
16174         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
16175         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16176
16177 2010-05-11  Jim Meyering  <meyering@redhat.com>
16178
16179         maint.mk: tweak preceding change
16180         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
16181         regexps tighter by anchoring at EOL, and make the new group "shy"
16182         for slightly decreased overhead.
16183
16184 2010-05-11  Eric Blake  <eblake@redhat.com>
16185
16186         maint.mk: gnulib doesn't guarantee NSIG
16187         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
16188
16189 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16190
16191         test-pwrite.c: Remove unused variable declaration.
16192         * tests/test-pwrite.c (main): Remove read_buf declaration.
16193
16194         Remove useless test-pwrite.sh file.
16195         * tests/test-pwrite.sh: Delete file.
16196         * modules/pwrite-tests: Remove references.
16197         Reported by Bruno Haible.
16198
16199 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16200
16201         init.sh: fix a typo
16202         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
16203
16204 2010-05-10  Jim Meyering  <meyering@redhat.com>
16205
16206         maint.mk: avoid using a temporary file in the always-defined-macros check
16207         * top/maint.mk (.re-defmac): Remove rule.
16208         (gl_trap_): Remove definition.
16209         (sc_prohibit_always-defined_macros): Rewrite not to create and
16210         depend on a temporary file.  Instead, depend on GNU grep's ability
16211         to read a list of regular expressions from stdin when given "-f -".
16212
16213 2010-05-09  Bruno Haible  <bruno@clisp.org>
16214
16215         Update to GNU gettext 0.18, part 1.
16216         * m4/gettext.m4: Update to GNU gettext 0.18.
16217         * m4/intl.m4: Likewise.
16218         * m4/po.m4: Likewise.
16219         * modules/gettext (Files): Add m4/fcntl-o.m4.
16220         (configure.ac): Require gettext infrastructure from version 0.18.
16221
16222 2010-05-09  Jim Meyering  <meyering@redhat.com>
16223
16224         init.sh: enable MALLOC_PERTURB_
16225         * tests/init.sh: Enable glibc's malloc-perturbing option.
16226
16227         maint.mk: improve sc_cross_check_PATH_usage_in_tests
16228         With my recent change in init.sh from the two-line form:
16229             -#   : ${srcdir=.}
16230             -#   . "$srcdir/init.sh"; path_prepend_ .
16231             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
16232         I noticed that using the one-line form would cause this test
16233         to fail with a false-positive, or to stop working altogether,
16234         depending on whether help-version changed or all the tests did.
16235         * top/maint.mk (_hv_regex): Remove this definition.
16236         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
16237         (_hv_regex_strong): Use a stronger regex to check for conformance.
16238         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
16239         Give a separate diagnostic for lack of conforming use.
16240
16241         maint.mk: prohibit definition of symbols defined by gnulib
16242         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16243         definition of symbols defined by gnulib.
16244
16245 2010-05-09  Bruno Haible  <bruno@clisp.org>
16246
16247         acl: Avoid test failure on Cygwin-hosted mingw.
16248         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16249
16250 2010-05-09  Bruno Haible  <bruno@clisp.org>
16251
16252         error: Use system's fcntl function.
16253         * lib/error.c (fcntl): Undefine.
16254
16255 2010-05-09  Jim Meyering  <meyering@redhat.com>
16256
16257         verify: adjust formatting to be more consistent
16258         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16259         argument-list '('s, and after one comma.
16260
16261 2010-05-09  Bruno Haible  <bruno@clisp.org>
16262
16263         error: More reliable output on mingw.
16264         * lib/error.c: Include <windows.h>.
16265         (is_open): New function.
16266         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16267         defined.
16268
16269 2010-05-09  Bruno Haible  <bruno@clisp.org>
16270
16271         vasnprintf: Fix syntax errors in libintl build on mingw.
16272         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16273         pad_ourselves and prec_ourselves after use.
16274
16275 2010-05-08  Bruno Haible  <bruno@clisp.org>
16276
16277         * lib/config.charset: Update comments for Cygwin 1.7.
16278         * lib/localcharset.c: Likewise.
16279
16280 2010-05-07  Jim Meyering  <meyering@redhat.com>
16281
16282         init.sh: improve comments
16283         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16284         . "${srcdir=.}/init.sh"; path_prepend_ .
16285         Add a note about path_prepend_ and the alternative of using
16286         TESTS_ENVIRONMENT.
16287
16288 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16289
16290         exclude: Unescape hashed patterns in wildcard mode.
16291         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16292         to the hash list.
16293         * tests/test-exclude8.sh: New test case.
16294         * modules/exclude-tests: Add new test.
16295
16296 2010-05-05  Eric Blake  <eblake@redhat.com>
16297
16298         verify: automate tests
16299         * modules/verify-tests: New module.
16300         * tests/test-verify.sh: New file.
16301         * tests/test-verify.c: Guard each negative test with a unique id.
16302         Also avoid warning about unused left hand of comma expressions.
16303
16304 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16305
16306         Further improvements to verify.h, suggested by Eric Blake.
16307         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16308         the GL_* versions, to avoid collision with OpenGL.
16309         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16310         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16311         than testing merely whether it's defined.
16312
16313         Modify verify.h to pacify gcc -Wredundant_decls.
16314         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16315         These use the prefix "GL_" since they're likely to be useful elsewhere.
16316         We may need to break them out into a different .h file.
16317         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16318         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16319         of verify_function__.
16320
16321 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16322
16323         Tests for module pwrite.
16324         * modules/pwrite-tests: New file.
16325         * tests/test-pwrite.sh: New file.
16326         * tests/test-pwrite.c: New file.
16327
16328         New module pwrite.
16329         * lib/unistd.in.h (pwrite): New declaration.
16330         * lib/pwrite.c: New file, from glibc with modifications.
16331         * m4/pwrite.m4: New file.
16332         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16333         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16334         REPLACE_PWRITE.
16335         * modules/pwrite: New file.
16336         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16337         REPLACE_PWRITE.
16338         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16339         * doc/posix-functions/pwrite.texi: Mention the new module.
16340
16341 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16342
16343         pread: Update documentation.
16344         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16345
16346 2010-05-04  Eric Blake  <eblake@redhat.com>
16347
16348         docs: update cygwin progress
16349         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16350         this bug.
16351         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16352         Added in cygwin 1.7.2.
16353         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16354         Likewise.
16355         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16356         Likewise.
16357         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16358         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16359         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16360         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16361         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16362         Mention nproc module.
16363         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16364         bug in cygwin 1.7.5 addition.
16365         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16366         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16367         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16368         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16369         1.7.5.
16370         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16371         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16372         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16373         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16374         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16375         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16376         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16377         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16378         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16379         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16380         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16381         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16382         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16383         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16384         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16385         Likewise.
16386         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16387         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16388         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16389         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16390         Likewise.
16391         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16392         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16393         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16394         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16395         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16396         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16397         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16398         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16399         Likewise.
16400         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16401         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16402         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16403         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16404         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16405         Likewise.
16406         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16407         Likewise.
16408         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16409         Likewise.
16410         * doc/glibc-functions/xdrrec_endofrecord.texi
16411         (xdrrec_endofrecord): Likewise.
16412         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16413         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16414         Likewise.
16415         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16416         Likewise.
16417
16418 2010-05-04  Jim Meyering  <meyering@redhat.com>
16419
16420         gendocs.sh: make its "-s FILE" option more useful
16421         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16422         $PACKAGE to reflect the probably-different basename of "FILE".
16423
16424 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16425
16426         bootstrap: don't ignore download_po_files failure
16427         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16428         failure.
16429
16430 2010-05-03  Jim Meyering  <meyering@redhat.com>
16431
16432         maint.mk: allow to pass options to gendocs.sh
16433         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16434         (gendocs_options_): New overridable variable.
16435
16436         gnu-web-doc-update: don't ignore configure or build failure
16437         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16438
16439         announce-gen: backslash-escape '@'s in --help output
16440         * build-aux/announce-gen: Fix syntax errors.
16441
16442         maint.mk, announce-gen: allow project-specific announcement mail headers
16443         * top/maint.mk (translation_project_): Define default.
16444         (announcement_Cc_, announcement_mail_headers_): Likewise.
16445         (announcement): Invoke announce-gen with new --mail-headers option.
16446         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16447
16448         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16449         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16450         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16451         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16452         line in the "err2" output file when running "make check" in verbose
16453         mode (i.e., with set -x enabled).
16454
16455 2010-05-03  Bruno Haible  <bruno@clisp.org>
16456
16457         wctob: Fix for weird platforms.
16458         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16459         argument value.
16460
16461 2010-05-03  Jim Meyering  <meyering@redhat.com>
16462
16463         maint.mk: prohibit unwarranted use of <strings.h>
16464         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16465         strings.h in a file that does not also use strcasecmp, strncasecmp,
16466         ffs or ffsll.
16467
16468         maint.mk: remove obsolete comments
16469         * top/maint.mk: Remove stale, commented-out rules.
16470
16471 2010-05-02  Bruno Haible  <bruno@clisp.org>
16472
16473         wcwidth: Declare also when it's aliased.
16474         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16475         macro.
16476
16477 2010-05-02  Bruno Haible  <bruno@clisp.org>
16478
16479         Fix regression from 2010-04-25.
16480         * gnulib-tool (func_modules_transitive_closure): Check the status of
16481         all modules, not only of the tests that are of the form foo-tests where
16482         foo is a module.
16483
16484 2010-05-02  Bruno Haible  <bruno@clisp.org>
16485
16486         wctob: Work around nasty Cygwin 1.7.2 bug.
16487         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16488         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16489
16490 2010-05-01  Bruno Haible  <bruno@clisp.org>
16491
16492         fpurge: Sharper test.
16493         * tests/test-fpurge.c (main): Add one more ftell check.
16494         * modules/fpurge-tests (Depends-on): Add ftell.
16495         Suggested by Eric Blake.
16496
16497 2010-05-01  Bruno Haible  <bruno@clisp.org>
16498
16499         ftello: Another test.
16500         * tests/test-ftello3.c: New file.
16501         * modules/ftello-tests (Files): Add it.
16502         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16503         MOSTLYCLEANFILES.
16504
16505         ftell: Another test.
16506         * tests/test-ftell3.c: New file.
16507         * modules/ftell-tests (Files): Add it.
16508         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16509         MOSTLYCLEANFILES.
16510
16511 2010-05-01  Bruno Haible  <bruno@clisp.org>
16512
16513         ftell, ftello: Work around Solaris bug.
16514         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16515         * lib/ftello.c: Include stdio-impl.h.
16516         (ftello): On Solaris, when _IOWRT is set, compute the result without
16517         looking at _IOREAD.
16518         * modules/ftello (Files): Add lib/stdio-impl.h.
16519         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16520         * doc/posix-functions/ftello.texi: Likewise.
16521         Reported by Eric Blake.
16522
16523 2010-05-01  Bruno Haible  <bruno@clisp.org>
16524
16525         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16526         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16527         the _IOWRT flag is also set.
16528
16529 2010-05-01  Bruno Haible  <bruno@clisp.org>
16530
16531         Fix doc about a HP-UX stdio bug.
16532         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16533         * doc/posix-functions/ftello.texi: Likewise.
16534
16535 2010-05-01  Bruno Haible  <bruno@clisp.org>
16536
16537         lseek test: Fix failure on Solaris.
16538         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16539         output.
16540
16541 2010-04-30  Jim Meyering  <meyering@redhat.com>
16542
16543         bootstrap: don't ignore failure to generate po*/Makevars
16544         * build-aux/bootstrap (with_gettext): Don't ignore failure
16545         to create po/Makevars or runtime-po/Makevars.
16546
16547 2010-04-29  Eric Blake  <eblake@redhat.com>
16548
16549         headers: relax license to LGPLv2+
16550         * modules/fcntl-h (License): Relax license.
16551         * modules/getopt-posix (License): Likewise.
16552         * modules/locale (License): Likewise.
16553         * modules/math (License): Likewise.
16554         * modules/pty (License): Likewise.
16555         * modules/sched (License): Likewise.
16556         * modules/search (License): Likewise.
16557         * modules/spawn (License): Likewise.
16558         * modules/stdarg (License): Likewise.
16559         * modules/sysexits (License): Likewise.
16560
16561 2010-04-29  Jim Meyering  <meyering@redhat.com>
16562
16563         inttypes: relax license to LGPLv2+
16564         * modules/inttypes (License): Relax license.
16565
16566 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16567
16568         * top/maint.mk (indent): Run twice to produce idempotent results.
16569
16570 2010-04-28  Bruno Haible  <bruno@clisp.org>
16571
16572         getdate: Generate getdate.c in the source directory.
16573         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16574         MOSTLYCLEANFILES.
16575         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16576
16577 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16578
16579         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16580         is not declared as a const *; avoid warnings in that case.
16581
16582 2010-04-28  Eric Blake  <eblake@redhat.com>
16583
16584         canonicalize-lgpl: avoid compiler warning
16585         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16586         declaration' / 'extraneous semicolon' warning with some compilers.
16587         Reported by Andreas Gruenbacher.
16588
16589 2010-04-28  Jim Meyering  <meyering@redhat.com>
16590
16591         init.sh: ensure a more reliable exit status when exiting via trap
16592         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16593         Inspired by patches from Dmitry V. Levin.
16594         Also trap on signal 3 (SIGQUIT).
16595
16596 2010-04-27  Bruno Haible  <bruno@clisp.org>
16597
16598         Update doc about utimes().
16599         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16600         'utimens' module.
16601         Reported by Andreas Gruenbacher <agruen@suse.de>.
16602
16603 2010-04-27  Eric Blake  <eblake@redhat.com>
16604
16605         full-read, full-write: relax license
16606         * modules/full-read (License): Drop to LGPLv2+.
16607         * modules/full-write (License): Likewise.
16608         * modules/safe-read (License): Likewise.
16609         * modules/safe-write (License): Likewise.
16610
16611         pthread: mention library for linking
16612         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16613
16614 2010-04-27  Jim Meyering  <meyering@redhat.com>
16615
16616         maint.mk: fix a bug introduced in last change
16617         * top/maint.mk (gl_assured_headers_): Now that all names are on
16618         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16619         is not anchored to end of word, it should be adequate.
16620
16621         maint.mk: avoid side-effect in latest syntax-check
16622         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16623         to run commands via $(shell...), and hence to incur cost only when
16624         the new rule is actually run.
16625
16626         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16627         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16628         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16629         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16630         (gl_assured_headers_, az_, AZ_): Define.
16631         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16632
16633 2010-04-26  Jim Meyering  <jim@meyering.net>
16634             Bruno Haible  <bruno@clisp.org>
16635
16636         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16637         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16638         Prompted by an exchange with Gilles Espinasse.
16639
16640 2010-04-26  Jim Meyering  <meyering@redhat.com>
16641
16642         git-version-gen: aesthetic tweak
16643         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16644         so that the command remains on a single line.
16645
16646 2010-04-26  Eric Blake  <eblake@redhat.com>
16647
16648         git-version-gen: allow use on EBCDIC hosts
16649         * build-aux/git-version-gen (dirty): Use literal rather than tying
16650         ourselves to ascii.
16651         Reported by Steve Goetze.
16652
16653 2010-04-25  Bruno Haible  <bruno@clisp.org>
16654
16655         netdb: Add support for GNULIB_POSIXCHECK.
16656         * lib/netdb.in.h: Include warn-on-use.h.
16657         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16658         functions are used when GNULIB_POSIXCHECK is defined and the
16659         getaddrinfo module is not in use.
16660         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16661         freeaddrinfo, gai_strerror, getnameinfo are declared.
16662         * modules/netdb (Depends-on): Add warn-on-use.
16663         (Makefile.am): Include warn-on-use.h in netdb.h.
16664
16665 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16666
16667         build: avoid "make check" failure without .git/ directory
16668         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16669         there is no .git/ directory.
16670
16671 2010-04-25  Bruno Haible  <bruno@clisp.org>
16672
16673         ptsname: Fix misuse of ttyname_r.
16674         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16675         of errno.
16676
16677 2010-04-25  Bruno Haible  <bruno@clisp.org>
16678
16679         ttyname_r: Make it work on Solaris 10.
16680         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16681         if the system function has the POSIX declaration. Test whether the
16682         function fails if the buffer is less than 128 bytes large.
16683         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16684         system's ttyname_r function. Provide a reasonably large buffer.
16685         * modules/ttyname_r (Depends-on): Add extensions.
16686         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16687
16688 2010-04-25  Bruno Haible  <bruno@clisp.org>
16689
16690         Use the 'extensions' module for some more functions on Solaris.
16691         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16692         module.
16693         * doc/posix-functions/ctime_r.texi: Likewise.
16694         * doc/posix-functions/getgrgid_r.texi: Likewise.
16695         * doc/posix-functions/getgrnam_r.texi: Likewise.
16696         * doc/posix-functions/getpwnam_r.texi: Likewise.
16697         * doc/posix-functions/getpwuid_r.texi: Likewise.
16698         * doc/posix-functions/readdir_r.texi: Likewise.
16699         * doc/posix-functions/sigwait.texi: Likewise.
16700         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16701         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16702
16703 2010-04-25  Bruno Haible  <bruno@clisp.org>
16704
16705         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16706         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16707         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16708         * lib/ttyname_r.c: Include <limits.h>.
16709         (ttyname_r): Define using the system's ttyname_r function, if it exists
16710         and not on Solaris.
16711         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16712         set.
16713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16714         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16715         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16716         Reported by Simon Josefsson.
16717
16718 2010-04-25  Bruno Haible  <bruno@clisp.org>
16719
16720         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16721         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16722         * doc/posix-functions/ctime_r.texi: Likewise.
16723         * doc/posix-functions/getgrgid_r.texi: Likewise.
16724         * doc/posix-functions/getgrnam_r.texi: Likewise.
16725         * doc/posix-functions/getlogin_r.texi: Likewise.
16726         * doc/posix-functions/getpwnam_r.texi: Likewise.
16727         * doc/posix-functions/getpwuid_r.texi: Likewise.
16728         * doc/posix-functions/readdir_r.texi: Likewise.
16729         * doc/posix-functions/sigwait.texi: Likewise.
16730         * doc/posix-functions/ttyname_r.texi: Likewise.
16731         Reported by Simon Josefsson.
16732
16733 2010-04-25  Bruno Haible  <bruno@clisp.org>
16734
16735         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16736         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16737         also to --create-testdir.
16738         (func_acceptable): Don't consider the status of *-tests modules here.
16739         (func_modules_transitive_closure): Consider it here, before including a
16740         test module.
16741         (func_import, func_create_testdir): Set inc_all_direct_tests,
16742         inc_all_indirect_tests.
16743         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16744         --create-testdir and --create-megatestdir.
16745
16746 2010-04-25  Bruno Haible  <bruno@clisp.org>
16747
16748         gnulib-tool: Add --without-*-tests options.
16749         * gnulib-tool (func_usage): Document the --without-*-tests options.
16750         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16751         excl_unportable_tests): New variables.
16752         Fail if they are specified with --import or --update.
16753         (func_acceptable): Respect the excl_*_tests variables.
16754         (func_import): Set the excl_*_tests variables to empty.
16755
16756 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16757             Bruno Haible  <bruno@clisp.org>
16758
16759         Work around a MacOS X 10.4 bug with openpty.
16760         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16761         * tests/test-openpty.c (main): Close the master side explicitly.
16762
16763 2010-04-25  Bruno Haible  <bruno@clisp.org>
16764
16765         strnlen: Fix a C++ test error on MacOS X and Solaris.
16766         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16767         the function is not declared.
16768         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16769         Simon Josefsson.
16770
16771 2010-04-24  Bruno Haible  <bruno@clisp.org>
16772
16773         Avoid a gcc warning.
16774         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16775         of correct type for %08lx directive.
16776         Reported by Eric Blake.
16777
16778 2010-04-24  Bruno Haible  <bruno@clisp.org>
16779
16780         vasnprintf: Correct errno value in case of out-of-memory.
16781         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16782         or sprintf. Use the errno value from SNPRINTF or sprintf.
16783         Reported by Ian Beckwith <ianb@erislabs.net>.
16784
16785 2010-04-24  Bruno Haible  <bruno@clisp.org>
16786
16787         ansi-c++-opt: Find correct compiler when cross-compiling.
16788         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16789         AC_CHECK_PROGS.
16790         Reported by Simon Josefsson.
16791
16792 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16793
16794         vc-list-files: Add support for subversion
16795         * build-aux/vc-list-files: Use "svn list" to generate the list of
16796         files controlled by subversion.
16797
16798 2010-04-23  Jim Meyering  <meyering@redhat.com>
16799
16800         vc-list-files tests: convert to use init.sh
16801         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16802         path_prepend_.
16803         Use Exit, not exit.
16804         Use skip_ rather than open coding it.
16805         Remove trap set-up and compare definitions.
16806         * tests/test-vc-list-files-git.sh: Likewise.
16807         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16808
16809 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16810
16811         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16812         backup files.
16813
16814 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16815
16816         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16817
16818 2010-04-20  Eric Blake  <eblake@redhat.com>
16819
16820         tests: be robust to ignored SIGPIPE
16821         * tests/test-select-in.sh: Consume all output.
16822         * tests/test-lseek.sh: Check correct exit status, while avoiding
16823         EPIPE.
16824
16825 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16826             Bruno Haible  <bruno@clisp.org>
16827
16828         visibility: Don't use -fvisibility if it leads to a warning.
16829         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16830         yes, don't pretend that visibility works if it leads to a warning.
16831         Reported by Mike Gran <spk121@yahoo.com>.
16832
16833 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16834
16835         * build-aux/bootstrap: Use "git -h" for testing for supported options
16836         instead of "git --help".  The short-form option only shows a summary,
16837         and doesn't layout the full man page.  Grep for the full option name
16838         in the summary, too.
16839
16840 2010-04-19  Bruno Haible  <bruno@clisp.org>
16841
16842         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16843         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16844         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16845         mention of RELOCATABLE_STRIP.
16846         Reported by Sylvain Beucler <beuc@beuc.net>.
16847
16848 2010-04-19  Bruno Haible  <bruno@clisp.org>
16849
16850         * lib/diffseq.h: Fix typo in comment.
16851         Reported by Eric Blake.
16852
16853 2010-04-19  Bruno Haible  <bruno@clisp.org>
16854
16855         ioctl: Move autoconf macro to a .m4 file.
16856         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16857         * modules/ioctl (Files): Add it.
16858         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16859         Reported by Ian Beckwith <ianb@erislabs.net>.
16860
16861 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16862             Bruno Haible  <bruno@clisp.org>
16863
16864         diffseq: Accommodate use-case with abstract arrays.
16865         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16866         is not defined.
16867         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16868         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16869
16870 2010-04-18  Bruno Haible  <bruno@clisp.org>
16871
16872         * doc/posix-headers/stdbool.texi: More precise wording.
16873
16874 2010-04-17  Jim Meyering  <meyering@redhat.com>
16875
16876         maint.mk: use gnu-style indentation in an embedded perl script
16877         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16878         Rename variable: s/two/last_two_bytes/
16879
16880 2010-04-16  Eric Blake  <eblake@redhat.com>
16881
16882         test-stdbool: skip test that fails with Solaris CC
16883         * tests/test-stdbool.c (f): Skip test that causes compilation
16884         error under buggy C++ compiler.
16885         * lib/stdbool.in.h: Document the limitation.
16886         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16887
16888         setenv: allow compilation with C++
16889         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16890         register keyword.
16891
16892         stdint: allow test to pass with C++
16893         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16894
16895         getopt: allow compilation with C++
16896         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16897         struct.
16898         * lib/getopt.c (_getopt_internal_r): Use correct type.
16899         Reported by Dagobert Michelson, via Joel E. Denny.
16900
16901 2010-04-16  Bruno Haible  <bruno@clisp.org>
16902
16903         Override netdb.h always.
16904         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16905         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16906         Reported by Ludovic Courtès <ludo@gnu.org>.
16907
16908 2010-04-15  Bruno Haible  <bruno@clisp.org>
16909
16910         openpty: Fix mistake from 2010-03-21.
16911         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16912         Reported by Simon Josefsson.
16913
16914 2010-04-15  Eric Blake  <eblake@redhat.com>
16915
16916         test-forkpty: fix expected signature
16917         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16918         Reported by Simon Josefsson.
16919
16920 2010-04-15  Jim Meyering  <meyering@redhat.com>
16921
16922         maint.mk: texinfo_suffix_re_: correct the default regexp
16923         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16924
16925         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16926         make it configurable via texinfo_suffix_re_.
16927
16928 2010-04-14  Eric Blake  <eblake@redhat.com>
16929
16930         strtok_r: relax license to LGPLv2+
16931         * modules/strtok_r (License): Relax license.
16932         Reported by Matthias Bolte.
16933
16934 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16935
16936         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16937         version 1.4.4 by default instead of requiring the libgcrypt
16938         version used during build.  This makes it possible to use the
16939         application with older but still binary compatible libgcrypt
16940         versions.
16941
16942 2010-04-13  Eric Blake  <eblake@redhat.com>
16943
16944         getopt-gnu: match recent glibc fixes and posix ruling
16945         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16946         '+' handling, when requesting extensions.
16947         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16948         'W;' handling.
16949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16950         * doc/posix-functions/getopt.texi (getopt): Document this.
16951         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16952         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16953         Likewise.
16954
16955         getopt: merge bug fixes from glibc
16956         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16957         diagnostics.  Honor '+:' correctly.  Reject ';'.
16958
16959         getopt-posix: detect MacOS bug
16960         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16961         optind when missing a required argument.
16962         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16963         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16964         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16965         Likewise.
16966
16967         getopt-posix: avoid spurious failure on Solaris
16968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16969         an indicator that setting optind=1 is sufficient for reset.
16970
16971         getopt-posix: avoid spurious failure on FreeBSD
16972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16973         in POSIX mode, since the m4 test uses it.
16974
16975         gnulib-tool: silence warning on BSD sh
16976         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16977
16978 2010-04-13  Jim Meyering  <meyering@redhat.com>
16979
16980         doc: users.txt: GNU patch now uses gnulib
16981         * users.txt: Add patch.
16982
16983 2010-04-12  Jim Meyering  <meyering@redhat.com>
16984
16985         maint.mk: generate more concise timing data for syntax-check rules
16986         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16987         " done" from each line that reports a syntax-check test duration.
16988
16989 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16990
16991         git-version-gen: use "git update-index..." rather than "git status"
16992         * build-aux/git-version-gen: Use git update-index --refresh, not
16993         "git status".  With some versions of git, "git status" would fail
16994         to update the index and result in an unwarranted "-dirty" suffix.
16995
16996 2010-04-11  Jim Meyering  <meyering@redhat.com>
16997
16998         openat: correct formatting (no semantic change)
16999         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
17000         Suggested by Bruno Haible.
17001
17002 2010-04-11  Bruno Haible  <bruno@clisp.org>
17003
17004         Stricter declaration checking in testdirs.
17005         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17006         If for_tests is true, augment AM_CPPFLAGS to define
17007         GNULIB_STRICT_CHECKING.
17008         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
17009         GNULIB_STRICT_CHECKING is defined, verify that the function is
17010         declared.
17011
17012 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
17013             Bruno Haible  <bruno@clisp.org>
17014
17015         libunistring: Improve configure output.
17016         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
17017         Don't say "consider installing GNU libunistring" when checking again
17018         with libiconv.
17019
17020 2010-04-11  Bruno Haible  <bruno@clisp.org>
17021
17022         libunistring: Correct value of $LTLIBUNISTRING.
17023         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
17024         correct the value of $LTLIBUNISTRING.
17025
17026 2010-04-11  Bruno Haible  <bruno@clisp.org>
17027
17028         havelib: Add static libraries to LIBS in the right order.
17029         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
17030         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
17031
17032 2010-04-11  Bruno Haible  <bruno@clisp.org>
17033
17034         libunistring: Detect libunistring also when it depends on libiconv.
17035         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
17036         the second AC_LIB_HAVE_LINKFLAGS invocation.
17037
17038 2010-04-11  James Youngman  <jay@gnu.org>
17039
17040         close-stream: declare local scalars to be "const"
17041         * lib/close-stream.c (close_stream): Make boolean variables const
17042         to document the fact that we set but do not change them.
17043
17044 2010-04-11  Bruno Haible  <bruno@clisp.org>
17045
17046         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
17047
17048 2010-04-11  Jim Meyering  <meyering@redhat.com>
17049
17050         maint.mk: don't include dist-check.mk
17051         * top/maint.mk: Remove bogus include directive.
17052
17053         maint.mk: improve empty-line-at-EOF check
17054         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
17055         solution, rather than tail+Perl-based one.  The latter would read
17056         a few kilobytes from the end of each file, and did not handle empty
17057         files properly.
17058
17059         maint.mk: print the elapsed time for each syntax-check rule
17060         * top/maint.mk (sc_m_rules_): Save start time in a file.
17061         (sc_z_rules_): New rules: remove temp file and print elapsed time.
17062         (local-check): Interpose the .z rules
17063
17064 2010-04-11  Jim Meyering  <meyering@redhat.com>
17065
17066         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
17067         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
17068         empty file with one that ends in an empty line.
17069
17070 2010-04-10  Bruno Haible  <bruno@clisp.org>
17071
17072         mkdir: Make it work on mingw64.
17073         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
17074         * lib/mkdir.c: Update comment.
17075         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
17076
17077 2010-04-10  Bruno Haible  <bruno@clisp.org>
17078
17079         Don't override improved macro from newer autoconf.
17080         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
17081         autoconf >= 2.62.
17082         Reported by Joel E. Denny <jdenny@clemson.edu>.
17083
17084 2010-04-10  Jim Meyering  <meyering@redhat.com>
17085
17086         maint.mk: new syntax-check rule: prohibit empty lines at end of file
17087         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
17088
17089         maint.mk: correct a diagnostic
17090         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
17091         in diagnostic; now use $prohibit.
17092
17093 2010-04-10  Bruno Haible  <address@hidden>
17094
17095         fchownat: Fix a C++ test error on Solaris 8.
17096         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
17097         the function does not exist.
17098
17099 2010-04-10  Bruno Haible  <bruno@clisp.org>
17100
17101         vasnprintf: Add more tests.
17102         * tests/test-vasnprintf-posix.c: Include <errno.h>.
17103         (test_function): Test converting an invalid wide string.
17104
17105         vasnprintf: Correct handling of unconvertible wide string arguments.
17106         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
17107         VASNPRINTF.
17108         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
17109         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
17110         smaller than the expected maximum need for the directive. Set errno to
17111         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
17112         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
17113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
17114         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
17115         * modules/vasnprintf (Files): Add m4/printf.m4.
17116         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17117
17118 2010-04-10  Bruno Haible  <bruno@clisp.org>
17119
17120         vasnprintf: Fix crash in %ls directive.
17121         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
17122         string is passed as argument to %ls, with no precision and no width.
17123         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17124
17125 2010-04-10  Bruno Haible  <bruno@clisp.org>
17126
17127         vasnprintf: Fix multiple test failures on mingw.
17128         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
17129         _snprintf, or snwprintf, not _snwprintf.
17130
17131 2010-04-10  Bruno Haible  <bruno@clisp.org>
17132
17133         write: Fix a C++ test error on mingw.
17134         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
17135
17136 2010-04-10  Bruno Haible  <bruno@clisp.org>
17137
17138         vasnprintf test: Reduce code duplication.
17139         * tests/test-vasnprintf.c (test_function): New function, extracted from
17140         test_vasnprintf.
17141         (test_vasnprintf, test_asnprintf): Invoke it.
17142
17143 2010-04-10  Bruno Haible  <bruno@clisp.org>
17144
17145         strnlen: Fix warning in C++ mode on MacOS X.
17146         * lib/string.in.h (strnlen): Use the modern idiom.
17147         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
17148         defining strnlen as a macro already in <config.h>.
17149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17150         REPLACE_STRNLEN.
17151         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
17152         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17153
17154 2010-04-08  James Youngman  <jay@gnu.org>
17155
17156         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
17157         the example.
17158
17159 2010-04-09  Jim Meyering  <meyering@redhat.com>
17160
17161         maint.mk: print better diagnostic when there is no $(_hv_file)
17162         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
17163         announce that when $(_hv_file) (aka help-version) does not exist.
17164
17165         init.sh: run tr in the "C" locale to avoid multibyte interpretation
17166         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
17167         not try to interpret its random input bytes.  Jarno Rajahalme reported
17168         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
17169         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
17170         (mktempd_): Likewise, just in case.
17171
17172         ftruncate: add two years to projected module removal date: 2012
17173         * m4/ftruncate.m4: Adjust comments.
17174
17175         ftruncate: mark module as obsolete; even MinGW provides it, now
17176         * modules/ftruncate (Status): Obsolete.
17177         (Notice): Say that.
17178         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
17179         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
17180
17181 2010-04-08  Bruno Haible  <bruno@clisp.org>
17182
17183         Fix side effects from tests-related modules.
17184         * modules/dprintf-posix (Comment): New section.
17185         * modules/fprintf-posix (Comment): Likewise.
17186         * modules/obstack-printf-posix (Comment): Likewise.
17187         * modules/printf-posix (Comment): Likewise.
17188         * modules/snprintf-posix (Comment): Likewise.
17189         * modules/sprintf-posix (Comment): Likewise.
17190         * modules/vasnprintf-posix (Comment): Likewise.
17191         * modules/vasprintf-posix (Comment): Likewise.
17192         * modules/vdprintf-posix (Comment): Likewise.
17193         * modules/vfprintf-posix (Comment): Likewise.
17194         * modules/vprintf-posix (Comment): Likewise.
17195         * modules/vsnprintf-posix (Comment): Likewise.
17196         * modules/vsprintf-posix (Comment): Likewise.
17197         * modules/xprintf-posix (Comment): Likewise.
17198         * modules/xvasprintf-posix (Comment): Likewise.
17199         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
17200         * modules/floorf-tests (Depends-on): Likewise.
17201         * modules/round-tests (Depends-on): Likewise.
17202         * modules/roundf-tests (Depends-on): Likewise.
17203         * modules/trunc-tests (Depends-on): Likewise.
17204         * modules/truncf-tests (Depends-on): Likewise.
17205         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
17206         'fprintf-posix' module is not present.
17207         * tests/test-floorf2.c (check): Likewise.
17208         * tests/test-trunc2.c (check): Likewise.
17209         * tests/test-truncf2.c (check): Likewise.
17210         * tests/test-round2.c (equal): Likewise.
17211         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17212
17213 2010-04-07  Karl Berry  <karl@gnu.org>
17214
17215         * config/srclist.txt,
17216         * config/srclistvars.sh,
17217         * config/srclist-update: doc fixes.
17218
17219 2010-04-07  Jim Meyering  <meyering@redhat.com>
17220
17221         maint.mk: add a PATH crosschecking syntax-check rule
17222         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
17223         Useful if you use a test like the one in help-version (coreutils,
17224         diffutils, grep, gzip) that ensures $(VERSION) matches what is
17225         printed by prog --version.
17226
17227 2010-04-06  Bruno Haible  <bruno@clisp.org>
17228
17229         Fix link error on mingw.
17230         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
17231         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
17232
17233 2010-04-06  Bruno Haible  <bruno@clisp.org>
17234
17235         Assume rmdir exists.
17236         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
17237
17238 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
17239
17240         doc: update users.txt
17241         * users.txt: Add gcal.
17242
17243 2010-04-06  Jim Meyering  <meyering@redhat.com>
17244
17245         init.sh: simply unset TMPDIR rather than risking env -i
17246         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17247         although it probably works fine on all Unix-based systems, some
17248         systems (Cygwin?) cannot tolerate a totally cleared environment.
17249         Suggestion from Eric Blake.
17250
17251 2010-04-06  Jim Meyering  <meyering@redhat.com>
17252
17253         init.sh: portability fix: use env's POSIX-specified -i option not -u
17254         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17255         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17256
17257 2010-04-05  Bruno Haible  <bruno@clisp.org>
17258
17259         btowc: Work around Cygwin 1.7.2 bug.
17260         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17261         does not map NUL to 0.
17262         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17263
17264 2010-04-05  Bruno Haible  <bruno@clisp.org>
17265
17266         Make the multithread modules work on Cygwin 1.7.2.
17267         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17268         imported symbols can be declared weak, so that it returns "no" on
17269         Cygwin 1.7.2.
17270
17271 2010-04-05  Bruno Haible  <bruno@clisp.org>
17272
17273         Use the module 'strncat'.
17274         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17275
17276         Tests for module 'strncat'.
17277         * modules/strncat-tests: New file.
17278         * tests/test-strncat.c: New file.
17279
17280         New module 'strncat'.
17281         * lib/string.in.h (strncat): New declaration.
17282         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17283         * m4/strncat.m4: New file, based on m4/memchr.m4.
17284         * modules/strncat: New file.
17285         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17286         is declared.
17287         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17288         REPLACE_STRNCAT.
17289         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17290         REPLACE_STRNCAT.
17291         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17292         module.
17293         * tests/test-string-c++.cc: Check signature of strncat.
17294
17295 2010-04-05  Jim Meyering  <meyering@redhat.com>
17296
17297         xstrtoumax-tests: convert to use init.sh
17298         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17299         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17300         Use Exit, not exit.
17301         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17302
17303         xstrtoimax-tests: convert to use init.sh
17304         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17305         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17306         Use Exit, not exit.
17307         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17308
17309 2010-04-05  Bruno Haible  <bruno@clisp.org>
17310
17311         sys_socket: Avoid #define replacements in C++ mode.
17312         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17313         warning to the function if possible, rather than #defining the symbol
17314         to a dysfunctional alias.
17315
17316 2010-04-05  Bruno Haible  <bruno@clisp.org>
17317
17318         fseeko: Fix C++ test error on mingw.
17319         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17320         gl_FUNC_FSEEKO.
17321         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17322         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17323         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17324         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17325
17326 2010-04-05  Bruno Haible  <bruno@clisp.org>
17327
17328         duplocale: Improve test output.
17329         * tests/test-duplocale.c (main): Print reason for skipped test.
17330
17331 2010-04-05  Bruno Haible  <bruno@clisp.org>
17332
17333         Assume rmdir exists.
17334         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17335         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17336
17337 2010-04-05  Bruno Haible  <bruno@clisp.org>
17338
17339         Fix link error on Solaris 8 with cc.
17340         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17341
17342 2010-04-05  Bruno Haible  <bruno@clisp.org>
17343
17344         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17345         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17346
17347 2010-04-05  Bruno Haible  <bruno@clisp.org>
17348
17349         vasprintf: Update documentation.
17350         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17351
17352 2010-04-05  Bruno Haible  <bruno@clisp.org>
17353
17354         ptsname: Improve test.
17355         * tests/test-ptsname.c (main): Also try the various master names of BSD
17356         systems.
17357
17358 2010-04-05  Bruno Haible  <bruno@clisp.org>
17359
17360         memchr: Avoid a possible C++ test error.
17361         * lib/string.in.h (memchr): Provide declaration if function is missing.
17362         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17363         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17365         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17366
17367 2010-04-05  Bruno Haible  <bruno@clisp.org>
17368
17369         strtok_r: Improve idiom.
17370         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17371         AC_LIBOBJ is used.
17372
17373 2010-04-05  Bruno Haible  <bruno@clisp.org>
17374
17375         strdup: Improve idiom.
17376         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17377         AC_LIBOBJ is used.
17378         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17379         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17380         when AC_LIBOBJ is used.
17381
17382 2010-04-05  Bruno Haible  <bruno@clisp.org>
17383
17384         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17385         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17386         don't set REPLACE_MBSINIT to 1.
17387         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17388         don't set REPLACE_MBRTOWC to 1.
17389         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17390         exist, don't set REPLACE_MBSRTOWCS to 1.
17391         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17392         exist, don't set REPLACE_MBSNRTOWCS to 1.
17393         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17394         don't set REPLACE_WCRTOMB to 1.
17395         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17396         exist, don't set REPLACE_WCSRTOMBS to 1.
17397         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17398         exist, don't set REPLACE_WCSNRTOMBS to 1.
17399
17400 2010-04-05  Bruno Haible  <bruno@clisp.org>
17401
17402         ldexpl: Improve idiom.
17403         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17404         make sure to set HAVE_DECL_LDEXPL to 0.
17405
17406 2010-04-05  Jim Meyering  <meyering@redhat.com>
17407
17408         xstrtol-tests: convert to use init.sh
17409         * modules/xstrtol-tests (Files): Add tests/init.sh.
17410         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17411         Use Exit, not exit.
17412         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17413
17414         atexit-tests: convert to use init.sh
17415         * modules/atexit-tests (Files): Add tests/init.sh.
17416         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17417         Use Exit, not exit.
17418         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17419
17420         init.sh: fix typo
17421         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17422
17423         init.sh: make it easier for a test script to write to the tty, ...
17424         when using automake's parallel-tests mode.
17425         * tests/init.sh (stderr_fileno_): Define overridable variable.
17426         (warn_): New function, to use it.
17427         (fail_, skip_, framework_failure_): Use warn_.
17428
17429 2010-04-04  Bruno Haible  <bruno@clisp.org>
17430
17431         btowc: Avoid warning.
17432         * lib/btowc.c: Include <stdlib.h>.
17433         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17434
17435 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17436             Bruno Haible  <bruno@clisp.org>
17437
17438         wchar: Port to NetBSD 1.5.
17439         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17440         * lib/wctype.in.h (WEOF): Likewise.
17441
17442 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17443             Bruno Haible  <bruno@clisp.org>
17444
17445         Port extended stdio to NetBSD 1.5.
17446         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17447         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17448         older.
17449
17450 2010-04-04  Bruno Haible  <bruno@clisp.org>
17451
17452         string: Remove unused substitution.
17453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17454         HAVE_DECL_STRERROR.
17455         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17456
17457 2010-04-04  Bruno Haible  <bruno@clisp.org>
17458
17459         strtod: Avoid a possible C++ test error.
17460         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17461         set REPLACE_STRTOD.
17462
17463 2010-04-04  Bruno Haible  <bruno@clisp.org>
17464
17465         strerror: Update documentation.
17466         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17467
17468 2010-04-04  Bruno Haible  <bruno@clisp.org>
17469
17470         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17471         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17472         _GL_CXXALIAS_SYS_CAST.
17473
17474 2010-04-04  Bruno Haible  <bruno@clisp.org>
17475
17476         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17477         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17478         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17479         REPLACE_FREXPL to 1.
17480         * doc/posix-functions/frexpl.texi: Update documentation.
17481
17482 2010-04-04  Bruno Haible  <bruno@clisp.org>
17483
17484         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17485         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17486
17487 2010-04-04  Bruno Haible  <bruno@clisp.org>
17488
17489         Implement nanosleep for native Windows.
17490         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17491
17492 2010-04-04  Bruno Haible  <bruno@clisp.org>
17493
17494         math: Fix some C++ test errors on Solaris 8.
17495         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17496
17497 2010-04-04  Bruno Haible  <bruno@clisp.org>
17498
17499         math: Fix some C++ test errors on Cygwin.
17500         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17501         truncl): Provide declaration if the system does not have it.
17502         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17503         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17504         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17505         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17506         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17507         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17508         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17509         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17510         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17511         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17512         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17513         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17514         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17515         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17516         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17517         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17519         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17520         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17521         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17522         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17523         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17524
17525 2010-04-04  Bruno Haible  <bruno@clisp.org>
17526
17527         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17528         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17529         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17530         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17531         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17532         * m4/isinf.m4 (gl_ISINF): Likewise.
17533         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17534
17535 2010-04-04  Bruno Haible  <bruno@clisp.org>
17536
17537         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17538         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17539
17540 2010-04-04  Bruno Haible  <bruno@clisp.org>
17541
17542         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17543         * modules/tmpfile (configure.ac): Update.
17544
17545         tmpfile: Fix C++ test error on mingw.
17546         * lib/stdio.in.h (tmpfile): New declaration.
17547         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17548         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17549         * modules/tmpfile (Depends-on): Add stdio.
17550         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17551         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17552         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17553         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17554         REPLACE_TMPFILE.
17555         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17556
17557 2010-04-04  Bruno Haible  <bruno@clisp.org>
17558
17559         ioctl: Fix C++ test error on mingw.
17560         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17561         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17562         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17563
17564 2010-04-03  Bruno Haible  <bruno@clisp.org>
17565
17566         wcwidth: Fix C++ test error on mingw.
17567         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17568         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17569         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17570
17571 2010-04-03  Bruno Haible  <bruno@clisp.org>
17572
17573         nanosleep: Fix C++ test error on mingw.
17574         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17575         * lib/time.in.h (nanosleep): Use modern idiom.
17576         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17577         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17578         REPLACE_NANOSLEEP to 1.
17579         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17580         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17581
17582 2010-04-03  Bruno Haible  <bruno@clisp.org>
17583
17584         strptime: Fix C++ test error on mingw.
17585         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17586         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17587         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17588         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17589         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17590         not REPLACE_STRPTIME.
17591         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17592         REPLACE_STRPTIME.
17593
17594 2010-04-03  Bruno Haible  <bruno@clisp.org>
17595
17596         timegm: Fix C++ test error on mingw.
17597         * lib/time.in.h (timegm): Use modern idiom.
17598         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17599         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17600         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17601         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17602
17603 2010-04-03  Bruno Haible  <bruno@clisp.org>
17604
17605         timegm: Assume declaration if function exists.
17606         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17607         if it exists. Don't clobber ac_cv_func_timegm.
17608
17609 2010-04-03  Bruno Haible  <bruno@clisp.org>
17610
17611         time_r: Fix C++ test error on mingw.
17612         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17613         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17614         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17615         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17616         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17617
17618 2010-04-03  Bruno Haible  <bruno@clisp.org>
17619
17620         time_r: Minor updates.
17621         * modules/time_r (Description): Mention the provided functions.
17622         * lib/time_r.c: Don't include <string.h>.
17623         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17624         * doc/posix-functions/localtime_r.texi: Likewise.
17625
17626 2010-04-03  Bruno Haible  <bruno@clisp.org>
17627
17628         time: Fix regression introduced on 2010-03-08.
17629         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17630         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17631
17632 2010-04-03  Jim Meyering  <meyering@redhat.com>
17633
17634         maint.mk: don't silently disable project-specific syntax-check rules
17635         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17636         that they need to convert their project-specific syntax-check rules
17637         to use the new _sc_search_regexp.
17638
17639 2010-04-03  Bruno Haible  <bruno@clisp.org>
17640
17641         fchdir: Fix regression introduced on 2010-03-08.
17642         * lib/unistd.in.h (fchdir): Fix declaration.
17643         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17645         REPLACE_FCHDIR.
17646         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17647         REPLACE_FCHDIR.
17648
17649 2010-04-03  Bruno Haible  <bruno@clisp.org>
17650
17651         getpagesize: Fix C++ test error on mingw.
17652         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17653         system does not declare the function.
17654         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17655         declared.
17656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17657         HAVE_DECL_GETPAGESIZE.
17658         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17659
17660 2010-04-03  Bruno Haible  <bruno@clisp.org>
17661
17662         stdio: Make C++ tests work on mingw.
17663         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17664         does not declare the function.
17665
17666 2010-04-03  Bruno Haible  <bruno@clisp.org>
17667
17668         ftello: Fix C++ test error on mingw.
17669         * lib/stdio.in.h (ftello): Use modern idiom.
17670         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17671         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17672         is missing and that it needs to be replaced.
17673         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17675         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17676
17677 2010-04-03  Bruno Haible  <bruno@clisp.org>
17678
17679         fseeko: Fix C++ test error on mingw.
17680         * lib/stdio.in.h (fseeko): Use modern idiom.
17681         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17682         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17683         is missing and that it needs to be replaced.
17684         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17686         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17687
17688 2010-04-03  Bruno Haible  <bruno@clisp.org>
17689
17690         mkstemp: Fix C++ test error on mingw.
17691         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17692         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17693         function is missing and that it needs to be replaced.
17694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17695         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17696
17697 2010-04-03  Bruno Haible  <bruno@clisp.org>
17698
17699         stpncpy: Fix C++ test error on mingw.
17700         * lib/string.in.h (stpncpy): Use modern idiom.
17701         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17702         function is missing and that it needs to be replaced.
17703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17704         REPLACE_STPNCPY.
17705         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17706
17707 2010-04-03  Bruno Haible  <bruno@clisp.org>
17708
17709         sys_stat: Fix C++ test error on mingw.
17710         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17711         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17712
17713 2010-04-03  Bruno Haible  <bruno@clisp.org>
17714
17715         pty: Update doc.
17716         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17717
17718 2010-04-03  Bruno Haible  <bruno@clisp.org>
17719
17720         unistd: Fix C++ test error on mingw.
17721         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17722
17723 2010-04-03  Bruno Haible  <bruno@clisp.org>
17724
17725         Update doc regarding mingw.
17726         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17727         * doc/glibc-functions/login_tty.texi: Likewise.
17728         * doc/glibc-functions/forkpty.texi: Likewise.
17729
17730 2010-04-03  Bruno Haible  <bruno@clisp.org>
17731
17732         stdlib: Avoid compilation failure of c-strtold on mingw.
17733         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17734
17735 2010-04-03  Bruno Haible  <bruno@clisp.org>
17736
17737         locale: Make C++ tests work on Cygwin and mingw.
17738         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17739         cannot provide the function.
17740         Reported by Simon Josefsson.
17741
17742 2010-04-03  Bruno Haible  <bruno@clisp.org>
17743
17744         localename: Port to MacOS X 10.6.
17745         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17746         memory layout of the locales in MacOS X 10.6 as well.
17747         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17748
17749 2010-04-02  Bruno Haible  <bruno@clisp.org>
17750
17751         gnulib-tool: Ensure that long-running tests are executed last.
17752         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17753         running tests after the one for the other tests.
17754
17755 2010-04-02  Bruno Haible  <bruno@clisp.org>
17756
17757         gnulib-tool: Ensure the tests in the main directory are executed first.
17758         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17759         start with the current directory.
17760
17761 2010-04-02  Bruno Haible  <bruno@clisp.org>
17762
17763         Tests for module 'havelib', moved here from GNU gettext.
17764         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17765         modifications.
17766         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17767         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17768         with modifications.
17769         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17770         modifications.
17771         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17772         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17773         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17774         with modifications.
17775         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17776         with modifications.
17777         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17778         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17779         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17780         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17781         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17782         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17783         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17784         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17785         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17786         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17787         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17788         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17789         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17790         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17791         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17792         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17793         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17794         with modifications.
17795         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17796         with modifications.
17797         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17798         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17799         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17800         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17801         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17802         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17803         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17804         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17805         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17806         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17807         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17808         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17809         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17810         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17811         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17812         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17813         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17814         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17815         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17816         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17817         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17818         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17819         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17820         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17821         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17822         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17823         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17824         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17825         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17826         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17827         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17828         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17829         * tests/havelib/rpathx/rpathx.c: New file, from
17830         gettext/autoconf-lib-link.
17831         * tests/havelib/rpathx/Makefile.am: New file, from
17832         gettext/autoconf-lib-link.
17833         * tests/havelib/rpathx/configure.ac: New file, from
17834         gettext/autoconf-lib-link with modifications.
17835         * tests/havelib/rpathy/rpathy.c: New file, from
17836         gettext/autoconf-lib-link.
17837         * tests/havelib/rpathy/Makefile.am: New file, from
17838         gettext/autoconf-lib-link.
17839         * tests/havelib/rpathy/configure.ac: New file, from
17840         gettext/autoconf-lib-link with modifications.
17841         * tests/havelib/rpathz/rpathz.c: New file, from
17842         gettext/autoconf-lib-link.
17843         * tests/havelib/rpathz/Makefile.am: New file, from
17844         gettext/autoconf-lib-link.
17845         * tests/havelib/rpathz/configure.ac: New file, from
17846         gettext/autoconf-lib-link with modifications.
17847         * tests/havelib/rpathlx/usex.c: New file, from
17848         gettext/autoconf-lib-link.
17849         * tests/havelib/rpathlx/Makefile.am: New file, from
17850         gettext/autoconf-lib-link.
17851         * tests/havelib/rpathlx/configure.ac: New file, from
17852         gettext/autoconf-lib-link with modifications.
17853         * tests/havelib/rpathly/usey.c: New file, from
17854         gettext/autoconf-lib-link.
17855         * tests/havelib/rpathly/Makefile.am: New file, from
17856         gettext/autoconf-lib-link.
17857         * tests/havelib/rpathly/configure.ac: New file, from
17858         gettext/autoconf-lib-link with modifications.
17859         * tests/havelib/rpathlz/usez.c: New file, from
17860         gettext/autoconf-lib-link.
17861         * tests/havelib/rpathlz/Makefile.am: New file, from
17862         gettext/autoconf-lib-link.
17863         * tests/havelib/rpathlz/configure.ac: New file, from
17864         gettext/autoconf-lib-link with modifications.
17865         * tests/havelib/rpathlyx/usey.c: New file, from
17866         gettext/autoconf-lib-link.
17867         * tests/havelib/rpathlyx/Makefile.am: New file, from
17868         gettext/autoconf-lib-link.
17869         * tests/havelib/rpathlyx/configure.ac: New file, from
17870         gettext/autoconf-lib-link with modifications.
17871         * tests/havelib/rpathlzyx/usez.c: New file, from
17872         gettext/autoconf-lib-link.
17873         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17874         gettext/autoconf-lib-link.
17875         * tests/havelib/rpathlzyx/configure.ac: New file, from
17876         gettext/autoconf-lib-link with modifications.
17877         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17878         with modifications.
17879
17880 2010-04-02  Bruno Haible  <bruno@clisp.org>
17881
17882         gnulib-tool: Create distributed built sources also for the tests.
17883         * gnulib-tool (func_create_testdir): Also generate distributed built
17884         sources in the tests directory.
17885
17886 2010-04-02  Bruno Haible  <bruno@clisp.org>
17887
17888         gnulib-tool: Obey user's environment variables.
17889         * gnulib-tool (func_create_testdir): When creating built sources,
17890         respect the environment variables for autoconf, automake, etc. given by
17891         the user.
17892
17893 2010-04-02  Bruno Haible  <bruno@clisp.org>
17894
17895         gnulib-tool: Provide the value of --m4-base to modules.
17896         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17897         of gl_m4_base.
17898
17899 2010-04-02  Eric Blake  <eblake@redhat.com>
17900
17901         maint.mk: fix some fallout
17902         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17903         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17904
17905 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17906
17907         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17908         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17909         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17910         (sc_cast_of_x_alloc_return_value): Likewise.
17911         (sc_cast_of_alloca_return_value): Likewise.
17912         (sc_space_tab): Likewise.
17913         (sc_prohibit_atoi_atof): Likewise.
17914         (sc_prohibit_magic_number_exit): Likewise.
17915         (sc_error_exit_success): Likewise.
17916         (sc_file_system): Likewise.
17917         (sc_prohibit_have_config_h): Likewise.
17918         (sc_require_config_h): Likewise.
17919         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17920         (sc_obsolete_symbols): Likewise.
17921         (sc_changelog): Likewise.
17922         (sc_program_name): Likewise.
17923         (sc_the_the): Likewise.
17924         (sc_trailing_blank): Likewise.
17925         (sc_two_space_separator_in_usage): Likewise.
17926         (sc_useless_cpp_parens): Likewise.
17927         (sc_GPL_version): Likewise.
17928         (sc_GFDL_version): Likewise.
17929         (sc_texinfo_acronym): Likewise.
17930         (sc_prohibit_cvs_keyword): Likewise.
17931         (sc_prohibit_stat_st_blocks): Likewise.
17932         (sc_prohibit_S_IS_definition): Likewise.
17933         (sc_redundant_const): Likewise.
17934         (sc_makefile_TAB_only_indentation): Likewise.
17935         (sc_m4_quote_check): Likewise.
17936         (sc_makefile_path_separator_check): Likewise.
17937         (sc_copyright_check): Likewise.
17938         (sc_Wundef_boolean): Likewise.
17939         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17940
17941         maint.mk: match 0 or more whitespace-before-function-call '('
17942         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17943         that have zero or two-and-more spaces between the function name
17944         and the open parenthesis.
17945         (sc_error_message_warn_fatal): Likewise.
17946         (sc_error_message_uppercase): Likewise.
17947         (sc_error_message_period): Likewise.
17948
17949 2010-03-31  Eric Blake  <eblake@redhat.com>
17950
17951         maint.mk: check for [ as well as test
17952         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17953         Based on a libvirt report by Matthias Bolte.
17954
17955         gnumakefile: don't squelch _version output
17956         * top/GNUmakefile (_version): Create one-shot dependency rather
17957         than using $(shell) when version must be regenerated.
17958         (_autoreconf): Run verbosely, by default.
17959
17960         sys_time: avoid compiler warnings
17961         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17962         unconditional, fixing regression from 2010-03-29.
17963         Reported by Simon Josefsson.
17964
17965 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17966
17967         maint.mk: s/_header_without_use/_sc_header_without_use/
17968         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17969         (sc_prohibit_assert_without_use): Use the new name.
17970         (sc_prohibit_close_stream_without_use): Likewise.
17971         (sc_prohibit_getopt_without_use): Likewise.
17972         (sc_prohibit_quotearg_without_use): Likewise.
17973         (sc_prohibit_quote_without_use): Likewise.
17974         (sc_prohibit_long_options_without_use): Likewise.
17975         (sc_prohibit_inttostr_without_use): Likewise.
17976         (sc_prohibit_ignore_value_without_use): Likewise.
17977         (sc_prohibit_error_without_use): Likewise.
17978         (sc_prohibit_xalloc_without_use): Likewise.
17979         (sc_prohibit_hash_without_use): Likewise.
17980         (sc_prohibit_hash_pjw_without_use): Likewise.
17981         (sc_prohibit_safe_read_without_use): Likewise.
17982         (sc_prohibit_argmatch_without_use): Likewise.
17983         (sc_prohibit_canonicalize_without_use): Likewise.
17984         (sc_prohibit_root_dev_ino_without_use): Likewise.
17985         (sc_prohibit_openat_without_use): Likewise.
17986         (sc_prohibit_c_ctype_without_use): Likewise.
17987         (sc_prohibit_signal_without_use): Likewise.
17988         (sc_prohibit_intprops_without_use): Likewise.
17989
17990 2010-03-30  Eric Blake  <eblake@redhat.com>
17991
17992         maint: improve module indicators
17993         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17994         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17995         columns, and avoid extra macro expansion.
17996
17997         fdopendir: work around FreeBSD bug
17998         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17999         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
18000         * modules/dirent (Makefile.am): Substitute it.
18001         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
18002         declaration.
18003         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
18004         fix.
18005         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18006
18007 2010-03-29  Bruno Haible  <bruno@clisp.org>
18008
18009         Emit #pragma system_header after the inclusion guard, not before.
18010         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
18011         guard that spans the entire file, not before. This enables an
18012         optimization in GCC's preprocessor.
18013         * lib/ctype.in.h: Likewise.
18014         * lib/dirent.in.h: Likewise.
18015         * lib/errno.in.h: Likewise.
18016         * lib/float.in.h: Likewise.
18017         * lib/getopt.in.h: Likewise.
18018         * lib/iconv.in.h: Likewise.
18019         * lib/langinfo.in.h: Likewise.
18020         * lib/locale.in.h: Likewise.
18021         * lib/math.in.h: Likewise.
18022         * lib/netdb.in.h: Likewise.
18023         * lib/netinet_in.in.h: Likewise.
18024         * lib/pty.in.h: Likewise.
18025         * lib/sched.in.h: Likewise.
18026         * lib/se-selinux.in.h: Likewise.
18027         * lib/search.in.h: Likewise.
18028         * lib/spawn.in.h: Likewise.
18029         * lib/stdarg.in.h: Likewise.
18030         * lib/stdint.in.h: Likewise.
18031         * lib/string.in.h: Likewise.
18032         * lib/strings.in.h: Likewise.
18033         * lib/sys_file.in.h: Likewise.
18034         * lib/sys_ioctl.in.h: Likewise.
18035         * lib/sys_time.in.h: Likewise.
18036         * lib/sys_times.in.h: Likewise.
18037         * lib/sys_utsname.in.h: Likewise.
18038         * lib/sys_wait.in.h: Likewise.
18039         * lib/sysexits.in.h: Likewise.
18040         * lib/wctype.in.h: Likewise.
18041
18042 2010-03-28  James Youngman  <jay@gnu.org>
18043
18044         save-cwd: don't leak a file descriptor when the caller execs.
18045         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
18046         saved file descriptor.
18047         * modules/save-cwd (Depends-on): Depend on cloexec.
18048
18049 2010-03-29  Bruno Haible  <bruno@clisp.org>
18050
18051         Remove vestiges of fts-lgpl module.
18052         * lib/fts_.h: Assume GNULIB_FTS is 1.
18053         * lib/fts.c: Likewise.
18054         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18055
18056 2010-03-28  Bruno Haible  <bruno@clisp.org>
18057
18058         Fix definition of tests witness macro.
18059         * gnulib-tool (func_import): Fix definition of witness macro.
18060
18061 2010-03-28  Bruno Haible  <bruno@clisp.org>
18062
18063         Fix ioctl's protoype on glibc systems.
18064         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
18065         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
18066         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
18067         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
18068         signature. If not, arrange to replace the ioctl function.
18069         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18070         REPLACE_IOCTL.
18071         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
18072         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
18073         Reported by Ludovic Courtès <ludo@gnu.org>.
18074
18075 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
18076
18077         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
18078         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
18079         made it so grep -r --include=GLOB* ... did not work.
18080
18081 2010-03-26  Jim Meyering  <meyering@redhat.com>
18082             Eric Blake  <eblake@redhat.com>
18083
18084         maint.mk: prohibit use of test's -o and -a operators
18085         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
18086
18087 2010-03-28  Bruno Haible  <bruno@clisp.org>
18088
18089         Remove unused GNULIB_XYZ macro definitions.
18090         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
18091         invocation.
18092
18093 2010-03-28  Bruno Haible  <bruno@clisp.org>
18094
18095         Mark privileged tests modules.
18096         * modules/idpriv-drop-tests (Status): New section.
18097         * modules/idpriv-droptemp-tests (Status): New section.
18098
18099 2010-03-28  Bruno Haible  <bruno@clisp.org>
18100
18101         Split C++ tests into separate tests modules.
18102         * modules/dirent-c++-tests: New file, extracted from
18103         modules/dirent-tests.
18104         * modules/dirent-tests: Depend on it.
18105         * modules/fcntl-h-c++-tests: New file, extracted from
18106         modules/fcntl-h-tests.
18107         * modules/fcntl-h-tests: Depend on it.
18108         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
18109         * modules/glob-tests: Depend on it.
18110         * modules/iconv-h-c++-tests: New file, extracted from
18111         modules/iconv-h-tests.
18112         * modules/iconv-h-tests: Depend on it.
18113         * modules/langinfo-c++-tests: New file, extracted from
18114         modules/langinfo-tests.
18115         * modules/langinfo-tests: Depend on it.
18116         * modules/locale-c++-tests: New file, extracted from
18117         modules/locale-tests.
18118         * modules/locale-tests: Depend on it.
18119         * modules/math-c++-tests: New file, extracted from modules/math-tests.
18120         * modules/math-tests: Depend on it.
18121         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
18122         * modules/pty-tests: Depend on it.
18123         * modules/search-c++-tests: New file, extracted from
18124         modules/search-tests.
18125         * modules/search-tests: Depend on it.
18126         * modules/signal-c++-tests: New file, extracted from
18127         modules/signal-tests.
18128         * modules/signal-tests: Depend on it.
18129         * modules/spawn-c++-tests: New file, extracted from
18130         modules/spawn-tests.
18131         * modules/spawn-tests: Depend on it.
18132         * modules/stdio-c++-tests: New file, extracted from
18133         modules/stdio-tests.
18134         * modules/stdio-tests: Depend on it.
18135         * modules/stdlib-c++-tests: New file, extracted from
18136         modules/stdlib-tests.
18137         * modules/stdlib-tests: Depend on it.
18138         * modules/string-c++-tests: New file, extracted from
18139         modules/string-tests.
18140         * modules/string-tests: Depend on it.
18141         * modules/sys_ioctl-c++-tests: New file, extracted from
18142         modules/sys_ioctl-tests.
18143         * modules/sys_ioctl-tests: Depend on it.
18144         * modules/sys_select-c++-tests: New file, extracted from
18145         modules/sys_select-tests.
18146         * modules/sys_select-tests: Depend on it.
18147         * modules/sys_socket-c++-tests: New file, extracted from
18148         modules/sys_socket-tests.
18149         * modules/sys_socket-tests: Depend on it.
18150         * modules/sys_stat-c++-tests: New file, extracted from
18151         modules/sys_stat-tests.
18152         * modules/sys_stat-tests: Depend on it.
18153         * modules/sys_time-c++-tests: New file, extracted from
18154         modules/sys_time-tests.
18155         * modules/sys_time-tests: Depend on it.
18156         * modules/time-c++-tests: New file, extracted from modules/time-tests.
18157         * modules/time-tests: Depend on it.
18158         * modules/unistd-c++-tests: New file, extracted from
18159         modules/unistd-tests.
18160         * modules/unistd-tests: Depend on it.
18161         * modules/wchar-c++-tests: New file, extracted from
18162         modules/wchar-tests.
18163         * modules/wchar-tests: Depend on it.
18164         * modules/wctype-c++-tests: New file, extracted from
18165         modules/wctype-tests.
18166         * modules/wctype-tests: Depend on it.
18167         Reported by Simon Josefsson.
18168
18169 2010-03-28  Bruno Haible  <bruno@clisp.org>
18170
18171         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
18172         * gnulib-tool (func_exists_module): New function, extracted from
18173         func_verify_module.
18174         (func_verify_module): Use it.
18175         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
18176         'foo' only if 'foo' exists.
18177         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
18178         module.
18179
18180 2010-03-28  Bruno Haible  <bruno@clisp.org>
18181
18182         gnulib-tool: Add support for special categories of tests.
18183         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
18184         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
18185         (func_usage): Document them.
18186         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
18187         inc_unportable_tests, inc_all_tests): New variables.
18188         (func_acceptable): Consider these variables.
18189         (func_modules_transitive_closure): Make it work when the 'Status' field
18190         consists of multiple words.
18191         (func_import): Store and restore the values of inc_cxx_tests,
18192         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
18193         inc_all_tests in gnulib-comp.m4.
18194         (func_create_testdir): Set inc_all_tests to true.
18195         * doc/gnulib.texi (Extra tests modules): New section.
18196         Suggested by Jim Meyering.
18197
18198 2010-03-28  Bruno Haible  <bruno@clisp.org>
18199
18200         ansi-c++-opt: Allow turning off the C++ build by default.
18201         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
18202         gl_CXX_CHOICE_DEFAULT_NO is defined.
18203         Requested by Eric Blake.
18204
18205 2010-03-28  Bruno Haible  <bruno@clisp.org>
18206
18207         unistd: Avoid #define replacements in C++ mode.
18208         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
18209         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
18210         setsockopt, shutdown, select): In C++, attach a warning to the function
18211         if possible, rather than #defining the symbol to a dysfunctional alias.
18212         Reported by John W. Eaton <jwe@gnu.org>.
18213
18214 2010-03-28  Bruno Haible  <bruno@clisp.org>
18215
18216         Fix link errors on mingw.
18217         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
18218         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
18219         $(LIBSOCKET).
18220         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
18221         $(LIBSOCKET).
18222
18223 2010-03-28  Bruno Haible  <bruno@clisp.org>
18224             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18225
18226         lib-ignore: Determine different options for different compilers.
18227         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
18228         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
18229         Add comments.
18230         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
18231         * NEWS: Mention the change.
18232
18233 2010-03-27  Bruno Haible  <bruno@clisp.org>
18234
18235         Remove unused GNULIB_XYZ macro definitions.
18236         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18237         * modules/fseek (configure.ac): Likewise.
18238         * modules/ioctl (configure.ac): Likewise.
18239         * modules/open (configure.ac): Likewise.
18240         * modules/stdlib-safer (configure.ac): Likewise.
18241
18242 2010-03-27  Bruno Haible  <bruno@clisp.org>
18243
18244         Add a remark about certain modules.
18245         * modules/malloc (Comment): New section.
18246         * modules/realloc (Comment): Likewise.
18247         * modules/sigpipe (Comment): Likewise.
18248
18249 2010-03-27  Bruno Haible  <bruno@clisp.org>
18250
18251         Resolve conflict between the two kinds of module indicators.
18252         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18253         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18254         * modules/canonicalize (configure.ac): Invoke
18255         gl_MODULE_INDICATOR_FOR_TESTS.
18256         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18257         GNULIB_XYZ.
18258         * tests/test-dirent-c++.cc: Likewise.
18259         * tests/test-dirent-safer.c: Likewise.
18260         * tests/test-dup2.c: Likewise.
18261         * tests/test-fchdir.c: Likewise.
18262         * tests/test-fcntl-h-c++.cc: Likewise.
18263         * tests/test-getopt.c: Likewise.
18264         * tests/test-getopt.h: Likewise.
18265         * tests/test-langinfo-c++.cc: Likewise.
18266         * tests/test-locale-c++.cc: Likewise.
18267         * tests/test-math-c++.cc: Likewise.
18268         * tests/test-pty-c++.cc: Likewise.
18269         * tests/test-search-c++.cc: Likewise.
18270         * tests/test-signal-c++.cc: Likewise.
18271         * tests/test-spawn-c++.cc: Likewise.
18272         * tests/test-stdio-c++.cc: Likewise.
18273         * tests/test-stdlib-c++.cc: Likewise.
18274         * tests/test-string-c++.cc: Likewise.
18275         * tests/test-sys_ioctl-c++.cc: Likewise.
18276         * tests/test-sys_select-c++.cc: Likewise.
18277         * tests/test-sys_socket-c++.cc: Likewise.
18278         * tests/test-sys_stat-c++.cc: Likewise.
18279         * tests/test-sys_time-c++.cc: Likewise.
18280         * tests/test-time-c++.cc: Likewise.
18281         * tests/test-unistd-c++.cc: Likewise.
18282         * tests/test-wchar-c++.cc: Likewise.
18283         * tests/uninorm/test-u8-nfc.c: Likewise.
18284         * tests/uninorm/test-u8-nfd.c: Likewise.
18285         * tests/uninorm/test-u8-nfkc.c: Likewise.
18286         * tests/uninorm/test-u8-nfkd.c: Likewise.
18287         * tests/uninorm/test-u16-nfc.c: Likewise.
18288         * tests/uninorm/test-u16-nfd.c: Likewise.
18289         * tests/uninorm/test-u16-nfkc.c: Likewise.
18290         * tests/uninorm/test-u16-nfkd.c: Likewise.
18291         * tests/uninorm/test-u32-nfc.c: Likewise.
18292         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18293         * tests/uninorm/test-u32-nfd.c: Likewise.
18294         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18295         * tests/uninorm/test-u32-nfkc.c: Likewise.
18296         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18297         * tests/uninorm/test-u32-nfkd.c: Likewise.
18298         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18299         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18300
18301 2010-03-27  Bruno Haible  <bruno@clisp.org>
18302
18303         Distinguish two kinds of module indicators.
18304         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18305         gl_MODULE_INDICATOR.
18306         (gl_MODULE_INDICATOR): New macro.
18307         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18308         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18309         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18310         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18311         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18312         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18313         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18314         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18315         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18316         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18317         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18318         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18319         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18320         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18321         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18322         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18323         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18324         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18325         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18326         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18327         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18328         * modules/cloexec (configure.ac): Likewise.
18329         * modules/getopt-gnu (configure.ac): Likewise.
18330         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18331         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18332         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18333         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18334
18335 2010-03-27  Bruno Haible  <bruno@clisp.org>
18336
18337         New module description field 'Comment'.
18338         * gnulib-tool: New option --extract-comment.
18339         (func_usage): Document it.
18340         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18341         (func_get_comment): New function.
18342         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18343
18344 2010-03-27  Bruno Haible  <bruno@clisp.org>
18345
18346         Addendum to 2010-02-07 commit.
18347         * gnulib-tool (func_usage): Document --extract-applicability option.
18348
18349 2010-03-27  Bruno Haible  <bruno@clisp.org>
18350
18351         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18352         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18353         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18354         rather than link errors.
18355
18356 2010-03-27  Bruno Haible  <bruno@clisp.org>
18357
18358         Avoid side effects from tests-related modules on the compilation of lib.
18359         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18360         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18361         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18362         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18363         macro.
18364         (func_import): Define a witness macro. Assign it a value that depends
18365         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18366         tests-related modules.
18367         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18368         Reported by Jim Meyering.
18369
18370 2010-03-27  Bruno Haible  <bruno@clisp.org>
18371
18372         Factorize common .m4 code.
18373         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18374         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18375         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18376         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18377         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18378         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18379         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18380         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18381         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18382         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18383         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18384         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18385         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18386         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18387         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18388         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18389         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18390         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18391         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18392         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18393         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18394         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18395         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18396         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18397         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18398         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18399         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18400         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18401         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18402         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18403         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18404         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18405
18406 2010-03-27  Bruno Haible  <bruno@clisp.org>
18407
18408         Fix a compilation error on Cygwin with g++ >= 4.3.
18409         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18410         if it is undefined or if we alias it to chmod.
18411         (lstat): Don't warn about the use of this function if it is undefined
18412         or if we alias it to stat.
18413         Reported by Simon Josefsson.
18414
18415 2010-03-27  Bruno Haible  <bruno@clisp.org>
18416
18417         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18418         * modules/getlogin (configure.ac): Update.
18419
18420         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18421         * modules/getlogin_r (configure.ac): Update.
18422
18423         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18424         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18425         * modules/inet_ntop (configure.ac): Update.
18426
18427         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18428         * modules/inet_pton (configure.ac): Update.
18429
18430         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18431         * modules/mbslen (configure.ac): Update.
18432
18433         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18434         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18435         * modules/forkpty (configure.ac): Update.
18436         * modules/openpty (configure.ac): Update.
18437
18438 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18439
18440         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18441         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18442
18443 2010-03-25  Eric Blake  <eblake@redhat.com>
18444
18445         maint: use pragma consistently across replacement headers
18446         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18447         * lib/dirent.in.h (system_header): Likewise.
18448         * lib/errno.in.h (system_header): Likewise.
18449         * lib/float.in.h (system_header): Likewise.
18450         * lib/getopt.in.h (system_header): Likewise.
18451         * lib/iconv.in.h (system_header): Likewise.
18452         * lib/inttypes.in.h (system_header): Likewise.
18453         * lib/langinfo.in.h (system_header): Likewise.
18454         * lib/locale.in.h (system_header): Likewise.
18455         * lib/math.in.h (system_header): Likewise.
18456         * lib/netdb.in.h (system_header): Likewise.
18457         * lib/netinet_in.in.h (system_header): Likewise.
18458         * lib/pty.in.h (system_header): Likewise.
18459         * lib/sched.in.h (system_header): Likewise.
18460         * lib/se-selinux.in.h (system_header): Likewise.
18461         * lib/search.in.h (system_header): Likewise.
18462         * lib/spawn.in.h (system_header): Likewise.
18463         * lib/stdarg.in.h (system_header): Likewise.
18464         * lib/stdint.in.h (system_header): Likewise.
18465         * lib/string.in.h (system_header): Likewise.
18466         * lib/strings.in.h (system_header): Likewise.
18467         * lib/sys_file.in.h (system_header): Likewise.
18468         * lib/sys_ioctl.in.h (system_header): Likewise.
18469         * lib/sys_socket.in.h (system_header): Likewise.
18470         * lib/sys_times.in.h (system_header): Likewise.
18471         * lib/sys_utsname.in.h (system_header): Likewise.
18472         * lib/sys_wait.in.h (system_header): Likewise.
18473         * lib/sysexits.in.h (system_header): Likewise.
18474         * lib/unistd.in.h (system_header): Likewise.
18475         * lib/wctype.in.h (system_header): Likewise.
18476
18477         arpa/inet: fix mingw compilation warning
18478         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18479         Reported by Matthew Bolte.
18480
18481 2010-03-25  Bruno Haible  <bruno@clisp.org>
18482
18483         Avoid collision between gnulib wrapper and libintl wrapper.
18484         * lib/printf.c (printf): Don't define if a printf wrapper is already
18485         defined in intl/printf.c.
18486         Reported by Michel Boaventura <michel@michelboaventura.com>.
18487
18488 2010-03-25  Bruno Haible  <bruno@clisp.org>
18489
18490         Use ANSI C.
18491         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18492
18493 2010-03-25  Bruno Haible  <bruno@clisp.org>
18494
18495         Minor formatting changes.
18496         * lib/acosl.c: Insert space before function argument list.
18497         * lib/argz.c: Likewise.
18498         * lib/asinl.c: Likewise.
18499         * lib/expl.c: Likewise.
18500         * lib/gen-uni-tables.c: Likewise.
18501         * lib/gettext.h: Likewise.
18502         * lib/glthread/lock.h: Likewise.
18503         * lib/tanl.c: Likewise.
18504         * lib/uniname/uniname.c: Likewise.
18505         * tests/test-idpriv-drop.c: Likewise.
18506         * tests/test-idpriv-droptemp.c: Likewise.
18507         * tests/test-lock.c: Likewise.
18508         * tests/test-tls.c: Likewise.
18509         * lib/argp-help.c: Insert space before function-like macro argument
18510         list.
18511         * lib/memcmp.c: Likewise.
18512         * tests/test-base64.c: Likewise.
18513         * lib/localename.c: Insert space before sizeof's argument list.
18514         * lib/safe-alloc.h: Likewise.
18515         * lib/file-set.h: Insert space before macro argument list.
18516         * tests/test-argp.c: Likewise.
18517         * lib/argp-namefrob.h: Insert space before function parameter list.
18518         * lib/getaddrinfo.c: Likewise.
18519         * lib/netdb.in.h: Likewise.
18520         * lib/parse-duration.h: Likewise.
18521         * lib/parse-duration.c: Likewise.
18522         * lib/poll.c: Likewise.
18523         * lib/select.c: Likewise.
18524         * lib/trim.h: Likewise.
18525         * tests/test-usleep.c: Likewise.
18526         * lib/ldexpl.c: Insert space before function parameter list and before
18527         function argument list.
18528         * lib/logl.c: Likewise.
18529         * lib/sqrtl.c: Likewise.
18530         * lib/trim.c: Likewise.
18531         * lib/cosl.c: Use GNU style indentation. Insert space before function
18532         argument list.
18533         * lib/sinl.c: Likewise.
18534         * lib/tsearch.c: Insert space after 'for'.
18535         Reported by Jim Meyering.
18536
18537 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18538
18539         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18540         config header before grepping, as it's not present before
18541         autoreconf/configure are run.  Reported by Simon Josefsson.
18542
18543 2010-03-23  Bruno Haible  <bruno@clisp.org>
18544
18545         pt_chown: Make it work with automake < 1.11.
18546         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18547         Reported by Simon Josefsson.
18548
18549 2010-03-23  Bruno Haible  <bruno@clisp.org>
18550
18551         pt_chown: Don't depend on GPLed modules.
18552         * lib/pt_chown.c: Don't include idpriv.h.
18553         (main): Don't drop privileges.
18554         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18555         Reported by Simon Josefsson.
18556
18557 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18558
18559         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18560         suggestions from karl@freefriends.org (Karl Berry).
18561
18562 2010-03-22  Eric Blake  <eblake@redhat.com>
18563
18564         gethostname: further tweaks
18565         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18566         are overriding gethostname.
18567         Suggested by Bruno Haible.
18568
18569 2010-03-21  Bruno Haible  <bruno@clisp.org>
18570
18571         Fix comments.
18572         * lib/forkpty.c (rpl_forkpty): Fix comment.
18573         * lib/openpty.c (rpl_openpty): Likewise.
18574         Reported by Eric Blake.
18575
18576 2010-03-22  Eric Blake  <eblake@redhat.com>
18577
18578         gethostname: fix build on mingw
18579         * lib/unistd.in.h (includes): Work around fact that mingw
18580         <winsock2.h> re-includes <unistd.h>, by avoiding any
18581         redeclarations if we are being included by <winsock2.h>.
18582         Reported by Matthias Bolte.
18583
18584 2010-03-21  Bruno Haible  <bruno@clisp.org>
18585
18586         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18587         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18588         modifications.
18589         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18590         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18591         provide the replacement.
18592         * modules/forkpty (Depends-on): Add openpty, login_tty.
18593         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18594         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18595         * doc/glibc-functions/forkpty.texi: More supported platforms.
18596         * config/srclist.txt: Add forkpty.c (commented).
18597
18598 2010-03-21  Bruno Haible  <bruno@clisp.org>
18599
18600         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18601         (Makefile.am): Verify that PTY_LIB is defined.
18602
18603         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18604
18605 2010-03-21  Bruno Haible  <bruno@clisp.org>
18606
18607         Tests for module 'login_tty'.
18608         * modules/login_tty-tests: New file.
18609         * tests/test-login_tty.c: New file.
18610
18611         New module 'login_tty'.
18612         * lib/login_tty.c: New file.
18613         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18614         * modules/login_tty: New file.
18615         * doc/glibc-functions/login_tty.texi: Mention the new module.
18616
18617 2010-03-21  Bruno Haible  <bruno@clisp.org>
18618
18619         login_tty: Documentation.
18620         * doc/glibc-functions/login_tty.texi: New file.
18621         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18622
18623 2010-03-21  Bruno Haible  <bruno@clisp.org>
18624
18625         pty: Consistent macro naming.
18626         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18627         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18628         * modules/pty (configure.ac): Update.
18629
18630 2010-03-21  Bruno Haible  <bruno@clisp.org>
18631
18632         Tests for openpty: Make stricter.
18633         * tests/test-openpty.c (main): Add test of canonical processing and
18634         erase.
18635         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18636
18637         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18638         * lib/openpty.c (openpty): New replacement function.
18639         * lib/pty.in.h: Include <termios.h>.
18640         (openpty): Update declaration. Add comments.
18641         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18642         is not declared, arrange to provide the replacement. Check for _getpty
18643         and posix_openpt.
18644         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18645         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18646         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18647         * modules/pty-tests (test_pty_c___LDADD): New variable.
18648         * doc/glibc-functions/openpty.texi: More supported platforms.
18649
18650 2010-03-21  Bruno Haible  <bruno@clisp.org>
18651
18652         setenv: Tweaks.
18653         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18654         the test program.
18655         * doc/posix-functions/setenv.texi: Update platforms list.
18656
18657 2010-03-21  Bruno Haible  <bruno@clisp.org>
18658
18659         New module 'unlockpt'.
18660         * lib/unlockpt.c: New file, from glibc with modifications.
18661         * m4/unlockpt.m4: New file.
18662         * modules/unlockpt: New file.
18663         * lib/stdlib.in.h (unlockpt): New declaration.
18664         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18665         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18666         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18667         HAVE_UNLOCKPT.
18668         * doc/posix-functions/unlockpt.texi: Mention the new module.
18669         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18670         * config/srclist.txt: Add unlockpt.c (commented).
18671
18672 2010-03-21  Jim Meyering  <meyering@redhat.com>
18673
18674         maint.mk: prohibit inclusion of "intprops.h" without use
18675         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18676
18677 2010-03-21  Bruno Haible  <bruno@clisp.org>
18678
18679         New module 'grantpt'.
18680         * lib/grantpt.c: New file, from glibc with modifications.
18681         * m4/grantpt.m4: New file.
18682         * modules/grantpt: New file.
18683         * lib/stdlib.in.h (grantpt): New declaration.
18684         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18685         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18686         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18687         HAVE_GRANTPT.
18688         * doc/posix-functions/grantpt.texi: Mention the new module.
18689         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18690         * config/srclist.txt: Add grantpt.c (commented).
18691
18692 2010-03-21  Bruno Haible  <bruno@clisp.org>
18693
18694         New module 'pt_chown'.
18695         * lib/pt_chown.c: New file, from glibc with modifications.
18696         * lib/pty-private.h: New file, from glibc with modifications.
18697         * modules/pt_chown: New file.
18698         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18699
18700 2010-03-21  Bruno Haible  <bruno@clisp.org>
18701
18702         Tests for module 'ptsname'.
18703         * modules/ptsname-tests: New file.
18704         * tests/test-ptsname.c: New file.
18705
18706         New module 'ptsname'.
18707         * lib/ptsname.c: New file, from glibc with modifications.
18708         * m4/ptsname.m4: New file.
18709         * modules/ptsname: New file.
18710         * lib/stdlib.in.h (ptsname): New declaration.
18711         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18712         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18713         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18714         HAVE_PTSNAME.
18715         * doc/posix-functions/ptsname.texi: Mention the new module.
18716         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18717         * config/srclist.txt: Add ptsname.c (commented).
18718
18719 2010-03-21  Bruno Haible  <bruno@clisp.org>
18720
18721         Tests for module 'ttyname_r'.
18722         * modules/ttyname_r-tests: New file.
18723         * tests/test-ttyname_r.c: New file.
18724
18725         New module 'ttyname_r'.
18726         * lib/ttyname_r.c: New file.
18727         * m4/ttyname_r.m4: New file.
18728         * modules/ttyname_r: New file.
18729         * lib/unistd.in.h (ttyname_r): New declaration.
18730         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18731         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18732         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18733         HAVE_TTYNAME_R.
18734         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18735         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18736
18737 2010-03-20  Bruno Haible  <bruno@clisp.org>
18738
18739         signal: Undefine macro definitions in C++ mode.
18740         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18741         sigfillset): Undefine macro definitions from the system header in C++
18742         mode.
18743         Reported by John W. Eaton <jwe@gnu.org>.
18744
18745 2010-03-20  Bruno Haible  <bruno@clisp.org>
18746
18747         Ensure no #include statements inside extern "C" { ... }.
18748         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18749         contain #include statements.
18750         * lib/time.in.h: Likewise.
18751
18752 2010-03-20  Bruno Haible  <bruno@clisp.org>
18753
18754         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18755         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18756         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18757         Reported by John W. Eaton <jwe@gnu.org>.
18758
18759 2010-03-20  Bruno Haible  <bruno@clisp.org>
18760
18761         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18762         Reported by Jim Meyering.
18763
18764 2010-03-20  Bruno Haible  <bruno@clisp.org>
18765
18766         pipe: Set errno upon failure.
18767         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18768         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18769         errno value in error message.
18770
18771 2010-03-20  Bruno Haible  <bruno@clisp.org>
18772             Jim Meyering  <meyering@redhat.com>
18773
18774         lchown: Avoid "unused variable" warning.
18775         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18776
18777 2010-03-20  Bruno Haible  <bruno@clisp.org>
18778
18779         Work around unlink() bug on MacOS X 10.5.6.
18780         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18781         attempting to unlink a parent directory.
18782         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18783         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18784         activate for the replacement function.
18785         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18786
18787 2010-03-20  Bruno Haible  <bruno@clisp.org>
18788
18789         Fix link errors on Solaris 8.
18790         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18791         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18792
18793 2010-03-19  Jim Meyering  <meyering@redhat.com>
18794
18795         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18796         The _LIBC implementation of build_range_exp correctly honors the
18797         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18798         However, the non-_LIBC implementation would ignore that syntax-bit
18799         flag and return REG_ERANGE unconditionally.
18800         This change makes it honor that flag.
18801         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18802         Make two pointer parameters "const".
18803         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18804         (parse_bracket_exp): Update caller.
18805
18806         regex.m4: correct the reversed range endpoint ([b-a]) test
18807         * m4/regex.m4: When requiring that [b-a] evoke failure,
18808         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18809         test pass once again for x86-based systems.
18810
18811 2010-03-19  Bruno Haible  <bruno@clisp.org>
18812
18813         scandir: Fix link error on Solaris 8.
18814         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18815         macros.
18816
18817 2010-03-19  Bruno Haible  <bruno@clisp.org>
18818
18819         getusershell: Fix documentation.
18820         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18821         module.
18822         * doc/glibc-functions/setusershell.texi: Likewise.
18823
18824         getusershell: Provide declaration, missing on Solaris 9.
18825         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18826         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18827         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18828         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18830         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18831         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18832         HAVE_GETUSERSHELL.
18833         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18834
18835 2010-03-19  Bruno Haible  <bruno@clisp.org>
18836
18837         wctype: Provide iswblank function.
18838         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18839         exists and is fine.
18840         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18841         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18842         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18843         * doc/posix-functions/iswblank.texi: Update.
18844
18845 2010-03-19  Bruno Haible  <bruno@clisp.org>
18846
18847         Tests of module 'pty' in C++ mode.
18848         * modules/pty-tests: New file.
18849         * tests/test-pty-c++.cc: New file.
18850         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18851
18852 2010-03-19  Eric Blake  <eblake@redhat.com>
18853
18854         logb: fix documentation
18855         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18856         1.5 declaration bug.
18857
18858         forkpty, openpty: prefer glibc's const-safe prototype
18859         * lib/forkpty.c (rpl_forkpty): New file.
18860         * lib/openpty.c (rpl_openpty): Likewise.
18861         * modules/forkpty (Files): Distribute it.
18862         * modules/openpty (Files): Likewise.
18863         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18864         check...
18865         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18866         replacement for for non-const BSD signature.
18867         * modules/pty (Makefile.am): Substitute witnesses.
18868         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18869         * tests/test-forkpty.c: Update signature check.
18870         * tests/test-openpty.c: Likewise.
18871         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18872         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18873
18874         forkpty, openpty: split functions into new modules
18875         * modules/pty (Makefile.am): Substitute new witnesses.
18876         (Libraries): Move library detection...
18877         * modules/forkpty: ...into new module.
18878         * modules/openpty: Another new module.
18879         * modules/pty-tests: Rename and split...
18880         * modules/forkpty-tests: ...to this...
18881         * modules/openpty-tests: ...and this.
18882         * tests/test-pty.c: Rename and split...
18883         * tests/test-forkpty.c: ...to this...
18884         * tests/test-openpty.c: ...and this.
18885         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18886         (gl_PTY): Split library searching...
18887         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18888         (gl_FORKPTY, gl_OPENPTY): New macros.
18889         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18890         * NEWS: Mention the split.
18891         * MODULES.html.sh (Misc): Document the modules.
18892         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18893         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18894
18895         pty: improve replacement header
18896         * lib/pty.in.h: New file.
18897         * modules/pty (Files): Ship it.
18898         (Makefile.am): Always build replacement.
18899         * m4/pty.m4: Rename...
18900         * m4/pty_h.m4: ...to this.
18901         (gl_PTY): Modernize setting of witness macros; update check of
18902         forkpty to take proper advantage of cache.
18903         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18904
18905         getopt: avoid compiler warning
18906         * lib/getopt.c (attribute_hidden): Remove unused macro.
18907
18908 2010-03-18  Bruno Haible  <bruno@clisp.org>
18909
18910         Fix link errors on Solaris 8.
18911         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18912         * modules/search-tests (test_search_c___LDADD): Likewise.
18913         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18914         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18915         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18916         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18917         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18918         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18919         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18920
18921 2010-03-18  Bruno Haible  <bruno@clisp.org>
18922
18923         Fix bug introduced on 2010-03-14.
18924         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18925         (gl_SPAWN_H): Require it.
18926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18927         Reported by Simon Josefsson.
18928
18929 2010-03-18  Bruno Haible  <bruno@clisp.org>
18930
18931         Fix typo introduced on 2009-12-31.
18932         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18933         posix_spawn_file_actions_adddup2.
18934
18935 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18936         and Eric Blake  <eblake@redhat.com>
18937
18938         test-vc-list-files-git: make more robust
18939         * tests/test-vc-list-files-git.sh: Unset problematic environment
18940         variables.  Chain commands together.
18941
18942 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18943
18944         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18945         `AC_CHECK_DECL' invocation.
18946
18947 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18948
18949         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18950         appears before executable statements. Suggested by Petr Sumbera
18951         <Petr.Sumbera@Sun.COM>.
18952
18953 2010-03-14  Bruno Haible  <bruno@clisp.org>
18954
18955         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18956         portability problems. Instead use a simpler test.
18957         (main): Check that invalid arguments are rejected only on Linux.
18958
18959 2010-03-14  Bruno Haible  <bruno@clisp.org>
18960
18961         Fix bug introduced on 2009-12-31.
18962         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18963         gl_PREREQ_SYS_H_WINSOCK2 always.
18964         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18965         SYS_SOCKET_H variable.
18966         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18967         Update comments.
18968         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18969         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18970         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18971         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18972         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18973
18974 2010-03-14  Bruno Haible  <bruno@clisp.org>
18975
18976         Fix values returned by sinl, cosl.
18977         * lib/trigl.h: Add specification comments.
18978         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18979         that combines the values from the precomputed table with the values of
18980         the Chebyshev polynomials.
18981
18982 2010-03-14  Bruno Haible  <bruno@clisp.org>
18983
18984         Fix compilation error when modules 'posix_spawn[p]' are not used.
18985         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18986         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18987
18988 2010-03-14  Bruno Haible  <bruno@clisp.org>
18989
18990         Fix compilation error on mingw when module 'time_r' is not used.
18991         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18992         is 1.
18993         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18994         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18995         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18996         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18997
18998 2010-03-14  Bruno Haible  <bruno@clisp.org>
18999
19000         Fix compilation error with Sun C.
19001         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
19002         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
19003         instead of GCC specific ULONG_LONG_MAX.
19004         * lib/xstrtoll.c: Likewise.
19005         * lib/xstrtoull.c: Likewise.
19006
19007 2010-03-13  Bruno Haible  <bruno@clisp.org>
19008
19009         Allow the user to disable C++ code and tests.
19010         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
19011         (gl_PROG_ANSI_CXX): Require it.
19012
19013 2010-03-13  Bruno Haible  <bruno@clisp.org>
19014
19015         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
19016         cases.
19017
19018 2010-03-13  Bruno Haible  <bruno@clisp.org>
19019
19020         Test that gnulib does not break the standard C++ headers.
19021         * tests/test-locale-c++2.cc: New file.
19022         * modules/locale-tests (Files): Add it.
19023         (Makefile.am): Compile it for test-locale-c++.
19024         * tests/test-math-c++2.cc: New file.
19025         * modules/math-tests (Files): Add it.
19026         (Makefile.am): Compile it for test-math-c++.
19027         * tests/test-signal-c++2.cc: New file.
19028         * modules/signal-tests (Files): Add it.
19029         (Makefile.am): Compile it for test-signal-c++.
19030         * tests/test-stdio-c++2.cc: New file.
19031         * modules/stdio-tests (Files): Add it.
19032         (Makefile.am): Compile it for test-stdio-c++.
19033         * tests/test-stdlib-c++2.cc: New file.
19034         * modules/stdlib-tests (Files): Add it.
19035         (Makefile.am): Compile it for test-stdlib-c++.
19036         * tests/test-string-c++2.cc: New file.
19037         * modules/string-tests (Files): Add it.
19038         (Makefile.am): Compile it for test-string-c++.
19039         * tests/test-time-c++2.cc: New file.
19040         * modules/time-tests (Files): Add it.
19041         (Makefile.am): Compile it for test-time-c++.
19042         Reported by John W. Eaton <jwe@gnu.org>.
19043
19044 2010-03-13  Bruno Haible  <bruno@clisp.org>
19045
19046         * gnulib-tool (func_usage): Clarify which options are available for
19047         --create-testdir and --create-megatestdir.
19048
19049 2010-03-13  Bruno Haible  <bruno@clisp.org>
19050
19051         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
19052         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
19053         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
19054         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19055         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
19056         when appropriate.
19057         Reported by Jim Meyering.
19058
19059 2010-03-12  Simon Josefsson  <simon@josefsson.org>
19060
19061         * gnulib-tool (func_import): Explain origin of code.
19062
19063 2010-03-12  Bruno Haible  <bruno@clisp.org>
19064
19065         Fix problem with automake's definition of CXXLINK.
19066         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
19067         Reported by Simon Josefsson and Ludovic Courtès.
19068
19069 2010-03-12  Bruno Haible  <bruno@clisp.org>
19070
19071         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
19072         stable releases.
19073
19074 2010-03-11  Bruno Haible  <bruno@clisp.org>
19075
19076         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
19077         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
19078         whether the system provides one variant or multiple variants of the
19079         function.
19080         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
19081         C++ compilers.
19082         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
19083         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
19084         Reported by Jim Meyering.
19085
19086 2010-03-09  Simon Josefsson  <simon@josefsson.org>
19087
19088         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
19089
19090 2010-03-08  Bruno Haible  <bruno@clisp.org>
19091
19092         gnulib-tool: Add support for --libtool in --create-testdir.
19093         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
19094         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
19095
19096 2010-03-08  Eric Blake  <eblake@redhat.com>
19097
19098         gnulib-tool.texi: mention possibility of git submodule
19099         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
19100         submodules.
19101         * doc/.gitignore: Ignore another generated file.
19102
19103 2010-03-08  Karl Berry  <karl@gnu.org>
19104
19105         * doc/gnulib-tool.texi (VCS Issues): Mention third option
19106         of committing gnulib files while skipping others.
19107
19108 2010-03-07  Bruno Haible  <bruno@clisp.org>
19109
19110         Tests of module 'wctype' in C++ mode.
19111         * tests/test-wctype-c++.cc: New file.
19112         * modules/wctype-tests (Files): Add it and tests/signature.h.
19113         (Depends-on): Add ansi-c++-opt.
19114         (Makefile.am): Arrange to compile and run test-wctype-c++.
19115
19116         Tests of module 'wchar' in C++ mode.
19117         * tests/test-wchar-c++.cc: New file.
19118         * modules/wchar-tests (Files): Add it and tests/signature.h.
19119         (Depends-on): Add ansi-c++-opt.
19120         (Makefile.am): Arrange to compile and run test-wchar-c++.
19121         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
19122         gl_MODULE_INDICATOR.
19123
19124         Tests of module 'unistd' in C++ mode.
19125         * tests/test-unistd-c++.cc: New file.
19126         * modules/unistd-tests (Files): Add it and tests/signature.h.
19127         (Depends-on): Add ansi-c++-opt.
19128         (Makefile.am): Arrange to compile and run test-unistd-c++.
19129         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
19130         gl_MODULE_INDICATOR.
19131
19132         Tests of module 'time' in C++ mode.
19133         * tests/test-time-c++.cc: New file.
19134         * modules/time-tests (Files): Add it and tests/signature.h.
19135         (Depends-on): Add ansi-c++-opt.
19136         (Makefile.am): Arrange to compile and run test-time-c++.
19137         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19138
19139         Tests of module 'sys_time' in C++ mode.
19140         * tests/test-sys_time-c++.cc: New file.
19141         * modules/sys_time-tests (Files): Add it and tests/signature.h.
19142         (Depends-on): Add ansi-c++-opt.
19143         (Makefile.am): Arrange to compile and run test-sys_time-c++.
19144         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
19145         gl_MODULE_INDICATOR.
19146
19147         Tests of module 'sys_stat' in C++ mode.
19148         * tests/test-sys_stat-c++.cc: New file.
19149         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
19150         (Depends-on): Add ansi-c++-opt.
19151         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
19152         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
19153         gl_MODULE_INDICATOR.
19154
19155         Tests of module 'sys_socket' in C++ mode.
19156         * tests/test-sys_socket-c++.cc: New file.
19157         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
19158         (Depends-on): Add ansi-c++-opt.
19159         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
19160         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
19161         gl_MODULE_INDICATOR.
19162
19163         Tests of module 'sys_select' in C++ mode.
19164         * tests/test-sys_select-c++.cc: New file.
19165         * modules/sys_select-tests (Files): Add it and tests/signature.h.
19166         (Depends-on): Add ansi-c++-opt.
19167         (Makefile.am): Arrange to compile and run test-sys_select-c++.
19168         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
19169         gl_MODULE_INDICATOR.
19170
19171         Tests of module 'sys_ioctl' in C++ mode.
19172         * tests/test-sys_ioctl-c++.cc: New file.
19173         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
19174         (Depends-on): Add ansi-c++-opt.
19175         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
19176         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
19177         gl_MODULE_INDICATOR.
19178
19179         Tests of module 'string' in C++ mode.
19180         * tests/test-string-c++.cc: New file.
19181         * modules/string-tests (Files): Add it and tests/signature.h.
19182         (Depends-on): Add ansi-c++-opt.
19183         (Makefile.am): Arrange to compile and run test-string-c++.
19184         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
19185         gl_MODULE_INDICATOR.
19186
19187         Tests of module 'stdlib' in C++ mode.
19188         * tests/test-stdlib-c++.cc: New file.
19189         * modules/stdlib-tests (Files): Add it and tests/signature.h.
19190         (Depends-on): Add ansi-c++-opt.
19191         (Makefile.am): Arrange to compile and run test-stdlib-c++.
19192         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
19193         gl_MODULE_INDICATOR.
19194
19195         Tests of module 'stdio' in C++ mode.
19196         * tests/test-stdio-c++.cc: New file.
19197         * modules/stdio-tests (Files): Add it and tests/signature.h.
19198         (Depends-on): Add ansi-c++-opt.
19199         (Makefile.am): Arrange to compile and run test-stdio-c++.
19200         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
19201         gl_MODULE_INDICATOR.
19202
19203         Tests of module 'spawn' in C++ mode.
19204         * tests/test-spawn-c++.cc: New file.
19205         * modules/spawn-tests (Files): Add it and tests/signature.h.
19206         (Depends-on): Add ansi-c++-opt.
19207         (Makefile.am): Arrange to compile and run test-spawn-c++.
19208         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
19209         gl_MODULE_INDICATOR.
19210
19211         Tests of module 'signal' in C++ mode.
19212         * tests/test-signal-c++.cc: New file.
19213         * modules/signal-tests (Files): Add it and tests/signature.h.
19214         (Depends-on): Add ansi-c++-opt.
19215         (Makefile.am): Arrange to compile and run test-signal-c++.
19216         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
19217         gl_MODULE_INDICATOR.
19218
19219         Tests of module 'search' in C++ mode.
19220         * tests/test-search-c++.cc: New file.
19221         * modules/search-tests (Files): Add it and tests/signature.h.
19222         (Depends-on): Add ansi-c++-opt.
19223         (Makefile.am): Arrange to compile and run test-search-c++.
19224         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
19225         gl_MODULE_INDICATOR.
19226
19227         Tests of module 'math' in C++ mode.
19228         * tests/test-math-c++.cc: New file.
19229         * modules/math-tests (Files): Add it and tests/signature.h.
19230         (Depends-on): Add ansi-c++-opt.
19231         (Makefile.am): Arrange to compile and run test-math-c++.
19232         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19233
19234         Tests of module 'locale' in C++ mode.
19235         * tests/test-locale-c++.cc: New file.
19236         * modules/locale-tests (Files): Add it and tests/signature.h.
19237         (Depends-on): Add ansi-c++-opt.
19238         (Makefile.am): Arrange to compile and run test-locale-c++.
19239         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
19240         gl_MODULE_INDICATOR.
19241
19242         Tests of module 'langinfo' in C++ mode.
19243         * tests/test-langinfo-c++.cc: New file.
19244         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19245         (Depends-on): Add ansi-c++-opt.
19246         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19247         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19248         gl_MODULE_INDICATOR.
19249
19250         Tests of module 'iconv-h' in C++ mode.
19251         * tests/test-iconv-h-c++.cc: New file.
19252         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
19253         (Depends-on): Add ansi-c++-opt.
19254         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
19255
19256         Tests of module 'glob' in C++ mode.
19257         * tests/test-glob-c++.cc: New file.
19258         * modules/glob-tests (Files): Add it.
19259         (Depends-on): Add ansi-c++-opt.
19260         (Makefile.am): Arrange to compile and run test-glob-c++.
19261
19262         Tests of module 'fcntl-h' in C++ mode.
19263         * tests/test-fcntl-h-c++.cc: New file.
19264         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19265         (Depends-on): Add ansi-c++-opt.
19266         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19267         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19268         gl_MODULE_INDICATOR.
19269
19270         Tests of module 'dirent' in C++ mode.
19271         * tests/test-dirent-c++.cc: New file.
19272         * modules/dirent-tests (Files): Add it and tests/signature.h.
19273         (Depends-on): Add ansi-c++-opt.
19274         (Makefile.am): Arrange to compile and run test-dirent-c++.
19275         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19276         gl_MODULE_INDICATOR.
19277
19278         New module 'ansi-c++-opt'.
19279         * modules/ansi-c++-opt: New file.
19280         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19281
19282         Document C++ namespace mode.
19283         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19284
19285         wctype: Avoid #define replacements in C++ mode.
19286         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19287         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19288         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19289         In C++, define a namespaced alias symbol.
19290         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19291         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19292         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19293         rule.
19294
19295         wchar: Avoid #define replacements in C++ mode.
19296         * lib/wchar.in.h: Include c++defs.h.
19297         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19298         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19299         symbol.
19300         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19301         * modules/wchar (Depends-on): Add c++defs.
19302         (Makefile.am): Update wchar.h rule.
19303
19304         unistd: Avoid #define replacements in C++ mode.
19305         * lib/unistd.in.h: Include c++defs.h.
19306         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19307         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19308         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19309         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19310         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19311         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19312         symbol.
19313         (environ): Update.
19314         * modules/unistd (Depends-on): Add c++defs.
19315         (Makefile.am): Update unistd.h rule.
19316
19317         time: Avoid #define replacements in C++ mode.
19318         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19319         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19320         define a namespaced alias symbol.
19321         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19322         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19323         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19324         * modules/time (Depends-on): Add c++defs, warn-on-use.
19325         (Makefile.am): Update time.h rule.
19326         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19327         * modules/nanosleep (configure.ac): Likewise.
19328         * modules/strptime (configure.ac): Likewise.
19329         * modules/timegm (configure.ac): Likewise.
19330
19331         sys_time: Avoid #define replacements in C++ mode.
19332         * lib/sys_time.in.h: Include c++defs.h.
19333         (gettimeofday): In C++, define a namespaced alias symbol.
19334         * modules/sys_time (Depends-on): Add c++defs.
19335         (Makefile.am): Update sys/time.h rule.
19336
19337         sys_stat: Avoid #define replacements in C++ mode.
19338         * lib/sys_stat.in.h: Include c++defs.h.
19339         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19340         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19341         namespaced alias symbol.
19342         In C++, define a namespaced alias symbol.
19343         * modules/sys_stat (Depends-on): Add c++defs.
19344         (Makefile.am): Update sys/stat.h rule.
19345
19346         sys_socket: Avoid #define replacements in C++ mode.
19347         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19348         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19349         definitions also when the system has a <sys/socket.h>.
19350         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19351         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19352         In C++, define a namespaced alias symbol.
19353         * modules/sys_socket (Depends-on): Add c++defs.
19354         (Makefile.am): Update sys/socket.h rule.
19355
19356         sys_select: Avoid #define replacements in C++ mode.
19357         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19358         definitions also when the system has a <sys/select.h>.
19359         (select): In C++, define a namespaced alias symbol.
19360         * modules/sys_select (Depends-on): Add c++defs.
19361         (Makefile.am): Update sys/select.h rule.
19362
19363         sys_ioctl: Avoid #define replacements in C++ mode.
19364         * lib/sys_ioctl.in.h: Include c++defs.h.
19365         (ioctl): In C++, define a namespaced alias symbol.
19366         * modules/sys_ioctl (Depends-on): Add c++defs.
19367         (Makefile.am): Update sys/ioctl.h rule.
19368
19369         string: Avoid #define replacements in C++ mode.
19370         * lib/string.in.h: Include c++defs.h.
19371         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19372         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19373         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19374         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19375         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19376         * modules/string (Depends-on): Add c++defs.
19377         (Makefile.am): Update string.h rule.
19378
19379         stdlib: Avoid #define replacements in C++ mode.
19380         * lib/stdlib.in.h: Include c++defs.h.
19381         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19382         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19383         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19384         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19385         symbol.
19386         * modules/stdlib (Depends-on): Add c++defs.
19387         (Makefile.am): Update stdlib.h rule.
19388
19389         stdio: Avoid #define replacements in C++ mode.
19390         * lib/stdio.in.h: Include c++defs.h.
19391         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19392         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19393         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19394         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19395         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19396         namespaced alias symbol.
19397         * modules/stdio (Depends-on): Add c++defs.
19398         (Makefile.am): Update stdio.h rule.
19399
19400         spawn: Avoid #define replacements in C++ mode.
19401         * lib/spawn.in.h: Include c++defs.h.
19402         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19403         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19404         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19405         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19406         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19407         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19408         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19409         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19410         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19411         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19412         In C++, define a namespaced alias symbol.
19413         * modules/spawn (Depends-on): Add c++defs.
19414         (Makefile.am): Update spawn.h rule.
19415
19416         signal: Avoid #define replacements in C++ mode.
19417         * lib/signal.in.h: Include c++defs.h.
19418         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19419         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19420         namespaced alias symbol.
19421         * modules/signal (Depends-on): Add c++defs.
19422         (Makefile.am): Update signal.h rule.
19423
19424         search: Avoid #define replacements in C++ mode.
19425         * lib/search.in.h: Include c++defs.h.
19426         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19427         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19428         symbol.
19429         * modules/search (Depends-on): Add c++defs.
19430         (Makefile.am): Update search.h rule.
19431
19432         math: Avoid #define replacements in C++ mode.
19433         * lib/math.in.h: Include c++defs.h.
19434         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19435         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19436         trunc, truncl): In C++, define a namespaced alias symbol.
19437         * modules/math (Depends-on): Add c++defs.
19438         (Makefile.am): Update math.h rule.
19439
19440         locale: Avoid #define replacements in C++ mode.
19441         * lib/locale.in.h: Include c++defs.h.
19442         (duplocale): In C++, define a namespaced alias symbol.
19443         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19444         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19445         * modules/locale (Depends-on): Add c++defs.
19446         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19447
19448         langinfo: Avoid #define replacements in C++ mode.
19449         * lib/langinfo.in.h: Include c++defs.h.
19450         (nl_langinfo): In C++, define a namespaced alias symbol.
19451         * modules/langinfo (Depends-on): Add c++defs.
19452         (Makefile.am): Update langinfo.h rule.
19453
19454         iconv-h: Avoid #define replacements in C++ mode.
19455         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19456         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19457         symbol.
19458         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19459         whenever iconv is present.
19460         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19461         (Makefile.am): Update iconv.h rule.
19462
19463         glob: Avoid #define replacements in C++ mode.
19464         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19465         (_gl_glob_errfunc_fn): New type.
19466         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19467         symbol.
19468         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19469         (Makefile.am): Update glob.h rule.
19470
19471         fcntl-h: Avoid #define replacements in C++ mode.
19472         * lib/fcntl.in.h: Include c++defs.h.
19473         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19474         * modules/fcntl-h (Depends-on): Add c++defs.
19475         (Makefile.am): Update fcntl.h rule.
19476
19477         dirent: Avoid #define replacements in C++ mode.
19478         * lib/dirent.in.h: Include c++defs.h.
19479         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19480         namespaced alias symbol.
19481         (dirfd): Update declaration.
19482         * modules/dirent (Depends-on): Add c++defs.
19483         (Makefile.am): Update dirent.h rule.
19484
19485         ctype: Make it usable in C++ code.
19486         * lib/ctype.in.h: Include c++defs.h.
19487         (isblank): Declare as extern "C".
19488         * modules/ctype (Depends-on): Add c++defs.
19489         (Makefile.am): Update ctype.h rule.
19490
19491         New module 'c++defs'.
19492         * modules/c++defs: New file.
19493         * build-aux/c++defs.h: New file.
19494         Reported by John W. Eaton <jwe@gnu.org>.
19495
19496 2010-03-07  Bruno Haible  <bruno@clisp.org>
19497
19498         logb: Provide missing declaration for Cygwin.
19499         * lib/math.in.h (logb): New declaration.
19500         * m4/logb.m4: New file.
19501         * modules/logb (Files): Add m4/logb.m4.
19502         (Depends-on): Add math.
19503         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19504         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19506         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19507         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19508
19509 2010-03-07  Bruno Haible  <bruno@clisp.org>
19510
19511         Fix test-cond link error.
19512         * tests/test-cond.c: Include <stdio.h>.
19513
19514 2010-03-07  Bruno Haible  <bruno@clisp.org>
19515
19516         Fix test-dirent-safer link error.
19517         * modules/dirent-safer-tests (Makefile.am): Define
19518         test_dirent_safer_LDADD.
19519
19520 2010-03-07  Bruno Haible  <bruno@clisp.org>
19521
19522         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19523         among default module list.
19524
19525 2010-03-07  Bruno Haible  <bruno@clisp.org>
19526
19527         Fix link error on platforms with GNU libiconv.
19528         * modules/unistr/u8-strcoll-tests (Makefile): Define
19529         test_u8_strcoll_LDADD.
19530         * modules/unistr/u16-strcoll-tests (Makefile): Define
19531         test_u16_strcoll_LDADD.
19532         * modules/unistr/u32-strcoll-tests (Makefile): Define
19533         test_u32_strcoll_LDADD.
19534
19535 2010-03-07  Bruno Haible  <bruno@clisp.org>
19536
19537         Use POSIX declarations for socket functions.
19538         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19539         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19540         rpl_sendto): Change declaration to match POSIX.
19541         * lib/connect.c (rpl_connect): Likewise.
19542         * lib/accept.c (rpl_accept): Likewise.
19543         * lib/bind.c (rpl_bind): Likewise.
19544         * lib/getpeername.c (rpl_getpeername): Likewise.
19545         * lib/getsockname.c (rpl_getsockname): Likewise.
19546         * lib/recv.c (rpl_recv): Likewise.
19547         * lib/send.c (rpl_send): Likewise.
19548         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19549         * lib/sendto.c (rpl_sendto): Likewise.
19550
19551 2010-03-06  Bruno Haible  <bruno@clisp.org>
19552
19553         Clarify access, euidaccess, faccessat.
19554         * doc/posix-functions/faccessat.texi: Mention security problem under
19555         "Other problems", not "Portability problems".
19556         * doc/posix-functions/access.texi: Likewise. Mention a related security
19557         problem.
19558         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19559         * lib/euidaccess.c: Add comments about platforms.
19560         * lib/unistd.in.h (access, euidaccess): Add warnings.
19561
19562 2010-03-07  Bruno Haible  <bruno@clisp.org>
19563
19564         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19565         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19566         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19567         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19568         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19569         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19570         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19571         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19572         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19573         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19574         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19575         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19576         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19577         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19578         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19579         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19580         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19581         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19582         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19583         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19584         Likewise.
19585         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19586         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19587         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19588         Likewise.
19589         * tests/test-spawn.c (main): Make it work when
19590         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19591
19592 2010-03-07  Bruno Haible  <bruno@clisp.org>
19593
19594         Fix incorrect Makefile.am generation in German locale.
19595         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19596         Execute sed command with character range in C locale.
19597
19598 2010-03-06  Bruno Haible  <bruno@clisp.org>
19599
19600         Tests for module 'iconv-h'.
19601         * modules/iconv-h-tests: New file.
19602         * tests/test-iconv-h.c: New file.
19603
19604         New module 'iconv-h'.
19605         * modules/iconv-h: New file.
19606         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19607         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19608         (configure.ac): Remove gl_ICONV_H.
19609         (Makefile.am): Remove rule for iconv.h.
19610
19611 2010-03-06  Bruno Haible  <bruno@clisp.org>
19612
19613         More consistent naming of *.m4 files.
19614         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19615         * modules/wctype (Files): Update.
19616
19617         More consistent naming of *.m4 files.
19618         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19619         * modules/wchar (Files): Update.
19620
19621 2010-03-06  Jim Meyering  <meyering@redhat.com>
19622
19623         euidaccess: relax license to LGPLv2+
19624         * modules/euidaccess (License): Relax to LGPLv2+.
19625
19626 2010-03-06  Bruno Haible  <bruno@clisp.org>
19627
19628         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19629         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19630         (Makefile.am): Augment lib_SOURCES instead.
19631
19632 2010-03-04  Jim Meyering  <meyering@redhat.com>
19633
19634         utime: remove obsolete module
19635         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19636         unnecessary for years, and has been marked as obsolete for 10 months.
19637         * modules/utime: Remove file.
19638         * lib/utime.c: Remove file.
19639         * m4/utime.m4: Remove file.
19640         * m4/utimes-null.m4: Remove file.
19641         * doc/posix-functions/utime.texi (utime): Remove reference to
19642         the module.  Move the sole "fixed by gnulib" item into the
19643         "problems not fixed by Gnulib" list.
19644         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19645
19646 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19647
19648         * modules/exit (License): Relax license to LGPLv2+.
19649         (Status): Mark as obsolete.
19650         * NEWS: Mention deprecated 'exit' module.
19651         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19652         of now obsolete 'exit'.
19653
19654 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19655
19656         fts-lgpl: remove unused module
19657         * modules/fts-lgpl: Remove.
19658         * MODULES.html.sh (func_all_modules): Adjust.
19659         * check-module (find_included_lib_files): Adjust.
19660         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19661
19662 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19663
19664         copy-acl: enhance Solaris ACL error handling
19665         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19666         * lib/set-mode-acl.c (qset_acl): Likewise.
19667
19668 2010-03-02  Bruno Haible  <bruno@clisp.org>
19669
19670         spawn: Don't override the system defined values on FreeBSD 8.
19671         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19672         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19673         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19674         if HAVE_POSIX_SPAWN is 1.
19675         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19676
19677 2010-03-01  Bruno Haible  <bruno@clisp.org>
19678
19679         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19680         regarding Automake.
19681
19682 2010-02-25  Bruno Haible  <bruno@clisp.org>
19683
19684         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19685         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19686         setting, not afterwards.
19687         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19688
19689 2010-02-24  Eric Blake  <eblake@redhat.com>
19690
19691         bootstrap, git-version-gen: use timestamp
19692         * build-aux/git-version-gen (scriptversion): Force UTC.
19693         * build-aux/bootstrap (scriptversion): New variable.
19694
19695         bootstrap: allow older git
19696         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19697         older than 1.6.4.  Requested by the libvirt project.
19698
19699 2010-02-23  Eric Blake  <eblake@redhat.com>
19700
19701         warn-on-use: work with old autoconf
19702         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19703         AS_VAR semantics of autoconf 2.60.
19704         Reported by Bruno Haible.
19705
19706         bootstrap: improve some comments
19707         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19708         clarification comments.
19709
19710         gettimeofday: provide correct function
19711         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19712         when replacement is declared, otherwise provide gettimeofday.
19713         Reported by Michael Goffioul.
19714
19715 2010-02-23  Jim Meyering  <meyering@redhat.com>
19716
19717         lib-ignore: relax license to "unlimited", not LGPLv2+
19718         * modules/lib-ignore (License): Relax to "unlimited".
19719
19720 2010-02-23  Jim Meyering  <meyering@redhat.com>
19721
19722         lib-ignore: relax license to LGPLv2+
19723         * modules/lib-ignore (License): Relax to LGPLv2+.
19724
19725 2010-02-22  Eric Blake  <eblake@redhat.com>
19726
19727         lseek: avoid bash 3.2 broken pipe bug
19728         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19729         warning from bash 3.2.
19730         Reported by Ben Pfaff, with analysis from Bruno Haible.
19731
19732         bootstrap: support non-FSF copyright holder
19733         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19734         bootstrap.conf override of COPYRIGHT_HOLDER.
19735         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19736
19737         bootstrap: interoperate with gettext 0.14.1
19738         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19739
19740         bootstrap: allow for alternate submodule location
19741         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19742         hardcoding submodule location.
19743         (gnulib_mk): Allow direct use of Makefile.am.
19744
19745         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19746         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19747         rather than reconfiguring where the submodule points.
19748
19749         gettimeofday: restore support for platforms that lack function
19750         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19751         replacement if function is missing.
19752         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19753         * modules/sys_time (Makefile.am): Substitute it.
19754         * lib/sys_time.in.h (gettimeofday): Check it.
19755         Reported by Michael Goffioul.
19756
19757 2010-02-21  Bruno Haible  <bruno@clisp.org>
19758
19759         * lib/stdio.in.h (obstack_printf): Fix typo.
19760
19761 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19762
19763         vc-list-files: use bzr ls's -R option
19764         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19765         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19766
19767 2010-02-21  Jim Meyering  <meyering@redhat.com>
19768
19769         init.sh: fix EXEEXT shims to work also for names like test-prog
19770         * tests/init.sh: Re-exec a better shell, when needed.
19771         If the current shell lacks support for posix $(...), an init.sh-using
19772         test will now try to find a shell that supports that.  If EXEEXT is
19773         nonempty, we also require support for hyphen-in-alias-name and shell
19774         substitutions like ${var#glob}.  Failure to find such a shell results
19775         in a skipped test.
19776
19777 2010-02-21  Bruno Haible  <bruno@clisp.org>
19778
19779         Really work around around "broken pipe" error message from bash 3.2.
19780         * gnulib-tool (func_reset_sigpipe): Remove function.
19781         (echo): In bash 3.2, define to a function that uses printf.
19782         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19783
19784 2010-02-20  Bruno Haible  <bruno@clisp.org>
19785
19786         Restore support for automake 1.9.6 with autoconf 2.61.
19787         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19788         Reported by James Youngman <jay@gnu.org>.
19789
19790 2010-02-20  Bruno Haible  <bruno@clisp.org>
19791
19792         Improve *printf warning condition.
19793         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19794         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19795         and the function is overridden due to SIGPIPE emulation.
19796
19797 2010-02-20  Bruno Haible  <bruno@clisp.org>
19798
19799         * lib/stdio.in.h: Tweak comments.
19800
19801 2010-02-19  Bruno Haible  <bruno@clisp.org>
19802
19803         Make it easier to find modules. New gnulib-tool option '--find'.
19804         * gnulib-tool: New option --find.
19805         (func_usage): Document it.
19806         (func_sanitize_modulelist): New function, extracted from
19807         func_all_modules.
19808         (func_all_modules): Invoke it.
19809         * doc/gnulib-tool.texi (Which modules?): New node.
19810
19811 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19812
19813         * lib/sys_select.in.h: Provide select replacement even if
19814         sys/select.h exists on a system, for Interix.
19815
19816 2010-02-18  Jim Meyering  <meyering@redhat.com>
19817
19818         init.sh: don't use $(...) just yet
19819         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19820         to accommodate e.g., Solaris' /bin/sh.
19821
19822 2010-02-17  Bruno Haible  <bruno@clisp.org>
19823
19824         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19825         Reported by Ludovic Courtès <ludo@gnu.org>.
19826
19827 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19828
19829         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19830         linking with -lintl.
19831
19832 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19833
19834         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19835         if not provided by the system's netdb.h.  Reported by
19836         ludo@gnu.org (Ludovic Courtès).
19837
19838 2010-02-15  Jim Meyering  <meyering@redhat.com>
19839
19840         init.sh: improve portability and efficiency
19841         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19842         "dummy" in a for loop.
19843         Use '!', not '^' to select the complement of a character set used
19844         in a "case" statement.
19845         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19846         Suggestions from Eric Blake.
19847
19848         init.sh: automatically accommodate programs with the .exe suffix
19849         Automatically arrange for an invocation of "prog" to execute the
19850         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19851         may use the simpler "prog", yet still work when built on a system
19852         that requires specifying the added suffix.
19853         Do this by constructing a function named "prog" that invokes
19854         "prog.exe" for each .exe file in selected directories.
19855         * tests/init.sh (find_exe_basenames_): New function.
19856         (create_exe_shim_functions_): New function.
19857         (path_prepend_): Use it.
19858
19859         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19860         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19861         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19862
19863 2010-02-14  Jim Meyering  <meyering@redhat.com>
19864
19865         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19866         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19867         (sc_prohibit_hash_pjw_without_use): New rule.
19868
19869         maint.mk: allow the default upload destination dir to be overridden
19870         * top/maint.mk (upload_dest_dir_): Define with a default that
19871         preserves the status quo.
19872         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19873         Reported by Peter Simons.
19874
19875         maint.mk: prohibit inclusion of "hash.h" without_use
19876         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19877
19878 2010-02-10  Jim Meyering  <meyering@redhat.com>
19879
19880         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19881         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19882
19883 2010-02-09  Eric Blake  <ebb9@byu.net>
19884         and Bruno Haible  <bruno@clisp.org>
19885
19886         obstack-printf-posix: ensure declaration
19887         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19888         extracted from gl_FUNC_OBSTACK_PRINTF.
19889         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19890         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19891         Likewise.
19892         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19893         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19894         0.
19895
19896 2010-02-08  Bruno Haible  <bruno@clisp.org>
19897
19898         gnulib-tool: Fix typo in 2010-02-07 commit.
19899         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19900         Reported by Eric Blake.
19901
19902 2010-02-07  Bruno Haible  <bruno@clisp.org>
19903
19904         gnulib-tool: Fix up caching patches.
19905         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19906         option --no-cache. Use associative arrays when supported by the shell.
19907         (sed_comments): New variable.
19908         (modcache): Renamed from do_cache.
19909         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19910         abbreviate unnecessarily.
19911         (have_associative): New variable.
19912         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19913         way also for ksh and zsh.
19914         (func_init_sed_convert_to_cache_statements): New function, extracted
19915         from func_cache_lookup_module. Add support for associative arrays.
19916         Don't set the c_MODULE_cached variable here. Ignore all lines before
19917         the first field header. Remove only the final newline, not all trailing
19918         newlines. Support empty fields correctly. Limit the use of 'eval' to
19919         assignments.
19920         (func_get_description, func_get_status, func_get_notice,
19921         func_get_applicability, func_get_filelist, func_get_dependencies,
19922         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19923         func_get_automake_snippet, func_get_include_directive,
19924         func_get_link_directive, func_get_license, func_get_maintainer):
19925         Update documentation. List the unoptimized code first. Add support for
19926         associative arrays. Limit the use of 'eval' to assignments.
19927         (func_get_applicability): Undo stylistic pessimisations.
19928         (func_get_automake_snippet, func_get_include_directive): Reduce code
19929         duplication.
19930         (func_modules_transitive_closure, func_modules_add_dummy,
19931         func_modules_notice, func_modules_to_filelist, func_add_file,
19932         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19933         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19934         func_create_testdir, func_create_megatestdir): Update documentation.
19935
19936 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19937
19938         * gnulib-tool (func_cache_lookup_module): Store the module name
19939         belonging to the cache variable; error out if two different
19940         module names map to the same cache variable name.
19941
19942 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19943
19944         gnulib-tool: Make caching optional.
19945         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19946         Update matching short versions of --no-changelog.
19947         (func_usage): Update.
19948         (sed_extract_cache_prog): Renamed from ...
19949         (sed_extract_prog): ... this; revert to old extraction script.
19950         (func_get_description, func_get_status)
19951         (func_get_notice, func_get_applicability, func_get_filelist)
19952         (func_get_dependencies, func_get_autoconf_early_snippet)
19953         (func_get_autoconf_snippet, func_get_automake_snippet)
19954         (func_get_include_directive, func_get_link_directive)
19955         (func_get_license, func_get_maintainer): If $do_cache is false,
19956         use old, non-caching extraction scripts.
19957         Suggestion by Bruno Haible.
19958
19959 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19960
19961         gnulib-tool: cache module metainformation.
19962         * gnulib-tool (sed_extract_prog): Match newline before each
19963         header, and rewrite header to a shell variable suffix.
19964         (func_cache_var, func_cache_lookup_module): New functions,
19965         to turn a module name into a cache variable prefix, and to
19966         look up and cache module metainformation.
19967         (func_get_description, func_get_status)
19968         (func_get_notice, func_get_applicability, func_get_filelist)
19969         (func_get_dependencies, func_get_autoconf_early_snippet)
19970         (func_get_autoconf_snippet, func_get_automake_snippet)
19971         (func_get_include_directive, func_get_link_directive)
19972         (func_get_license, func_get_maintainer): Use
19973         func_cache_lookup_module.
19974
19975 2010-02-07  Bruno Haible  <bruno@clisp.org>
19976
19977         fnctl: Fix missing dependency.
19978         * modules/fcntl (Depends-on): Add getdtablesize.
19979         Reported by John W. Eaton <jwe@gnu.org>.
19980
19981 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19982
19983         Argp: fix recognition of short alias options.
19984
19985         * lib/argp-parse.c (convert_options): Fix improper use of
19986         `|' between character values.
19987         * tests/test-argp.c (group1_option): New alias option
19988         --read (-r).
19989         (group1_parser): Special handling for 'r'.
19990         (test15): New test case.
19991         (test_fun): Add test15.
19992         * tests/test-argp-2.sh: Update expected --help and --usage
19993         outputs.
19994
19995 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19996
19997         * tests/test-argp.c: Fix indentation.
19998
19999 2010-02-04  Eric Blake  <ebb9@byu.net>
20000
20001         gettimeofday: expose type of second argument
20002         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
20003         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
20004         * tests/test-gettimeofday.c: Use it to silence warning.
20005         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
20006         the issue.
20007
20008 2010-02-03  Jim Meyering  <meyering@redhat.com>
20009
20010         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
20011         * lib/regcomp.c (TYPE_SIGNED): Define.
20012         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
20013
20014         regcomp.c: avoid a new -Wshadow warning
20015         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
20016
20017 2010-02-01  Jim Meyering  <meyering@redhat.com>
20018
20019         removing useless parentheses in cpp #define directives
20020         For motivation, see commit c0221df4, "define STREQ(a,b)
20021         consistently, removing useless parentheses"
20022         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
20023         * lib/mountlist.c (MNT_IGNORE): Likewise.
20024         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
20025
20026 2010-02-01  Eric Blake  <ebb9@byu.net>
20027
20028         sys_time: use link-warning
20029         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
20030         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
20031         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
20032         * modules/sys_time (Depends-on): Add warn-on-use.
20033         (Makefile.am): Always build replacement.
20034         (configure.ac): Update substitutions.
20035         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
20036         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
20037         bother with SYS_TIME_H.
20038         * modules/gettimeofday (configure.ac): Declare indicator.
20039         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
20040         in use.
20041
20042         closein-tests: silence compiler warning
20043         * tests/test-closein.c (main): Ignore fread result.
20044         * modules/closein-tests (Depends-on): Add ignore-value.
20045
20046         tests: silence warning about system return
20047         * tests/test-areadlink-with-size.c (main): Ignore system result.
20048         * tests/test-areadlink.c (main): Likewise.
20049         * tests/test-areadlinkat-with-size.c (main): Likewise.
20050         * tests/test-areadlinkat.c (main): Likewise.
20051         * tests/test-canonicalize-lgpl.c (main): Likewise.
20052         * tests/test-canonicalize.c (main): Likewise.
20053         * tests/test-chown.c (main): Likewise.
20054         * tests/test-fchownat.c (main): Likewise.
20055         * tests/test-fdutimensat.c (main): Likewise.
20056         * tests/test-fstatat.c (main): Likewise.
20057         * tests/test-futimens.c (main): Likewise.
20058         * tests/test-lchown.c (main): Likewise.
20059         * tests/test-link.c (main): Likewise.
20060         * tests/test-linkat.c (main): Likewise.
20061         * tests/test-lstat.c (main): Likewise.
20062         * tests/test-mkdir.c (main): Likewise.
20063         * tests/test-mkdirat.c (main): Likewise.
20064         * tests/test-mkfifo.c (main): Likewise.
20065         * tests/test-mkfifoat.c (main): Likewise.
20066         * tests/test-mknod.c (main): Likewise.
20067         * tests/test-readlink.c (main): Likewise.
20068         * tests/test-remove.c (main): Likewise.
20069         * tests/test-rename.c (main): Likewise.
20070         * tests/test-renameat.c (main): Likewise.
20071         * tests/test-rmdir.c (main): Likewise.
20072         * tests/test-symlink.c (main): Likewise.
20073         * tests/test-symlinkat.c (main): Likewise.
20074         * tests/test-unlink.c (main): Likewise.
20075         * tests/test-unlinkat.c (main): Likewise.
20076         * tests/test-utimens.c (main): Likewise.
20077         * tests/test-utimensat.c (main): Likewise.
20078         * modules/areadlink-tests (Depends-on): Add ignore-value.
20079         * modules/areadlink-with-size-tests (Depends-on): Likewise.
20080         * modules/areadlinkat-tests (Depends-on): Likewise.
20081         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
20082         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20083         * modules/canonicalize-tests (Depends-on): Likewise.
20084         * modules/chown-tests (Depends-on): Likewise.
20085         * modules/fdutimensat-tests (Depends-on): Likewise.
20086         * modules/futimens-tests (Depends-on): Likewise.
20087         * modules/lchown-tests (Depends-on): Likewise.
20088         * modules/link-tests (Depends-on): Likewise.
20089         * modules/linkat-tests (Depends-on): Likewise.
20090         * modules/lstat-tests (Depends-on): Likewise.
20091         * modules/mkdir-tests (Depends-on): Likewise.
20092         * modules/mkfifo-tests (Depends-on): Likewise.
20093         * modules/mkfifoat-tests (Depends-on): Likewise.
20094         * modules/mknod-tests (Depends-on): Likewise.
20095         * modules/openat-tests (Depends-on): Likewise.
20096         * modules/readlink-tests (Depends-on): Likewise.
20097         * modules/remove-tests (Depends-on): Likewise.
20098         * modules/rename-tests (Depends-on): Likewise.
20099         * modules/renameat-tests (Depends-on): Likewise.
20100         * modules/rmdir-tests (Depends-on): Likewise.
20101         * modules/symlink-tests (Depends-on): Likewise.
20102         * modules/symlinkat-tests (Depends-on): Likewise.
20103         * modules/unlink-tests (Depends-on): Likewise.
20104         * modules/utimens-tests (Depends-on): Likewise.
20105         * modules/utimensat-tests (Depends-on): Likewise.
20106
20107 2010-01-31  Bruno Haible  <bruno@clisp.org>
20108
20109         Perform the same test for many <math.h> functions.
20110         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
20111         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
20112         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
20113         of gl_MATHFUNC.
20114         * modules/acos (configure.ac): Likewise.
20115         * modules/asin (configure.ac): Likewise.
20116         * modules/atan (configure.ac): Likewise.
20117         * modules/atan2 (configure.ac): Likewise.
20118         * modules/cbrt (configure.ac): Likewise.
20119         * modules/copysign (configure.ac): Likewise.
20120         * modules/cos (configure.ac): Likewise.
20121         * modules/cosh (configure.ac): Likewise.
20122         * modules/erf (configure.ac): Likewise.
20123         * modules/erfc (configure.ac): Likewise.
20124         * modules/exp (configure.ac): Likewise.
20125         * modules/fmod (configure.ac): Likewise.
20126         * modules/hypot (configure.ac): Likewise.
20127         * modules/j0 (configure.ac): Likewise.
20128         * modules/j1 (configure.ac): Likewise.
20129         * modules/jn (configure.ac): Likewise.
20130         * modules/lgamma (configure.ac): Likewise.
20131         * modules/log (configure.ac): Likewise.
20132         * modules/log10 (configure.ac): Likewise.
20133         * modules/log1p (configure.ac): Likewise.
20134         * modules/pow (configure.ac): Likewise.
20135         * modules/remainder (configure.ac): Likewise.
20136         * modules/sin (configure.ac): Likewise.
20137         * modules/sinh (configure.ac): Likewise.
20138         * modules/tan (configure.ac): Likewise.
20139         * modules/tanh (configure.ac): Likewise.
20140         * modules/y0 (configure.ac): Likewise.
20141         * modules/y1 (configure.ac): Likewise.
20142         * modules/yn (configure.ac): Likewise.
20143         Suggested by Paolo Bonzini.
20144
20145 2010-01-31  Bruno Haible  <bruno@clisp.org>
20146
20147         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
20148
20149 2010-01-31  Bruno Haible  <bruno@clisp.org>
20150
20151         Work around getdelim() bug on FreeBSD 8.0.
20152         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
20153         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
20154         not work.
20155         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
20156         is 1.
20157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
20158         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
20159         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
20160         a non-zero size.
20161         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
20162
20163 2010-01-31  Bruno Haible  <bruno@clisp.org>
20164
20165         Work around getline() bug on FreeBSD 8.0.
20166         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
20167         and a non-zero size.
20168         * tests/test-getline.c (main): Likewise.
20169         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
20170         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
20171
20172 2010-01-28  Eric Blake  <ebb9@byu.net>
20173
20174         regex: fix build failure
20175         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
20176         platforms.
20177
20178 2010-01-28  Jim Meyering  <meyering@redhat.com>
20179
20180         regex: do not ignore memory allocation failure
20181         * lib/regex_internal.c (create_cd_newstate): Detect
20182         re_node_set_init_copy failure.   Extracted from glibc commit
20183         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20184
20185         regex: sync more white-space changes from libc
20186         * lib/regex_internal.c: White-space only changes.
20187         * lib/regexec.c: Likewise.
20188
20189         regex: add many uses of __attribute_warn_unused_result__
20190         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
20191         * lib/regexec.c: Likewise.
20192         Extracted from a messy glibc commit.
20193
20194         regcomp.c: spelling and merge-artifact from glibc
20195         * lib/regcomp.c: Merge remainder of glibc's
20196         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20197
20198         regcomp.c: sync white-space changes from glibc
20199         * lib/regcomp.c: Merge to accommodate white space
20200         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20201
20202         regcomp.c: do not ignore internal return values
20203         * lib/regcomp.c: Do not ignore internal return values.
20204         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
20205         but without its white-space changes and spelling fixes.
20206
20207         regex_internal.h: define __attribute_warn_unused_result__
20208         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
20209
20210         maint: add a syntax-check rule to check for vulnerable Makefile.in
20211         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
20212
20213 2010-01-27  Jim Meyering  <meyering@redhat.com>
20214
20215         ncftpput-ftp: clean up spaces
20216         * build-aux/ncftpput-ftp: Make Copyright line consistent.
20217         Remove trailing blanks.
20218
20219 2010-01-27  Simon Josefsson  <simon@josefsson.org>
20220
20221         * build-aux/git-version-gen: Fix copyright statement.
20222         * build-aux/gnupload: Likewise.
20223         * tests/test-arcfour.c: Likewise.
20224         * tests/test-arctwo.c: Likewise.
20225         * tests/test-count-one-bits.c: Likewise.
20226         * tests/test-crc.c: Likewise.
20227         * tests/test-des.c: Likewise.
20228         * tests/test-gc-arcfour.c: Likewise.
20229         * tests/test-gc-arctwo.c: Likewise.
20230         * tests/test-gc-des.c: Likewise.
20231         * tests/test-gc-hmac-md5.c: Likewise.
20232         * tests/test-gc-hmac-sha1.c: Likewise.
20233         * tests/test-gc-md2.c: Likewise.
20234         * tests/test-gc-md4.c: Likewise.
20235         * tests/test-gc-md5.c: Likewise.
20236         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20237         * tests/test-gc-rijndael.c: Likewise.
20238         * tests/test-gc-sha1.c: Likewise.
20239         * tests/test-gc.c: Likewise.
20240         * tests/test-gethostname.c: Likewise.
20241         * tests/test-gettimeofday.c: Likewise.
20242         * tests/test-hash.c: Likewise.
20243         * tests/test-hmac-md5.c: Likewise.
20244         * tests/test-hmac-sha1.c: Likewise.
20245         * tests/test-md2.c: Likewise.
20246         * tests/test-md4.c: Likewise.
20247         * tests/test-md5.c: Likewise.
20248         * tests/test-memchr.c: Likewise.
20249         * tests/test-memchr2.c: Likewise.
20250         * tests/test-memcmp.c: Likewise.
20251         * tests/test-memmem.c: Likewise.
20252         * tests/test-memrchr.c: Likewise.
20253         * tests/test-rawmemchr.c: Likewise.
20254         * tests/test-read-file.c: Likewise.
20255         * tests/test-rijndael.c: Likewise.
20256         * tests/test-sockets.c: Likewise.
20257         * tests/test-strchrnul.c: Likewise.
20258         * tests/test-strstr.c: Likewise.
20259         * tests/test-strtod.c: Likewise.
20260         * build-aux/ncftpput-ftp: Likewise.
20261
20262 2010-01-26  Eric Blake  <ebb9@byu.net>
20263
20264         ignore-value: update recommended header name
20265         * modules/ignore-value (Include): Only use <> for headers that
20266         exist in glibc.
20267
20268 2010-01-26  Jim Meyering  <meyering@redhat.com>
20269
20270         test-userspec.c: avoid compiler warnings
20271         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20272         and "initialization discards qualifiers..." warnings.
20273         Put the first "uid" in its own scope, and make char* members "const".
20274
20275 2010-01-25  Bruno Haible  <bruno@clisp.org>
20276
20277         gnulib-tool: Make warning diagnostics consistent.
20278         * gnulib-tool (func_warning): New function.
20279         Use it everywhere where gnulib-tool produces output to stderr and it is
20280         not a fatal error.
20281
20282 2010-01-25  Bruno Haible  <bruno@clisp.org>
20283
20284         Fix test dependencies.
20285         * modules/xstrtol-tests (Depends-on): Add inttypes.
20286         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20287
20288 2010-01-25 Pádraig Brady <P@draigBrady.com>
20289
20290         syntax-check: detect incorrect boolean macro values in config.h
20291         * modules/maintainer-makefile (configure.ac): Parameterize the location
20292         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20293         The logic is from Eric Blake and the location indicated by Jim Meyering.
20294         Note the more natural CONFIG_HEADER name is prohibited by automake
20295         for backwards compatibility reasons.
20296         * top/maint.mk (sc_Wundef_boolean): New rule.
20297
20298 2010-01-25  Jim Meyering  <meyering@redhat.com>
20299
20300         bootstrap: detect MacOS 10.6's shasum, too
20301         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20302         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20303
20304 2010-01-23  Jim Meyering  <meyering@redhat.com>
20305
20306         xstrtoll: new module
20307         * modules/xstrtoll: New file.
20308         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20309         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20310         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20311         ./configure fails if you use this module and lack "long long".
20312         * modules/xstrtoll-tests: New module.
20313         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20314         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20315         new init.sh-based test framework.
20316
20317 2010-01-24  Bruno Haible  <bruno@clisp.org>
20318
20319         Tests for module 'yn'.
20320         * modules/yn-tests: New file.
20321         * tests/test-yn.c: New file.
20322
20323         Tests for module 'y1'.
20324         * modules/y1-tests: New file.
20325         * tests/test-y1.c: New file.
20326
20327         Tests for module 'y0'.
20328         * modules/y0-tests: New file.
20329         * tests/test-y0.c: New file.
20330
20331         Tests for module 'tanh'.
20332         * modules/tanh-tests: New file.
20333         * tests/test-tanh.c: New file.
20334
20335         Tests for module 'tan'.
20336         * modules/tan-tests: New file.
20337         * tests/test-tan.c: New file.
20338
20339         Tests for module 'sqrt'.
20340         * modules/sqrt-tests: New file.
20341         * tests/test-sqrt.c: New file.
20342
20343         Tests for module 'sinh'.
20344         * modules/sinh-tests: New file.
20345         * tests/test-sinh.c: New file.
20346
20347         Tests for module 'sin'.
20348         * modules/sin-tests: New file.
20349         * tests/test-sin.c: New file.
20350
20351         Tests for module 'rint'.
20352         * modules/rint-tests: New file.
20353         * tests/test-rint.c: New file.
20354
20355         Tests for module 'remainder'.
20356         * modules/remainder-tests: New file.
20357         * tests/test-remainder.c: New file.
20358
20359         Tests for module 'pow'.
20360         * modules/pow-tests: New file.
20361         * tests/test-pow.c: New file.
20362
20363         Tests for module 'nextafter'.
20364         * modules/nextafter-tests: New file.
20365         * tests/test-nextafter.c: New file.
20366
20367         Tests for module 'modf'.
20368         * modules/modf-tests: New file.
20369         * tests/test-modf.c: New file.
20370
20371         Tests for module 'logb'.
20372         * modules/logb-tests: New file.
20373         * tests/test-logb.c: New file.
20374
20375         Tests for module 'log1p'.
20376         * modules/log1p-tests: New file.
20377         * tests/test-log1p.c: New file.
20378
20379         Tests for module 'log10'.
20380         * modules/log10-tests: New file.
20381         * tests/test-log10.c: New file.
20382
20383         Tests for module 'log'.
20384         * modules/log-tests: New file.
20385         * tests/test-log.c: New file.
20386
20387         Tests for module 'lgamma'.
20388         * modules/lgamma-tests: New file.
20389         * tests/test-lgamma.c: New file.
20390
20391         Tests for module 'ldexp'.
20392         * modules/ldexp-tests: New file.
20393         * tests/test-ldexp.c: New file.
20394
20395         Tests for module 'jn'.
20396         * modules/jn-tests: New file.
20397         * tests/test-jn.c: New file.
20398
20399         Tests for module 'j1'.
20400         * modules/j1-tests: New file.
20401         * tests/test-j1.c: New file.
20402
20403         Tests for module 'j0'.
20404         * modules/j0-tests: New file.
20405         * tests/test-j0.c: New file.
20406
20407         Tests for module 'hypot'.
20408         * modules/hypot-tests: New file.
20409         * tests/test-hypot.c: New file.
20410
20411         Tests for module 'fmod'.
20412         * modules/fmod-tests: New file.
20413         * tests/test-fmod.c: New file.
20414
20415         Tests for module 'fabs'.
20416         * modules/fabs-tests: New file.
20417         * tests/test-fabs.c: New file.
20418
20419         Tests for module 'exp'.
20420         * modules/exp-tests: New file.
20421         * tests/test-exp.c: New file.
20422
20423         Tests for module 'erfc'.
20424         * modules/erfc-tests: New file.
20425         * tests/test-erfc.c: New file.
20426
20427         Tests for module 'erf'.
20428         * modules/erf-tests: New file.
20429         * tests/test-erf.c: New file.
20430
20431         Tests for module 'cosh'.
20432         * modules/cosh-tests: New file.
20433         * tests/test-cosh.c: New file.
20434
20435         Tests for module 'cos'.
20436         * modules/cos-tests: New file.
20437         * tests/test-cos.c: New file.
20438
20439         Tests for module 'copysign'.
20440         * modules/copysign-tests: New file.
20441         * tests/test-copysign.c: New file.
20442
20443         Tests for module 'cbrt'.
20444         * modules/cbrt-tests: New file.
20445         * tests/test-cbrt.c: New file.
20446
20447         Tests for module 'atan2'.
20448         * modules/atan2-tests: New file.
20449         * tests/test-atan2.c: New file.
20450
20451         Tests for module 'atan'.
20452         * modules/atan-tests: New file.
20453         * tests/test-atan.c: New file.
20454
20455         Tests for module 'asin'.
20456         * modules/asin-tests: New file.
20457         * tests/test-asin.c: New file.
20458
20459         Tests for module 'acos'.
20460         * modules/acos-tests: New file.
20461         * tests/test-acos.c: New file.
20462
20463 2010-01-24  Bruno Haible  <bruno@clisp.org>
20464
20465         Fix tests for common <math.h> functions.
20466         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20467         code snippet that references the function pointer, rather than merely
20468         calling the function. Substitute the FUNC_LIBM variable.
20469         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20470         * modules/acos (configure.ac): Likewise.
20471         * modules/asin (configure.ac): Likewise.
20472         * modules/atan (configure.ac): Likewise.
20473         * modules/atan2 (configure.ac): Likewise.
20474         * modules/cbrt (configure.ac): Likewise.
20475         * modules/copysign (configure.ac): Likewise.
20476         * modules/cos (configure.ac): Likewise.
20477         * modules/cosh (configure.ac): Likewise.
20478         * modules/erf (configure.ac): Likewise.
20479         * modules/erfc (configure.ac): Likewise.
20480         * modules/exp (configure.ac): Likewise.
20481         * modules/fabs (configure.ac): Likewise.
20482         * modules/fmod (configure.ac): Likewise.
20483         * modules/hypot (configure.ac): Likewise.
20484         * modules/j0 (configure.ac): Likewise.
20485         * modules/j1 (configure.ac): Likewise.
20486         * modules/jn (configure.ac): Likewise.
20487         * modules/ldexp (configure.ac): Likewise.
20488         * modules/lgamma (configure.ac): Likewise.
20489         * modules/log (configure.ac): Likewise.
20490         * modules/log10 (configure.ac): Likewise.
20491         * modules/log1p (configure.ac): Likewise.
20492         * modules/logb (configure.ac): Likewise.
20493         * modules/modf (configure.ac): Likewise.
20494         * modules/nextafter (configure.ac): Likewise.
20495         * modules/pow (configure.ac): Likewise.
20496         * modules/remainder (configure.ac): Likewise.
20497         * modules/rint (configure.ac): Likewise.
20498         * modules/sin (configure.ac): Likewise.
20499         * modules/sinh (configure.ac): Likewise.
20500         * modules/tan (configure.ac): Likewise.
20501         * modules/tanh (configure.ac): Likewise.
20502         * modules/y0 (configure.ac): Likewise.
20503         * modules/y1 (configure.ac): Likewise.
20504         * modules/yn (configure.ac): Likewise.
20505
20506 2010-01-24  Bruno Haible  <bruno@clisp.org>
20507
20508         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20509         * tests/test-acosl.c (x): New variable.
20510         (main): Store argument in x and fetch it from x.
20511         * tests/test-asinl.c (x): New variable.
20512         (main): Store argument in x and fetch it from x.
20513         * tests/test-atanl.c (x): New variable.
20514         (main): Store argument in x and fetch it from x.
20515         * tests/test-cosl.c (x): New variable.
20516         (main): Store argument in x and fetch it from x.
20517         * tests/test-expl.c (x): New variable.
20518         (main): Store argument in x and fetch it from x.
20519         * tests/test-logl.c (x): New variable.
20520         (main): Store argument in x and fetch it from x.
20521         * tests/test-sinl.c (x): New variable.
20522         (main): Store argument in x and fetch it from x.
20523         * tests/test-sqrtl.c (x): New variable.
20524         (main): Store argument in x and fetch it from x.
20525         * tests/test-tanl.c (x): New variable.
20526         (main): Store argument in x and fetch it from x.
20527
20528 2010-01-24  Bruno Haible  <bruno@clisp.org>
20529
20530         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20531         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20532         assignments to the initial TESTS_ENVIRONMENT.
20533         * doc/gnulib.texi (Unit test modules): Document it.
20534         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20535         TESTS_ENVIRONMENT.
20536         * modules/btowc-tests (Makefile.am): Likewise.
20537         * modules/c-stack-tests (Makefile.am): Likewise.
20538         * modules/c-strcase-tests (Makefile.am): Likewise.
20539         * modules/copy-file-tests (Makefile.am): Likewise.
20540         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20541         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20542         * modules/mbrtowc-tests (Makefile.am): Likewise.
20543         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20544         * modules/mbscasestr-tests (Makefile.am): Likewise.
20545         * modules/mbschr-tests (Makefile.am): Likewise.
20546         * modules/mbscspn-tests (Makefile.am): Likewise.
20547         * modules/mbsinit-tests (Makefile.am): Likewise.
20548         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20549         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20550         * modules/mbspbrk-tests (Makefile.am): Likewise.
20551         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20552         * modules/mbsrchr-tests (Makefile.am): Likewise.
20553         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20554         * modules/mbsspn-tests (Makefile.am): Likewise.
20555         * modules/mbsstr-tests (Makefile.am): Likewise.
20556         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20557         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20558         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20559         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20560         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20561         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20562         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20563         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20564         * modules/wcrtomb-tests (Makefile.am): Likewise.
20565         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20566         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20567         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20568         assignments from TESTS_ENVIRONMENT.
20569         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20570         augmentation.
20571         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20572         * modules/atexit-tests (Makefile.am): Likewise.
20573         * modules/binary-io-tests (Makefile.am): Likewise.
20574         * modules/closein-tests (Makefile.am): Likewise.
20575         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20576         * modules/exclude-tests (Makefile.am): Likewise.
20577         * modules/fflush-tests (Makefile.am): Likewise.
20578         * modules/fpending-tests (Makefile.am): Likewise.
20579         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20580         * modules/freadahead-tests (Makefile.am): Likewise.
20581         * modules/freadptr-tests (Makefile.am): Likewise.
20582         * modules/freadseek-tests (Makefile.am): Likewise.
20583         * modules/fseek-tests (Makefile.am): Likewise.
20584         * modules/fseeko-tests (Makefile.am): Likewise.
20585         * modules/ftell-tests (Makefile.am): Likewise.
20586         * modules/ftello-tests (Makefile.am): Likewise.
20587         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20588         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20589         * modules/lseek-tests (Makefile.am): Likewise.
20590         * modules/parse-duration-tests (Makefile.am): Likewise.
20591         * modules/perror-tests (Makefile.am): Likewise.
20592         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20593         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20594         * modules/pipe-tests (Makefile.am): Likewise.
20595         * modules/pread-tests (Makefile.am): Likewise.
20596         * modules/printf-posix-tests (Makefile.am): Likewise.
20597         * modules/select-tests (Makefile.am): Likewise.
20598         * modules/sigpipe-tests (Makefile.am): Likewise.
20599         * modules/tsearch-tests (Makefile.am): Likewise.
20600         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20601         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20602         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20603         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20604         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20605         * modules/version-etc-tests (Makefile.am): Likewise.
20606         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20607         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20608         * modules/xalloc-die-tests (Makefile.am): Likewise.
20609         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20610         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20611         * modules/xstrtol-tests (Makefile.am): Likewise.
20612         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20613         * modules/yesno-tests (Makefile.am): Likewise.
20614         Suggested by Jim Meyering.
20615
20616 2010-01-24  Bruno Haible  <bruno@clisp.org>
20617
20618         More documentation.
20619         * doc/gnulib.texi (Writing modules): New chapter.
20620         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20621         the new chapter.
20622
20623 2010-01-24  Jim Meyering  <meyering@redhat.com>
20624
20625         maint.mk: do not prepend "./" after filtering
20626         * top/maint.mk (_prepend_srcdir_prefix): New variable
20627         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20628         "./" when $(srcdir) is ".".
20629
20630         define STREQ(a,b) consistently, removing useless parentheses
20631         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20632         since the only risk is that "a" or "b" contains an unparenthesized
20633         comma, but if either did that, STREQ would have 3 or more arguments.
20634         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20635         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20636         * lib/hash-triple.c (STREQ): Likewise.
20637         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20638         * lib/getugroups.c (STREQ): Likewise.
20639
20640 2010-01-23  Jim Meyering  <meyering@redhat.com>
20641
20642         maint.mk: fix syntax-check in a non-srcdir build directory
20643         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20644         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20645
20646 2010-01-22  Jim Meyering  <meyering@redhat.com>
20647
20648         userspec: add unit tests
20649         * tests/test-userspec.c: New file.
20650         * modules/userspec-tests: Likewise.
20651
20652 2010-01-21  Jim Meyering  <meyering@redhat.com>
20653
20654         maint.mk: handle source file names containing "." robustly
20655         * top/maint.mk (_dot_escaped_srcdir): Define.
20656         (VC_LIST): Use it in LHS of sed substitution.
20657
20658 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20659
20660         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20661         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20662         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20663         from a non-srcdir build.
20664
20665 2010-01-20  Eric Blake  <ebb9@byu.net>
20666
20667         warn-on-use: use instead of link-warning
20668         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20669         * modules/unistd (Depends-on, Makefile.am): Likewise.
20670         * modules/arpa_inet (Depends-on): Replace link-warning with
20671         warn-on-use.
20672         (Makefile.am): Update rules accordingly.
20673         * modules/ctype (Depends-on, Makefile.am): Likewise.
20674         * modules/dirent (Depends-on, Makefile.am): Likewise.
20675         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20676         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20677         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20678         * modules/locale (Depends-on, Makefile.am): Likewise.
20679         * modules/math (Depends-on, Makefile.am): Likewise.
20680         * modules/search (Depends-on, Makefile.am): Likewise.
20681         * modules/signal (Depends-on, Makefile.am): Likewise.
20682         * modules/spawn (Depends-on, Makefile.am): Likewise.
20683         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20684         * modules/string (Depends-on, Makefile.am): Likewise.
20685         * modules/strings (Depends-on, Makefile.am): Likewise.
20686         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20687         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20688         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20689         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20690         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20691         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20692         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20693         * modules/wchar (Depends-on, Makefile.am): Likewise.
20694         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20695         should be poisoned.
20696         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20697         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20698         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20699         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20700         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20701         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20702         * m4/math_h.m4 (gl_MATH_H): Likewise.
20703         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20704         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20705         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20706         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20707         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20708         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20709         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20710         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20711         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20712         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20713         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20714         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20715         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20716         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20717         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20718         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20719         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20720         GL_LINK_WARNING.
20721         * lib/ctype.in.h: Likewise.
20722         * lib/dirent.in.h: Likewise.
20723         * lib/fcntl.in.h: Likewise.
20724         * lib/inttypes.in.h: Likewise.
20725         * lib/langinfo.in.h: Likewise.
20726         * lib/locale.in.h: Likewise.
20727         * lib/math.in.h: Likewise.
20728         * lib/search.in.h: Likewise.
20729         * lib/signal.in.h: Likewise.
20730         * lib/spawn.in.h: Likewise.
20731         * lib/stdio.in.h: Likewise.
20732         * lib/stdlib.in.h: Likewise.
20733         * lib/string.in.h: Likewise.
20734         * lib/strings.in.h: Likewise.
20735         * lib/sys_file.in.h: Likewise.
20736         * lib/sys_ioctl.in.h: Likewise.
20737         * lib/sys_select.in.h: Likewise.
20738         * lib/sys_socket.in.h: Likewise.
20739         * lib/sys_stat.in.h: Likewise.
20740         * lib/sys_times.in.h: Likewise.
20741         * lib/sys_utsname.in.h: Likewise.
20742         * lib/unistd.in.h: Likewise.
20743         * lib/wchar.in.h: Likewise.
20744
20745 2010-01-20  Bruno Haible  <bruno@clisp.org>
20746
20747         Avoid duplicate -lm.
20748         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20749         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20750         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20751         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20752         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20753         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20754         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20755         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20756         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20757         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20758         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20759         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20760         Reported by Paolo Bonzini.
20761
20762 2010-01-19  Bruno Haible  <bruno@clisp.org>
20763
20764         langinfo, nl_langinfo: Relicense under LGPLv2+.
20765         * modules/langinfo (License): Change to LGPLv2+.
20766         * modules/nl_langinfo (License): Likewise.
20767         Patch by David Lutterkort <lutter@redhat.com>.
20768
20769 2010-01-19  Bruno Haible  <bruno@clisp.org>
20770
20771         Avoid compilation error with cc on OSF/1 5.1.
20772         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20773         statement, not before.
20774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20775
20776 2010-01-18  Bruno Haible  <bruno@clisp.org>
20777
20778         Avoid a link error due to the __printf__ symbol.
20779         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20780         and 2.6.x.
20781         (__format__, __printf__): Remove definitions.
20782         * lib/argp-fmtstream.h: Likewise.
20783         * lib/argp.h: Likewise.
20784         * lib/error.h: Likewise.
20785         * lib/vasnprintf.h: Likewise.
20786         * lib/xprintf.h: Likewise.
20787         * lib/xvasprintf.h: Likewise.
20788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20789
20790 2010-01-18  Bruno Haible  <bruno@clisp.org>
20791
20792         Tests for module 'tanl'.
20793         * modules/tanl-tests: New file.
20794         * tests/test-tanl.c: New file.
20795
20796         Tests for module 'sqrtl'.
20797         * modules/sqrtl-tests: New file.
20798         * tests/test-sqrtl.c: New file.
20799
20800         Tests for module 'sinl'.
20801         * modules/sinl-tests: New file.
20802         * tests/test-sinl.c: New file.
20803
20804         Tests for module 'logl'.
20805         * modules/logl-tests: New file.
20806         * tests/test-logl.c: New file.
20807
20808         Tests for module 'expl'.
20809         * modules/expl-tests: New file.
20810         * tests/test-expl.c: New file.
20811
20812         Tests for module 'cosl'.
20813         * modules/cosl-tests: New file.
20814         * tests/test-cosl.c: New file.
20815
20816         Tests for module 'atanl'.
20817         * modules/atanl-tests: New file.
20818         * tests/test-atanl.c: New file.
20819
20820         Tests for module 'asinl'.
20821         * modules/asinl-tests: New file.
20822         * tests/test-asinl.c: New file.
20823
20824         Tests for module 'acosl'.
20825         * modules/acosl-tests: New file.
20826         * tests/test-acosl.c: New file.
20827
20828         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20829         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20830         tanl): Use the standard gnulib idiom.
20831         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20832         * lib/sinl.c: Likewise.
20833         * lib/tanl.c: Don't include trigl.c.
20834         (kernel_tanl): Make static.
20835         * lib/sincosl.c: Include trigl.h first.
20836         * lib/trigl.c: Likewise.
20837         * m4/acosl.m4: New file.
20838         * m4/asinl.m4: New file.
20839         * m4/atanl.m4: New file.
20840         * m4/cosl.m4: New file.
20841         * m4/expl.m4: New file.
20842         * m4/logl.m4: New file.
20843         * m4/sinl.m4: New file.
20844         * m4/sqrtl.m4: New file.
20845         * m4/tanl.m4: New file.
20846         * m4/mathl.m4: Remove file.
20847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20848         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20849         Don't initialize GNULIB_MATHL.
20850         * modules/acosl: New file.
20851         * modules/asinl: New file.
20852         * modules/atanl: New file.
20853         * modules/cosl: New file.
20854         * modules/expl: New file.
20855         * modules/logl: New file.
20856         * modules/sinl: New file.
20857         * modules/sqrtl: New file.
20858         * modules/tanl: New file.
20859         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20860         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20861         substitute GNULIB_MATHL.
20862         * modules/mathl: Rewritten.
20863         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20864         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20865         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20866         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20867         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20868         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20869         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20870         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20871         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20872
20873 2010-01-18  Bruno Haible  <bruno@clisp.org>
20874
20875         sqrt: Make gl_FUNC_SQRT requirable.
20876         * m4/sqrt.m4: New file.
20877         * modules/sqrt (Files): Add it.
20878         (configure.ac): Invoke gl_FUNC_SQRT.
20879
20880 2010-01-18  Bruno Haible  <bruno@clisp.org>
20881
20882         New modules for common <math.h> functions.
20883         * m4/mathfunc.m4: New file.
20884         * modules/acos: New file.
20885         * modules/asin: New file.
20886         * modules/atan: New file.
20887         * modules/atan2: New file.
20888         * modules/cbrt: New file.
20889         * modules/copysign: New file.
20890         * modules/cos: New file.
20891         * modules/cosh: New file.
20892         * modules/erf: New file.
20893         * modules/erfc: New file.
20894         * modules/exp: New file.
20895         * modules/fabs: New file.
20896         * modules/fmod: New file.
20897         * modules/hypot: New file.
20898         * modules/j0: New file.
20899         * modules/j1: New file.
20900         * modules/jn: New file.
20901         * modules/ldexp: New file.
20902         * modules/lgamma: New file.
20903         * modules/log: New file.
20904         * modules/log10: New file.
20905         * modules/log1p: New file.
20906         * modules/logb: New file.
20907         * modules/modf: New file.
20908         * modules/nextafter: New file.
20909         * modules/pow: New file.
20910         * modules/remainder: New file.
20911         * modules/rint: New file.
20912         * modules/sin: New file.
20913         * modules/sinh: New file.
20914         * modules/sqrt: New file.
20915         * modules/tan: New file.
20916         * modules/tanh: New file.
20917         * modules/y0: New file.
20918         * modules/y1: New file.
20919         * modules/yn: New file.
20920         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20921         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20922         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20923         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20924         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20925         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20926         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20927         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20928         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20929         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20930         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20931         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20932         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20933         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20934         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20935         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20936         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20937         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20938         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20939         * doc/posix-functions/log.texi: Mention the 'log' module.
20940         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20941         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20942         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20943         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20944         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20945         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20946         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20947         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20948         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20949         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20950         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20951         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20952         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20953         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20954         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20955         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20956
20957 2010-01-18  Jim Meyering  <meyering@redhat.com>
20958
20959         ignore-value: relax license to LGPLv2+
20960         * modules/ignore-value (License): Relax to LGPLv2+.
20961
20962         getdate: don't leak when TZ contains two or more '"'s
20963         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20964         double quote in TZ after the first one.
20965
20966         readtokens: do not leak internal token_lengths buffer
20967         * lib/readtokens.c (readtokens): Free the local, lengths,
20968         when the supplied "token_lengths" parameter is NULL.
20969
20970 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20971
20972         Fix a couple of missing LIBTHREAD link failures on AIX.
20973         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20974         $(LIBTHREAD).
20975         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20976
20977         Link test-poll against INET_PTON_LIB.
20978         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20979         for inet_pton on Solaris 10.
20980
20981 2010-01-17  Bruno Haible  <bruno@clisp.org>
20982
20983         unistdio/*-sprintf: Fix typo in module description.
20984         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20985         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20986         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20987         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20988         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20989         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20990         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20991         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20992
20993 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20994
20995         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20996         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20997         variables in shell case patterns, for AIX and HP-UX ksh.
20998
20999         Split large sed scripts, for HP-UX sed.
21000         * modules/stdio: Split sed scripts around 50 sed commands,
21001         to avoid HP-UX limit of 99 commands, in the near future.
21002         * modules/string: Likewise.
21003         * modules/unistd: Likewise.
21004
21005         gnulib-tool: avoid writing in the current directory.
21006         * gnulib-tool (func_emit_lib_Makefile_am)
21007         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
21008         not in the current directory, so concurrent gnulib-tool
21009         instances do not interfere.
21010
21011 2010-01-16  Jim Meyering  <meyering@redhat.com>
21012
21013         doc: update users.txt
21014         * users.txt: Add grep.
21015         (diffutils, gzip): Update URLs.
21016
21017 2010-01-12  Bruno Haible  <bruno@clisp.org>
21018
21019         posix_spawn: Avoid test failure on Cygwin.
21020         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
21021         characters.
21022         Reported by Simon Josefsson.
21023
21024 2010-01-12  Bruno Haible  <bruno@clisp.org>
21025
21026         * tests/test-cond.c (main): When skipping the test, show the reason.
21027
21028 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21029
21030         * lib/striconv.c (str_cd_iconv): Avoid if before free.
21031
21032 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21033
21034         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
21035         VC_LIST_ALWAYS_EXCLUDE_REGEX.
21036
21037 2010-01-12  Eric Blake  <ebb9@byu.net>
21038
21039         build: guarantee AS_VAR_IF
21040         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
21041         (gl_AS_VAR_IF): Move...
21042         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
21043         Reported by Simon Josefsson.
21044
21045 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21046
21047         * lib/stdio.in.h: Fix typo.
21048
21049 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21050
21051         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
21052         libgpg-error.
21053
21054 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21055
21056         * tests/test-xalloc-die.sh: Use $EXEEXT.
21057
21058 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21059             Bruno Haible  <bruno@clisp.org>
21060
21061         getlogin, getlogin_r: Avoid test failure.
21062         * tests/test-getlogin.c: Include <stdio.h>.
21063         (main): Skip the test when the function fails because stdin is not a
21064         tty.
21065         * tests/test-getlogin_r.c: Include <stdio.h>.
21066         (main): Skip the test when the function fails because stdin is not a
21067         tty.
21068
21069 2010-01-11  Eric Blake  <ebb9@byu.net>
21070
21071         tests: avoid more large file warnings
21072         * tests/test-fflush.c: Avoid warning about ftell use.
21073         * tests/test-fseek.c: Avoid warning about fseek use.
21074
21075 2010-01-10  Bruno Haible  <bruno@clisp.org>
21076
21077         nproc: Work better on Linux when /proc and /sys are not mounted.
21078         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
21079         as lower bound when, on glibc/Linux systems,
21080         sysconf (_SC_NPROCESSORS_CONF) returns 1.
21081         Suggested by Pádraig Brady <P@draigbrady.com>.
21082         Reported by Dmitry V. Levin <ldv@altlinux.org>.
21083
21084         nproc: Refactor.
21085         * lib/nproc.c (num_processors_via_affinity_mask): New function,
21086         extracted from num_processors.
21087         (num_processors): Call it.
21088
21089 2010-01-11  Jim Meyering  <meyering@redhat.com>
21090
21091         utimecmp: avoid new warning from upcoming gcc-4.5.0
21092         * lib/utimecmp.c (BILLION): Define using #define rather than an
21093         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
21094
21095 2010-01-11  Eric Blake  <ebb9@byu.net>
21096
21097         math: add portability warnings for classification macros
21098         * modules/math (Depends-on): Add warn-on-use.
21099         (Makefile.am): Provide new substitutions.
21100         * m4/math_h.m4 (gl_MATH_H): Require inline.
21101         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
21102         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
21103         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
21104         implement warnings.
21105
21106         unistd: warn on use of environ without module
21107         * modules/unistd (Depends-on): Add warn-on-use.
21108         (Makefile.am): Provide new substitutions.
21109         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
21110         * lib/unistd.in.h (environ): Wrap with a warning helper function.
21111
21112         stdio: warn on suspicious uses
21113         * modules/stdio (Depends-on): Add warn-on-use.
21114         (Makefile.am): Provide new substitutions.
21115         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
21116         fseeko.
21117         * lib/stdio.in.h (gets): Always warn on use.
21118         (fseek, ftell): Adjust when warnings are issued, and honor
21119         _GL_NO_LARGE_FILES as a way to silence the warning.
21120         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
21121         any warning about large file offsets.
21122         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
21123         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
21124         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
21125         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
21126         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
21127         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
21128         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
21129         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
21130
21131         warn-on-use: new module
21132         * modules/warn-on-use: New file.
21133         * build-aux/warn-on-use.h: Likewise.
21134         * m4/warn-on-use.m4: Likewise.
21135         * MODULES.html.sh (Support for building): Mention it.
21136
21137 2010-01-10  Bruno Haible  <bruno@clisp.org>
21138
21139         Tests for module 'unistr/u32-strdup'.
21140         * modules/unistr/u32-strdup-tests: New file.
21141         * tests/unistr/test-u32-strdup.c: New file.
21142
21143         Tests for module 'unistr/u16-strdup'.
21144         * modules/unistr/u16-strdup-tests: New file.
21145         * tests/unistr/test-u16-strdup.c: New file.
21146
21147         Tests for module 'unistr/u8-strdup'.
21148         * modules/unistr/u8-strdup-tests: New file.
21149         * tests/unistr/test-u8-strdup.c: New file.
21150         * tests/unistr/test-strdup.h: New file.
21151
21152         Tests for module 'unistr/u32-strncmp'.
21153         * modules/unistr/u32-strncmp-tests: New file.
21154         * tests/unistr/test-u32-strncmp.c: New file.
21155
21156         Tests for module 'unistr/u16-strncmp'.
21157         * modules/unistr/u16-strncmp-tests: New file.
21158         * tests/unistr/test-u16-strncmp.c: New file.
21159
21160         Tests for module 'unistr/u8-strncmp'.
21161         * modules/unistr/u8-strncmp-tests: New file.
21162         * tests/unistr/test-u8-strncmp.c: New file.
21163         * tests/unistr/test-strncmp.h: New file.
21164
21165         Tests for module 'unistr/u32-strcoll'.
21166         * modules/unistr/u32-strcoll-tests: New file.
21167         * tests/unistr/test-u32-strcoll.c: New file.
21168
21169         Tests for module 'unistr/u16-strcoll'.
21170         * modules/unistr/u16-strcoll-tests: New file.
21171         * tests/unistr/test-u16-strcoll.c: New file.
21172
21173         Tests for module 'unistr/u8-strcoll'.
21174         * modules/unistr/u8-strcoll-tests: New file.
21175         * tests/unistr/test-u8-strcoll.c: New file.
21176
21177         Tests for module 'unistr/u32-strcmp'.
21178         * modules/unistr/u32-strcmp-tests: New file.
21179         * tests/unistr/test-u32-strcmp.c: New file.
21180         * tests/unistr/test-u32-strcmp.h: New file.
21181
21182         Tests for module 'unistr/u16-strcmp'.
21183         * modules/unistr/u16-strcmp-tests: New file.
21184         * tests/unistr/test-u16-strcmp.c: New file.
21185         * tests/unistr/test-u16-strcmp.h: New file.
21186
21187         Tests for module 'unistr/u8-strcmp'.
21188         * modules/unistr/u8-strcmp-tests: New file.
21189         * tests/unistr/test-u8-strcmp.c: New file.
21190         * tests/unistr/test-u8-strcmp.h: New file.
21191         * tests/unistr/test-strcmp.h: New file.
21192
21193         Tests for module 'unistr/u32-strncat'.
21194         * modules/unistr/u32-strncat-tests: New file.
21195         * tests/unistr/test-u32-strncat.c: New file.
21196
21197         Tests for module 'unistr/u16-strncat'.
21198         * modules/unistr/u16-strncat-tests: New file.
21199         * tests/unistr/test-u16-strncat.c: New file.
21200
21201         Tests for module 'unistr/u8-strncat'.
21202         * modules/unistr/u8-strncat-tests: New file.
21203         * tests/unistr/test-u8-strncat.c: New file.
21204         * tests/unistr/test-strncat.h: New file.
21205
21206         Tests for module 'unistr/u32-strcat'.
21207         * modules/unistr/u32-strcat-tests: New file.
21208         * tests/unistr/test-u32-strcat.c: New file.
21209
21210         Tests for module 'unistr/u16-strcat'.
21211         * modules/unistr/u16-strcat-tests: New file.
21212         * tests/unistr/test-u16-strcat.c: New file.
21213
21214         Tests for module 'unistr/u8-strcat'.
21215         * modules/unistr/u8-strcat-tests: New file.
21216         * tests/unistr/test-u8-strcat.c: New file.
21217         * tests/unistr/test-strcat.h: New file.
21218
21219         Tests for module 'unistr/u32-stpncpy'.
21220         * modules/unistr/u32-stpncpy-tests: New file.
21221         * tests/unistr/test-u32-stpncpy.c: New file.
21222
21223         Tests for module 'unistr/u16-stpncpy'.
21224         * modules/unistr/u16-stpncpy-tests: New file.
21225         * tests/unistr/test-u16-stpncpy.c: New file.
21226
21227         Tests for module 'unistr/u8-stpncpy'.
21228         * modules/unistr/u8-stpncpy-tests: New file.
21229         * tests/unistr/test-u8-stpncpy.c: New file.
21230         * tests/unistr/test-stpncpy.h: New file.
21231
21232         Tests for module 'unistr/u32-strncpy'.
21233         * modules/unistr/u32-strncpy-tests: New file.
21234         * tests/unistr/test-u32-strncpy.c: New file.
21235
21236         Tests for module 'unistr/u16-strncpy'.
21237         * modules/unistr/u16-strncpy-tests: New file.
21238         * tests/unistr/test-u16-strncpy.c: New file.
21239
21240         Tests for module 'unistr/u8-strncpy'.
21241         * modules/unistr/u8-strncpy-tests: New file.
21242         * tests/unistr/test-u8-strncpy.c: New file.
21243         * tests/unistr/test-strncpy.h: New file.
21244
21245         Tests for module 'unistr/u32-stpcpy'.
21246         * modules/unistr/u32-stpcpy-tests: New file.
21247         * tests/unistr/test-u32-stpcpy.c: New file.
21248
21249         Tests for module 'unistr/u16-stpcpy'.
21250         * modules/unistr/u16-stpcpy-tests: New file.
21251         * tests/unistr/test-u16-stpcpy.c: New file.
21252
21253         Tests for module 'unistr/u8-stpcpy'.
21254         * modules/unistr/u8-stpcpy-tests: New file.
21255         * tests/unistr/test-u8-stpcpy.c: New file.
21256         * tests/unistr/test-stpcpy.h: New file.
21257
21258         Tests for module 'unistr/u32-strcpy'.
21259         * modules/unistr/u32-strcpy-tests: New file.
21260         * tests/unistr/test-u32-strcpy.c: New file.
21261
21262         Tests for module 'unistr/u16-strcpy'.
21263         * modules/unistr/u16-strcpy-tests: New file.
21264         * tests/unistr/test-u16-strcpy.c: New file.
21265
21266         Tests for module 'unistr/u8-strcpy'.
21267         * modules/unistr/u8-strcpy-tests: New file.
21268         * tests/unistr/test-u8-strcpy.c: New file.
21269         * tests/unistr/test-strcpy.h: New file.
21270
21271         Tests for module 'unistr/u32-strnlen'.
21272         * modules/unistr/u32-strnlen-tests: New file.
21273         * tests/unistr/test-u32-strnlen.c: New file.
21274
21275         Tests for module 'unistr/u16-strnlen'.
21276         * modules/unistr/u16-strnlen-tests: New file.
21277         * tests/unistr/test-u16-strnlen.c: New file.
21278
21279         Tests for module 'unistr/u8-strnlen'.
21280         * modules/unistr/u8-strnlen-tests: New file.
21281         * tests/unistr/test-u8-strnlen.c: New file.
21282         * tests/unistr/test-strnlen.h: New file.
21283
21284         Tests for module 'unistr/u32-strlen'.
21285         * modules/unistr/u32-strlen-tests: New file.
21286         * tests/unistr/test-u32-strlen.c: New file.
21287
21288         Tests for module 'unistr/u16-strlen'.
21289         * modules/unistr/u16-strlen-tests: New file.
21290         * tests/unistr/test-u16-strlen.c: New file.
21291
21292         Tests for module 'unistr/u8-strlen'.
21293         * modules/unistr/u8-strlen-tests: New file.
21294         * tests/unistr/test-u8-strlen.c: New file.
21295
21296         Tests for module 'unistr/u32-prev'.
21297         * modules/unistr/u32-prev-tests: New file.
21298         * tests/unistr/test-u32-prev.c: New file.
21299
21300         Tests for module 'unistr/u16-prev'.
21301         * modules/unistr/u16-prev-tests: New file.
21302         * tests/unistr/test-u16-prev.c: New file.
21303
21304         Tests for module 'unistr/u8-prev'.
21305         * modules/unistr/u8-prev-tests: New file.
21306         * tests/unistr/test-u8-prev.c: New file.
21307
21308         Tests for module 'unistr/u32-next'.
21309         * modules/unistr/u32-next-tests: New file.
21310         * tests/unistr/test-u32-next.c: New file.
21311
21312         Tests for module 'unistr/u16-next'.
21313         * modules/unistr/u16-next-tests: New file.
21314         * tests/unistr/test-u16-next.c: New file.
21315
21316         Tests for module 'unistr/u8-next'.
21317         * modules/unistr/u8-next-tests: New file.
21318         * tests/unistr/test-u8-next.c: New file.
21319
21320         Tests for module 'unistr/u32-strmbtouc'.
21321         * modules/unistr/u32-strmbtouc-tests: New file.
21322         * tests/unistr/test-u32-strmbtouc.c: New file.
21323
21324         Tests for module 'unistr/u16-strmbtouc'.
21325         * modules/unistr/u16-strmbtouc-tests: New file.
21326         * tests/unistr/test-u16-strmbtouc.c: New file.
21327
21328         Tests for module 'unistr/u8-strmbtouc'.
21329         * modules/unistr/u8-strmbtouc-tests: New file.
21330         * tests/unistr/test-u8-strmbtouc.c: New file.
21331
21332         Tests for module 'unistr/u32-strmblen'.
21333         * modules/unistr/u32-strmblen-tests: New file.
21334         * tests/unistr/test-u32-strmblen.c: New file.
21335
21336         Tests for module 'unistr/u16-strmblen'.
21337         * modules/unistr/u16-strmblen-tests: New file.
21338         * tests/unistr/test-u16-strmblen.c: New file.
21339
21340         Tests for module 'unistr/u8-strmblen'.
21341         * modules/unistr/u8-strmblen-tests: New file.
21342         * tests/unistr/test-u8-strmblen.c: New file.
21343
21344         Tests for module 'unistr/u32-cpy-alloc'.
21345         * modules/unistr/u32-cpy-alloc-tests: New file.
21346         * tests/unistr/test-u32-cpy-alloc.c: New file.
21347
21348         Tests for module 'unistr/u16-cpy-alloc'.
21349         * modules/unistr/u16-cpy-alloc-tests: New file.
21350         * tests/unistr/test-u16-cpy-alloc.c: New file.
21351
21352         Tests for module 'unistr/u8-cpy-alloc'.
21353         * modules/unistr/u8-cpy-alloc-tests: New file.
21354         * tests/unistr/test-u8-cpy-alloc.c: New file.
21355         * tests/unistr/test-cpy-alloc.h: New file.
21356
21357         Tests for module 'unistr/u32-mbsnlen'.
21358         * modules/unistr/u32-mbsnlen-tests: New file.
21359         * tests/unistr/test-u32-mbsnlen.c: New file.
21360
21361         Tests for module 'unistr/u16-mbsnlen'.
21362         * modules/unistr/u16-mbsnlen-tests: New file.
21363         * tests/unistr/test-u16-mbsnlen.c: New file.
21364
21365         Tests for module 'unistr/u8-mbsnlen'.
21366         * modules/unistr/u8-mbsnlen-tests: New file.
21367         * tests/unistr/test-u8-mbsnlen.c: New file.
21368
21369         Tests for module 'unistr/u32-chr'.
21370         * modules/unistr/u32-chr-tests: New file.
21371         * tests/unistr/test-u32-chr.c: New file.
21372
21373         Tests for module 'unistr/u16-chr'.
21374         * modules/unistr/u16-chr-tests: New file.
21375         * tests/unistr/test-u16-chr.c: New file.
21376
21377         Tests for module 'unistr/u8-chr'.
21378         * modules/unistr/u8-chr-tests: New file.
21379         * tests/unistr/test-u8-chr.c: New file.
21380         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21381
21382         Tests for module 'unistr/u32-cmp2'.
21383         * modules/unistr/u32-cmp2-tests: New file.
21384         * tests/unistr/test-u32-cmp2.c: New file.
21385
21386         Tests for module 'unistr/u16-cmp2'.
21387         * modules/unistr/u16-cmp2-tests: New file.
21388         * tests/unistr/test-u16-cmp2.c: New file.
21389
21390         Tests for module 'unistr/u8-cmp2'.
21391         * modules/unistr/u8-cmp2-tests: New file.
21392         * tests/unistr/test-u8-cmp2.c: New file.
21393         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21394
21395         Tests for module 'unistr/u32-cmp'.
21396         * modules/unistr/u32-cmp-tests: New file.
21397         * tests/unistr/test-u32-cmp.c: New file.
21398
21399         Tests for module 'unistr/u16-cmp'.
21400         * modules/unistr/u16-cmp-tests: New file.
21401         * tests/unistr/test-u16-cmp.c: New file.
21402
21403         Tests for module 'unistr/u8-cmp'.
21404         * modules/unistr/u8-cmp-tests: New file.
21405         * tests/unistr/test-u8-cmp.c: New file.
21406         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21407
21408         Tests for module 'unistr/u32-set'.
21409         * modules/unistr/u32-set-tests: New file.
21410         * tests/unistr/test-u32-set.c: New file.
21411
21412         Tests for module 'unistr/u16-set'.
21413         * modules/unistr/u16-set-tests: New file.
21414         * tests/unistr/test-u16-set.c: New file.
21415
21416         Tests for module 'unistr/u8-set'.
21417         * modules/unistr/u8-set-tests: New file.
21418         * tests/unistr/test-u8-set.c: New file.
21419         * tests/unistr/test-set.h: New file.
21420
21421         Tests for module 'unistr/u32-move'.
21422         * modules/unistr/u32-move-tests: New file.
21423         * tests/unistr/test-u32-move.c: New file.
21424
21425         Tests for module 'unistr/u16-move'.
21426         * modules/unistr/u16-move-tests: New file.
21427         * tests/unistr/test-u16-move.c: New file.
21428
21429         Tests for module 'unistr/u8-move'.
21430         * modules/unistr/u8-move-tests: New file.
21431         * tests/unistr/test-u8-move.c: New file.
21432         * tests/unistr/test-move.h: New file.
21433
21434         Tests for module 'unistr/u32-cpy'.
21435         * modules/unistr/u32-cpy-tests: New file.
21436         * tests/unistr/test-u32-cpy.c: New file.
21437
21438         Tests for module 'unistr/u16-cpy'.
21439         * modules/unistr/u16-cpy-tests: New file.
21440         * tests/unistr/test-u16-cpy.c: New file.
21441
21442         Tests for module 'unistr/u8-cpy'.
21443         * modules/unistr/u8-cpy-tests: New file.
21444         * tests/unistr/test-u8-cpy.c: New file.
21445         * tests/unistr/test-cpy.h: New file.
21446
21447 2010-01-09  Bruno Haible  <bruno@clisp.org>
21448
21449         Tests for module 'unistr/u32-uctomb'.
21450         * modules/unistr/u32-uctomb-tests: New file.
21451         * tests/unistr/test-u32-uctomb.c: New file.
21452
21453         Tests for module 'unistr/u16-uctomb'.
21454         * modules/unistr/u16-uctomb-tests: New file.
21455         * tests/unistr/test-u16-uctomb.c: New file.
21456
21457         Tests for module 'unistr/u8-uctomb'.
21458         * modules/unistr/u8-uctomb-tests: New file.
21459         * tests/unistr/test-u8-uctomb.c: New file.
21460
21461         Tests for module 'unistr/u32-mbtoucr'.
21462         * modules/unistr/u32-mbtoucr-tests: New file.
21463         * tests/unistr/test-u32-mbtoucr.c: New file.
21464
21465         Tests for module 'unistr/u16-mbtoucr'.
21466         * modules/unistr/u16-mbtoucr-tests: New file.
21467         * tests/unistr/test-u16-mbtoucr.c: New file.
21468
21469         Tests for module 'unistr/u8-mbtoucr'.
21470         * modules/unistr/u8-mbtoucr-tests: New file.
21471         * tests/unistr/test-u8-mbtoucr.c: New file.
21472
21473         Tests for module 'unistr/u32-mbtouc'.
21474         * modules/unistr/u32-mbtouc-tests: New file.
21475         * tests/unistr/test-u32-mbtouc.c: New file.
21476
21477         Tests for module 'unistr/u16-mbtouc'.
21478         * modules/unistr/u16-mbtouc-tests: New file.
21479         * tests/unistr/test-u16-mbtouc.c: New file.
21480
21481         Tests for module 'unistr/u8-mbtouc'.
21482         * modules/unistr/u8-mbtouc-tests: New file.
21483         * tests/unistr/test-u8-mbtouc.c: New file.
21484
21485         Tests for module 'unistr/u32-mbtouc-unsafe'.
21486         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21487         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21488         * tests/unistr/test-u32-mbtouc.h: New file.
21489
21490         Tests for module 'unistr/u16-mbtouc-unsafe'.
21491         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21492         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21493         * tests/unistr/test-u16-mbtouc.h: New file.
21494
21495         Tests for module 'unistr/u8-mbtouc-unsafe'.
21496         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21497         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21498         * tests/unistr/test-u8-mbtouc.h: New file.
21499
21500         Tests for module 'unistr/u32-mblen'.
21501         * modules/unistr/u32-mblen-tests: New file.
21502         * tests/unistr/test-u32-mblen.c: New file.
21503
21504         Tests for module 'unistr/u16-mblen'.
21505         * modules/unistr/u16-mblen-tests: New file.
21506         * tests/unistr/test-u16-mblen.c: New file.
21507
21508         Tests for module 'unistr/u8-mblen'.
21509         * modules/unistr/u8-mblen-tests: New file.
21510         * tests/unistr/test-u8-mblen.c: New file.
21511
21512         Tests for module 'unistr/u32-to-u16'.
21513         * modules/unistr/u32-to-u16-tests: New file.
21514         * tests/unistr/test-u32-to-u16.c: New file.
21515
21516         Tests for module 'unistr/u32-to-u8'.
21517         * modules/unistr/u32-to-u8-tests: New file.
21518         * tests/unistr/test-u32-to-u8.c: New file.
21519
21520         Tests for module 'unistr/u16-to-u32'.
21521         * modules/unistr/u16-to-u32-tests: New file.
21522         * tests/unistr/test-u16-to-u32.c: New file.
21523
21524         Tests for module 'unistr/u16-to-u8'.
21525         * modules/unistr/u16-to-u8-tests: New file.
21526         * tests/unistr/test-u16-to-u8.c: New file.
21527
21528         Tests for module 'unistr/u8-to-u32'.
21529         * modules/unistr/u8-to-u32-tests: New file.
21530         * tests/unistr/test-u8-to-u32.c: New file.
21531
21532         Tests for module 'unistr/u8-to-u16'.
21533         * modules/unistr/u8-to-u16-tests: New file.
21534         * tests/unistr/test-u8-to-u16.c: New file.
21535
21536         Tests for module 'unistr/u32-check'.
21537         * modules/unistr/u32-check-tests: New file.
21538         * tests/unistr/test-u32-check.c: New file.
21539
21540         Tests for module 'unistr/u16-check'.
21541         * modules/unistr/u16-check-tests: New file.
21542         * tests/unistr/test-u16-check.c: New file.
21543
21544         Tests for module 'unistr/u8-check'.
21545         * modules/unistr/u8-check-tests: New file.
21546         * tests/unistr/test-u8-check.c: New file.
21547
21548         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21549         (category_equals): New function.
21550         (main): Add more tests.
21551         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21552
21553         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21554
21555 2010-01-10  Bruno Haible  <bruno@clisp.org>
21556
21557         unistr/u*-strcoll: Try harder to distinguish different strings.
21558         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21559         compare s1 and s2 to see if they are different.
21560
21561 2010-01-10  Bruno Haible  <bruno@clisp.org>
21562
21563         unistr/u*-stpncpy: Fix the return value.
21564         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21565         description of the return value consistent with stpncpy in glibc.
21566         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21567         written non-NUL unit.
21568
21569 2010-01-10  Bruno Haible  <bruno@clisp.org>
21570
21571         unistr/u*-next: Add missing dependencies.
21572         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21573         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21574         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21575
21576 2010-01-10  Bruno Haible  <bruno@clisp.org>
21577
21578         unistr/u8-mbsnlen: Fix return value for incomplete character.
21579         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21580         u8_mblen.
21581         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21582         Remove unistr/u8-mblen.
21583         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21584         u16_mblen.
21585         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21586         Remove unistr/u16-mblen.
21587
21588 2010-01-10  Bruno Haible  <bruno@clisp.org>
21589
21590         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21591         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21592         Reported by Brian Gough <bjg@gnu.org> and
21593         Chris Clayton <chris2553@googlemail.com> via
21594         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21595
21596 2010-01-09  Bruno Haible  <bruno@clisp.org>
21597
21598         unistr/u16-to-u32: Reject invalid input.
21599         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21600         u16_mbtouc.
21601         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21602         Remove unistr/u16-mbtouc.
21603
21604         unistr/u16-to-u8: Reject invalid input.
21605         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21606         u16_mbtouc.
21607         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21608         Remove unistr/u16-mbtouc.
21609
21610         unistr/u8-to-u32: Reject invalid input.
21611         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21612         u8_mbtouc.
21613         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21614         Remove unistr/u8-mbtouc.
21615
21616         unistr/u8-to-u16: Reject invalid input.
21617         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21618         u8_mbtouc.
21619         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21620         Remove unistr/u8-mbtouc.
21621
21622 2010-01-09  Bruno Haible  <bruno@clisp.org>
21623
21624         Tests for module 'getlogin'.
21625         * modules/getlogin-tests: New file.
21626         * tests/test-getlogin.c: New file.
21627
21628         New module 'getlogin'.
21629         * lib/unistd.in.h (getlogin): New declaration.
21630         * lib/getlogin.c: New file.
21631         * m4/getlogin.m4: New file.
21632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21633         HAVE_GETLOGIN.
21634         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21635         HAVE_GETLOGIN.
21636         * modules/getlogin: New file.
21637         * doc/posix-functions/getlogin.texi: Mention the new module.
21638         Reported by John W. Eaton <jwe@gnu.org>.
21639
21640 2010-01-09  Bruno Haible  <bruno@clisp.org>
21641
21642         getlogin_r: Support for native Windows.
21643         * lib/getlogin_r.c: Include <windows.h>
21644         (getlogin_r): Implement for native Windows.
21645         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21646         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21647         via John W. Eaton <jwe@gnu.org>.
21648
21649 2010-01-09  Bruno Haible  <bruno@clisp.org>
21650
21651         getlogin_r: Small fixes.
21652         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21653         succeeds.
21654         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21655         before testing whether getlogin_r is declared. No need to set
21656         HAVE_DECL_GETLOGIN_R to 1.
21657         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21658
21659 2010-01-09  Bruno Haible  <bruno@clisp.org>
21660
21661         * lib/unistd.in.h (getlogin_r): Add comment.
21662
21663 2010-01-09  Bruno Haible  <bruno@clisp.org>
21664
21665         Tests for module 'getlogin_r'.
21666         * modules/getlogin_r-tests: New file.
21667         * tests/test-getlogin_r.c: New file.
21668
21669 2010-01-09  Jim Meyering  <meyering@redhat.com>
21670
21671         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21672         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21673         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21674
21675 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21676
21677         * lib/dup2.c (rpl_dup2): Improve comment.
21678
21679 2010-01-08  Eric Blake  <ebb9@byu.net>
21680
21681         maint.mk: allow packages to add makefile @@ exceptions
21682         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21683         (sc_makefile_check): Rename...
21684         (sc_makefile_at_at_check): ...to this, and use hook.
21685
21686         dup2: work around mingw bug
21687         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21688         Reported by Simon Josefsson.
21689
21690 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21691
21692         glob: Fix C++ compilation.
21693         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21694         C++.
21695
21696 2010-01-07  Bruno Haible  <bruno@clisp.org>
21697
21698         Fix indentation of wctype.in.h, broken since 2007-01-06.
21699         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21700
21701 2010-01-07  Bruno Haible  <bruno@clisp.org>
21702
21703         mbslen: Avoid collision with system function.
21704         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21705         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21706         * m4/mbslen.m4: New file.
21707         * modules/mbslen (Files): Add it.
21708         (configure.ac): Invoke gl_MBSLEN.
21709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21710         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21711         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21712         via Ian Beckwith <ianb@erislabs.net>.
21713
21714 2010-01-07  Bruno Haible  <bruno@clisp.org>
21715
21716         dirent: Document the last fix.
21717         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21718
21719 2010-01-07  Bruno Haible  <bruno@clisp.org>
21720
21721         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21722         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21723         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21724         va_list are defined.
21725         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21726         Reported by Eric Blake.
21727
21728 2010-01-07  Bruno Haible  <bruno@clisp.org>
21729
21730         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21731         * modules/xlist (Depends-on): Add 'list',
21732         * modules/xoset (Depends-on): Add 'oset'.
21733         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21734
21735 2010-01-07  Bruno Haible  <bruno@clisp.org>
21736
21737         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21738         * doc/posix-functions/strncasecmp.texi: Likewise.
21739
21740 2010-01-07  Bruno Haible  <bruno@clisp.org>
21741
21742         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21743
21744 2010-01-07  John W. Eaton  <jwe@octave.org>
21745
21746         wctype: allow C++ use
21747         * lib/wctype.in.h: Add extern "C" block for C++.
21748
21749 2010-01-06  Eric Blake  <ebb9@byu.net>
21750
21751         maint.mk: detect incorrect GFDL usage
21752         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21753
21754 2010-01-06  Jim Meyering  <meyering@redhat.com>
21755         and Eric Blake  <ebb9@byu.net>
21756
21757         maint.mk: ignore multi-line copyright in NEWS
21758         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21759
21760 2010-01-06  Eric Blake  <ebb9@byu.net>
21761
21762         select: add missing dependency
21763         * modules/select-tests (Depends-on): Move sockets dependency...
21764         * modules/select (Depends-on): ...here.
21765         Reported by Ian Beckwith.
21766
21767         doc: regenerate INSTALL
21768         * doc/INSTALL: Reflect recent autoconf update.
21769         * doc/INSTALL.ISO: Likewise.
21770         * doc/INSTALL.UTF-8: Likewise.
21771
21772         pread: fix compilation on glibc
21773         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21774         Reported by Ralf Wildenhues.
21775
21776         dirent: fix test failure
21777         * lib/dirent.in.h (includes): Guarantee ino_t.
21778         Reported by Ralf Wildenhues.
21779
21780 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21781
21782         linkat, renameat: avoid bad free
21783         * lib/at-func2.c (at_func2): Fix typo.
21784         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21785
21786 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21787
21788         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21789         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21790         to avoid failure of symlink test later.
21791
21792 2010-01-06  Eric Blake  <ebb9@byu.net>
21793
21794         stdio, unistd: guarantee ssize_t
21795         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21796         2008 are exposed when needed.
21797         * lib/stdio.in.h (includes): Likewise.
21798         Reported by Ralf Wildenhues.
21799
21800 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21801
21802         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21803         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21804         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21805
21806 2010-01-06  Jim Meyering  <meyering@redhat.com>
21807
21808         readtokens: this module *does* require xalloc.h
21809         It uses only functions that were omitted by the old syntax-check rule.
21810         * lib/readtokens.c: Include "xalloc.h" once again.
21811         * modules/readtokens (Depends-on): Add xalloc.
21812         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21813
21814 2010-01-05  Eric Blake  <ebb9@byu.net>
21815
21816         maint: support 'make announcement' from a VPATH build
21817         * top/maint.mk (announcement): Look for correct NEWS file.
21818
21819 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21820
21821         utimens (fdutimens): ignore a negative FD, per contract
21822         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21823         when we have a valid file descriptor.  Otherwise, using a brand
21824         new glibc (with just-patched futimens that now fails with EBADF)
21825         would cause this function to fail with ENOSYS.
21826         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21827         See also http://bugzilla.redhat.com/552320.
21828
21829 2010-01-05  Eric Blake  <ebb9@byu.net>
21830
21831         strcase: document what it provides
21832         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21833         gnulib module.
21834         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21835         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21836
21837 2010-01-05  Jim Meyering  <meyering@redhat.com>
21838
21839         maint: remove useless inclusions of "xalloc.h"
21840         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21841         * lib/readtokens.c: Likewise.
21842         * lib/same.c: Likewise.
21843         * modules/getloadavg (Depends-on): Remove xalloc.
21844         * modules/readtokens: Likewise.
21845         * modules/same: Likewise.
21846
21847         maint.mk: include 4 more function names in alloca.h-checking regexp
21848         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21849         regexp.  Before, we would give a false-positive (saying alloca.h
21850         is included unnecessarily) when the only uses involved omitted symbols.
21851
21852         xalloc.h: use consistent formatting
21853         * lib/xalloc.h: Move declarations to start in the first column.
21854
21855 2010-01-05  Eric Blake  <ebb9@byu.net>
21856
21857         mkdir: avoid xalloc
21858         * lib/mkdir.c (includes): Drop unused header.
21859         Reported by John W. Eaton.
21860
21861 2010-01-04  Jim Meyering  <meyering@redhat.com>
21862
21863         nl_langinfo: avoid configure-time syntax error
21864         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21865         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21866         the empty string.  Don't let that provoke a shell syntax error.
21867
21868         regcomp, regexec, fnmatch: avoid array bounds read error
21869         * lib/regcomp.c (build_equiv_class): From glibc:
21870         Use only the low 24 bits of a findidx return value as an index
21871         into the weights array.  Patch by Ulrich Drepper:
21872         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21873         * lib/regexec.c (check_node_accept_bytes): Likewise.
21874         * lib/fnmatch_loop.c (FCT): Likewise.
21875
21876         regcomp: skip collseq lookup when there are no rules
21877         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21878         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21879
21880         regcomp: recognize ill-formed { } expressions
21881         * lib/regcomp.c (parse_dup_op): From glibc:
21882         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21883
21884         regcomp: fix typo in comment
21885         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21886         s/satisfy/satisfies/.
21887
21888         regcomp: sync from glibc: remove dead store
21889         * lib/regcomp.c (duplicate_node_closure): Remove useless
21890         search_duplicated_node call and dead store.
21891
21892         regcomp: sync from glibc; always use nl_langinfo
21893         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21894         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21895         * modules/regex (Depends-on): Add nl_langinfo.
21896
21897 2010-01-04  Eric Blake  <ebb9@byu.net>
21898
21899         fdopendir: fix configure test
21900         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21901
21902 2010-01-01  Bruno Haible  <bruno@clisp.org>
21903
21904         wchar: Remove unused configure check.
21905         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21906
21907 2010-01-01  Eric Blake  <ebb9@byu.net>
21908
21909         headers: make check of system header explicit
21910         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21911         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21912         ourselves.
21913         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21914         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21915         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21916         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21917         internals.
21918         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21919         missing.
21920         Suggested by Bruno Haible.
21921
21922 2010-01-01  Jim Meyering  <meyering@redhat.com>
21923
21924         ChangeLog: tweak to eliminate unnecessary copyright line
21925         * ChangeLog: Remove a copyright line that was mistakenly updated
21926         by today's update-copyright run.  Reported by Eric Blake.
21927
21928         test-update-copyright: don't let envvar setting cause test failure
21929         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21930
21931 2010-01-01  Bruno Haible  <bruno@clisp.org>
21932
21933         localename: Avoid gcc warning.
21934         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21935         function if it is not used.
21936
21937 2010-01-01  Jim Meyering  <meyering@redhat.com>
21938
21939         update nearly all FSF copyright year lists to include 2010
21940         Use the same procedure as for 2009, outlined in
21941         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21942
21943         version-etc: set COPYRIGHT_YEAR to 2010
21944         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21945
21946 2009-12-31  Eric Blake  <ebb9@byu.net>
21947
21948         doc: correct availability of cygwin 1.5.x getopt
21949         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21950         variables.
21951         * doc/posix-functions/opterr.texi (opterr): Likewise.
21952         * doc/posix-functions/optind.texi (optind): Likewise.
21953         * doc/posix-functions/optopt.texi (optopt): Likewise.
21954         * doc/posix-functions/tzname.texi (tzname): Likewise.
21955
21956         openat: update maintainer
21957         * modules/openat (Maintainer): Add myself.
21958
21959         utimens: avoid shadowing warning
21960         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21961         buffers into one, to avoid shadowing, as well as avoiding a
21962         redundant stat.
21963         Reported by Jim Meyering.
21964
21965         test-dup2: avoid compiler warning
21966         * tests/test-dup2.c (is_inheritable): Only define if used.
21967
21968 2010-01-01  Bruno Haible  <bruno@clisp.org>
21969
21970         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21971         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21972         defined, use wctomb instead of wcrtomb.
21973
21974 2010-01-01  Bruno Haible  <bruno@clisp.org>
21975
21976         iconv: Reject native Solaris iconv.
21977         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21978         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21979
21980 2009-12-31  Bruno Haible  <bruno@clisp.org>
21981
21982         * tests/test-signal.c (main): Remove test of 'SIG'.
21983
21984 2009-12-31  Bruno Haible  <bruno@clisp.org>
21985
21986         spawn: Fix incomplete fix.
21987         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21988         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21989         warnings for GNULIB_POSIXCHECK again.
21990         Reported by Eric Blake.
21991
21992 2009-12-31  Bruno Haible  <bruno@clisp.org>
21993
21994         Avoid namespace pollution on glibc systems.
21995         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21996         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21997         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21998         glibc systems.
21999
22000 2009-12-31  Bruno Haible  <bruno@clisp.org>
22001
22002         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
22003         (gl_REPLACE_WCHAR_H): Turn into a no-op.
22004         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
22005         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22006         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22007         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22008         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22009
22010 2009-12-31  Bruno Haible  <bruno@clisp.org>
22011
22012         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22013         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
22014         afterwards.
22015
22016 2009-12-31  Bruno Haible  <bruno@clisp.org>
22017
22018         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
22019         SYS_UTSNAME_H.
22020
22021 2009-12-31  Bruno Haible  <bruno@clisp.org>
22022
22023         spawn: Fix misapplied patch.
22024         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22025         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22026         warnings for GNULIB_POSIXCHECK.
22027
22028 2009-12-31  Bruno Haible  <bruno@clisp.org>
22029
22030         times: Update after sys_times changed.
22031         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
22032         * modules/times (Files): Add it.
22033         (configure.ac): Invoke gl_FUNC_TIMES.
22034
22035 2009-12-31  Bruno Haible  <bruno@clisp.org>
22036
22037         Use AC_C_INLINE where necessary.
22038         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
22039         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22040         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22041         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22042         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22043         * m4/mbiter.m4 (gl_MBITER): Likewise.
22044         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22045         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22046         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
22047         * modules/u64 (configure.ac): Likewise.
22048
22049 2009-12-31  Bruno Haible  <bruno@clisp.org>
22050
22051         Use AC_C_INLINE instead of module 'inline' where possible.
22052         * modules/inline (Description): Clarify purpose.
22053         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
22054         * modules/count-one-bits (Depends-on): Remove inline.
22055         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
22056         * modules/openat (Depends-on): Remove inline.
22057         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
22058         instead of depending on module 'inline'.
22059         * modules/filevercmp (Depends-on, configure.ac): Likewise.
22060         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
22061         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
22062         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
22063         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
22064         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
22065         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
22066         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
22067         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
22068         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
22069         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
22070         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
22071         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
22072         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
22073         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
22074         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
22075         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
22076         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
22077         Likewise.
22078         * modules/unictype/property-ascii-hex-digit (Depends-on,
22079         configure.ac): Likewise.
22080         * modules/unictype/property-bidi-arabic-digit (Depends-on,
22081         configure.ac): Likewise.
22082         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
22083         configure.ac): Likewise.
22084         * modules/unictype/property-bidi-block-separator (Depends-on,
22085         configure.ac): Likewise.
22086         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
22087         configure.ac): Likewise.
22088         * modules/unictype/property-bidi-common-separator (Depends-on,
22089         configure.ac): Likewise.
22090         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
22091         Likewise.
22092         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
22093         configure.ac): Likewise.
22094         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
22095         configure.ac): Likewise.
22096         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
22097         configure.ac): Likewise.
22098         * modules/unictype/property-bidi-european-digit (Depends-on,
22099         configure.ac): Likewise.
22100         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
22101         configure.ac): Likewise.
22102         * modules/unictype/property-bidi-left-to-right (Depends-on,
22103         configure.ac): Likewise.
22104         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
22105         configure.ac): Likewise.
22106         * modules/unictype/property-bidi-other-neutral (Depends-on,
22107         configure.ac): Likewise.
22108         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
22109         Likewise.
22110         * modules/unictype/property-bidi-segment-separator (Depends-on,
22111         configure.ac): Likewise.
22112         * modules/unictype/property-bidi-whitespace (Depends-on,
22113         configure.ac): Likewise.
22114         * modules/unictype/property-combining (Depends-on, configure.ac):
22115         Likewise.
22116         * modules/unictype/property-composite (Depends-on, configure.ac):
22117         Likewise.
22118         * modules/unictype/property-currency-symbol (Depends-on,
22119         configure.ac): Likewise.
22120         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
22121         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
22122         Likewise.
22123         * modules/unictype/property-default-ignorable-code-point (Depends-on,
22124         configure.ac): Likewise.
22125         * modules/unictype/property-deprecated (Depends-on, configure.ac):
22126         Likewise.
22127         * modules/unictype/property-diacritic (Depends-on, configure.ac):
22128         Likewise.
22129         * modules/unictype/property-extender (Depends-on, configure.ac):
22130         Likewise.
22131         * modules/unictype/property-format-control (Depends-on, configure.ac):
22132         Likewise.
22133         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
22134         Likewise.
22135         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
22136         Likewise.
22137         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
22138         Likewise.
22139         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
22140         Likewise.
22141         * modules/unictype/property-hyphen (Depends-on, configure.ac):
22142         Likewise.
22143         * modules/unictype/property-id-continue (Depends-on, configure.ac):
22144         Likewise.
22145         * modules/unictype/property-id-start (Depends-on, configure.ac):
22146         Likewise.
22147         * modules/unictype/property-ideographic (Depends-on, configure.ac):
22148         Likewise.
22149         * modules/unictype/property-ids-binary-operator (Depends-on,
22150         configure.ac): Likewise.
22151         * modules/unictype/property-ids-trinary-operator (Depends-on,
22152         configure.ac): Likewise.
22153         * modules/unictype/property-ignorable-control (Depends-on,
22154         configure.ac): Likewise.
22155         * modules/unictype/property-iso-control (Depends-on, configure.ac):
22156         Likewise.
22157         * modules/unictype/property-join-control (Depends-on, configure.ac):
22158         Likewise.
22159         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
22160         Likewise.
22161         * modules/unictype/property-line-separator (Depends-on, configure.ac):
22162         Likewise.
22163         * modules/unictype/property-logical-order-exception (Depends-on,
22164         configure.ac): Likewise.
22165         * modules/unictype/property-lowercase (Depends-on, configure.ac):
22166         Likewise.
22167         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
22168         * modules/unictype/property-non-break (Depends-on, configure.ac):
22169         Likewise.
22170         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
22171         Likewise.
22172         * modules/unictype/property-numeric (Depends-on, configure.ac):
22173         Likewise.
22174         * modules/unictype/property-other-alphabetic (Depends-on,
22175         configure.ac): Likewise.
22176         * modules/unictype/property-other-default-ignorable-code-point
22177         (Depends-on, configure.ac): Likewise.
22178         * modules/unictype/property-other-grapheme-extend (Depends-on,
22179         configure.ac): Likewise.
22180         * modules/unictype/property-other-id-continue (Depends-on,
22181         configure.ac): Likewise.
22182         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
22183         Likewise.
22184         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
22185         Likewise.
22186         * modules/unictype/property-other-math (Depends-on, configure.ac):
22187         Likewise.
22188         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
22189         Likewise.
22190         * modules/unictype/property-paired-punctuation (Depends-on,
22191         configure.ac): Likewise.
22192         * modules/unictype/property-paragraph-separator (Depends-on,
22193         configure.ac): Likewise.
22194         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
22195         Likewise.
22196         * modules/unictype/property-pattern-white-space (Depends-on,
22197         configure.ac): Likewise.
22198         * modules/unictype/property-private-use (Depends-on, configure.ac):
22199         Likewise.
22200         * modules/unictype/property-punctuation (Depends-on, configure.ac):
22201         Likewise.
22202         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
22203         Likewise.
22204         * modules/unictype/property-radical (Depends-on, configure.ac):
22205         Likewise.
22206         * modules/unictype/property-sentence-terminal (Depends-on,
22207         configure.ac): Likewise.
22208         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
22209         Likewise.
22210         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
22211         * modules/unictype/property-terminal-punctuation (Depends-on,
22212         configure.ac): Likewise.
22213         * modules/unictype/property-titlecase (Depends-on, configure.ac):
22214         Likewise.
22215         * modules/unictype/property-unassigned-code-value (Depends-on,
22216         configure.ac): Likewise.
22217         * modules/unictype/property-unified-ideograph (Depends-on,
22218         configure.ac): Likewise.
22219         * modules/unictype/property-uppercase (Depends-on, configure.ac):
22220         Likewise.
22221         * modules/unictype/property-variation-selector (Depends-on,
22222         configure.ac): Likewise.
22223         * modules/unictype/property-white-space (Depends-on, configure.ac):
22224         Likewise.
22225         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
22226         Likewise.
22227         * modules/unictype/property-xid-start (Depends-on, configure.ac):
22228         Likewise.
22229         * modules/unictype/property-zero-width (Depends-on, configure.ac):
22230         Likewise.
22231         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
22232         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
22233         Likewise.
22234
22235 2009-12-31  Bruno Haible  <bruno@clisp.org>
22236
22237         Remove unnecessary AC_C_INLINE invocation.
22238         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
22239         since 2009-08-21.
22240
22241 2009-12-31  Jim Meyering  <meyering@redhat.com>
22242
22243         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22244         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22245         With this change, we can all remove the gpg_key_ID = ... definition
22246         from our respective cfg.mk files.
22247
22248         maint.mk: create announcement template in ~/, not in /tmp
22249         * top/maint.mk (emit_upload_commands): Adjust.
22250         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22251         Remove temporary file, .ci-msg.
22252
22253 2009-12-31  Eric Blake  <ebb9@byu.net>
22254
22255         link-warning: always build headers with link warnings
22256         * modules/arpa_inet (Makefile.am): Always build replacement
22257         header.
22258         * modules/ctype (Makefile.am): Likewise.
22259         * modules/dirent (Makefile.am): Likewise.
22260         * modules/inttypes (Makefile.am): Likewise.
22261         * modules/langinfo (Makefile.am): Likewise.
22262         * modules/locale (Makefile.am): Likewise.
22263         * modules/spawn (Makefile.am): Likewise.
22264         * modules/sys_file (Makefile.am): Likewise.
22265         * modules/sys_ioctl (Makefile.am): Likewise.
22266         * modules/sys_select (Makefile.am): Likewise.
22267         * modules/sys_socket (Makefile.am): Likewise.
22268         * modules/sys_times (Makefile.am): Likewise.
22269         * modules/sys_utsname (Makefile.am): Likewise.
22270         * modules/sys_wait (Makefile.am): Likewise.
22271         * modules/wchar (Makefile.am): Likewise.
22272         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22273         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22274         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22275         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22276         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22277         Likewise.
22278         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22279         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22280         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22281         Likewise.
22282         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22283         Likewise.
22284         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22285         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22286         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22287         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22288         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22289         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22290         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22291         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22292         (gl_WCHAR_H_DEFAULTS): Likewise.
22293
22294 2009-12-31  Eric Blake  <ebb9@byu.net>
22295
22296         signal, spawn: use link warnings
22297         * lib/signal.in.h (sigset_t): Make unconditional.
22298         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22299         (sigpending, sigprocmask, sigaction): Add link warnings.
22300         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22301         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22302         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22303         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22304         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22305         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22306         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22307         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22308         (posix_spawn_file_actions_destroy)
22309         (posix_spawn_file_actions_addopen)
22310         (posix_spawn_file_actions_addclose)
22311         (posix_spawn_file_actions_adddup2): Likewise.
22312         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22313         * tests/test-signal.c (main): Enhance test.
22314
22315         spawn: improve wrapper support
22316         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22317         (gl_SPAWN_H_DEFAULTS): New defaults.
22318         * modules/spawn (Makefile.am): Substitute them.
22319         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22320         Only declare if missing or broken.
22321
22322         sys_times, sys_utsname: use include_next
22323         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22324         header.
22325         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22326         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22327         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22328         * modules/sys_times (Depends-on): Add include_next.
22329         (Makefile.am): Substitute additional values.
22330         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22331         * lib/sys_times.in.h (includes): Include native header, if
22332         available.
22333         * lib/sys_utsname.in.h (includes): Likewise.
22334         * tests/test-sys_times.c (main): Enhance test.
22335
22336         fdutimensat: revert prior patch
22337         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22338         utimens.h.
22339         Reported by Bruno Haible.
22340
22341 2009-12-30  Eric Blake  <ebb9@byu.net>
22342
22343         sys_wait: drop link-warning dependency
22344         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22345         link-warning efforts.
22346         * lib/sys_wait.in.h: Likewise.
22347
22348         fdutimensat: remove bogus dependency
22349         * modules/fdutimensat (Depends-on): Drop inline.
22350
22351         unistd: fix typo
22352         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22353
22354 2009-12-30  Bruno Haible  <bruno@clisp.org>
22355
22356         Fix compilation error with Solaris cc.
22357         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22358         * lib/unicase/u16-is-invariant.c: Likewise.
22359         * lib/unicase/u32-is-invariant.c: Likewise.
22360         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22361
22362 2009-12-30  Bruno Haible  <bruno@clisp.org>
22363
22364         Fix test crash.
22365         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22366         locales.
22367         Reported by Simon Josefsson <simon@josefsson.org>.
22368
22369 2009-12-30  Bruno Haible  <bruno@clisp.org>
22370
22371         Fix compilation error on most platforms.
22372         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22373         Reported by Simon Josefsson <simon@josefsson.org>
22374         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22375
22376 2009-12-30  Eric Blake  <ebb9@byu.net>
22377
22378         futimens, utimensat: work around ntfs-3g bug
22379         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22380         a ctime bug is present, and expand workaround to cover ntfs-3g.
22381         * lib/utimens.c (fdutimens, lutimens): Likewise.
22382         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22383         (validate_timespec): Adjust return value.
22384         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22385         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22386         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22387
22388 2009-12-29  Eric Blake  <ebb9@byu.net>
22389
22390         link-warning: make usage consistent
22391         * modules/ctype (Depends-on): Add link-warning.
22392         (Makefile.am): Update rules accordingly.
22393         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22394         * modules/locale (Depends-on, Makefile.am): Likewise.
22395         * modules/sys_file (Makefile.am): Likewise.
22396         * modules/getopt-posix (Makefile.am): Delete unused link warning
22397         efforts.
22398         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22399         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22400         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22401         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22402
22403         stdio: remove unused variables
22404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22405         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22406         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22407
22408         tests: test more substitute headers
22409         * modules/ctype-tests: New file.
22410         * modules/dirent-tests: Likewise.
22411         * modules/spawn-tests: Likewise.
22412         * modules/sys_file-tests: Likewise.
22413         * modules/sys_ioctl-tests: Likewise.
22414         * modules/sys_wait-tests: Likewise.
22415         * tests/test-ctype.c: Likewise.
22416         * tests/test-dirent.c: Likewise.
22417         * tests/test-spawn.c: Likewise.
22418         * tests/test-sys_file.c: Likewise.
22419         * tests/test-sys_ioctl.c: Likewise.
22420         * tests/test-sys_wait.c: Likewise.
22421         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22422         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22423         whether or not flock is in use.
22424
22425         tests: remove License section from module
22426         * modules/arpa_inet-tests: Remove unneeded section.
22427         * modules/byteswap-tests: Likewise.
22428         * modules/ceilf-tests: Likewise.
22429         * modules/ceill-tests: Likewise.
22430         * modules/crypto/des-tests: Likewise.
22431         * modules/crypto/gc-arcfour-tests: Likewise.
22432         * modules/crypto/gc-arctwo-tests: Likewise.
22433         * modules/crypto/gc-des-tests: Likewise.
22434         * modules/crypto/gc-hmac-md5-tests: Likewise.
22435         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22436         * modules/crypto/gc-md2-tests: Likewise.
22437         * modules/crypto/gc-md4-tests: Likewise.
22438         * modules/crypto/gc-md5-tests: Likewise.
22439         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22440         * modules/crypto/gc-rijndael-tests: Likewise.
22441         * modules/crypto/gc-sha1-tests: Likewise.
22442         * modules/crypto/gc-tests: Likewise.
22443         * modules/crypto/md2-tests: Likewise.
22444         * modules/crypto/md4-tests: Likewise.
22445         * modules/fcntl-h-tests: Likewise.
22446         * modules/floorf-tests: Likewise.
22447         * modules/floorl-tests: Likewise.
22448         * modules/frexp-nolibm-tests: Likewise.
22449         * modules/frexp-tests: Likewise.
22450         * modules/frexpl-nolibm-tests: Likewise.
22451         * modules/frexpl-tests: Likewise.
22452         * modules/getaddrinfo-tests: Likewise.
22453         * modules/inttypes-tests: Likewise.
22454         * modules/isfinite-tests: Likewise.
22455         * modules/isinf-tests: Likewise.
22456         * modules/ldexpl-tests: Likewise.
22457         * modules/locale-tests: Likewise.
22458         * modules/math-tests: Likewise.
22459         * modules/netdb-tests: Likewise.
22460         * modules/netinet_in-tests: Likewise.
22461         * modules/printf-frexp-tests: Likewise.
22462         * modules/printf-frexpl-tests: Likewise.
22463         * modules/priv-set-tests: Likewise.
22464         * modules/random_r-tests: Likewise.
22465         * modules/round-tests: Likewise.
22466         * modules/roundf-tests: Likewise.
22467         * modules/roundl-tests: Likewise.
22468         * modules/search-tests: Likewise.
22469         * modules/select-tests: Likewise.
22470         * modules/signal-tests: Likewise.
22471         * modules/stdbool-tests: Likewise.
22472         * modules/stddef-tests: Likewise.
22473         * modules/stdint-tests: Likewise.
22474         * modules/stdio-tests: Likewise.
22475         * modules/stdlib-tests: Likewise.
22476         * modules/string-tests: Likewise.
22477         * modules/strings-tests: Likewise.
22478         * modules/sys_select-tests: Likewise.
22479         * modules/sys_socket-tests: Likewise.
22480         * modules/sys_stat-tests: Likewise.
22481         * modules/sys_time-tests: Likewise.
22482         * modules/sys_utsname-tests: Likewise.
22483         * modules/sysexits-tests: Likewise.
22484         * modules/time-tests: Likewise.
22485         * modules/trunc-tests: Likewise.
22486         * modules/truncf-tests: Likewise.
22487         * modules/truncl-tests: Likewise.
22488         * modules/tsearch-tests: Likewise.
22489         * modules/unistd-tests: Likewise.
22490         * modules/wchar-tests: Likewise.
22491         * modules/wctype-tests: Likewise.
22492
22493         tests: fix license on several tests
22494         * tests/test-des.c: Update to GPLv3+.
22495         * tests/test-flock.c: Likewise.
22496         * tests/test-fsync.c: Likewise.
22497         * tests/test-futimens.h: Likewise.
22498         * tests/test-gc-arcfour.c: Likewise.
22499         * tests/test-gc-arctwo.c: Likewise.
22500         * tests/test-gc-des.c: Likewise.
22501         * tests/test-gc-hmac-md5.c: Likewise.
22502         * tests/test-gc-hmac-sha1.c: Likewise.
22503         * tests/test-gc-md2.c: Likewise.
22504         * tests/test-gc-md4.c: Likewise.
22505         * tests/test-gc-md5.c: Likewise.
22506         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22507         * tests/test-gc-rijndael.c: Likewise.
22508         * tests/test-gc-sha1.c: Likewise.
22509         * tests/test-gc.c: Likewise.
22510         * tests/test-getcwd.c: Likewise.
22511         * tests/test-link.c: Likewise.
22512         * tests/test-link.h: Likewise.
22513         * tests/test-lutimens.h: Likewise.
22514         * tests/test-md2.c: Likewise.
22515         * tests/test-md4.c: Likewise.
22516         * tests/test-mkdir.h: Likewise.
22517         * tests/test-rename.c: Likewise.
22518         * tests/test-rename.h: Likewise.
22519         * tests/test-safe-alloc.c: Likewise.
22520         * tests/test-utimens-common.h: Likewise.
22521         * tests/test-utimens.h: Likewise.
22522
22523         maint: sync license texts
22524         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22525         * doc/gpl-3.0.texi: Revert copyright year update.
22526         * doc/lgpl-3.0.texi: Likewise.
22527
22528 2009-12-29  Jim Meyering  <meyering@redhat.com>
22529
22530         update nearly all FSF copyright year lists to include 2009
22531         The files named by the following are exempted:
22532             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22533               test -f "$dst" && { echo "$dst"; continue; }
22534               test -d "$dst" || continue
22535               echo "$dst"/$(basename "$src")
22536             done > exempt
22537             git ls-files tests/unictype >> exempt
22538         In the remaining files, convert to all-interval notation if
22539         - there is already at least one year interval like 2000-2003
22540         - the file is maintained by me
22541         - the file is in lib/uni*/, where that style already prevails
22542         Otherwise, use update-copyright's default.
22543
22544 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22545         and Eric Blake  <ebb9@byu.net>
22546
22547         tests: don't require debug system() to pass
22548         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22549         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22550         * tests/test-unlink.h (test_unlink_func): Likewise.
22551         * tests/test-fstatat.c (main): ...into callers.
22552         * tests/test-lstat.c (main): Likewise.
22553         * tests/test-rmdir.c (main): Likewise.
22554         * tests/test-unlink.c (main): Likewise.
22555         * tests/test-unlinkat.c (main): Likewise.
22556         * tests/test-areadlink-with-size.c (main): Don't require a
22557         debug-only system call to pass, aiding cross-testing to mingw.
22558         * tests/test-areadlink.c (main): Likewise.
22559         * tests/test-areadlinkat-with-size.c (main): Likewise.
22560         * tests/test-areadlinkat.c (main): Likewise.
22561         * tests/test-canonicalize-lgpl.c (main): Likewise.
22562         * tests/test-canonicalize.c (main): Likewise.
22563         * tests/test-chown.c (main): Likewise.
22564         * tests/test-fchownat.c (main): Likewise.
22565         * tests/test-lchown.c (main): Likewise.
22566         * tests/test-fdutimensat.c (main): Likewise.
22567         * tests/test-futimens.c (main): Likewise.
22568         * tests/test-link.c (main): Likewise.
22569         * tests/test-linkat.c (main): Likewise.
22570         * tests/test-mkdir.c (main): Likewise.
22571         * tests/test-mkdirat.c (main): Likewise.
22572         * tests/test-mkfifo.c (main): Likewise.
22573         * tests/test-mkfifoat.c (main): Likewise.
22574         * tests/test-mknod.c (main): Likewise.
22575         * tests/test-readlink.c (main): Likewise.
22576         * tests/test-remove.c (main): Likewise.
22577         * tests/test-rename.c (main): Likewise.
22578         * tests/test-renameat.c (main): Likewise.
22579         * tests/test-symlink.c (main): Likewise.
22580         * tests/test-symlinkat.c (main): Likewise.
22581         * tests/test-utimens.c (main): Likewise.
22582         * tests/test-utimensat.c (main): Likewise.
22583
22584 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22585
22586         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22587         on $(UNUSED_PARAMETER_H) to avoid build failure.
22588
22589 2009-12-28  Jim Meyering  <meyering@redhat.com>
22590
22591         update-copyright: you may specify a max. line length other than 72
22592         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22593
22594         maint: use consistent FSF copyright line syntax
22595         * lib/posixtm.c: Add missing comma in FSF copyright line.
22596         * lib/posixtm.h: Likewise.
22597         * lib/getugroups.c: Add missing ", Inc.".
22598
22599         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22600         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22601         FSF copyright line.  Remove trailing blanks.
22602
22603 2009-12-28  Eric Blake  <ebb9@byu.net>
22604
22605         test-dup2: reduce dependencies
22606         * modules/cloexec (Configure.ac): Set witness.
22607         * modules/dup2-tests (Depends-on): Drop cloexec.
22608         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22609         not present.
22610         Suggested by Bruno Haible.
22611
22612 2009-12-26  Bruno Haible  <bruno@clisp.org>
22613
22614         Remove an unneeded dependency.
22615         * modules/fseterr (Depends-on): Remove dup2.
22616
22617 2009-12-26  Eric Blake  <ebb9@byu.net>
22618
22619         tests: use macros.h in more places
22620         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22621         (ASSERT_STREAM): Provide default of stderr.
22622         * tests/test-dirent-safer.c: Include macros.h, using alternate
22623         stream for assertions.
22624         * tests/test-dup-safer.c: Likewise.
22625         * tests/test-freopen-safer.c: Likewise.
22626         * tests/test-getopt.c: Likewise.
22627         * tests/test-openat-safer.c: Likewise.
22628         * tests/test-pipe.c: Likewise.
22629         * tests/test-popen-safer.c: Likewise.
22630         * modules/dirent-safer-tests (Files): Include macros.h.
22631         * modules/unistd-safer-tests (Files): Likewise.
22632         * modules/freopen-safer-tests (Files): Likewise.
22633         * modules/getopt-posix-tests (Files): Likewise.
22634         * modules/openat-safer-tests (Files): Likewise.
22635         * modules/pipe-tests (Files): Likewise.
22636
22637 2009-12-26  Bruno Haible  <bruno@clisp.org>
22638
22639         javacomp: Portability fix.
22640         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22641         that it also works on Solaris.
22642
22643 2009-12-26  Bruno Haible  <bruno@clisp.org>
22644
22645         localename: Fix storage allocation of gl_locale_name_thread's result.
22646         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22647         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22648         all platforms that have 'uselocale'.
22649         (gl_locale_name_thread_unsafe): New function, extracted from
22650         gl_locale_name_thread.
22651         (gl_locale_name_thread): Call struniq on all platforms that have
22652         'uselocale'.
22653         * tests/test-localename.c (test_locale_name_thread): Check that the
22654         resulting strings are permanently allocated.
22655         * modules/localename-tests (Depends-on): Add strdup.
22656
22657 2009-12-26  Bruno Haible  <bruno@clisp.org>
22658
22659         * tests/test-localename.c (categories): Fill in the strings.
22660
22661 2009-12-26  Jim Meyering  <meyering@redhat.com>
22662
22663         isdir: complete the removal of m4/isdir.m4
22664         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22665
22666         isdir: clean up, since at least grep still uses it
22667         * lib/isdir.c: Include "isdir.h".
22668         (S_ISDIR): Remove now-unneeded definition.
22669         * modules/isdir (Files): Add lib/isdir.h.
22670         * lib/isdir.h: New file, with declaration.
22671         * m4/isdir.m4: Remove file -- unneeded.
22672
22673 2009-12-25  Bruno Haible  <bruno@clisp.org>
22674
22675         selinux-h: Make generated .h files standalone.
22676         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22677         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22678         * lib/se-selinux.in.h: Likewise.
22679         * modules/selinux-h (Depends-on): Add unused-parameter.
22680         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22681         selinux/selinux.h and selinux/context.h.
22682         Suggested by Eric Blake.
22683
22684 2009-12-25  Bruno Haible  <bruno@clisp.org>
22685
22686         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22687         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22688         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22689         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22690         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22691
22692 2009-12-24  Bruno Haible  <bruno@clisp.org>
22693
22694         openat: Fix warning.
22695         * lib/openat-proc.c: Include <unistd.h>.
22696
22697 2009-12-24  Bruno Haible  <bruno@clisp.org>
22698
22699         New module 'unused-parameter'.
22700         * build-aux/unused-parameter.h: New file, extracted from earlier
22701         gnulib-common.m4.
22702         * modules/unused-parameter: New file.
22703         * lib/unistr.h: Include unused-parameter.h.
22704         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22705         _GL_UNUSED.
22706         * modules/unistr/base (Depends-on): Add unused-parameter.
22707
22708 2009-12-24  Bruno Haible  <bruno@clisp.org>
22709
22710         Add missing dependencies to 'extensions' module.
22711         * m4/extensions.m4: Add comment.
22712         * modules/accept4 (Depends-on): Add extensions.
22713         * modules/dup3 (Depends-on): Likewise.
22714         * modules/fcntl (Depends-on): Likewise.
22715         * modules/futimens (Depends-on): Likewise.
22716         * modules/mknod (Depends-on): Likewise.
22717         * modules/pipe2 (Depends-on): Likewise.
22718         * modules/stat-time (Depends-on): Likewise.
22719         * modules/strcasestr-simple (Depends-on): Likewise.
22720         * modules/strsignal (Depends-on): Likewise.
22721         * modules/utimensat (Depends-on): Likewise.
22722         * modules/localcharset (Depends-on): Likewise. Needed because of
22723         gl_FCNTL_O_FLAGS.
22724         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22725         AC_TYPE_MBSTATE_T.
22726         * modules/wcsnrtombs (Depends-on): Likewise.
22727         * modules/wcsrtombs (Depends-on): Likewise.
22728
22729 2009-12-24  Bruno Haible  <bruno@clisp.org>
22730
22731         binary-io: Avoid gcc warning due to SET_BINARY.
22732         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22733         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22734
22735 2009-12-24  Bruno Haible  <bruno@clisp.org>
22736
22737         Avoid future namespace pollution on glibc systems.
22738         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22739         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22740         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22741         glibc systems.
22742
22743 2009-12-24  Bruno Haible  <bruno@clisp.org>
22744
22745         Refactor common macros used in tests.
22746         * tests/macros.h: New file.
22747         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22748         and/or <stdlib.h>, if appropriate.
22749         (ASSERT, SIZEOF): Remove macros.
22750         * tests/test-areadlink-with-size.c: Likewise.
22751         * tests/test-areadlinkat.c: Likewise.
22752         * tests/test-areadlinkat-with-size.c: Likewise.
22753         * tests/test-argmatch.c: Likewise.
22754         * tests/test-argv-iter.c: Likewise.
22755         * tests/test-array-mergesort.c: Likewise.
22756         * tests/test-array_list.c: Likewise.
22757         * tests/test-array_oset.c: Likewise.
22758         * tests/test-avltree_list.c: Likewise.
22759         * tests/test-avltree_oset.c: Likewise.
22760         * tests/test-avltreehash_list.c: Likewise.
22761         * tests/test-base64.c: Likewise.
22762         * tests/test-binary-io.c: Likewise.
22763         * tests/test-bitrotate.c: Likewise.
22764         * tests/test-btowc.c: Likewise.
22765         * tests/test-byteswap.c: Likewise.
22766         * tests/test-c-ctype.c: Likewise.
22767         * tests/test-c-stack.c: Likewise.
22768         * tests/test-c-strcasecmp.c: Likewise.
22769         * tests/test-c-strcasestr.c: Likewise.
22770         * tests/test-c-strncasecmp.c: Likewise.
22771         * tests/test-c-strstr.c: Likewise.
22772         * tests/test-canonicalize-lgpl.c: Likewise.
22773         * tests/test-canonicalize.c: Likewise.
22774         * tests/test-carray_list.c: Likewise.
22775         * tests/test-ceilf1.c: Likewise.
22776         * tests/test-ceilf2.c: Likewise.
22777         * tests/test-ceill.c: Likewise.
22778         * tests/test-chown.c: Likewise.
22779         * tests/test-cloexec.c: Likewise.
22780         * tests/test-copy-acl.c: Likewise.
22781         * tests/test-copy-file.c: Likewise.
22782         * tests/test-count-one-bits.c: Likewise.
22783         * tests/test-dprintf-posix.c: Likewise.
22784         * tests/test-dup2.c: Likewise.
22785         * tests/test-dup3.c: Likewise.
22786         * tests/test-duplocale.c: Likewise.
22787         * tests/test-fbufmode.c: Likewise.
22788         * tests/test-fchdir.c: Likewise.
22789         * tests/test-fchownat.c: Likewise.
22790         * tests/test-fcntl-safer.c: Likewise.
22791         * tests/test-fcntl.c: Likewise.
22792         * tests/test-fdopendir.c: Likewise.
22793         * tests/test-fdutimensat.c: Likewise.
22794         * tests/test-fflush2.c: Likewise.
22795         * tests/test-file-has-acl.c: Likewise.
22796         * tests/test-filevercmp.c: Likewise.
22797         * tests/test-flock.c: Likewise.
22798         * tests/test-floorf1.c: Likewise.
22799         * tests/test-floorf2.c: Likewise.
22800         * tests/test-floorl.c: Likewise.
22801         * tests/test-fnmatch.c: Likewise.
22802         * tests/test-fopen.h: Likewise.
22803         * tests/test-fpending.c: Likewise.
22804         * tests/test-fprintf-posix.c: Likewise.
22805         * tests/test-fpurge.c: Likewise.
22806         * tests/test-freadable.c: Likewise.
22807         * tests/test-freadahead.c: Likewise.
22808         * tests/test-freading.c: Likewise.
22809         * tests/test-freadptr.c: Likewise.
22810         * tests/test-freadptr2.c: Likewise.
22811         * tests/test-freadseek.c: Likewise.
22812         * tests/test-freopen.c: Likewise.
22813         * tests/test-frexp.c: Likewise.
22814         * tests/test-frexpl.c: Likewise.
22815         * tests/test-fseek.c: Likewise.
22816         * tests/test-fseeko.c: Likewise.
22817         * tests/test-fstatat.c: Likewise.
22818         * tests/test-fstrcmp.c: Likewise.
22819         * tests/test-fsync.c: Likewise.
22820         * tests/test-ftell.c: Likewise.
22821         * tests/test-ftello.c: Likewise.
22822         * tests/test-func.c: Likewise.
22823         * tests/test-futimens.c: Likewise.
22824         * tests/test-fwritable.c: Likewise.
22825         * tests/test-fwriting.c: Likewise.
22826         * tests/test-getcwd.c: Likewise.
22827         * tests/test-getdate.c: Likewise.
22828         * tests/test-getdelim.c: Likewise.
22829         * tests/test-getdtablesize.c: Likewise.
22830         * tests/test-getgroups.c: Likewise.
22831         * tests/test-getline.c: Likewise.
22832         * tests/test-getndelim2.c: Likewise.
22833         * tests/test-glob.c: Likewise.
22834         * tests/test-hash.c: Likewise.
22835         * tests/test-i-ring.c: Likewise.
22836         * tests/test-iconv-utf.c: Likewise.
22837         * tests/test-iconv.c: Likewise.
22838         * tests/test-idpriv-drop.c: Likewise.
22839         * tests/test-idpriv-droptemp.c: Likewise.
22840         * tests/test-inet_ntop.c: Likewise.
22841         * tests/test-inet_pton.c: Likewise.
22842         * tests/test-isblank.c: Likewise.
22843         * tests/test-isfinite.c: Likewise.
22844         * tests/test-isinf.c: Likewise.
22845         * tests/test-isnan.c: Likewise.
22846         * tests/test-isnand.h: Likewise.
22847         * tests/test-isnanf.h: Likewise.
22848         * tests/test-isnanl.h: Likewise.
22849         * tests/test-lchown.c: Likewise.
22850         * tests/test-ldexpl.c: Likewise.
22851         * tests/test-link.c: Likewise.
22852         * tests/test-linkat.c: Likewise.
22853         * tests/test-linked_list.c: Likewise.
22854         * tests/test-linkedhash_list.c: Likewise.
22855         * tests/test-localename.c: Likewise.
22856         * tests/test-lseek.c: Likewise.
22857         * tests/test-lstat.c: Likewise.
22858         * tests/test-mbmemcasecmp.c: Likewise.
22859         * tests/test-mbmemcasecoll.c: Likewise.
22860         * tests/test-mbrtowc.c: Likewise.
22861         * tests/test-mbscasecmp.c: Likewise.
22862         * tests/test-mbscasestr1.c: Likewise.
22863         * tests/test-mbscasestr2.c: Likewise.
22864         * tests/test-mbscasestr3.c: Likewise.
22865         * tests/test-mbscasestr4.c: Likewise.
22866         * tests/test-mbschr.c: Likewise.
22867         * tests/test-mbscspn.c: Likewise.
22868         * tests/test-mbsinit.c: Likewise.
22869         * tests/test-mbsncasecmp.c: Likewise.
22870         * tests/test-mbsnrtowcs.c: Likewise.
22871         * tests/test-mbspbrk.c: Likewise.
22872         * tests/test-mbspcasecmp.c: Likewise.
22873         * tests/test-mbsrchr.c: Likewise.
22874         * tests/test-mbsrtowcs.c: Likewise.
22875         * tests/test-mbsspn.c: Likewise.
22876         * tests/test-mbsstr1.c: Likewise.
22877         * tests/test-mbsstr2.c: Likewise.
22878         * tests/test-mbsstr3.c: Likewise.
22879         * tests/test-memchr.c: Likewise.
22880         * tests/test-memchr2.c: Likewise.
22881         * tests/test-memcmp.c: Likewise.
22882         * tests/test-memmem.c: Likewise.
22883         * tests/test-memrchr.c: Likewise.
22884         * tests/test-mkdir.c: Likewise.
22885         * tests/test-mkdirat.c: Likewise.
22886         * tests/test-mkfifo.c: Likewise.
22887         * tests/test-mkfifoat.c: Likewise.
22888         * tests/test-mknod.c: Likewise.
22889         * tests/test-nanosleep.c: Likewise.
22890         * tests/test-nl_langinfo.c: Likewise.
22891         * tests/test-obstack-printf.c: Likewise.
22892         * tests/test-open.c: Likewise.
22893         * tests/test-openat.c: Likewise.
22894         * tests/test-pipe-filter-gi1.c: Likewise.
22895         * tests/test-pipe-filter-gi2-main.c: Likewise.
22896         * tests/test-pipe-filter-ii1.c: Likewise.
22897         * tests/test-pipe-filter-ii2-main.c: Likewise.
22898         * tests/test-pipe2.c: Likewise.
22899         * tests/test-popen.h: Likewise.
22900         * tests/test-posixtm.c: Likewise.
22901         * tests/test-pread.c: Likewise.
22902         * tests/test-printf-frexp.c: Likewise.
22903         * tests/test-printf-frexpl.c: Likewise.
22904         * tests/test-printf-posix.c: Likewise.
22905         * tests/test-priv-set.c: Likewise.
22906         * tests/test-quotearg.c: Likewise.
22907         * tests/test-random_r.c: Likewise.
22908         * tests/test-rawmemchr.c: Likewise.
22909         * tests/test-rbtree_list.c: Likewise.
22910         * tests/test-rbtree_oset.c: Likewise.
22911         * tests/test-rbtreehash_list.c: Likewise.
22912         * tests/test-readlink.c: Likewise.
22913         * tests/test-remove.c: Likewise.
22914         * tests/test-rename.c: Likewise.
22915         * tests/test-renameat.c: Likewise.
22916         * tests/test-rmdir.c: Likewise.
22917         * tests/test-round1.c: Likewise.
22918         * tests/test-roundf1.c: Likewise.
22919         * tests/test-roundl.c: Likewise.
22920         * tests/test-safe-alloc.c: Likewise.
22921         * tests/test-sameacls.c: Likewise.
22922         * tests/test-set-mode-acl.c: Likewise.
22923         * tests/test-setenv.c: Likewise.
22924         * tests/test-sigaction.c: Likewise.
22925         * tests/test-signbit.c: Likewise.
22926         * tests/test-sleep.c: Likewise.
22927         * tests/test-snprintf-posix.c: Likewise.
22928         * tests/test-snprintf.c: Likewise.
22929         * tests/test-sprintf-posix.c: Likewise.
22930         * tests/test-stat-time.c: Likewise.
22931         * tests/test-stat.c: Likewise.
22932         * tests/test-strcasestr.c: Likewise.
22933         * tests/test-strchrnul.c: Likewise.
22934         * tests/test-strerror.c: Likewise.
22935         * tests/test-striconv.c: Likewise.
22936         * tests/test-striconveh.c: Likewise.
22937         * tests/test-striconveha.c: Likewise.
22938         * tests/test-strsignal.c: Likewise.
22939         * tests/test-strstr.c: Likewise.
22940         * tests/test-strtod.c: Likewise.
22941         * tests/test-strverscmp.c: Likewise.
22942         * tests/test-symlink.c: Likewise.
22943         * tests/test-symlinkat.c: Likewise.
22944         * tests/test-trunc1.c: Likewise.
22945         * tests/test-trunc2.c: Likewise.
22946         * tests/test-truncf1.c: Likewise.
22947         * tests/test-truncf2.c: Likewise.
22948         * tests/test-truncl.c: Likewise.
22949         * tests/test-uname.c: Likewise.
22950         * tests/test-unlink.c: Likewise.
22951         * tests/test-unlinkat.c: Likewise.
22952         * tests/test-unsetenv.c: Likewise.
22953         * tests/test-usleep.c: Likewise.
22954         * tests/test-utimens.c: Likewise.
22955         * tests/test-utimensat.c: Likewise.
22956         * tests/test-vasnprintf-posix.c: Likewise.
22957         * tests/test-vasnprintf-posix2.c: Likewise.
22958         * tests/test-vasnprintf.c: Likewise.
22959         * tests/test-vasprintf-posix.c: Likewise.
22960         * tests/test-vasprintf.c: Likewise.
22961         * tests/test-vdprintf-posix.c: Likewise.
22962         * tests/test-vfprintf-posix.c: Likewise.
22963         * tests/test-vprintf-posix.c: Likewise.
22964         * tests/test-vsnprintf-posix.c: Likewise.
22965         * tests/test-vsnprintf.c: Likewise.
22966         * tests/test-vsprintf-posix.c: Likewise.
22967         * tests/test-wcrtomb.c: Likewise.
22968         * tests/test-wcsnrtombs.c: Likewise.
22969         * tests/test-wcsrtombs.c: Likewise.
22970         * tests/test-wctype.c: Likewise.
22971         * tests/test-wcwidth.c: Likewise.
22972         * tests/test-xfprintf-posix.c: Likewise.
22973         * tests/test-xmemdup0.c: Likewise.
22974         * tests/test-xprintf-posix.c: Likewise.
22975         * tests/test-xvasprintf.c: Likewise.
22976         * tests/unicase/test-locale-language.c: Likewise.
22977         * tests/unicase/test-mapping-part1.h: Likewise.
22978         * tests/unicase/test-predicate-part1.h: Likewise.
22979         * tests/unicase/test-u8-casecmp.c: Likewise.
22980         * tests/unicase/test-u8-casecoll.c: Likewise.
22981         * tests/unicase/test-u8-casefold.c: Likewise.
22982         * tests/unicase/test-u8-is-cased.c: Likewise.
22983         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22984         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22985         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22986         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22987         * tests/unicase/test-u8-tolower.c: Likewise.
22988         * tests/unicase/test-u8-totitle.c: Likewise.
22989         * tests/unicase/test-u8-toupper.c: Likewise.
22990         * tests/unicase/test-u16-casecmp.c: Likewise.
22991         * tests/unicase/test-u16-casecoll.c: Likewise.
22992         * tests/unicase/test-u16-casefold.c: Likewise.
22993         * tests/unicase/test-u16-is-cased.c: Likewise.
22994         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22995         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22996         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22997         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22998         * tests/unicase/test-u16-tolower.c: Likewise.
22999         * tests/unicase/test-u16-totitle.c: Likewise.
23000         * tests/unicase/test-u16-toupper.c: Likewise.
23001         * tests/unicase/test-u32-casecmp.c: Likewise.
23002         * tests/unicase/test-u32-casecoll.c: Likewise.
23003         * tests/unicase/test-u32-casefold.c: Likewise.
23004         * tests/unicase/test-u32-is-cased.c: Likewise.
23005         * tests/unicase/test-u32-is-casefolded.c: Likewise.
23006         * tests/unicase/test-u32-is-lowercase.c: Likewise.
23007         * tests/unicase/test-u32-is-titlecase.c: Likewise.
23008         * tests/unicase/test-u32-is-uppercase.c: Likewise.
23009         * tests/unicase/test-u32-tolower.c: Likewise.
23010         * tests/unicase/test-u32-totitle.c: Likewise.
23011         * tests/unicase/test-u32-toupper.c: Likewise.
23012         * tests/unicase/test-ulc-casecmp.c: Likewise.
23013         * tests/unicase/test-ulc-casecoll.c: Likewise.
23014         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23015         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
23016         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23017         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23018         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
23019         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
23020         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23021         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23022         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23023         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
23024         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23025         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23026         * tests/unictype/test-bidi_byname.c: Likewise.
23027         * tests/unictype/test-bidi_name.c: Likewise.
23028         * tests/unictype/test-bidi_of.c: Likewise.
23029         * tests/unictype/test-bidi_test.c: Likewise.
23030         * tests/unictype/test-block_list.c: Likewise.
23031         * tests/unictype/test-block_of.c: Likewise.
23032         * tests/unictype/test-block_test.c: Likewise.
23033         * tests/unictype/test-categ_and.c: Likewise.
23034         * tests/unictype/test-categ_and_not.c: Likewise.
23035         * tests/unictype/test-categ_byname.c: Likewise.
23036         * tests/unictype/test-categ_name.c: Likewise.
23037         * tests/unictype/test-categ_none.c: Likewise.
23038         * tests/unictype/test-categ_of.c: Likewise.
23039         * tests/unictype/test-categ_or.c: Likewise.
23040         * tests/unictype/test-categ_test_withtable.c: Likewise.
23041         * tests/unictype/test-combining.c: Likewise.
23042         * tests/unictype/test-decdigit.c: Likewise.
23043         * tests/unictype/test-digit.c: Likewise.
23044         * tests/unictype/test-mirror.c: Likewise.
23045         * tests/unictype/test-numeric.c: Likewise.
23046         * tests/unictype/test-pr_byname.c: Likewise.
23047         * tests/unictype/test-pr_test.c: Likewise.
23048         * tests/unictype/test-predicate-part1.h: Likewise.
23049         * tests/unictype/test-scripts.c: Likewise.
23050         * tests/unictype/test-sy_c_ident.c: Likewise.
23051         * tests/unictype/test-sy_java_ident.c: Likewise.
23052         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
23053         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
23054         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
23055         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
23056         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
23057         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
23058         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
23059         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
23060         * tests/uninorm/test-canonical-decomposition.c: Likewise.
23061         * tests/uninorm/test-compat-decomposition.c: Likewise.
23062         * tests/uninorm/test-composition.c: Likewise.
23063         * tests/uninorm/test-decomposing-form.c: Likewise.
23064         * tests/uninorm/test-decomposition.c: Likewise.
23065         * tests/uninorm/test-u8-nfc.c: Likewise.
23066         * tests/uninorm/test-u8-nfd.c: Likewise.
23067         * tests/uninorm/test-u8-nfkc.c: Likewise.
23068         * tests/uninorm/test-u8-nfkd.c: Likewise.
23069         * tests/uninorm/test-u8-normcmp.c: Likewise.
23070         * tests/uninorm/test-u8-normcoll.c: Likewise.
23071         * tests/uninorm/test-u16-nfc.c: Likewise.
23072         * tests/uninorm/test-u16-nfd.c: Likewise.
23073         * tests/uninorm/test-u16-nfkc.c: Likewise.
23074         * tests/uninorm/test-u16-nfkd.c: Likewise.
23075         * tests/uninorm/test-u16-normcmp.c: Likewise.
23076         * tests/uninorm/test-u16-normcoll.c: Likewise.
23077         * tests/uninorm/test-u32-nfc.c: Likewise.
23078         * tests/uninorm/test-u32-nfd.c: Likewise.
23079         * tests/uninorm/test-u32-nfkc.c: Likewise.
23080         * tests/uninorm/test-u32-nfkd.c: Likewise.
23081         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23082         * tests/uninorm/test-u32-normcmp.c: Likewise.
23083         * tests/uninorm/test-u32-normcoll.c: Likewise.
23084         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
23085         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
23086         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
23087         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
23088         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
23089         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
23090         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23091         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23092         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
23093         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
23094         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
23095         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
23096         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
23097         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23098         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23099         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
23100         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
23101         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
23102         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
23103         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
23104         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23105         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23106         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
23107         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
23108         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
23109         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
23110         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
23111         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23112         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23113         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
23114         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
23115         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
23116         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
23117         * tests/uniwidth/test-u8-strwidth.c: Likewise.
23118         * tests/uniwidth/test-u8-width.c: Likewise.
23119         * tests/uniwidth/test-u16-strwidth.c: Likewise.
23120         * tests/uniwidth/test-u16-width.c: Likewise.
23121         * tests/uniwidth/test-u32-strwidth.c: Likewise.
23122         * tests/uniwidth/test-u32-width.c: Likewise.
23123         * tests/uniwidth/test-uc_width.c: Likewise.
23124         * tests/uniwidth/test-uc_width2.c: Likewise.
23125         * modules/acl-tests (Files): Add tests/macros.h.
23126         * modules/areadlink-tests (Files): Likewise.
23127         * modules/areadlink-with-size-tests (Files): Likewise.
23128         * modules/areadlinkat-tests (Files): Likewise.
23129         * modules/areadlinkat-with-size-tests (Files): Likewise.
23130         * modules/argmatch-tests (Files): Likewise.
23131         * modules/argv-iter-tests (Files): Likewise.
23132         * modules/array-list-tests (Files): Likewise.
23133         * modules/array-mergesort-tests (Files): Likewise.
23134         * modules/array-oset-tests (Files): Likewise.
23135         * modules/avltree-list-tests (Files): Likewise.
23136         * modules/avltree-oset-tests (Files): Likewise.
23137         * modules/avltreehash-list-tests (Files): Likewise.
23138         * modules/base64-tests (Files): Likewise.
23139         * modules/binary-io-tests (Files): Likewise.
23140         * modules/bitrotate-tests (Files): Likewise.
23141         * modules/btowc-tests (Files): Likewise.
23142         * modules/byteswap-tests (Files): Likewise.
23143         * modules/c-ctype-tests (Files): Likewise.
23144         * modules/c-stack-tests (Files): Likewise.
23145         * modules/c-strcase-tests (Files): Likewise.
23146         * modules/c-strcasestr-tests (Files): Likewise.
23147         * modules/c-strstr-tests (Files): Likewise.
23148         * modules/canonicalize-lgpl-tests (Files): Likewise.
23149         * modules/canonicalize-tests (Files): Likewise.
23150         * modules/carray-list-tests (Files): Likewise.
23151         * modules/ceilf-tests (Files): Likewise.
23152         * modules/ceill-tests (Files): Likewise.
23153         * modules/chown-tests (Files): Likewise.
23154         * modules/cloexec-tests (Files): Likewise.
23155         * modules/copy-file-tests (Files): Likewise.
23156         * modules/count-one-bits-tests (Files): Likewise.
23157         * modules/dprintf-posix-tests (Files): Likewise.
23158         * modules/dup2-tests (Files): Likewise.
23159         * modules/dup3-tests (Files): Likewise.
23160         * modules/duplocale-tests (Files): Likewise.
23161         * modules/fbufmode-tests (Files): Likewise.
23162         * modules/fchdir-tests (Files): Likewise.
23163         * modules/fcntl-safer-tests (Files): Likewise.
23164         * modules/fcntl-tests (Files): Likewise.
23165         * modules/fdopendir-tests (Files): Likewise.
23166         * modules/fdutimensat-tests (Files): Likewise.
23167         * modules/fflush-tests (Files): Likewise.
23168         * modules/filevercmp-tests (Files): Likewise.
23169         * modules/flock-tests (Files): Likewise.
23170         * modules/floorf-tests (Files): Likewise.
23171         * modules/floorl-tests (Files): Likewise.
23172         * modules/fnmatch-tests (Files): Likewise.
23173         * modules/fopen-safer-tests (Files): Likewise.
23174         * modules/fopen-tests (Files): Likewise.
23175         * modules/fpending-tests (Files): Likewise.
23176         * modules/fprintf-posix-tests (Files): Likewise.
23177         * modules/fpurge-tests (Files): Likewise.
23178         * modules/freadable-tests (Files): Likewise.
23179         * modules/freadahead-tests (Files): Likewise.
23180         * modules/freading-tests (Files): Likewise.
23181         * modules/freadptr-tests (Files): Likewise.
23182         * modules/freadseek-tests (Files): Likewise.
23183         * modules/freopen-tests (Files): Likewise.
23184         * modules/frexp-nolibm-tests (Files): Likewise.
23185         * modules/frexp-tests (Files): Likewise.
23186         * modules/frexpl-nolibm-tests (Files): Likewise.
23187         * modules/frexpl-tests (Files): Likewise.
23188         * modules/fseek-tests (Files): Likewise.
23189         * modules/fseeko-tests (Files): Likewise.
23190         * modules/fstrcmp-tests (Files): Likewise.
23191         * modules/fsync-tests (Files): Likewise.
23192         * modules/ftell-tests (Files): Likewise.
23193         * modules/ftello-tests (Files): Likewise.
23194         * modules/func-tests (Files): Likewise.
23195         * modules/futimens-tests (Files): Likewise.
23196         * modules/fwritable-tests (Files): Likewise.
23197         * modules/fwriting-tests (Files): Likewise.
23198         * modules/getcwd-tests (Files): Likewise.
23199         * modules/getdate-tests (Files): Likewise.
23200         * modules/getdelim-tests (Files): Likewise.
23201         * modules/getdtablesize-tests (Files): Likewise.
23202         * modules/getgroups-tests (Files): Likewise.
23203         * modules/getline-tests (Files): Likewise.
23204         * modules/getndelim2-tests (Files): Likewise.
23205         * modules/glob-tests (Files): Likewise.
23206         * modules/hash-tests (Files): Likewise.
23207         * modules/i-ring-tests (Files): Likewise.
23208         * modules/iconv-tests (Files): Likewise.
23209         * modules/iconv_open-utf-tests (Files): Likewise.
23210         * modules/idpriv-drop-tests (Files): Likewise.
23211         * modules/idpriv-droptemp-tests (Files): Likewise.
23212         * modules/inet_ntop-tests (Files): Likewise.
23213         * modules/inet_pton-tests (Files): Likewise.
23214         * modules/isblank-tests (Files): Likewise.
23215         * modules/isfinite-tests (Files): Likewise.
23216         * modules/isinf-tests (Files): Likewise.
23217         * modules/isnan-tests (Files): Likewise.
23218         * modules/isnand-nolibm-tests (Files): Likewise.
23219         * modules/isnand-tests (Files): Likewise.
23220         * modules/isnanf-nolibm-tests (Files): Likewise.
23221         * modules/isnanf-tests (Files): Likewise.
23222         * modules/isnanl-nolibm-tests (Files): Likewise.
23223         * modules/isnanl-tests (Files): Likewise.
23224         * modules/lchown-tests (Files): Likewise.
23225         * modules/ldexpl-tests (Files): Likewise.
23226         * modules/link-tests (Files): Likewise.
23227         * modules/linkat-tests (Files): Likewise.
23228         * modules/linked-list-tests (Files): Likewise.
23229         * modules/linkedhash-list-tests (Files): Likewise.
23230         * modules/localename-tests (Files): Likewise.
23231         * modules/lseek-tests (Files): Likewise.
23232         * modules/lstat-tests (Files): Likewise.
23233         * modules/mbmemcasecmp-tests (Files): Likewise.
23234         * modules/mbmemcasecoll-tests (Files): Likewise.
23235         * modules/mbrtowc-tests (Files): Likewise.
23236         * modules/mbscasecmp-tests (Files): Likewise.
23237         * modules/mbscasestr-tests (Files): Likewise.
23238         * modules/mbschr-tests (Files): Likewise.
23239         * modules/mbscspn-tests (Files): Likewise.
23240         * modules/mbsinit-tests (Files): Likewise.
23241         * modules/mbsncasecmp-tests (Files): Likewise.
23242         * modules/mbsnrtowcs-tests (Files): Likewise.
23243         * modules/mbspbrk-tests (Files): Likewise.
23244         * modules/mbspcasecmp-tests (Files): Likewise.
23245         * modules/mbsrchr-tests (Files): Likewise.
23246         * modules/mbsrtowcs-tests (Files): Likewise.
23247         * modules/mbsspn-tests (Files): Likewise.
23248         * modules/mbsstr-tests (Files): Likewise.
23249         * modules/memchr-tests (Files): Likewise.
23250         * modules/memchr2-tests (Files): Likewise.
23251         * modules/memcmp-tests (Files): Likewise.
23252         * modules/memmem-tests (Files): Likewise.
23253         * modules/memrchr-tests (Files): Likewise.
23254         * modules/mkdir-tests (Files): Likewise.
23255         * modules/mkfifo-tests (Files): Likewise.
23256         * modules/mkfifoat-tests (Files): Likewise.
23257         * modules/mknod-tests (Files): Likewise.
23258         * modules/nanosleep-tests (Files): Likewise.
23259         * modules/nl_langinfo-tests (Files): Likewise.
23260         * modules/obstack-printf-tests (Files): Likewise.
23261         * modules/open-tests (Files): Likewise.
23262         * modules/openat-tests (Files): Likewise.
23263         * modules/pipe-filter-gi-tests (Files): Likewise.
23264         * modules/pipe-filter-ii-tests (Files): Likewise.
23265         * modules/pipe2-tests (Files): Likewise.
23266         * modules/popen-safer-tests (Files): Likewise.
23267         * modules/popen-tests (Files): Likewise.
23268         * modules/posixtm-tests (Files): Likewise.
23269         * modules/pread-tests (Files): Likewise.
23270         * modules/printf-frexp-tests (Files): Likewise.
23271         * modules/printf-frexpl-tests (Files): Likewise.
23272         * modules/printf-posix-tests (Files): Likewise.
23273         * modules/priv-set-tests (Files): Likewise.
23274         * modules/quotearg-tests (Files): Likewise.
23275         * modules/random_r-tests (Files): Likewise.
23276         * modules/rawmemchr-tests (Files): Likewise.
23277         * modules/rbtree-list-tests (Files): Likewise.
23278         * modules/rbtree-oset-tests (Files): Likewise.
23279         * modules/rbtreehash-list-tests (Files): Likewise.
23280         * modules/readlink-tests (Files): Likewise.
23281         * modules/remove-tests (Files): Likewise.
23282         * modules/rename-tests (Files): Likewise.
23283         * modules/renameat-tests (Files): Likewise.
23284         * modules/rmdir-tests (Files): Likewise.
23285         * modules/round-tests (Files): Likewise.
23286         * modules/roundf-tests (Files): Likewise.
23287         * modules/roundl-tests (Files): Likewise.
23288         * modules/safe-alloc-tests (Files): Likewise.
23289         * modules/setenv-tests (Files): Likewise.
23290         * modules/sigaction-tests (Files): Likewise.
23291         * modules/signbit-tests (Files): Likewise.
23292         * modules/sleep-tests (Files): Likewise.
23293         * modules/snprintf-posix-tests (Files): Likewise.
23294         * modules/snprintf-tests (Files): Likewise.
23295         * modules/sprintf-posix-tests (Files): Likewise.
23296         * modules/stat-tests (Files): Likewise.
23297         * modules/stat-time-tests (Files): Likewise.
23298         * modules/strcasestr-tests (Files): Likewise.
23299         * modules/strchrnul-tests (Files): Likewise.
23300         * modules/strerror-tests (Files): Likewise.
23301         * modules/striconv-tests (Files): Likewise.
23302         * modules/striconveh-tests (Files): Likewise.
23303         * modules/striconveha-tests (Files): Likewise.
23304         * modules/strsignal-tests (Files): Likewise.
23305         * modules/strstr-tests (Files): Likewise.
23306         * modules/strtod-tests (Files): Likewise.
23307         * modules/strverscmp-tests (Files): Likewise.
23308         * modules/symlink-tests (Files): Likewise.
23309         * modules/symlinkat-tests (Files): Likewise.
23310         * modules/trunc-tests (Files): Likewise.
23311         * modules/truncf-tests (Files): Likewise.
23312         * modules/truncl-tests (Files): Likewise.
23313         * modules/uname-tests (Files): Likewise.
23314         * modules/unicase/cased-tests (Files): Likewise.
23315         * modules/unicase/ignorable-tests (Files): Likewise.
23316         * modules/unicase/locale-language-tests (Files): Likewise.
23317         * modules/unicase/tolower-tests (Files): Likewise.
23318         * modules/unicase/totitle-tests (Files): Likewise.
23319         * modules/unicase/toupper-tests (Files): Likewise.
23320         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23321         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23322         * modules/unicase/u8-casefold-tests (Files): Likewise.
23323         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23324         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23325         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23326         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23327         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23328         * modules/unicase/u8-tolower-tests (Files): Likewise.
23329         * modules/unicase/u8-totitle-tests (Files): Likewise.
23330         * modules/unicase/u8-toupper-tests (Files): Likewise.
23331         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23332         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23333         * modules/unicase/u16-casefold-tests (Files): Likewise.
23334         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23335         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23336         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23337         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23338         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23339         * modules/unicase/u16-tolower-tests (Files): Likewise.
23340         * modules/unicase/u16-totitle-tests (Files): Likewise.
23341         * modules/unicase/u16-toupper-tests (Files): Likewise.
23342         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23343         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23344         * modules/unicase/u32-casefold-tests (Files): Likewise.
23345         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23346         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23347         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23348         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23349         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23350         * modules/unicase/u32-tolower-tests (Files): Likewise.
23351         * modules/unicase/u32-totitle-tests (Files): Likewise.
23352         * modules/unicase/u32-toupper-tests (Files): Likewise.
23353         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23354         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23355         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23356         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23357         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23358         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23359         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23360         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23361         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23362         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23363         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23364         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23365         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23366         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23367         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23368         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23369         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23370         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23371         * modules/unictype/block-list-tests (Files): Likewise.
23372         * modules/unictype/block-of-tests (Files): Likewise.
23373         * modules/unictype/block-test-tests (Files): Likewise.
23374         * modules/unictype/category-C-tests (Files): Likewise.
23375         * modules/unictype/category-Cc-tests (Files): Likewise.
23376         * modules/unictype/category-Cf-tests (Files): Likewise.
23377         * modules/unictype/category-Cn-tests (Files): Likewise.
23378         * modules/unictype/category-Co-tests (Files): Likewise.
23379         * modules/unictype/category-Cs-tests (Files): Likewise.
23380         * modules/unictype/category-L-tests (Files): Likewise.
23381         * modules/unictype/category-Ll-tests (Files): Likewise.
23382         * modules/unictype/category-Lm-tests (Files): Likewise.
23383         * modules/unictype/category-Lo-tests (Files): Likewise.
23384         * modules/unictype/category-Lt-tests (Files): Likewise.
23385         * modules/unictype/category-Lu-tests (Files): Likewise.
23386         * modules/unictype/category-M-tests (Files): Likewise.
23387         * modules/unictype/category-Mc-tests (Files): Likewise.
23388         * modules/unictype/category-Me-tests (Files): Likewise.
23389         * modules/unictype/category-Mn-tests (Files): Likewise.
23390         * modules/unictype/category-N-tests (Files): Likewise.
23391         * modules/unictype/category-Nd-tests (Files): Likewise.
23392         * modules/unictype/category-Nl-tests (Files): Likewise.
23393         * modules/unictype/category-No-tests (Files): Likewise.
23394         * modules/unictype/category-P-tests (Files): Likewise.
23395         * modules/unictype/category-Pc-tests (Files): Likewise.
23396         * modules/unictype/category-Pd-tests (Files): Likewise.
23397         * modules/unictype/category-Pe-tests (Files): Likewise.
23398         * modules/unictype/category-Pf-tests (Files): Likewise.
23399         * modules/unictype/category-Pi-tests (Files): Likewise.
23400         * modules/unictype/category-Po-tests (Files): Likewise.
23401         * modules/unictype/category-Ps-tests (Files): Likewise.
23402         * modules/unictype/category-S-tests (Files): Likewise.
23403         * modules/unictype/category-Sc-tests (Files): Likewise.
23404         * modules/unictype/category-Sk-tests (Files): Likewise.
23405         * modules/unictype/category-Sm-tests (Files): Likewise.
23406         * modules/unictype/category-So-tests (Files): Likewise.
23407         * modules/unictype/category-Z-tests (Files): Likewise.
23408         * modules/unictype/category-Zl-tests (Files): Likewise.
23409         * modules/unictype/category-Zp-tests (Files): Likewise.
23410         * modules/unictype/category-Zs-tests (Files): Likewise.
23411         * modules/unictype/category-and-not-tests (Files): Likewise.
23412         * modules/unictype/category-and-tests (Files): Likewise.
23413         * modules/unictype/category-byname-tests (Files): Likewise.
23414         * modules/unictype/category-name-tests (Files): Likewise.
23415         * modules/unictype/category-none-tests (Files): Likewise.
23416         * modules/unictype/category-of-tests (Files): Likewise.
23417         * modules/unictype/category-or-tests (Files): Likewise.
23418         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23419         * modules/unictype/combining-class-tests (Files): Likewise.
23420         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23421         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23422         * modules/unictype/ctype-blank-tests (Files): Likewise.
23423         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23424         * modules/unictype/ctype-digit-tests (Files): Likewise.
23425         * modules/unictype/ctype-graph-tests (Files): Likewise.
23426         * modules/unictype/ctype-lower-tests (Files): Likewise.
23427         * modules/unictype/ctype-print-tests (Files): Likewise.
23428         * modules/unictype/ctype-punct-tests (Files): Likewise.
23429         * modules/unictype/ctype-space-tests (Files): Likewise.
23430         * modules/unictype/ctype-upper-tests (Files): Likewise.
23431         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23432         * modules/unictype/decimal-digit-tests (Files): Likewise.
23433         * modules/unictype/digit-tests (Files): Likewise.
23434         * modules/unictype/mirror-tests (Files): Likewise.
23435         * modules/unictype/numeric-tests (Files): Likewise.
23436         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23437         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23438         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23439         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23440         Likewise.
23441         * modules/unictype/property-bidi-block-separator-tests (Files):
23442         Likewise.
23443         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23444         Likewise.
23445         * modules/unictype/property-bidi-common-separator-tests (Files):
23446         Likewise.
23447         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23448         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23449         Likewise.
23450         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23451         Likewise.
23452         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23453         Likewise.
23454         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23455         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23456         Likewise.
23457         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23458         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23459         Likewise.
23460         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23461         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23462         * modules/unictype/property-bidi-segment-separator-tests (Files):
23463         Likewise.
23464         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23465         * modules/unictype/property-byname-tests (Files): Likewise.
23466         * modules/unictype/property-combining-tests (Files): Likewise.
23467         * modules/unictype/property-composite-tests (Files): Likewise.
23468         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23469         * modules/unictype/property-dash-tests (Files): Likewise.
23470         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23471         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23472         Likewise.
23473         * modules/unictype/property-deprecated-tests (Files): Likewise.
23474         * modules/unictype/property-diacritic-tests (Files): Likewise.
23475         * modules/unictype/property-extender-tests (Files): Likewise.
23476         * modules/unictype/property-format-control-tests (Files): Likewise.
23477         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23478         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23479         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23480         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23481         * modules/unictype/property-hyphen-tests (Files): Likewise.
23482         * modules/unictype/property-id-continue-tests (Files): Likewise.
23483         * modules/unictype/property-id-start-tests (Files): Likewise.
23484         * modules/unictype/property-ideographic-tests (Files): Likewise.
23485         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23486         * modules/unictype/property-ids-trinary-operator-tests (Files):
23487         Likewise.
23488         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23489         * modules/unictype/property-iso-control-tests (Files): Likewise.
23490         * modules/unictype/property-join-control-tests (Files): Likewise.
23491         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23492         * modules/unictype/property-line-separator-tests (Files): Likewise.
23493         * modules/unictype/property-logical-order-exception-tests (Files):
23494         Likewise.
23495         * modules/unictype/property-lowercase-tests (Files): Likewise.
23496         * modules/unictype/property-math-tests (Files): Likewise.
23497         * modules/unictype/property-non-break-tests (Files): Likewise.
23498         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23499         * modules/unictype/property-numeric-tests (Files): Likewise.
23500         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23501         * modules/unictype/property-other-default-ignorable-code-point-tests
23502         (Files): Likewise.
23503         * modules/unictype/property-other-grapheme-extend-tests (Files):
23504         Likewise.
23505         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23506         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23507         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23508         * modules/unictype/property-other-math-tests (Files): Likewise.
23509         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23510         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23511         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23512         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23513         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23514         * modules/unictype/property-private-use-tests (Files): Likewise.
23515         * modules/unictype/property-punctuation-tests (Files): Likewise.
23516         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23517         * modules/unictype/property-radical-tests (Files): Likewise.
23518         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23519         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23520         * modules/unictype/property-space-tests (Files): Likewise.
23521         * modules/unictype/property-terminal-punctuation-tests (Files):
23522         Likewise.
23523         * modules/unictype/property-test-tests (Files): Likewise.
23524         * modules/unictype/property-titlecase-tests (Files): Likewise.
23525         * modules/unictype/property-unassigned-code-value-tests (Files):
23526         Likewise.
23527         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23528         * modules/unictype/property-uppercase-tests (Files): Likewise.
23529         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23530         * modules/unictype/property-white-space-tests (Files): Likewise.
23531         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23532         * modules/unictype/property-xid-start-tests (Files): Likewise.
23533         * modules/unictype/property-zero-width-tests (Files): Likewise.
23534         * modules/unictype/scripts-tests (Files): Likewise.
23535         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23536         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23537         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23538         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23539         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23540         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23541         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23542         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23543         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23544         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23545         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23546         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23547         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23548         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23549         * modules/uninorm/composition-tests (Files): Likewise.
23550         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23551         * modules/uninorm/decomposition-tests (Files): Likewise.
23552         * modules/uninorm/filter-tests (Files): Likewise.
23553         * modules/uninorm/nfc-tests (Files): Likewise.
23554         * modules/uninorm/nfd-tests (Files): Likewise.
23555         * modules/uninorm/nfkc-tests (Files): Likewise.
23556         * modules/uninorm/nfkd-tests (Files): Likewise.
23557         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23558         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23559         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23560         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23561         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23562         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23563         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23564         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23565         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23566         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23567         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23568         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23569         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23570         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23571         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23572         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23573         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23574         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23575         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23576         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23577         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23578         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23579         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23580         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23581         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23582         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23583         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23584         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23585         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23586         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23587         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23588         * modules/uniwidth/u8-width-tests (Files): Likewise.
23589         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23590         * modules/uniwidth/u16-width-tests (Files): Likewise.
23591         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23592         * modules/uniwidth/u32-width-tests (Files): Likewise.
23593         * modules/uniwidth/width-tests (Files): Likewise.
23594         * modules/unlink-tests (Files): Likewise.
23595         * modules/unsetenv-tests (Files): Likewise.
23596         * modules/usleep-tests (Files): Likewise.
23597         * modules/utimens-tests (Files): Likewise.
23598         * modules/utimensat-tests (Files): Likewise.
23599         * modules/vasnprintf-posix-tests (Files): Likewise.
23600         * modules/vasnprintf-tests (Files): Likewise.
23601         * modules/vasprintf-posix-tests (Files): Likewise.
23602         * modules/vasprintf-tests (Files): Likewise.
23603         * modules/vdprintf-posix-tests (Files): Likewise.
23604         * modules/vfprintf-posix-tests (Files): Likewise.
23605         * modules/vprintf-posix-tests (Files): Likewise.
23606         * modules/vsnprintf-posix-tests (Files): Likewise.
23607         * modules/vsnprintf-tests (Files): Likewise.
23608         * modules/vsprintf-posix-tests (Files): Likewise.
23609         * modules/wcrtomb-tests (Files): Likewise.
23610         * modules/wcsnrtombs-tests (Files): Likewise.
23611         * modules/wcsrtombs-tests (Files): Likewise.
23612         * modules/wctype-tests (Files): Likewise.
23613         * modules/wcwidth-tests (Files): Likewise.
23614         * modules/xmemdup0-tests (Files): Likewise.
23615         * modules/xprintf-posix-tests (Files): Likewise.
23616         * modules/xvasprintf-tests (Files): Likewise.
23617
23618 2009-12-24  Eric Blake  <ebb9@byu.net>
23619
23620         test-nanosleep: fix typo
23621         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23622         patch.
23623         Reported by Bruno Haible.
23624
23625 2009-12-24  Bruno Haible  <bruno@clisp.org>
23626
23627         Reduce namespace pollution on glibc systems.
23628         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23629         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23630         systems.
23631         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23632         <getopt.h> on glibc systems.
23633         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23634         systems.
23635         * lib/fcntl.c: Include <unistd.h> here instead.
23636
23637 2009-12-24  Bruno Haible  <bruno@clisp.org>
23638
23639         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23640
23641 2009-12-24  Eric Blake  <ebb9@byu.net>
23642
23643         tests: add signature checks
23644         * tests/signature.h (SIGNATURE_CHECK): New file.
23645         * modules/atexit-tests (Files): Use it.
23646         * modules/btowc-tests (Files): Likewise.
23647         * modules/canonicalize-lgpl-tests (Files): Likewise.
23648         * modules/ceilf-tests (Files): Likewise.
23649         * modules/ceill-tests (Files): Likewise.
23650         * modules/chown-tests (Files): Likewise.
23651         * modules/dprintf-posix-tests (Files): Likewise.
23652         * modules/dup2-tests (Files): Likewise.
23653         * modules/dup3-tests (Files): Likewise.
23654         * modules/duplocale-tests (Files): Likewise.
23655         * modules/fchdir-tests (Files): Likewise.
23656         * modules/fcntl-tests (Files): Likewise.
23657         * modules/fdopendir-tests (Files): Likewise.
23658         * modules/fflush-tests (Files): Likewise.
23659         * modules/flock-tests (Files): Likewise.
23660         * modules/floorf-tests (Files): Likewise.
23661         * modules/floorl-tests (Files): Likewise.
23662         * modules/fnmatch-tests (Files): Likewise.
23663         * modules/fopen-tests (Files): Likewise.
23664         * modules/fprintf-posix-tests (Files): Likewise.
23665         * modules/freopen-tests (Files): Likewise.
23666         * modules/frexp-nolibm-tests (Files): Likewise.
23667         * modules/frexp-tests (Files): Likewise.
23668         * modules/frexpl-nolibm-tests (Files): Likewise.
23669         * modules/frexpl-tests (Files): Likewise.
23670         * modules/fseek-tests (Files): Likewise.
23671         * modules/fseeko-tests (Files): Likewise.
23672         * modules/fsync-tests (Files): Likewise.
23673         * modules/ftell-tests (Files): Likewise.
23674         * modules/ftello-tests (Files): Likewise.
23675         * modules/futimens-tests (Files): Likewise.
23676         * modules/getaddrinfo-tests (Files): Likewise.
23677         * modules/getcwd-tests (Files): Likewise.
23678         * modules/getdelim-tests (Files): Likewise.
23679         * modules/getdtablesize-tests (Files): Likewise.
23680         * modules/getgroups-tests (Files): Likewise.
23681         * modules/gethostname-tests (Files): Likewise.
23682         * modules/getline-tests (Files): Likewise.
23683         * modules/getopt-posix-tests (Files): Likewise.
23684         * modules/gettimeofday-tests (Files): Likewise.
23685         * modules/glob-tests (Files): Likewise.
23686         * modules/iconv-tests (Files): Likewise.
23687         * modules/inet_ntop-tests (Files): Likewise.
23688         * modules/inet_pton-tests (Files): Likewise.
23689         * modules/isblank-tests (Files): Likewise.
23690         * modules/lchown-tests (Files): Likewise.
23691         * modules/ldexpl-tests (Files): Likewise.
23692         * modules/link-tests (Files): Likewise.
23693         * modules/linkat-tests (Files): Likewise.
23694         * modules/lseek-tests (Files): Likewise.
23695         * modules/lstat-tests (Files): Likewise.
23696         * modules/mbrtowc-tests (Files): Likewise.
23697         * modules/mbsinit-tests (Files): Likewise.
23698         * modules/mbsnrtowcs-tests (Files): Likewise.
23699         * modules/mbsrtowcs-tests (Files): Likewise.
23700         * modules/memchr-tests (Files): Likewise.
23701         * modules/memcmp-tests (Files): Likewise.
23702         * modules/memmem-tests (Files): Likewise.
23703         * modules/memrchr-tests (Files): Likewise.
23704         * modules/mkdir-tests (Files): Likewise.
23705         * modules/mkfifo-tests (Files): Likewise.
23706         * modules/mkfifoat-tests (Files): Likewise.
23707         * modules/mknod-tests (Files): Likewise.
23708         * modules/nanosleep-tests (Files): Likewise.
23709         * modules/nl_langinfo-tests (Files): Likewise.
23710         * modules/obstack-printf-tests (Files): Likewise.
23711         * modules/open-tests (Files): Likewise.
23712         * modules/openat-tests (Files): Likewise.
23713         * modules/perror-tests (Files): Likewise.
23714         * modules/pipe2-tests (Files): Likewise.
23715         * modules/poll-tests (Files): Likewise.
23716         * modules/popen-tests (Files): Likewise.
23717         * modules/posix_spawn-tests (Files): Likewise.
23718         * modules/posix_spawnp-tests (Files): Likewise.
23719         * modules/pread-tests (Files): Likewise.
23720         * modules/printf-posix-tests (Files): Likewise.
23721         * modules/pty-tests (Files): Likewise.
23722         * modules/random_r-tests (Files): Likewise.
23723         * modules/rawmemchr-tests (Files): Likewise.
23724         * modules/readlink-tests (Files): Likewise.
23725         * modules/remove-tests (Files): Likewise.
23726         * modules/rename-tests (Files): Likewise.
23727         * modules/renameat-tests (Files): Likewise.
23728         * modules/rmdir-tests (Files): Likewise.
23729         * modules/round-tests (Files): Likewise.
23730         * modules/roundf-tests (Files): Likewise.
23731         * modules/roundl-tests (Files): Likewise.
23732         * modules/select-tests (Files): Likewise.
23733         * modules/setenv-tests (Files): Likewise.
23734         * modules/sigaction-tests (Files): Likewise.
23735         * modules/sleep-tests (Files): Likewise.
23736         * modules/snprintf-posix-tests (Files): Likewise.
23737         * modules/snprintf-tests (Files): Likewise.
23738         * modules/sprintf-posix-tests (Files): Likewise.
23739         * modules/stat-tests (Files): Likewise.
23740         * modules/strcasestr-tests (Files): Likewise.
23741         * modules/strchrnul-tests (Files): Likewise.
23742         * modules/strerror-tests (Files): Likewise.
23743         * modules/strsignal-tests (Files): Likewise.
23744         * modules/strstr-tests (Files): Likewise.
23745         * modules/strtod-tests (Files): Likewise.
23746         * modules/strverscmp-tests (Files): Likewise.
23747         * modules/symlink-tests (Files): Likewise.
23748         * modules/symlinkat-tests (Files): Likewise.
23749         * modules/times-tests (Files): Likewise.
23750         * modules/trunc-tests (Files): Likewise.
23751         * modules/truncf-tests (Files): Likewise.
23752         * modules/truncl-tests (Files): Likewise.
23753         * modules/tsearch-tests (Files): Likewise.
23754         * modules/uname-tests (Files): Likewise.
23755         * modules/unlink-tests (Files): Likewise.
23756         * modules/unsetenv-tests (Files): Likewise.
23757         * modules/usleep-tests (Files): Likewise.
23758         * modules/utimensat-tests (Files): Likewise.
23759         * modules/vasprintf-tests (Files): Likewise.
23760         * modules/vdprintf-posix-tests (Files): Likewise.
23761         * modules/vfprintf-posix-tests (Files): Likewise.
23762         * modules/vprintf-posix-tests (Files): Likewise.
23763         * modules/vsnprintf-posix-tests (Files): Likewise.
23764         * modules/vsnprintf-tests (Files): Likewise.
23765         * modules/vsprintf-posix-tests (Files): Likewise.
23766         * modules/wcrtomb-tests (Files): Likewise.
23767         * modules/wcsnrtombs-tests (Files): Likewise.
23768         * modules/wcsrtombs-tests (Files): Likewise.
23769         * modules/wcwidth-tests (Files): Likewise.
23770         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23771         * tests/test-isinf.c (isinf): Likewise.
23772         * tests/test-isnan.c (isnan): Likewise.
23773         * tests/test-signbit.c (signbit): Likewise.
23774         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23775         declaration, either as macro or with correct signature.
23776         (select): Ensure function under test is declared with correct
23777         signature in correct header.
23778         * tests/test-atexit.c (atexit): Likewise.
23779         * tests/test-btowc.c (btowc): Likewise.
23780         * tests/test-canonicalize-lgpl.c (realpath)
23781         (canonicalize_file_name): Likewise.
23782         * tests/test-ceilf1.c (ceilf): Likewise.
23783         * tests/test-ceill.c (ceill): Likewise.
23784         * tests/test-chown.c (chown): Likewise.
23785         * tests/test-dprintf-posix.c (dprintf): Likewise.
23786         * tests/test-dup2.c (dup2): Likewise.
23787         * tests/test-dup3.c (dup3): Likewise.
23788         * tests/test-duplocale.c (duplocale): Likewise.
23789         * tests/test-fchdir.c (fchdir): Likewise.
23790         * tests/test-fchownat.c (fchownat): Likewise.
23791         * tests/test-fcntl.c (fcntl): Likewise.
23792         * tests/test-fdopendir.c (fdopendir): Likewise.
23793         * tests/test-fflush.c (fflush): Likewise.
23794         * tests/test-flock.c (flock): Likewise.
23795         * tests/test-floorf1.c (floorf): Likewise.
23796         * tests/test-floorl.c (floorl): Likewise.
23797         * tests/test-fnmatch.c (fnmatch): Likewise.
23798         * tests/test-fopen.c (fopen): Likewise.
23799         * tests/test-fprintf-posix.c (fprintf): Likewise.
23800         * tests/test-freopen.c (freopen): Likewise.
23801         * tests/test-frexp.c (frexp): Likewise.
23802         * tests/test-frexpl.c (frexpl): Likewise.
23803         * tests/test-fseek.c (fseek): Likewise.
23804         * tests/test-fseeko.c (fseeko): Likewise.
23805         * tests/test-fstatat.c (fstatat): Likewise.
23806         * tests/test-fsync.c (fsync): Likewise.
23807         * tests/test-ftell.c (ftell): Likewise.
23808         * tests/test-ftello.c (ftello): Likewise.
23809         * tests/test-futimens.c (futimens): Likewise.
23810         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23811         (gai_strerror): Likewise.
23812         * tests/test-getcwd.c (getcwd): Likewise.
23813         * tests/test-getdelim.c (getdelim): Likewise.
23814         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23815         * tests/test-getgroups.c (getgroups): Likewise.
23816         * tests/test-gethostname.c (gethostname): Likewise.
23817         * tests/test-getline.c (getline): Likewise.
23818         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23819         Likewise.
23820         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23821         * tests/test-glob.c (glob, globfree): Likewise.
23822         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23823         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23824         * tests/test-inet_pton.c (inet_pton): Likewise.
23825         * tests/test-isblank.c (isblank): Likewise.
23826         * tests/test-lchown.c (lchown): Likewise.
23827         * tests/test-ldexpl.c (ldexpl): Likewise.
23828         * tests/test-link.c (link): Likewise.
23829         * tests/test-linkat.c (linkat): Likewise.
23830         * tests/test-lseek.c (lseek): Likewise.
23831         * tests/test-lstat.c (lstat): Likewise.
23832         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23833         * tests/test-mbsinit.c (mbsinit): Likewise.
23834         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23835         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23836         * tests/test-memchr.c (memchr): Likewise.
23837         * tests/test-memcmp.c (memcmp): Likewise.
23838         * tests/test-memmem.c (memmem): Likewise.
23839         * tests/test-memrchr.c (memrchr): Likewise.
23840         * tests/test-mkdir.c (mkdir): Likewise.
23841         * tests/test-mkdirat.c (mkdirat): Likewise.
23842         * tests/test-mkfifo.c (mkfifo): Likewise.
23843         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23844         * tests/test-mknod.c (mknod): Likewise.
23845         * tests/test-nanosleep.c (nanosleep): Likewise.
23846         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23847         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23848         Likewise.
23849         * tests/test-open.c (open): Likewise.
23850         * tests/test-openat.c (openat): Likewise.
23851         * tests/test-perror.c (perror): Likewise.
23852         * tests/test-pipe2.c (pipe2): Likewise.
23853         * tests/test-poll.c (poll): Likewise.
23854         * tests/test-popen.c (popen, pclose): Likewise.
23855         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23856         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23857         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23858         (posix_spawn_file_actions_destroy)
23859         (posix_spawn_file_actions_addclose)
23860         (posix_spawn_file_actions_addopen)
23861         (posix_spawn_file_actions_adddup2): Likewise.
23862         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23863         * tests/test-pread.c (pread): Likewise.
23864         * tests/test-printf-posix.c (printf): Likewise.
23865         * tests/test-pty.c (openpty, forkpty): Likewise.
23866         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23867         (random_r): Likewise.
23868         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23869         * tests/test-readlink.c (readlink): Likewise.
23870         * tests/test-remove.c (remove): Likewise.
23871         * tests/test-rename.c (rename): Likewise.
23872         * tests/test-renameat.c (renameat): Likewise.
23873         * tests/test-rmdir.c (rmdir): Likewise.
23874         * tests/test-round1.c (round): Likewise.
23875         * tests/test-roundf1.c (roundf): Likewise.
23876         * tests/test-roundl.c (roundl): Likewise.
23877         * tests/test-setenv.c (setenv): Likewise.
23878         * tests/test-sigaction.c (sigaction): Likewise.
23879         * tests/test-sleep.c (sleep): Likewise.
23880         * tests/test-snprintf.c (snprintf): Likewise.
23881         * tests/test-sprintf-posix.c (sprintf): Likewise.
23882         * tests/test-stat.c (stat): Likewise.
23883         * tests/test-stpncpy.c (stpncpy): Likewise.
23884         * tests/test-strcasestr.c (strcasestr): Likewise.
23885         * tests/test-strchrnul.c (strchrnul): Likewise.
23886         * tests/test-strerror.c (strerror): Likewise.
23887         * tests/test-strsignal.c (strsignal): Likewise.
23888         * tests/test-strstr.c (strstr): Likewise.
23889         * tests/test-strtod.c (strtod): Likewise.
23890         * tests/test-strverscmp.c (strverscmp): Likewise.
23891         * tests/test-symlink.c (symlink): Likewise.
23892         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23893         * tests/test-times.c (times): Likewise.
23894         * tests/test-trunc1.c (trunc): Likewise.
23895         * tests/test-truncf1.c (truncf): Likewise.
23896         * tests/test-truncl.c (truncl): Likewise.
23897         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23898         Likewise.
23899         * tests/test-uname.c (uname): Likewise.
23900         * tests/test-unlink.c (unlink): Likewise.
23901         * tests/test-unlinkat.c (unlinkat): Likewise.
23902         * tests/test-unsetenv.c (unsetenv): Likewise.
23903         * tests/test-usleep.c (usleep): Likewise.
23904         * tests/test-utimensat.c (utimensat): Likewise.
23905         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23906         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23907         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23908         * tests/test-vprintf-posix.c (vprintf): Likewise.
23909         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23910         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23911         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23912         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23913         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23914         * tests/test-wcwidth.c (wcwidth): Likewise.
23915
23916         build: pull in conditional headers during GNULIB_POSIXCHECK
23917         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23918         definitions from any conditionally-included headers.
23919         * lib/stdlib.in.h (includes): Likewise.
23920         * lib/unistd.in.h (includes): Likewise.
23921
23922 2009-12-24  Bruno Haible  <bruno@clisp.org>
23923
23924         * tests/test-argv-iter.c: Include header file being tested immediately
23925         after config.h.
23926         * tests/test-base64.c: Likewise.
23927         * tests/test-flock.c: Likewise.
23928         * tests/test-fsync.c: Likewise.
23929         * tests/test-getdate.c: Likewise.
23930         * tests/test-getndelim2.c: Likewise.
23931         * tests/test-isfinite.c: Likewise.
23932         * tests/test-isinf.c: Likewise.
23933         * tests/test-strerror.c: Likewise.
23934         * tests/test-strsignal.c: Likewise.
23935
23936 2009-12-23  Eric Blake  <ebb9@byu.net>
23937
23938         unistd: work around cygwin bug
23939         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23940         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23941         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23942
23943 2009-12-23  Bruno Haible  <bruno@clisp.org>
23944
23945         localename: More tests.
23946         * tests/test-localename.c (SIZEOF): New macro.
23947         (categories): New variable.
23948         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23949         test_locale_name_default): Add test w.r.t. thread locale.
23950         (test_locale_name_thread): New function.
23951         (main): Invoke it.
23952
23953         localename: Make aware of thread locale.
23954         * lib/localename.h (gl_locale_name_thread): New declaration.
23955         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23956         behaviour with respect to thread locale.
23957         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23958         <langinfo.h>, glthread/lock.h.
23959         (SIZE_BITS): New macro.
23960         (string_hash): New function.
23961         (struct hash_node): New type.
23962         (HASH_TABLE_SIZE): New macro.
23963         (struniq_hash_table, struniq_lock): New variables.
23964         (struniq): New function.
23965         (gl_locale_name_thread): New function.
23966         (gl_locale_name): Invoke it.
23967         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23968         * modules/localename (Depends-on): Add lock.
23969         Reported by Mike Gran <spk121@yahoo.com>.
23970
23971 2009-12-23  Eric Blake  <ebb9@byu.net>
23972
23973         va-args: new module
23974         * modules/va-args: New file.
23975         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23976         * MODULES.html.sh (Core language properties): Mention it.
23977
23978         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23979         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23980         named alias for __attribute__((__unused__)).
23981         * lib/chown.c: Update client.
23982         * lib/fchmodat.c: Likewise.
23983         * lib/fts.c: Likewise.
23984         * lib/getdate.y: Likewise.
23985         * lib/getgroups.c: Likewise.
23986         * lib/getopt.c: Likewise.
23987         * lib/getugroups.c: Likewise.
23988         * lib/mkdir.c: Likewise.
23989         * lib/mkfifo.c: Likewise.
23990         * lib/mkfifoat.c: Likewise.
23991         * lib/mknod.c: Likewise.
23992         * lib/mknodat.c: Likewise.
23993         * lib/readlink.c: Likewise.
23994         * lib/se-context.in.h: Likewise.
23995         * lib/se-selinux.in.h: Likewise.
23996         * lib/sockets.c: Likewise.
23997         * lib/symlink.c: Likewise.
23998         * lib/symlinkat.c: Likewise.
23999         * lib/unicodeio.c: Likewise.
24000         * lib/unistr.h: Likewise.
24001         * tests/test-areadlink.c: Likewise.
24002         * tests/test-areadlinkat.c: Likewise.
24003         * tests/test-filenamecat.c: Likewise.
24004         * tests/test-fseeko.c: Likewise.
24005         * tests/test-ftello.c: Likewise.
24006         * tests/test-getdate.c: Likewise.
24007         * tests/test-getgroups.c: Likewise.
24008         * tests/test-gethostname.c: Likewise.
24009         * tests/test-quotearg.c: Likewise.
24010         * tests/test-version-etc.c: Likewise.
24011         * tests/test-xalloc-die.c: Likewise.
24012         * tests/test-xfprintf-posix.c: Likewise.
24013         * tests/test-xprintf-posix.c: Likewise.
24014         * tests/test-xvasprintf.c: Likewise.
24015
24016         tests: avoid compiler warnings
24017         * tests/test-fcntl.c (main): Delete unused parameters.
24018         * tests/test-freopen-safer.c (main): Likewise.
24019         * tests/test-xalloc-die.c (main): Mark unused parameters.
24020         * tests/test-fseeko.c (main): Likewise.
24021         * tests/test-ftello.c (main): Likewise.
24022         * tests/test-nanosleep.c (main): Avoid declaration warning.
24023         * tests/test-sleep.c (main): Likewise.
24024         * tests/test-unsetenv.c (main): Silence warning about string
24025         literal.
24026         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24027
24028 2009-12-23  Bruno Haible  <bruno@clisp.org>
24029
24030         * tests/test-localename.c (test_locale_name): New function, extracted
24031         from main. Also test mixed situations.
24032         (test_locale_name_posix, test_locale_name_environ,
24033         test_locale_name_default): New functions.
24034         (main): Invoke them all.
24035         * modules/localename-tests (configure.ac): Test for newlocale.
24036
24037 2009-12-23  Bruno Haible  <bruno@clisp.org>
24038
24039         unistd: Ensure getcwd gets declared before being overridden.
24040         * lib/unistd.in.h: Conditionally include <io.h>.
24041
24042 2009-12-22  Bruno Haible  <bruno@clisp.org>
24043
24044         wchar: Diagnose broken combination of glibc and gcc versions and flags.
24045         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
24046         (gl_WCHAR_H): Invoke it.
24047         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
24048         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
24049         Reported by Karl Berry <karl@freefriends.org>.
24050
24051 2009-12-22  Eric Blake  <ebb9@byu.net>
24052
24053         math, unistd: avoid redundant includes
24054         * lib/math.in.h (isnan): No need to re-include <math.h>.
24055         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
24056
24057         getsubopt: work around cygwin bug
24058         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
24059         avoid conflicting with system getsubopt.
24060         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
24061         bug.
24062
24063         getopt: synchronize from glibc
24064         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
24065         parameter order.  Adjust all callers.
24066         (_getopt_internal_r, main): Adjust quoting in error messages.
24067         Drop considerations for outdated POSIX 1003.2 error message.
24068         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
24069         callers.
24070         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
24071
24072         test-getopt: test stderr behavior
24073         * modules/getopt-posix-tests (Depends-on): Add dup2.
24074         * tests/test-getopt.c (ASSERT): Avoid stderr.
24075         (main): Move stderr to a temporary file.
24076         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
24077         Instead, add parameter to inform caller if output occurred.
24078         (test_getopt): Adjust all existing tests to expect silence, and
24079         add new tests of leading ":".
24080         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24081         glibc shortcomings with leading "-:" or "+:" in optstring.
24082         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24083         Likewise.
24084         * doc/posix-functions/getopt.texi (getopt): Likewise.
24085
24086         test-getopt: enhance test
24087         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
24088         supports optind=0.
24089         * tests/test-getopt.c (OPTIND_MIN): Move...
24090         * tests/test-getopt.h (OPTIND_MIN): ...here.
24091         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
24092         Require that optind=0 works, since modern BSD supports it in
24093         addition to optreset, and since coreutils expects it.
24094         (test_getopt_long_only): New test.
24095         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24096         glibc shortcomings with 'W;', and enforcement of optind=0.
24097         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24098         Likewise.
24099
24100 2009-12-21  Bruno Haible  <bruno@clisp.org>
24101
24102         localename: Improvements for MacOS X and Cygwin.
24103         * lib/localename.h (gl_locale_name_environ): New declaration.
24104         * lib/localename.c (gl_locale_name_environ): New function, extracted from
24105         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
24106         (gl_locale_name_posix): Invoke it.
24107         (gl_locale_name_default): Add comments. Use Windows native API also on
24108         Cygwin.
24109
24110 2009-12-21  Bruno Haible  <bruno@clisp.org>
24111
24112         Update list of Win32 locale ids.
24113         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
24114         (LANG_SAMI): Renamed from LANG_SAAMI.
24115         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
24116         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
24117         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
24118         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
24119         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
24120         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
24121         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
24122         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
24123         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
24124         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
24125         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
24126         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
24127         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
24128         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
24129         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
24130         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
24131         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
24132         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
24133         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
24134         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
24135         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
24136         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
24137         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
24138         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
24139         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
24140         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
24141         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
24142         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
24143         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
24144         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
24145         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
24146         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
24147         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
24148         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
24149         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
24150         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
24151         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
24152         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
24153         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
24154         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
24155         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
24156         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
24157         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
24158         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
24159         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
24160         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
24161         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
24162         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
24163         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
24164         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
24165         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
24166         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
24167         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
24168         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
24169         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
24170         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
24171         Add more languages and countries for Sami, Sorbian. Add more countries
24172         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
24173         for Pashto. Change country for Syriac, Tswana.
24174
24175 2009-12-21  Eric Blake  <ebb9@byu.net>
24176
24177         test-utimens: avoid spurious failure
24178         * tests/test-chown.h (nap): Factor...
24179         * tests/nap.h: ...into new file.
24180         * tests/test-lchown.h (nap): Avoid duplication.
24181         * tests/test-utimens-common.h (nap): Use shared implementation,
24182         necessary on file systems with 1-second resolution.
24183         * modules/chown-tests (Files): Include new file.
24184         * modules/fdutimensat-tests (Files): Likewise.
24185         * modules/futimens-tests (Files): Likewise.
24186         * modules/lchown-tests (Files): Likewise.
24187         * modules/openat-tests (Files): Likewise.
24188         * modules/utimens-tests (Files): Likewise.
24189         * modules/utimensat-tests (Files): Likewise.
24190
24191 2009-12-19  Eric Blake  <ebb9@byu.net>
24192
24193         futimens, utimensat: work around Linux bug
24194         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
24195         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24196         * lib/utimensat.c (rpl_utimensat): Work around it.
24197         * lib/futimens.c (rpl_futimens): Adjust comment.
24198
24199         utimens: work around Linux ctime bug
24200         * lib/utimens.c (detect_ctime_bug): New helper function.
24201         (update_timespec): Differentiate between workaround needed for
24202         this bug vs. what is needed for systems that lack utimensat.
24203         (fdutimens, lutimens): Work around bug.
24204
24205         utimens: check for ctime update
24206         * tests/test-utimens-common.h (check_ctime): Define.
24207         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
24208         * tests/test-futimens.h (test_futimens): Likewise.
24209         * tests/test-lutimens.h (test_lutimens): Likewise.
24210         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24211         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24212
24213 2009-12-19  Bruno Haible  <bruno@clisp.org>
24214
24215         dprintf-posix: Check against memory leak fixed on 2009-12-15.
24216         * tests/test-dprintf-posix2.sh: New file.
24217         * tests/test-dprintf-posix2.c: New file.
24218         * modules/dprintf-posix-tests (Files): Add them.
24219         (configure.ac): Check for getrlimit and setrlimit.
24220         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24221
24222 2009-12-19  Bruno Haible  <bruno@clisp.org>
24223
24224         fprintf-posix: Check against memory leak fixed on 2009-12-15.
24225         * tests/test-fprintf-posix3.sh: New file.
24226         * tests/test-fprintf-posix3.c: New file.
24227         * modules/fprintf-posix-tests (Files): Add them.
24228         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24229
24230 2009-12-19  Eric Blake  <ebb9@byu.net>
24231
24232         dirfd: fix prototype
24233         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
24234         * lib/dirfd.c (dirfd): Likewise.
24235
24236         canonicalize: reduce memory usage
24237         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
24238         allocation to size.
24239         Reported by Solar Designer <solar@openwall.com>.
24240
24241 2009-12-19  Bruno Haible  <bruno@clisp.org>
24242
24243         New module attribute 'Applicability'.
24244         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24245         * gnulib-tool: New option --extract-applicability.
24246         (func_usage): Document it.
24247         (sed_extract_prog): Recognize it.
24248         (func_get_applicability): New function.
24249         (func_import): Generalize handling of 'link-warning' module.
24250         * modules/link-warning (Applicability): New section.
24251         * modules/arg-nonnull (Applicability): New section.
24252         Repoted by Simon Josefsson <simon@josefsson.org>.
24253
24254 2009-12-19  Bruno Haible  <bruno@clisp.org>
24255
24256         fflush: tweak
24257         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24258         * lib/fseeko.c (rpl_fseeko): Likewise.
24259
24260 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24261
24262         * lib/gl_list.h: Fix typo in comment.
24263
24264 2009-12-16  Eric Blake  <ebb9@byu.net>
24265
24266         fcntl: use to simplify other modules
24267         * modules/cloexec (Depends-on): Add fcntl.
24268         * modules/fchdir (Depends-on): Likewise.
24269         * modules/fd-safer-flag (Depends-on): Likewise.
24270         * modules/unistd-safer (Depends-on): Likewise.
24271         * modules/dup3 (configure.ac): Set module indicator.
24272         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24273         missing.
24274         * lib/fchdir.c (_gl_register_dup): Fix comment.
24275         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24276         * lib/dup-safer.c (dup_safer): Likewise.
24277         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24278         * lib/dup3.c (dup3): Likewise.
24279         * tests/test-fchdir.c (main): Enhance test.
24280         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24281
24282         fcntl: port portions of fcntl to mingw
24283         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24284         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24285         replacement for mingw.
24286         * modules/fcntl (Description): Update.
24287         (Depends-on): Add dup2.
24288         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24289         * modules/fcntl-h (Makefile.am): Substitute it.
24290         * lib/fcntl.in.h (fcntl): Update declaration.
24291         (F_DUPFD, F_GETFD): New macros, when needed.
24292         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24293         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24294         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24295         we now guarantee.
24296
24297         fcntl: work around cygwin bug in F_DUPFD
24298         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24299         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24300         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24301         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24302         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24303
24304         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24305         * modules/fcntl (Files): List new files.
24306         (configure.ac): Run a test.
24307         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24308         * lib/fcntl.c (rpl_fcntl): Likewise.
24309         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24310         (gl_FCNTL_H): Always replace fcntl.h.
24311         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24312         * lib/fcntl.in.h (fcntl): Declare replacement.
24313         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24314         needed, plus a witness.
24315         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24316         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24317         * tests/test-fcntl.c: New file.
24318         * modules/fcntl-tests: Likewise.
24319
24320         binary-io: avoid potential compilation warning
24321         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24322         directives.
24323
24324         fflush: avoid compilation error on NetBSD
24325         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24326         between off_t and fpos_t, since the latter is sometimes a struct.
24327         * lib/fseeko.c (rpl_fseeko): Likewise.
24328         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24329
24330 2009-12-15  Eric Blake  <ebb9@byu.net>
24331
24332         fcntl-h, stdio, sys_ioctl: fix declarations
24333         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24334         function must not take arguments.
24335         * lib/sys_ioctl.in.h (ioctl): Likewise.
24336         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24337         (open): Add a link warning.
24338
24339 2009-12-15  Jim Meyering  <meyering@redhat.com>
24340
24341         areadlink, areadlink-with-size: relax license to LGPLv2+
24342         * modules/areadlink (License): Relax to LGPLv2+.
24343         * modules/areadlink-with-size (License): Likewise.
24344
24345 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24346             Bruno Haible  <bruno@clisp.org>
24347
24348         *printf: Fix memory leak.
24349         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24350         * lib/vfprintf.c (vfprintf): Likewise.
24351         * lib/dprintf.c (dprintf): Likewise.
24352         * lib/vdprintf.c (vdprintf): Likewise.
24353
24354 2009-12-14  Eric Blake  <ebb9@byu.net>
24355
24356         accept4: adjust module dependencies
24357         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24358
24359         utimens: one more try at avoiding compiler warning
24360         * lib/utimens.c (lutimens): Lower scope of result.
24361
24362 2009-12-13  Bruno Haible  <bruno@clisp.org>
24363
24364         Move the malloc checking from module 'list' to new module 'xlist'.
24365         * modules/xlist: New file.
24366         * lib/gl_xlist.h: New file.
24367         * lib/gl_xlist.c: New file.
24368         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24369         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24370         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24371         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24372         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24373         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24374         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24375         gl_sortedlist_nx_add): New declarations.
24376         (struct gl_list_implementation): Rename and change methods accordingly.
24377         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24378         (gl_list_nx_create): Renamed from gl_list_create.
24379         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24380         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24381         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24382         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24383         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24384         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24385         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24386         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24387         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24388         gl_list_create_empty.
24389         (gl_list_nx_create): Renamed from gl_list_create.
24390         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24391         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24392         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24393         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24394         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24395         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24396         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24397         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24398         * lib/gl_array_list.c: Don't include xalloc.h.
24399         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24400         NULL upon out-of-memory.
24401         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24402         out-of-memory.
24403         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24404         Change return type to 'int'.
24405         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24406         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24407         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24408         upon out-of-memory.
24409         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24410         upon out-of-memory.
24411         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24412         upon out-of-memory.
24413         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24414         upon out-of-memory.
24415         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24416         out-of-memory.
24417         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24418         Update.
24419         (gl_array_list_implementation): Update.
24420         * lib/gl_carray_list.c: Don't include xalloc.h.
24421         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24422         Return NULL upon out-of-memory.
24423         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24424         out-of-memory.
24425         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24426         Change return type to 'int'.
24427         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24428         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24429         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24430         upon out-of-memory.
24431         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24432         upon out-of-memory.
24433         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24434         out-of-memory.
24435         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24436         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24437         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24438         Update.
24439         (gl_carray_list_implementation): Update.
24440         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24441         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24442         gl_linked_create_empty. Return NULL upon out-of-memory.
24443         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24444         out-of-memory.
24445         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24446         Change return type to 'int'. Return -1 upon out-of-memory.
24447         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24448         out-of-memory.
24449         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24450         upon out-of-memory.
24451         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24452         upon out-of-memory.
24453         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24454         NULL upon out-of-memory.
24455         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24456         upon out-of-memory.
24457         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24458         out-of-memory.
24459         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24460         Update.
24461         * lib/gl_linked_list.c: Don't include xalloc.h.
24462         (gl_linked_list_implementation): Update.
24463         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24464         (add_to_bucket): Change return type to 'int'.
24465         (gl_linkedhash_list_implementation): Update.
24466         * lib/gl_anytree_list1.h (free_subtree): New function.
24467         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24468         gl_tree_create_empty. Return NULL upon out-of-memory.
24469         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24470         Change return type to 'int'. Return -1 upon out-of-memory.
24471         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24472         out-of-memory.
24473         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24474         (gl_tree_remove_node): New function, moved here from
24475         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24476         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24477         Update.
24478         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24479         malloc, not xmalloc. Return NULL upon out-of-memory.
24480         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24481         out-of-memory.
24482         (gl_tree_remove_node_from_tree): New function, extracted from
24483         gl_tree_remove_node.
24484         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24485         upon out-of-memory.
24486         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24487         out-of-memory.
24488         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24489         upon out-of-memory.
24490         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24491         upon out-of-memory.
24492         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24493         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24494         not xmalloc. Return NULL upon out-of-memory.
24495         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24496         out-of-memory.
24497         (gl_tree_remove_node_from_tree): New function, extracted from
24498         gl_tree_remove_node.
24499         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24500         upon out-of-memory.
24501         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24502         out-of-memory.
24503         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24504         upon out-of-memory.
24505         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24506         upon out-of-memory.
24507         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24508         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24509         gl_anytree_list1.h before gl_anyavltree_list2.h.
24510         (gl_avltree_list_implementation): Update.
24511         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24512         gl_anytree_list1.h before gl_anyavltree_list2.h.
24513         (gl_rbtree_list_implementation): Update.
24514         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24515         Change return type to 'int'. Return -1 upon out-of-memory. Use
24516         __builtin_expect.
24517         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24518         (gl_avltreehash_list_implementation): Update.
24519         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24520         (gl_rbtreehash_list_implementation): Update.
24521         * modules/array-list (Depends-on): Remove xalloc.
24522         * modules/carray-list (Depends-on): Likewise.
24523         * modules/linked-list (Depends-on): Likewise.
24524         * modules/linkedhash-list (Depends-on): Likewise.
24525         * modules/avltree-list (Depends-on): Likewise.
24526         * modules/rbtree-list (Depends-on): Likewise.
24527         * modules/avltreehash-list (Depends-on): Likewise.
24528         * modules/rbtreehash-list (Depends-on): Likewise.
24529
24530         * modules/xsublist: New file.
24531         * lib/gl_xsublist.h: New file.
24532         * lib/gl_xsublist.c: New file.
24533         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24534         (gl_sublist_nx_create): New declaration.
24535         * lib/gl_sublist.c: Don't include xalloc.h.
24536         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24537         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24538         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24539         Change return type to 'int'. Return -1 upon out-of-memory.
24540         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24541         upon out-of-memory.
24542         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24543         NULL upon out-of-memory.
24544         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24545         upon out-of-memory.
24546         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24547         NULL upon out-of-memory.
24548         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24549         NULL upon out-of-memory.
24550         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24551         upon out-of-memory.
24552         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24553         (gl_sublist_list_implementation): Update.
24554         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24555         upon out-of-memory.
24556         * modules/sublist (Depends-on): Remove xalloc.
24557
24558         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24559         * tests/test-carray_list.c: Likewise.
24560         * tests/test-linked_list.c: Likewise.
24561         * tests/test-linkedhash_list.c: Likewise.
24562         * tests/test-avltree_list.c: Likewise.
24563         * tests/test-rbtree_list.c: Likewise.
24564         * tests/test-avltreehash_list.c: Likewise.
24565         * tests/test-rbtreehash_list.c: Likewise.
24566         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24567         * modules/carray-list-tests (Makefile.am): Likewise.
24568         * modules/linked-list-tests (Makefile.am): Likewise.
24569         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24570         * modules/avltree-list-tests (Makefile.am): Likewise.
24571         * modules/rbtree-list-tests (Makefile.am): Likewise.
24572         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24573         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24574
24575         * NEWS: Mention the changes.
24576
24577         * lib/clean-temp.c: Include gl_xlist.h.
24578         * modules/clean-temp (Depends-on): Add xlist.
24579
24580         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24581         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24582
24583         * tests/test-array_oset.c: Include gl_xlist.h.
24584         * modules/array-oset-tests (Depends-on): Add xlist.
24585
24586         Reported by José E. Marchesi <jemarch@gnu.org>.
24587
24588 2009-12-13  Bruno Haible  <bruno@clisp.org>
24589
24590         Move the malloc checking from module 'oset' to new module 'xoset'.
24591         * modules/xoset: New file.
24592         * lib/gl_xoset.h: New file.
24593         * lib/gl_xoset.c: New file.
24594         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24595         declarations.
24596         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24597         (struct gl_oset_implementation): Rename and change methods accordingly.
24598         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24599         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24600         'int'. Mark as __warn_unused_result__.
24601         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24602         gl_oset_create_empty.
24603         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24604         'int'.
24605         * lib/gl_array_oset.c: Don't include xalloc.h.
24606         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24607         malloc, not xmalloc.
24608         (grow): Change return type to 'int'. Don't call xalloc_die.
24609         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24610         to 'int'.
24611         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24612         'int'.
24613         (gl_array_oset_implementation): Update.
24614         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24615         gl_tree_create_empty.
24616         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24617         'int'.
24618         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24619         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24620         xmalloc.
24621         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24622         not xmalloc.
24623         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24624         xmalloc.
24625         (gl_avltree_oset_implementation): Update.
24626         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24627         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24628         xmalloc.
24629         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24630         not xmalloc.
24631         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24632         xmalloc.
24633         (gl_rbtree_oset_implementation): Update.
24634         * modules/array-oset (Depends-on): Remove xalloc.
24635         * modules/avltree-oset (Depends-on): Likewise.
24636         * modules/rbtree-oset (Depends-on): Likewise.
24637         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24638         * tests/test-avltree_oset.c: Likewise.
24639         * tests/test-rbtree_oset.c: Likewise.
24640         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24641         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24642         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24643         * NEWS: Mention the change.
24644
24645 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24646
24647         maint.mk: allow a project to override release-prep commands
24648         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24649         commands into a new rule.
24650         (release-prep): New rule.
24651         (release-prep-hook): New overridable variable.
24652
24653 2009-12-13  Bruno Haible  <bruno@clisp.org>
24654
24655         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24656
24657 2009-12-13  Jim Meyering  <meyering@redhat.com>
24658
24659         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24660         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24661
24662 2009-12-12  Bruno Haible  <bruno@clisp.org>
24663
24664         duplocale: Tweak.
24665         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24666
24667 2009-12-12  Karl Berry  <karl@gnu.org>
24668
24669         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24670
24671 2009-12-12  Bruno Haible  <bruno@clisp.org>
24672
24673         * m4/po.m4: Undo incorrect untabification.
24674
24675 2009-12-12  Bruno Haible  <bruno@clisp.org>
24676
24677         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24678         * modules/c-strtod (Depends-on): Add locale.
24679         * modules/c-strtold (Depends-on): Likewise.
24680
24681 2009-12-12  Bruno Haible  <bruno@clisp.org>
24682
24683         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24684
24685 2009-12-11  Eric Blake  <ebb9@byu.net>
24686
24687         setenv: relax requirement in light of POSIX ruling
24688         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24689         not NULL.
24690         * tests/test-setenv.c (main): Relax test.
24691         * tests/test-unsetenv.c (main): Likewise.
24692         * doc/posix-functions/setenv.texi (setenv): Document this.
24693         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24694
24695 2009-12-11  Bruno Haible  <bruno@clisp.org>
24696
24697         New module 'fd-safer-flag'.
24698         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24699         * lib/dup-safer.c (dup_safer_flag): Remove function.
24700         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24701         * lib/fd-safer.c (fd_safer_flag): Remove function.
24702         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24703         * modules/cloexec (configure.ac): Drop indicator macro.
24704         * modules/fd-safer-flag: New file.
24705         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24706         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24707         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24708
24709 2009-12-11  Bruno Haible  <bruno@clisp.org>
24710
24711         Tests for module 'nl_langinfo'.
24712         * modules/nl_langinfo-tests: New file.
24713         * tests/test-nl_langinfo.sh: New file.
24714         * tests/test-nl_langinfo.c: New file.
24715
24716         New module 'nl_langinfo'.
24717         * lib/nl_langinfo.c: New file.
24718         * m4/nl_langinfo.m4: New file.
24719         * modules/nl_langinfo: New file.
24720         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24721
24722 2009-12-11  Bruno Haible  <bruno@clisp.org>
24723
24724         Tests for module 'langinfo'.
24725         * modules/langinfo-tests: New file.
24726         * tests/test-langinfo.c: New file.
24727
24728         New module 'langinfo'.
24729         * lib/langinfo.in.h: New file.
24730         * m4/langinfo_h.m4: New file.
24731         * modules/langinfo: New file.
24732         * doc/posix-headers/langinfo.texi: Mention the new module.
24733
24734 2009-12-11  Bruno Haible  <bruno@clisp.org>
24735
24736         * lib/config.charset: Untabify.
24737
24738 2009-12-11  Bruno Haible  <bruno@clisp.org>
24739
24740         * modules/unistd-safer (configure.ac): Drop indicator macro.
24741
24742 2009-12-11  Bruno Haible  <bruno@clisp.org>
24743
24744         Move pipe2-safer code to its own file.
24745         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24746         * lib/pipe-safer.c (pipe2_safer): Remove function.
24747         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24748         (Makefile.am): Add it to lib_SOURCES.
24749
24750 2009-12-10  Bruno Haible  <bruno@clisp.org>
24751
24752         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24753
24754 2009-12-10  Bruno Haible  <bruno@clisp.org>
24755
24756         Declare which arguments expect non-NULL values, for GCC and clang.
24757         * build-aux/arg-nonnull.h: New file.
24758         * modules/arg-nonnull: New file.
24759         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24760         (inet_ntop, inet_pton): Use it.
24761         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24762         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24763         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24764         (open, openat): Use it.
24765         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24766         (fnmatch): Use it.
24767         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24768         (getopt, getopt_long, getopt_long_only): Use it.
24769         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24770         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24771         Use it.
24772         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24773         (iconv_open): Use it.
24774         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24775         (strtoimax, strtoumax): Use it.
24776         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24777         (duplocale): Use it.
24778         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24779         (frexp, frexpl): Use it.
24780         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24781         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24782         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24783         (tsearch, tfind, tdelete, twalk): Use it.
24784         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24785         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24786         sigpending): Use it.
24787         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24788         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24789         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24790         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24791         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24792         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24793         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24794         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24795         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24796         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24797         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24798         Use it.
24799         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24800         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24801         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24802         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24803         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24804         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24805         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24806         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24807         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24808         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24809         strtoull, unsetenv): Use it.
24810         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24811         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24812         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24813         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24814         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24815         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24816         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24817         (strcasecmp, strncasecmp): Use it.
24818         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24819         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24820         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24821         rpl_setsockopt): Use it.
24822         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24823         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24824         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24825         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24826         (gettimeofday): Use it.
24827         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24828         (times): Use it.
24829         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24830         (uname): Use it.
24831         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24832         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24833         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24834         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24835         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24836         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24837         unlinkat, write): Use it.
24838         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24839         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24840         * lib/argv-iter.h: Include arg-nonnull.h.
24841         (_ATTRIBUTE_NONNULL_): Remove macro.
24842         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24843         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24844         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24845         optimization.
24846         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24847         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24848         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24849         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24850         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24851         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24852         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24853         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24854         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24855         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24856         * modules/dirent (Depends-on): Add arg-nonnull.
24857         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24858         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24859         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24860         * modules/fnmatch (Depends-on): Add arg-nonnull.
24861         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24862         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24863         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24864         * modules/glob (Depends-on): Add arg-nonnull.
24865         (Makefile.am): Insert arg-nonnull.h into glob.h.
24866         * modules/iconv_open (Depends-on): Add arg-nonnull.
24867         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24868         * modules/inttypes (Depends-on): Add arg-nonnull.
24869         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24870         * modules/locale (Depends-on): Add arg-nonnull.
24871         (Makefile.am): Insert arg-nonnull.h into locale.h.
24872         * modules/math (Depends-on): Add arg-nonnull.
24873         (Makefile.am): Insert arg-nonnull.h into math.h.
24874         * modules/netdb (Depends-on): Add arg-nonnull.
24875         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24876         * modules/search (Depends-on): Add arg-nonnull.
24877         (Makefile.am): Insert arg-nonnull.h into search.h.
24878         * modules/signal (Depends-on): Add arg-nonnull.
24879         (Makefile.am): Insert arg-nonnull.h into signal.h.
24880         * modules/spawn (Depends-on): Add arg-nonnull.
24881         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24882         * modules/stdio (Depends-on): Add arg-nonnull.
24883         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24884         * modules/stdlib (Depends-on): Add arg-nonnull.
24885         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24886         * modules/string (Depends-on): Add arg-nonnull.
24887         (Makefile.am): Insert arg-nonnull.h into string.h.
24888         * modules/strings (Depends-on): Add arg-nonnull.
24889         (Makefile.am): Insert arg-nonnull.h into strings.h.
24890         * modules/sys_socket (Depends-on): Add arg-nonnull.
24891         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24892         * modules/sys_stat (Depends-on): Add arg-nonnull.
24893         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24894         * modules/sys_time (Depends-on): Add arg-nonnull.
24895         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24896         * modules/sys_times (Depends-on): Add arg-nonnull.
24897         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24898         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24899         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24900         * modules/time (Depends-on): Add arg-nonnull.
24901         (Makefile.am): Insert arg-nonnull.h into time.h.
24902         * modules/unistd (Depends-on): Add arg-nonnull.
24903         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24904         * modules/wchar (Depends-on): Add arg-nonnull.
24905         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24906         * modules/argv-iter (Depends-on): Add arg-nonnull.
24907         * tests/test-canonicalize.c (null_ptr): New function.
24908         (main): Use it.
24909         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24910         (main): Use it.
24911         * tests/test-memmem.c (null_ptr): New function.
24912         (main): Use it.
24913         Reported by Jim Meyering.
24914
24915 2009-12-10  Bruno Haible  <bruno@clisp.org>
24916
24917         Use spaces for indentation, not tabs.
24918         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24919         * m4/*.m4: Untabify.
24920         * build-aux/*.h: Untabify.
24921         * tests/**/*.[hc]: Untabify.
24922         * README: New section "Indent with spaces, not TABs", based on
24923         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24924         * NEWS: Mention the change.
24925
24926 2009-12-10  Bruno Haible  <bruno@clisp.org>
24927
24928         pty test: Fix link error.
24929         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24930         test_pty_LDADD.
24931
24932 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24933
24934         * modules/pty: New file.
24935         * modules/pty-tests: New file.
24936         * m4/pty.m4: New file.
24937         * tests/test-pty.c: New file.
24938         * doc/glibc-headers/pty.texi: Modified.
24939         * doc/glibc-functions/forkpty.texi: Modified.
24940         * doc/glibc-functions/openpty.texi: Modified.
24941
24942 2009-12-10  Bruno Haible  <bruno@clisp.org>
24943
24944         Avoid syntax error in C++ mode.
24945         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24946
24947 2009-12-10  Bruno Haible  <bruno@clisp.org>
24948
24949         Use sed with option -e.
24950         * gnulib-tool (func_version, func_emit_copyright_notice,
24951         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24952         option -e to sed.
24953         * modules/link-warning (Makefile.am): Likewise.
24954
24955 2009-12-10  Jim Meyering  <meyering@redhat.com>
24956
24957         mgetgroups: do not write bytes beyond end of malloc'd buffer
24958         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24959         username, we call getgroups with a one-element-shorter buffer,
24960         but still told it the length was original, max_n_groups.
24961
24962 2009-12-09  Eric Blake  <ebb9@byu.net>
24963
24964         cloexec: relax license
24965         * modules/cloexec (Maintainer): Add myself.
24966         (License): Use LGPL, not GPL.
24967
24968         link-warning: optimize generation
24969         * modules/link-warning (Makefile.am): Reduce process usage.
24970
24971 2009-12-09  Bruno Haible  <bruno@clisp.org>
24972
24973         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24974         workaround was added on 2009-11-17.
24975
24976 2009-12-09  Jim Meyering  <meyering@redhat.com>
24977             Bruno Haible  <bruno@clisp.org>
24978
24979         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24980         * modules/link-warning (Makefile.am): Make the comment-removing sed
24981         command more robust in the face of bootstrap-prepended comment lines.
24982
24983 2009-12-09  Bruno Haible  <bruno@clisp.org>
24984
24985         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24986         most one group.
24987
24988 2009-12-09  Simon Josefsson <simon@josefsson.org>
24989             Bruno Haible  <bruno@clisp.org>
24990
24991         * build-aux/link-warning.h: Add copyright notice.
24992         * modules/link-warning (Makefile.am): Generate link-warning.h from
24993         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24994         * NEWS: Mention change in link-warning module.
24995         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24996         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24997         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24998         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24999         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
25000         * modules/math (Makefile.am): Add dependency to math.h.
25001         * modules/search (Makefile.am): Add dependency to search.h.
25002         * modules/signal (Makefile.am): Add dependency to signal.h.
25003         * modules/spawn (Makefile.am): Add dependency to spawn.h.
25004         * modules/stdio (Makefile.am): Add dependency to stdio.h.
25005         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
25006         * modules/string (Makefile.am): Add dependency to string.h.
25007         * modules/strings (Makefile.am): Add dependency to strings.h.
25008         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
25009         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
25010         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
25011         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
25012         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
25013         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
25014         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
25015         * modules/unistd (Makefile.am): Add dependency to unistd.h.
25016         * modules/wchar (Makefile.am): Add dependency to wchar.h.
25017
25018 2009-12-09  Bruno Haible  <bruno@clisp.org>
25019
25020         fchdir: Optimize away rpl_fstat when possible.
25021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
25022         REPLACE_OPEN_DIRECTORY.
25023         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
25024
25025 2009-12-09  Bruno Haible  <bruno@clisp.org>
25026
25027         * lib/fchdir.c: Update comment.
25028
25029 2009-12-09  Bruno Haible  <bruno@clisp.org>
25030
25031         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
25032
25033 2009-12-08  Eric Blake  <ebb9@byu.net>
25034
25035         fchdir: avoid memory leak on re-registration.
25036         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
25037
25038 2009-12-08  Jim Meyering  <meyering@redhat.com>
25039
25040         init.sh: avoid Solaris 10 /bin/sh portability problem
25041         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
25042         sourced script:
25043           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
25044           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
25045           bar
25046         tests/init.sh relied on that, accepting a --set-path=DIR argument,
25047         and two tests used that idiom.
25048         * tests/init.sh: Update suggested usage comments.
25049         (path_prepend_): New function, to be used in place
25050         of the --src-path=DIR option.
25051         (setup_): Move PATH-prepending code into path_prepend_.
25052         * tests/test-pread.sh: Adapt to new usage.
25053         * tests/test-xalloc-die.sh: Likewise.
25054
25055 2009-12-08  Simon Josefsson  <simon@josefsson.org>
25056
25057         * doc/gnulib.texi (Glibc pty.h): Add.
25058         * doc/glibc-functions/forkpty.texi: Add.
25059         * doc/glibc-functions/openpty.texi: Add.
25060         Suggested by Bruno Haible.
25061
25062 2009-12-08  Eric Blake  <ebb9@byu.net>
25063
25064         fchdir: fix logic bugs
25065         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
25066         * tests/test-fchdir.c (main): Enhance test.
25067         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
25068         is in use.
25069
25070         dup2: fix logic bugs
25071         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
25072         REPLACE_DUP2 to decide when rpl_dup2 is needed.
25073         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
25074         exists.
25075         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
25076
25077 2009-12-07  Eric Blake  <ebb9@byu.net>
25078
25079         unlink: fix m4 detection
25080         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
25081
25082         unistd-safer: add unit test
25083         * modules/unistd-safer-tests: New file.
25084         * tests/test-dup-safer.c: Likewise.
25085         * tests/test-cloexec.c (setmode): Avoid compiler warning.
25086         * tests/test-dup2.c (setmode): Likewise.
25087         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
25088
25089         cloexec: preserve text vs. binary across dup_cloexec
25090         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
25091         mode.
25092         * modules/dup2-tests (Depends-on): Add binary-io.
25093         * modules/cloexec-tests (Depends-on): Likewise.
25094         * tests/test-dup2.c (setmode, is_mode): New helpers.
25095         (main): Add tests that translation mode is preserved.
25096         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
25097         Reported by Bruno Haible.
25098
25099         mgetgroups: reduce duplicate listings
25100         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
25101         resulting array.
25102         * tests/test-chown.h (test_chown): Simplify client.
25103         * tests/test-lchown.h (test_lchown): Likewise.
25104
25105 2009-12-06  Bruno Haible  <bruno@clisp.org>
25106
25107         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
25108         value.
25109
25110 2009-12-06  Bruno Haible  <bruno@clisp.org>
25111
25112         * lib/progname.c: Include stdio.h, stdlib.h.
25113         (set_program_name): Reject a NULL argument.
25114
25115 2009-12-05  Eric Blake  <ebb9@byu.net>
25116
25117         pipe2-safer: new module
25118         * modules/pipe2-safer: New file.
25119         * lib/unistd-safer.h (pipe2_safer): New prototype.
25120         * lib/unistd--.h (pipe2): New wrapper.
25121         * lib/pipe-safer.c (pipe2_safer): New function.
25122         * modules/pipe (Depends-on): Add pipe2-safer.
25123         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
25124
25125         stdlib-safer: preserve cloexec flag for mkostemp[s]
25126         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
25127         fd_safer_flag.
25128
25129         unistd-safer: allow preservation of cloexec status via flag
25130         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
25131         prototypes.
25132         * lib/dup-safer.c (dup_safer_flag): New function.
25133         * lib/fd-safer.c (fd_safer_flag): Likewise.
25134         * modules/cloexec (configure.ac): Set witness.
25135
25136         test-dup2: enhance test
25137         * modules/dup2-tests (Depends-on): Add cloexec.
25138         * tests/test-dup2.c (main): Enhance test.
25139
25140         cloexec: add dup_cloexec
25141         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
25142         header and comments.
25143         * lib/cloexec.c (set_cloexec_flag): Add comments.
25144         (dup_cloexec): New function, with mingw implementation borrowed
25145         from...
25146         * lib/w32spawn.h (dup_noinherit): ...here.
25147         * modules/execute (Depends-on): Add cloexec.
25148         * modules/pipe (Depends-on): Likewise.
25149         * modules/cloexec (Depends-on): Add dup2.
25150         * modules/cloexec-tests (Files): New file.
25151         * tests/test-cloexec.c: Likewise.
25152
25153         test-xalloc-die: fix test for mingw
25154         * modules/xalloc-die-tests (Files): Add tests/init.sh.
25155         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
25156         directory and .exe suffix off argv[0] output.
25157
25158         test-fseeko: fix test for mingw
25159         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
25160         than undefining fseek, so test will pass on mingw.
25161
25162 2009-12-05  Bruno Haible  <bruno@clisp.org>
25163
25164         * lib/progname.h (set_program_name): Clarify specification.
25165         * lib/progname.c (set_program_name): Likewise.
25166         Reported by Jim Meyering.
25167
25168 2009-12-05  Jim Meyering  <meyering@redhat.com>
25169
25170         maint.mk: backslash-escape parens in default regexp
25171         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
25172         backslash-escape the literal parentheses.
25173
25174         maint.mk: news-date-check: use grep -E
25175         * top/maint.mk (today): Define a Make variable, not a...
25176         (news-date-check): ...shell variable.
25177         (news-date-regexp): Use the Make variable.
25178         Use grep's -E option.  Change the failing diagnostic to mention
25179         the variable, $(news-date-regexp).
25180
25181 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
25182
25183         maintainer-makefile: allow customization of NEWS entry format
25184         * top/maint.mk (news-date-regexp): New overridable variable.
25185         (news-date-check): Use it.
25186
25187 2009-12-04  Eric Blake  <ebb9@byu.net>
25188
25189         mgetgroups: add xgetgroups, and avoid ENOSYS failures
25190         * lib/mgetgroups.h (xgetgroups): New prototype.
25191         * lib/mgetgroups.c (xgetgroups): New wrapper.
25192         (mgetgroups): Handle ENOSYS.
25193         * modules/mgetgroups (Depends-on): Add realloc.
25194         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
25195
25196         mgetgroups: avoid argument promotion issues with -1
25197         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
25198         for invalid gid_t.
25199         * tests/test-chown.h (getegid, test_chown): Likewise.
25200         * tests/test-lchown.h (getegid, test_lchown): Likewise.
25201
25202 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
25203
25204         exclude: Fix header file problems.
25205         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
25206
25207 2009-12-01  Jim Meyering  <meyering@redhat.com>
25208
25209         fts: fts_open: do not let an empty string cause immediate failure
25210         This is required in support of GNU rm, for which the command
25211         "rm A '' B" must process and remove both A and B, in spite of
25212         the empty string argument.
25213         * lib/fts.c (fts_open): Do not let the presence of an empty string
25214         cause fts_open to fail immediately.  Most fts-using tools must be
25215         able to process all arguments, in order, and can be expected to
25216         diagnose such arguments themselves.
25217
25218 2009-11-30  Eric Blake  <ebb9@byu.net>
25219
25220         utimens: fix compilation error
25221         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
25222         Declare variable at right scope.
25223
25224 2009-11-29  Jim Meyering  <meyering@redhat.com>
25225
25226         bootstrap: handle perl-5.11's changed --version output
25227         * build-aux/bootstrap (get_version): Handle perl separately,
25228         since perl-5.11's --version output is different.
25229
25230 2009-11-28  Jim Meyering  <meyering@redhat.com>
25231
25232         userspec: depend on the inttostr module, too
25233         * modules/userspec (Depends-on): Add inttostr.
25234
25235         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
25236         * lib/userspec.c (parse_with_separator): Do not accept a user ID
25237         number of MAXUID when it evaluates to (uid_t) -1.
25238         Likewise for group ID.  Reported by Matt McCutchen in
25239         <http://savannah.gnu.org/bugs/?28113>
25240
25241         userspec: reformat to use spaces, not TABs
25242         * lib/userspec.c: Expand TABs to spaces.
25243         Add Emacs' "indent-tabs-mode: nil" hint.
25244
25245 2009-11-27  Eric Blake  <ebb9@byu.net>
25246
25247         getopt-gnu: flush out another BSD bug
25248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25249         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25250         flush out BSD bug.
25251         * tests/test-getopt.h (test_getopt): End lists with NULL.
25252         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25253         (test_getopt_long_posix): Enhance test.
25254         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25255         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25256         getopt-gnu.
25257         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25258         Likewise.
25259
25260 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25261
25262         * modules/idpriv-droptemp-tests (Notice): Fix text.
25263
25264 2009-11-27  Jim Meyering  <meyering@redhat.com>
25265
25266         test-xalloc-die: avoid spurious failure due to libtool argv difference
25267         In a libtool-enabled project, this test would fail due to a difference
25268         in the emitted program name, e.g.,
25269         -test-xalloc-die: memory exhausted
25270         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25271         Use program to avoid that.
25272         * modules/xalloc-die-tests (Depends-on): Add progname.
25273         * tests/test-xalloc-die.c: Include progname.h".
25274         (program_name): Remove decl.
25275         (main): Call set_program_name.
25276         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25277
25278 2009-11-26  Richard Jones  <rjones@redhat.com>
25279
25280         w32sock: leave win32 error in place.
25281         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25282
25283 2009-11-26  Eric Blake  <ebb9@byu.net>
25284
25285         init.sh: suggest to use skip_ and fail_ functions in comments
25286         * tests/init.sh: Add a sentence.
25287
25288 2009-11-25  Bruno Haible  <bruno@clisp.org>
25289
25290         init.sh: add documentation in comments
25291         * tests/init.sh: Add some developer and user documentation.
25292
25293 2009-11-26  Jim Meyering  <meyering@redhat.com>
25294
25295         init.sh: accommodate even those who specify bogus srcdir manually
25296         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25297         configure-time tests to be sanitized, so that there is no need to
25298         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25299         (with no double quotes) suffices.  However, since tests may be
25300         invoked manually, and since you may explicitly set srcdir to the
25301         name of a directory containing spaces, do quote its uses here.
25302         * tests/test-pread.sh: Likewise.
25303         Suggested by Bruno Haible.
25304
25305         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25306         * tests/test-pread.sh: Write no data into the pipe, because
25307         test-pread actually reads none.  This avoids a diagnostic,
25308         "bash: echo: write error: Broken pipe", that arises in the unusual
25309         event something is ignoring SIGPIPE, and might be interpreted
25310         as some sort of failure.  Reported by Bruno Haible.
25311
25312 2009-11-25  Jim Meyering  <meyering@redhat.com>
25313
25314         test-pread: cover failure with ESPIPE and EINVAL
25315         * tests/test-pread.c (main): Test for failure, too.
25316         * tests/test-pread.sh: Invoke with stdin on a pipe.
25317         Suggested by Eric Blake.
25318
25319         pread: improvement and fix
25320         * modules/pread (Depends-on): Depend on lseek, for portability to
25321         e.g., mingw.  Suggested by Eric Blake.
25322         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25323
25324         unistd.in.h: correct declaration of pread
25325         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25326         Reported by Richard W.M. Jones.
25327
25328         test-pread.sh: distribute the test script
25329         * modules/pread-tests (Files): Include test-pread.sh.
25330
25331         test-pread.sh: clean up
25332         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25333         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25334         That is unnecessary, since it's always ".".
25335         Suggestion from Eric Blake.
25336
25337         test-pread.sh: make executable
25338         * tests/test-pread.sh: Set executable bit.
25339         Reported by Eric Blake.
25340
25341         correct typo in test-pread.sh
25342         * tests/test-pread.sh: Add #! line.
25343
25344         test pread
25345         * tests/test-pread.c: New file.
25346         * tests/test-pread.sh: Likewise.
25347         * modules/pread-tests: Likewise.
25348
25349         pread: new module
25350         * modules/pread: New file.
25351         * lib/unistd.in.h (pread): Define/declare.
25352         * lib/pread.c (pread): New file.
25353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25354         * modules/unistd (Makefile.am): Substitute witnesses.
25355         * doc/posix-functions/pread.texi (pread): Update.
25356         * MODULES.html.sh: Add pread.
25357
25358 2009-11-25  Jim Meyering  <meyering@redhat.com>
25359
25360         tests/init.sh: new file to be used via most *.sh tests
25361         * tests/init.sh: New file.
25362
25363 2009-11-25  Eric Blake  <ebb9@byu.net>
25364
25365         utimens: work around older Linux failure with symlinks
25366         * lib/utimens.c (lutimensat_works_really): New variable.
25367         (fdutimens, lutimens): Use it to manage kernels that support
25368         nanosecond times on files, but not on symlinks.
25369         Reported by OndÅ™ej Vašík.
25370
25371         utimes: fix configure grammar
25372         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25373
25374 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25375
25376         regex: Fix fastmap for multibyte character ranges.
25377         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25378         characters when a multibyte character range is included.
25379
25380 2009-11-22  Andy Wingo  <wingo@pobox.com>
25381
25382         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25383         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25384
25385 2009-11-24  Bruno Haible  <bruno@clisp.org>
25386
25387         doc: Most *_l functions exist in MacOS X 10.5.
25388         * doc/posix-functions/duplocale.texi: Update platforms list.
25389         * doc/posix-functions/freelocale.texi: Likewise.
25390         * doc/posix-functions/newlocale.texi: Likewise.
25391         * doc/posix-functions/uselocale.texi: Likewise.
25392         * doc/posix-functions/isalnum_l.texi: Likewise.
25393         * doc/posix-functions/isalpha_l.texi: Likewise.
25394         * doc/posix-functions/isblank_l.texi: Likewise.
25395         * doc/posix-functions/iscntrl_l.texi: Likewise.
25396         * doc/posix-functions/isdigit_l.texi: Likewise.
25397         * doc/posix-functions/isgraph_l.texi: Likewise.
25398         * doc/posix-functions/islower_l.texi: Likewise.
25399         * doc/posix-functions/isprint_l.texi: Likewise.
25400         * doc/posix-functions/ispunct_l.texi: Likewise.
25401         * doc/posix-functions/isspace_l.texi: Likewise.
25402         * doc/posix-functions/isupper_l.texi: Likewise.
25403         * doc/posix-functions/iswalnum_l.texi: Likewise.
25404         * doc/posix-functions/iswalpha_l.texi: Likewise.
25405         * doc/posix-functions/iswblank_l.texi: Likewise.
25406         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25407         * doc/posix-functions/iswctype_l.texi: Likewise.
25408         * doc/posix-functions/iswdigit_l.texi: Likewise.
25409         * doc/posix-functions/iswgraph_l.texi: Likewise.
25410         * doc/posix-functions/iswlower_l.texi: Likewise.
25411         * doc/posix-functions/iswprint_l.texi: Likewise.
25412         * doc/posix-functions/iswpunct_l.texi: Likewise.
25413         * doc/posix-functions/iswspace_l.texi: Likewise.
25414         * doc/posix-functions/iswupper_l.texi: Likewise.
25415         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25416         * doc/posix-functions/isxdigit_l.texi: Likewise.
25417         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25418         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25419         * doc/posix-functions/strcoll_l.texi: Likewise.
25420         * doc/posix-functions/strfmon_l.texi: Likewise.
25421         * doc/posix-functions/strftime_l.texi: Likewise.
25422         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25423         * doc/posix-functions/strxfrm_l.texi: Likewise.
25424         * doc/posix-functions/tolower_l.texi: Likewise.
25425         * doc/posix-functions/toupper_l.texi: Likewise.
25426         * doc/posix-functions/towctrans_l.texi: Likewise.
25427         * doc/posix-functions/towlower_l.texi: Likewise.
25428         * doc/posix-functions/towupper_l.texi: Likewise.
25429         * doc/posix-functions/wcscoll_l.texi: Likewise.
25430         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25431         * doc/posix-functions/wctrans_l.texi: Likewise.
25432         * doc/posix-functions/wctype_l.texi: Likewise.
25433         * doc/glibc-functions/strptime_l.texi: Likewise.
25434         * doc/glibc-functions/strtod_l.texi: Likewise.
25435         * doc/glibc-functions/strtof_l.texi: Likewise.
25436         * doc/glibc-functions/strtol_l.texi: Likewise.
25437         * doc/glibc-functions/strtold_l.texi: Likewise.
25438         * doc/glibc-functions/strtoll_l.texi: Likewise.
25439         * doc/glibc-functions/strtoul_l.texi: Likewise.
25440         * doc/glibc-functions/strtoull_l.texi: Likewise.
25441         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25442         * doc/glibc-functions/wcstod_l.texi: Likewise.
25443         * doc/glibc-functions/wcstof_l.texi: Likewise.
25444         * doc/glibc-functions/wcstol_l.texi: Likewise.
25445         * doc/glibc-functions/wcstold_l.texi: Likewise.
25446         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25447         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25448         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25449
25450 2009-11-24  Bruno Haible  <bruno@clisp.org>
25451
25452         duplocale: Fix logic bug.
25453         * lib/duplocale.c: Don't include <langinfo.h>.
25454         (_NL_LOCALE_NAME): Remove macro.
25455         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25456         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25457
25458 2009-11-23  Jim Meyering  <meyering@redhat.com>
25459
25460         test-update-copyright: don't hard-code /usr/bin/perl
25461         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25462         perl to print the current year.  Gilles Espinasse reported that
25463         the replaced use of perl was hard-coded as /usr/bin/perl.
25464
25465 2009-11-23  Bruno Haible  <bruno@clisp.org>
25466
25467         duplocale: Add support for glibc 2.3.x.
25468         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25469
25470 2009-11-22  Bruno Haible  <bruno@clisp.org>
25471
25472         vasnprintf: Tiny optimization.
25473         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25474         MacOS X.
25475
25476 2009-11-22  Bruno Haible  <bruno@clisp.org>
25477
25478         Tests for module 'duplocale'.
25479         * modules/duplocale-tests: New file.
25480         * tests/test-duplocale.c: New file.
25481
25482         New module 'duplocale'.
25483         * m4/duplocale.m4: New file.
25484         * lib/locale.in.h (duplocale): New declaration.
25485         * lib/duplocale.c: New file.
25486         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25487         gl_LOCALE_H_DEFAULTS): New macros.
25488         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25489         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25490         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25491         REPLACE_DUPLOCALE.
25492         * modules/duplocale: New file.
25493         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25494
25495 2009-11-22  Bruno Haible  <bruno@clisp.org>
25496
25497         * modules/locale-tests (configure.ac): Test for newlocale function.
25498         * tests/test-locale.c: When the system has extended locale functions,
25499         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25500
25501         locale: Make locale_t available when possible.
25502         * lib/locale.in.h: Include <xlocale.h> when it exists.
25503         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25504         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25505         * modules/locale (Depends-on): Add extensions.
25506         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25507         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25508
25509 2009-11-22  Bruno Haible  <bruno@clisp.org>
25510
25511         Add comments.
25512         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25513         invocation.
25514         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25515         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25516         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25517
25518 2009-11-22  Bruno Haible  <bruno@clisp.org>
25519
25520         error: account for the possibility of freopen (stdout).
25521         * lib/error.c: Include <unistd.h>.
25522         (flush_stdout): New function, extracted from error and error_at_line.
25523         Determine stdout's fd dynamically.
25524         (error, error_at_line): Invoke flush_stdout.
25525         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25526         * modules/error (Depends-on): Add unistd.
25527
25528 2009-11-22  Bruno Haible  <bruno@clisp.org>
25529
25530         diffseq: Add comment.
25531         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25532
25533 2009-11-22  Jim Meyering  <meyering@redhat.com>
25534
25535         c-stack: avoid defining an unused static function
25536         * lib/c-stack.c (find_stack_direction): Do not define this function
25537         when it will not be used.
25538
25539         diffseq: avoid spurious gcc warnings
25540         * lib/diffseq.h (IF_LINT2): Define.
25541         (compareseq): Use it to initialize two members of "part".
25542         This avoids two used-uninitialized warnings.
25543
25544 2009-11-21  Jim Meyering  <meyering@redhat.com>
25545
25546         c-stack: avoid "ignoring return value of `write'" warning
25547         * lib/c-stack.c: Include "ignore-value.h".
25548         (die): Explicitly ignore each write return value.
25549         * modules/c-stack (Depends-on): Add ignore-value.
25550
25551 2009-11-21  Bruno Haible  <bruno@clisp.org>
25552
25553         diffseq: reduce scope of variable 'best'.
25554         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25555         variable, earlier used for two different purposes.
25556
25557 2009-11-21  Jim Meyering  <meyering@redhat.com>
25558
25559         diffseq: remove useless assignment to "best"
25560         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25561         assignment.  At that point "best" is already guaranteed to be zero.
25562
25563 2009-11-20  Eric Blake  <ebb9@byu.net>
25564
25565         build: mention ftp redirector in release announcements
25566         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25567         values that used to come from cfg.mk; mention FTP redirect URL.
25568         * build-aux/announce-gen: Mention the mirror list.
25569         Suggested by Karl Berry.
25570
25571         nanosleep: improve port to mingw
25572         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25574         LIB_NANOSLEEP, but only when needed.
25575         * modules/select (Link): Document LIBSOCKET.
25576         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25577         enough.
25578
25579         nanosleep: work around cygwin bug
25580         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25581         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25582         bug.
25583         (getnow): Delete, not needed.
25584         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25585         LIB_CLOCK_GETTIME.
25586         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25587         clock-time, gettime.
25588         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25589         bug.
25590         * modules/nanosleep-tests: New test.
25591         * tests/test-nanosleep.c: New file.
25592
25593         sleep: work around cygwin bug
25594         * lib/sleep.c (rpl_sleep): Work around the bug.
25595         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25596         (gl_PREREQ_SLEEP): Delete unused macro.
25597         * modules/sleep (Depends-on): Add verify.
25598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25599         * modules/unistd (Makefile.am): Substitute witness.
25600         * lib/unistd.in.h (sleep): Update prototype.
25601         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25602         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25603         * modules/sleep-tests (Depends-on): Check for alarm.
25604
25605 2009-11-20  Jim Meyering  <meyering@redhat.com>
25606
25607         maint.mk: improve sc_prohibit_magic_number_exit
25608         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25609         so it does not match uses like System.exit(1).
25610         Add comments showing how to correct all offenders.
25611
25612 2009-11-19  Eric Blake  <ebb9@byu.net>
25613
25614         xalloc-die-tests: add missing library
25615         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25616
25617         test-xvasprintf: silence compiler warnings
25618         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25619         empty string from gcc.
25620
25621 2009-11-19  Jim Meyering  <meyering@redhat.com>
25622
25623         xfreopen: new module, from coreutils
25624         * modules/xfreopen: New module.
25625         * lib/xfreopen.c: New file.
25626         * lib/xfreopen.h: New file.
25627         * MODULES.html.sh (File stream based Input/Output"): Add it.
25628
25629 2009-11-19  Eric Blake  <ebb9@byu.net>
25630
25631         manywarnings: depend on warnings
25632         * modules/manywarnings (Depends-on): Add warnings.
25633
25634         build: avoid compiler warnings
25635         * lib/select.c (rpl_select): Delete unused variable.
25636         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25637
25638 2009-11-18  Eric Blake  <ebb9@byu.net>
25639
25640         tests: avoid false negative with --with-packager
25641         * tests/test-version-etc.sh: Discard packager information.
25642         * tests/test-argp-version-etc-1.sh: Likewise.
25643         Reported by Mike Frysinger.
25644
25645         utimens: fix regression on Solaris
25646         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25647         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25648         can only change fd timestamps via futimesat.  Instead, use an
25649         additional witness macro to avoid BSD bug.
25650         Reported by Jim Meyering.
25651
25652 2009-11-17  Eric Blake  <ebb9@byu.net>
25653
25654         usleep: use it to simplify tests
25655         * modules/stat-time-tests (Depends-on): Add usleep.
25656         (configure.ac): Drop usleep check.
25657         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25658         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25659         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25660         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25661         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25662         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25663         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25664         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25665         Likewise.
25666         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25667         * tests/test-lchown.h (nap): Likewise.
25668         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25669         * tests/test-stat-time.c (nap): Likewise.
25670         * tests/test-utimens-common.h (nap): Update comments.
25671
25672         usleep: new module
25673         * modules/usleep: New file.
25674         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25675         * lib/usleep.c (usleep): Likewise.
25676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25677         * modules/unistd (Makefile.am): Substitute witnesses.
25678         * lib/unistd.in.h (usleep): Add declaration.
25679         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25680         * MODULES.html.sh (Date and time): Likewise.
25681         * modules/usleep-tests (Depends-on): New test.
25682         * tests/test-usleep.c: New file.
25683
25684         chown: work around OpenBSD bug
25685         * lib/chown.c (rpl_chown): Work around the bug.
25686         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25687         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25688         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25689         * modules/chown (Depends-on): Add stdbool.
25690         * modules/lchown (Depends-on): Likewise.
25691         * doc/posix-functions/chown.texi (chown): Document the bug.
25692         * doc/posix-functions/lchown.texi (lchown): Likewise.
25693         * tests/test-lchown.h (test_chown): Relax test.
25694
25695         mkstemp: avoid conflict with C++ keyword template
25696         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25697         * lib/mkostemp.c (mkostemp): Likewise.
25698         * lib/mkostemps.c (mkostemps): Likewise.
25699         * lib/mkstemp.c (mkstemp): Likewise.
25700         * lib/mkstemps.c (mkstemps): Likewise.
25701
25702         xalloc-die-tests: optimize
25703         * tests/test-xalloc-die.sh: Reduce number of processes.
25704
25705 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25706
25707         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25708         patch from ludo@gnu.org (Ludovic Courtès).
25709
25710 2009-11-17  Jim Meyering  <meyering@redhat.com>
25711
25712         version-etc: use proper license string
25713         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25714         * modules/version-etc-fsf: Likewise.
25715
25716 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25717
25718         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25719         printed to stdout.  Deal with EOL differences.
25720
25721 2009-11-17  Eric Blake  <ebb9@byu.net>
25722
25723         unsetenv: work around Solaris bug
25724         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25725         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25726         Reported by Jim Meyering.
25727
25728         vasnprintf: avoid compiler warnings
25729         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25730         variables.
25731         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25732
25733 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25734
25735         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25736         settings since xalloc-die is no longer the self test,
25737         xalloc-die.sh is.
25738
25739 2009-11-17  Jim Meyering  <meyering@redhat.com>
25740
25741         test-xalloc-die.sh: make the code agree with the commit log
25742         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25743         at the end, just in case you happen to have a test-xalloc-die
25744         program in some other PATH directory.
25745
25746         test-xalloc-die.sh: fix a portability bug
25747         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25748         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25749         Otherwise, argv[0] (as often seen in diagnostics) would be too
25750         system-dependent, sometimes with, and sometimes without the leading "./".
25751
25752         version-etc-fsf: relax license to LGPLv3+
25753         * modules/version-etc-fsf (License): Relax license.
25754
25755 2009-11-16  Eric Blake  <ebb9@byu.net>
25756
25757         xalloc-die-tests: avoid printing null pointer
25758         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25759         shell script.
25760         * tests/test-xalloc-die.c (program_name): Declare.
25761         * tests/test-xalloc-die.sh (tmpfiles): New file.
25762
25763         setenv, unsetenv: work around various bugs
25764         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25765         (setenv) [HAVE_SETENV]: Work around bugs.
25766         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25767         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25768         for bugs.
25769         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25770         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25772         * modules/stdlib (Makefile.am): Update substitutions.
25773         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25774         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25775         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25776         * modules/setenv-tests: New test.
25777         * modules/unsetenv-tests: Likewise.
25778         * tests/test-setenv.c: New file.
25779         * tests/test-unsetenv.c: Likewise.
25780
25781 2009-11-16  Jim Meyering  <meyering@redhat.com>
25782
25783         version-etc: relax license to LGPLv3+
25784         * modules/version-etc (License): Relax license.
25785
25786         better AC_REQUIRE expanded-before-required-warning avoidance
25787         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25788         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25789         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25790         which is no longer needed.
25791
25792 2009-11-16  Eric Blake  <ebb9@byu.net>
25793
25794         test-freading: clean up temporary file
25795         * tests/test-freading.c (main): Remove file on success, and use
25796         ASSERT more liberally.
25797         Reported by Jim Meyering.
25798
25799 2009-11-16  Jim Meyering  <meyering@redhat.com>
25800
25801         avoid new AC_REQUIRE expanded-before-required warnings
25802         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25803         merely using it.
25804         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25805         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25806
25807 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25808
25809         * tests/test-xalloc-die.c: New file.
25810         * modules/xalloc-die-tests: New file.
25811         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25812         XFAIL_TESTS so it can be appended by modules.
25813
25814 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25815
25816         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25817         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25818
25819 2009-11-14  Eric Blake  <ebb9@byu.net>
25820
25821         fnmatch: avoid compiler warning
25822         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25823         to silence compiler warning about mismatch signedness in ?:.
25824         Reported by Robert Millan.
25825
25826         intprops: add double-inclusion guard
25827         * lib/intprops.h: Allow idempotent includes.
25828         Suggested by Bruce Korb.
25829
25830         openat: detect Solaris fchownat bug
25831         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25832         penalizing glibc chownat when only lchownat is broken.
25833         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25834         trailing slash bugs.
25835         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25836         * modules/openat-tests (Files): Include more files.
25837         (Depends-on): Add mgetgroups, sleep, stat-time.
25838         (configure.ac): Add additional checks.
25839         (Makefile.am): Build new test.
25840         * tests/test-fchownat.c: New file.
25841
25842         lchown: detect Solaris and FreeBSD bug
25843         * lib/lchown.c (rpl_lchown): Work around bug.
25844         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25846         * modules/unistd (Makefile.am): Populate it.
25847         * lib/unistd.in.h (lchown): Update declaration.
25848         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25849         * modules/lchown-tests: New file.
25850         * tests/test-lchown.h (test_lchown): Likewise.
25851         * tests/test-lchown.c (main): Likewise.
25852
25853         chown: detect Solaris and FreeBSD bug
25854         * lib/chown.c (rpl_chown): Work around bug.
25855         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25856         (gl_PREREQ_CHOWN): Delete.
25857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25858         * modules/unistd (Makefile.am): Populate it.
25859         * lib/unistd.in.h (chown): Update declaration.
25860         * lib/lchown.c (chown): Update client.
25861         * modules/lchown (Depends-on): Add lstat.
25862         * doc/posix-functions/chown.texi (chown): Document the bug.
25863         * doc/posix-functions/getgroups.texi (getgroups): Document
25864         getgroups pitfall.
25865         * modules/chown-tests: New file.
25866         * tests/test-chown.h (test_chown): Likewise.
25867         * tests/test-chown.c (main): Likewise.
25868
25869 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25870
25871         gnulib-tool: correctly detect absence of m4 directories
25872         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25873
25874 2009-11-14  Jim Meyering  <meyering@redhat.com>
25875
25876         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25877         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25878
25879 2009-11-14  John W. Eaton  <jwe@gnu.org>
25880
25881         strftime.h: wrap funtion declaration in extern "C" block
25882         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25883
25884 2009-11-13  Eric Blake  <ebb9@byu.net>
25885
25886         getgroups: avoid compiler warning
25887         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25888
25889         getgroups: work around FreeBSD bug
25890         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25891         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25892         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25893         * tests/test-getgroups.c (main): Fix buffer overrun.
25894
25895         getgroups: avoid compilation failure
25896         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25897         * modules/getgroups (Depends-on): Add stdint.
25898
25899 2009-11-13  Jim Meyering  <meyering@redhat.com>
25900
25901         test-getgroups: avoid compilation failure
25902         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25903
25904 2009-11-13  Eric Blake  <ebb9@byu.net>
25905
25906         mgetgroups: new module, taken from coreutils
25907         * modules/mgetgroups: New file.
25908         * lib/mgetgroups.h: Likewise.
25909         * lib/mgetgroups.c (mgetgroups): Likewise.
25910         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25911         * MODULES.html.sh (Users and groups): Mention it.
25912
25913         getgroups: don't expose GETGROUPS_T to user
25914         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25915         an element at a time if GETGROUPS_T is wrong size.
25916         * lib/getugroups.h (getugroups): Change signature.
25917         * lib/unistd.in.h (getgroups): Likewise.
25918         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25919         signature needs fixing.
25920         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25921         AC_TYPE_GETGROUPS.
25922         * modules/group-member (Depends-on): Add getgroups.
25923         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25924         (group_member): Rely on getgroups replacement.
25925         * lib/getugroups.c (getugroups): Use gid_t.
25926         * tests/test-getgroups.c (main): Likewise.
25927         * NEWS: Mention the signature change.
25928         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25929         problem with signature.
25930         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25931         GETGROUPS_T is still useful for setgroups.
25932
25933         getgroups, getugroups: provide stubs for mingw
25934         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25935         * lib/getugroups.c (getugroups): Likewise.
25936         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25937         function.  Modernize replacement scheme.
25938         (gl_PREREQ_GETGROUPS): Delete.
25939         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25940         * modules/getgroups (configure.ac): Declare witness.
25941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25942         * modules/unistd (Depends-on): Substitute witness.
25943         * lib/unistd.in.h (getgroups): Declare replacement.
25944
25945         getgroups: avoid calling exit
25946         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25947         drop xalloc.
25948         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25949         dependencies.
25950         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25951         exiting, in the rare case of malloc failure.
25952
25953         getgroups: fix logic error
25954         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25955         has more than 20 groups.
25956         * modules/getgroups-tests: New test.
25957         * tests/test-getgroups.c: New file.
25958
25959 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25960
25961         * tests/test-base64.c: Improve.
25962
25963 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25964
25965         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25966         Blake <ebb9@byu.net>.
25967
25968 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25969
25970         * tests/test-xvasprintf.c: Add %s%s related checks.
25971
25972 2009-11-12  Eric Blake  <ebb9@byu.net>
25973
25974         version-etc: match standards.texi style
25975         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25976         and use <> only for URLs.
25977
25978 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25979
25980         fts: do not fail on a submount during traversal
25981         * lib/fts.c (fts_build): Read the stat info again after opening
25982         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25983         Original report at http://bugzilla.redhat.com/501848.
25984
25985 2009-11-12  Jim Meyering  <meyering@redhat.com>
25986
25987         bootstrap: sync from coreutils
25988         * build-aux/bootstrap (bootstrap_epilogue): New function.
25989         Use git_modules_config in one more place.  This make bootstrap's
25990         --gnulib-srcdir option more useful for testing.
25991
25992         bootstrap: generalize autoheader check
25993         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25994         AC_CONFIG_HEADERS.
25995
25996 2009-11-11  Eric Blake  <ebb9@byu.net>
25997
25998         mkfifoat: use new modules for Solaris and BSD bugs
25999         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
26000         * lib/mkfifoat.c (mknodat): Split...
26001         * lib/mknodat.c (mknodat): ...into new file.
26002         * modules/mkfifoat (Files): Ship new file.
26003         (Depends-on): Add mkfifo, mknod.
26004         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
26005         (Depends-on): Add symlink.
26006         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
26007         redundant with test_mkfifo.h.
26008         (do_mkfifoat, do_mknodat): New helpers.
26009
26010         mknod: new module
26011         * modules/mknod: New file.
26012         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
26013         * lib/mknod.c (mknod): Likewise.
26014         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26015         defaults.
26016         * modules/sys_stat (Makefile.am): Substitute them.
26017         * lib/sys_stat.in.h (mknod): Declare replacement.
26018         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26019         Document it.
26020         * doc/posix-functions/mknod.texi (mknod): Likewise.
26021         * modules/mknod-tests: New test.
26022         * tests/test-mknod.c: Likewise.
26023
26024         mkfifo: new module
26025         * modules/mkfifo: New file.
26026         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26027         * lib/mkfifo.c (mkfifo): Likewise.
26028         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26029         defaults.
26030         * modules/sys_stat (Makefile.am): Substitute them.
26031         * lib/sys_stat.in.h (mkfifo): Declare replacement.
26032         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26033         Document it.
26034         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
26035         * modules/mkfifo-tests: New test.
26036         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
26037         from test-mkfifoat.c.
26038         * tests/test-mkfifo.c: New file.
26039
26040         readlink: detect FreeBSD bug
26041         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
26042         slash on symlink.
26043         * doc/posix-functions/readlink.texi (readlink): Document the bug.
26044         * tests/test-readlink.h (test_readlink): Enhance test.
26045
26046         symlink: detect FreeBSD bug
26047         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
26048         slash on symlink.
26049         * doc/posix-functions/symlink.texi (symlink): Document the bug.
26050         * tests/test-symlink.h (test_symlink): Enhance test.
26051
26052 2009-11-10  Eric Blake  <ebb9@byu.net>
26053
26054         link: detect FreeBSD bug
26055         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
26056         symlink.
26057         * doc/posix-functions/link.texi (link): Document the bug.
26058         * tests/test-link.h (test_link): Enhance test.
26059         * tests/test-linkat.c (main): Update caller.
26060
26061         unlink, remove: detect FreeBSD bug
26062         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
26063         slash on symlink.
26064         * doc/posix-functions/unlink.texi (unlink): Document the bug.
26065         * doc/posix-functions/remove.texi (remove): Likewise.
26066         * tests/test-unlink.h (test_unlink): Enhance test.
26067         * tests/test-remove.c (main): Likewise.
26068
26069 2009-11-09  Eric Blake  <ebb9@byu.net>
26070
26071         rename: detect FreeBSD bug
26072         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
26073         slash on symlink.
26074         * modules/renameat-tests (Depends-on): Add filenamecat.
26075         * tests/test-rename.h (test_rename): Allow one more errno.
26076         * tests/test-renameat.c (main): Likewise.
26077         * doc/posix-functions/rename.texi (rename): Document the bug.
26078
26079         open: detect FreeBSD bug
26080         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
26081         symlink.
26082         * doc/posix-functions/open.texi (open): Document the bug.
26083         * doc/posix-functions/utimes.texi (utimes): Likewise.
26084         * tests/test-open.h (test_open): Add parameters, and test symlink
26085         handling.
26086         * tests/test-open.c (main): Adjust caller.
26087         * tests/test-fcntl-safer.c (main): Likewise.
26088         * modules/open-tests (Depends-on): Add stdbool, symlink.
26089         * modules/fcntl-safer-tests (Depends-on): Likewise.
26090         * tests/test-openat.c (main): Add test-open tests.
26091
26092         stat: detect FreeBSD bug
26093         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
26094         symlink.
26095         * doc/posix-functions/stat.texi (stat): Document the bug.
26096         * tests/test-stat.h (test_stat_func): Add argument.
26097         * tests/test-stat.c (main): Adjust caller.
26098         * tests/test-fstatat.c (main): Likewise.
26099         * modules/stat-tests (Depends-on): Add stdbool, symlink.
26100         Reported by Jim Meyering.
26101
26102 2009-11-09  James Youngman  <jay@gnu.org>
26103
26104         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
26105         * lib/strftime.c: Correct placement of #include "ignore-value.h".
26106
26107 2009-11-08  Jim Meyering  <meyering@redhat.com>
26108
26109         utimens: remove invalid futimesat call
26110         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
26111         It used the file descriptor of the target file as the DIR_FD
26112         parameter and NULL as the file name.  That caused failure with
26113         errno == EFAULT on FreeBSD-8.0-rc2
26114
26115 2009-11-07  Eric Blake  <ebb9@byu.net>
26116
26117         fflush, freadseek: use fseeko, not fseek
26118         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26119         (clear_ungetc_buffer): Avoid potential problems on large files.
26120         * lib/freadseek.c (freadseek): Likewise.
26121         * modules/freadseek (Depends-on): Add fseeko.
26122         * modules/fseek (configure.ac): Set a witness.
26123         * tests/test-fflush.c (main): Use fseeko.
26124         * tests/test-fpurge.c (fseek): Disable link warning.
26125         * tests/test-freadable.c (fseek): Likewise.
26126         * tests/test-freading.c (fseek): Likewise.
26127         * tests/test-fseeko.c (fseek): Likewise.
26128         * tests/test-ftell.c (fseek): Likewise.
26129         * tests/test-ftello.c (fseek): Likewise.
26130         * tests/test-fwritable.c (fseek): Likewise.
26131         * tests/test-fwriting.c (fseek): Likewise.
26132
26133 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26134
26135         * modules/memchr (Depends-on): Drop getpagesize dependency.
26136
26137 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26138
26139         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
26140         Reported by Ludovic Courtès.
26141         * build-aux/pmccabe2html: Improve example usage.
26142         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
26143
26144 2009-11-06  Jim Meyering  <meyering@redhat.com>
26145
26146         do-release-commit-and-tag: New module.
26147         Automate the release-commit and tag process.
26148         * build-aux/do-release-commit-and-tag: New script, from coreutils.
26149         * modules/do-release-commit-and-tag: New file.
26150         * MODULES.html.sh (Support for maintaining and releasing): Add it.
26151
26152 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26153
26154         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
26155         because test-select.c uses inet_pton.
26156
26157 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26158
26159         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
26160         GETADDRINFO_LIB.  Bump serial number.
26161         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
26162         Suggested by Eric Blake <ebb9@byu.net>.
26163
26164 2009-11-05  Eric Blake  <ebb9@byu.net>
26165
26166         strtod: detect darwin bug
26167         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
26168         Reported by Leo Davis.
26169
26170         freopen-safer: new module
26171         * modules/freopen-safer: New module.
26172         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
26173         * lib/freopen-safer.c (freopen_safer): New file.
26174         * lib/stdio-safer.h (freopen_safer): New declaration.
26175         * lib/stdio--.h (freopen): New override.
26176         * MODULES.html.sh (File stream based Input/Output): Mention it.
26177         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
26178         freopen-safer module.
26179         * doc/posix-functions/stderr.texi (stderr): Likewise.
26180         * doc/posix-functions/stdin.texi (stdin): Likewise.
26181         * doc/posix-functions/stdout.texi (stdout): Likewise.
26182         * modules/freopen-safer-tests: New test.
26183         * tests/test-reopen-safer.c: New file.
26184
26185 2009-11-05  Jim Meyering  <meyering@redhat.com>
26186
26187         maint.mk: Prohibit inclusion of "close-stream.h" without use.
26188         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26189
26190 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26191
26192         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
26193
26194 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26195
26196         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
26197
26198 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26199
26200         Fix link error.
26201         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26202         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26203
26204 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26205
26206         * tests/test-func.c: Also test value of __func__.
26207
26208 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26209
26210         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
26211         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
26212
26213 2009-11-05  Bruno Haible  <bruno@clisp.org>
26214
26215         Fix link error.
26216         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26217         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26218         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
26219
26220 2009-11-05  Bruno Haible  <bruno@clisp.org>
26221
26222         Tests for module 'inet_pton'.
26223         * modules/inet_pton-tests: New file.
26224         * tests/test-inet_pton.c: New file.
26225
26226 2009-11-05  Bruno Haible  <bruno@clisp.org>
26227
26228         Tests for module 'inet_ntop'.
26229         * modules/inet_ntop-tests: New file.
26230         * tests/test-inet_ntop.c: New file.
26231
26232 2009-11-04  Eric Blake  <ebb9@byu.net>
26233
26234         stdlib-safer: wrap all mkstemp variants
26235         * modules/mkostemp (configure.ac): Set witness.
26236         * modules/mkostemps (configure.ac): Likewise.
26237         * modules/mkstemps (configure.ac): Likewise.
26238         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
26239         (mkstemps_safer): Wrap more functions.
26240         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26241         wrapping.
26242         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26243         (mkstemps_safer): Implement the wrappers.
26244
26245         mkstemps, mkostemps: new modules
26246         * modules/mkostemps: New module.
26247         * modules/mkstemps: Likewise.
26248         * lib/mkostemps.c (mkostemps): New file.
26249         * lib/mkstemps.c (mkstemps): Likewise.
26250         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26251         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26253         * modules/stdlib (Makefile.am): Substitute them.
26254         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26255         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26256         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26257         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26258         * MODULES.html.sh (File system functions): Mention them.
26259
26260         tempname: resync from glibc
26261         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26262         same values for __GT_FILE as glibc.  Abort even when assertions
26263         are disabled.
26264         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26265         match its value otherwise.  Allow idempotent inclusion.
26266         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26267         * lib/mkostemp.c (mkostemp): Likewise.
26268         * lib/mkstemp.c (mkstemp): Likewise.
26269         * lib/tmpfile.c (tmpfile): Likewise.
26270         * NEWS: Document this.
26271
26272         utimens: fix use of futimens on older Linux
26273         * lib/utimens.c (fdutimens): Use updated, rather than original,
26274         timespec to avoid bug in older Linux kernel.
26275         Reported by Simon Josefsson.
26276
26277 2009-11-04  Bruno Haible  <bruno@clisp.org>
26278
26279         Make num_processors more flexible and consistent.
26280         * lib/nproc.h (enum nproc_query): New type.
26281         (num_processors): Add a 'query' argument.
26282         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26283         (num_processors): Add a 'query' argument. Test the value of the
26284         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26285         mingw, count the number of CPUs available for the current process.
26286         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26287         Check for sched_getaffinity and sched_getaffinity_np.
26288         * modules/nproc (Depends-on): Add c-ctype, extensions.
26289         * NEWS: Mention the change.
26290
26291 2009-11-03  Bruno Haible  <bruno@clisp.org>
26292
26293         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26294
26295 2009-11-03  Jim Meyering  <meyering@redhat.com>
26296
26297         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26298         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26299         if it is defined.
26300
26301 2009-11-02  Eric Blake  <ebb9@byu.net>
26302
26303         mktime, timegm: share common declaration
26304         * lib/mktime-internal.h: New file.
26305         * lib/mktime.c: Use it rather than open-coding a declaration.
26306         * lib/timegm.c: Likewise.
26307         * modules/mktime (Files): Ship it.
26308         * modules/timegm (Files): Likewise.
26309         Suggested by Bruno Haible.
26310
26311         test-update-copyright: update test to match script changes
26312         * tests/test-update-copyright.sh: Avoid hard-coding perl
26313         location.  Don't update *.bak created by earlier runs.
26314
26315 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26316             Simon Josefsson  <simon@josefsson.org>
26317             Bruno Haible  <bruno@clisp.org>
26318
26319         Fix link error on Solaris 8.
26320         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26321         also in libnsl. Define also INET_PTON_LIB.
26322         * modules/inet_pton (Link): New section.
26323
26324 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26325             Bruno Haible  <bruno@clisp.org>
26326
26327         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26328         * modules/inet_ntop (Link): New section.
26329         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26330
26331 2009-11-02  Eric Blake  <ebb9@byu.net>
26332
26333         maint: avoid compiler warnings in m4 macros
26334         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26335         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26336
26337 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26338
26339         * m4/pmccabe2html.m4: Remove file.
26340         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26341         function.  Change maintainer.
26342         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26343         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26344         Courtès).
26345
26346 2009-10-31  Eric Blake  <ebb9@byu.net>
26347
26348         fseeko: fix m4 regression
26349         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26350         regression from 2009-10-27.
26351         Reported by Ralf Wildenhues.
26352
26353 2009-10-31  Jim Meyering  <meyering@redhat.com>
26354
26355         inttostr: aesthetics and improved (compile-time) safety
26356         Define inttype_is_signed rather than inttype_is_unsigned,
26357         since the sole use is via "#if inttype_is_signed".
26358         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26359         inttype_is_unsigned.
26360         * lib/offtostr.c (inttype_is_signed): Likewise.
26361         * lib/uinttostr.c (inttype_is_signed): Likewise.
26362         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26363         * lib/inttostr.c (inttostr): Use verify to cross-check the
26364         inttype_is_signed value and the signedness of the actual type.
26365         * modules/inttostr (Depends-on): Add verify.
26366
26367 2009-10-30  Eric Blake  <ebb9@byu.net>
26368
26369         build: avoid compiler warnings
26370         * lib/fchmodat.c (lchmod): Mark unused variables.
26371         * lib/getopt.c (_getopt_initialize): Likewise.
26372         * lib/mktime.c (__mktime_internal): Provide prototype.
26373         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26374         older gcc that do not understand #pragma GCC diagnostic.
26375         * lib/uinttostr.c (inttype_is_unsigned): Define.
26376         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26377
26378 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26379
26380         stat: fix compilation on AIX
26381         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26382         only see struct stat64.
26383
26384 2009-10-30  Eric Blake  <ebb9@byu.net>
26385
26386         exclude: make more robust
26387         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26388         rather than masking a coding bug.
26389         Suggested by Bruno Haible.
26390
26391 2009-10-30  Jim Meyering  <meyering@redhat.com>
26392
26393         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26394         Rather than putting #!/usr/bin/perl on the first line,
26395         start with a variant of what's recommended by "man perlrun" that
26396         invokes the first "perl" program from your shell's search path.
26397         * build-aux/gitlog-to-changelog: Replace #!... as above.
26398         Add a "Local Variables" perl mode setting.
26399         Prompted by a patch from Ludovic Courtès.
26400         Improved by Eric Blake.
26401         * build-aux/useless-if-before-free: Likewise.
26402         * build-aux/announce-gen: Likewise.
26403         * build-aux/update-copyright: Likewise.
26404
26405 2009-10-29  Eric Blake  <ebb9@byu.net>
26406
26407         filenamecat-lgpl: adjust clients
26408         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26409         filenamecat.
26410         * modules/renameat (Depends-on): Likewise.
26411
26412         filenamecat: split into filenamecat-lgpl
26413         * modules/filenamecat-lgpl: New module.
26414         * modules/filenamecat (Files): Move library-safe files into
26415         filenamecat-lgpl.
26416         (Depends-on): Add filenamecat-lgpl.
26417         (configure.ac): Declare witness.
26418         * lib/filenamecat.h (file_name_concat): Only declare when using
26419         GPL module.
26420         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26421         Move...
26422         * lib/filenamecat-lgpl.c: ...into new file.
26423         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26424         (gl_FILE_NAME_CONCAT): Use it.
26425         * MODULES.html.sh (File system functions): Mention new module.
26426
26427         argp: avoid memory leak
26428         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26429         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26430         base_name, since the latter malloc()s and can call exit().
26431         Leak introduced 2006-07-03.
26432
26433         dirname-lgpl: adjust clients that don't need full dirname
26434         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26435         * modules/filenamecat (Depends-on): Likewise.
26436         * modules/linkat (Depends-on): Likewise.
26437         * modules/mkancesdirs (Depends-on): Likewise.
26438         * modules/mkdir (Depends-on): Likewise.
26439         * modules/openat (Depends-on): Likewise.
26440         * modules/savewd (Depends-on): Likewise.
26441         * modules/rename (Depends-on): Likewise.
26442         (License): Relax license.
26443         * modules/mkdir-tests (Depends-on): Drop progname.
26444         (Makefile.am): Delete unneeded LDADD.
26445         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26446
26447         dirname: split into dirname-lgpl
26448         * modules/dirname-lgpl: New module.
26449         * modules/dirname (Files): Move library-safe files into
26450         dirname-lgpl.
26451         (Depends-on): Add dirname-lgpl.
26452         (configure.ac): Declare witness.
26453         * modules/double-slash-root (License): Relax license.
26454         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26455         module.
26456         * lib/dirname.c (dir_len, mdir_name): Move...
26457         * lib/dirname-lgpl.c: ...into new file.
26458         * lib/basename.c (last_component, base_len): Move...
26459         * lib/basename-lgpl.c: ...into new file.
26460         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26461         (gl_DIRNAME): Use it.
26462         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26463         Mention new module.
26464         * modules/dirname-tests (Depends-on): Add progname.
26465         * tests/test-dirname.c (program_name): Delete.
26466
26467         mkdir: make safe for libraries
26468         * modules/mkdir (Depends-on): Drop xalloc.
26469         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26470         exit.
26471
26472         tests: avoid some compiler warnings
26473         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26474         literals.
26475         * tests/test-memchr.c (main): Avoid type mismatch.
26476         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26477         * tests/test-base64.c (main): Likewise.
26478         * tests/test-getdelim.c (main): Likewise.
26479         * tests/test-gethostname.c (main): Likewise.
26480         * tests/test-getline.c (main): Likewise.
26481         * tests/test-netinet_in.c (main): Likewise.
26482         * tests/test-select.c (open_server_socket, main): Likewise.
26483         * tests/test-select-stdin.c (main): Likewise.
26484         * tests/test-sockets.c (main): Likewise.
26485         * tests/test-strsignal.c (main): Likewise.
26486         * tests/test-sys_select.c (main): Likewise.
26487         * tests/test-sys_socket.c (main): Likewise.
26488         * tests/test-u64.c (main): Likewise.
26489         * tests/test-xfprintf-posix.c (main): Likewise.
26490         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26491
26492         sockets: avoid compiler warning
26493         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26494
26495         maint: detect usage(1) and other suspicious exits
26496         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26497
26498 2009-10-29  Jim Meyering  <meyering@redhat.com>
26499
26500         timespec: long-to-int truncation could make timespec_cmp malfunction
26501         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26502         a multiple of 2^32 nanoseconds as no difference.
26503
26504 2009-10-28  Jim Meyering  <meyering@redhat.com>
26505
26506         fprintftime: wrap macro code argument in "do {...} while(0)"
26507         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26508         cpy macro must be a statement that can be followed by a semicolon.
26509         Now that the else clause contains a comment and is hence longer
26510         than one line, I require curly braces.  That in turn requires
26511         that we wrap this code block in the standard do...while(0).
26512
26513         fprintftime: remove stray semicolon from previous change
26514         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26515
26516         fprintftime: avoid a warning about ignored fwrite return value
26517         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26518         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26519         that is unsafe.
26520         * modules/fprintftime (Depends-on): Add ignore-value.
26521
26522         exclude: avoid an unwarranted warning
26523         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26524
26525 2009-10-27  Eric Blake  <ebb9@byu.net>
26526
26527         fseek: avoid compilation failure when fflush is replaced
26528         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26529         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26530         module is in use.
26531         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26532         module is not in use; since REPLACE_FSEEK worked otherwise.
26533         (GNULIB_FTELLO): Likewise for ftell.
26534         Reported by Ian Beckwith and others.
26535
26536 2009-10-27  Bruno Haible  <bruno@clisp.org>
26537
26538         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26539         Reported by Jim Meyering.
26540
26541 2009-10-27  Jim Meyering  <jim@meyering.net>
26542             Bruno Haible  <bruno@clisp.org>
26543
26544         Avoid warning despite dropping the return value of fwrite.
26545         * lib/unicodeio.c: Include ignore-value.h.
26546         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26547         * modules/unicodeio (Depends-on): Add ignore-value.
26548
26549 2009-10-26  Eric Blake  <ebb9@byu.net>
26550
26551         areadlinkat: fix fallback path
26552         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26553         pointer and zero.
26554
26555 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26556
26557         Use a better IO block size for modern systems
26558         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26559         * lib/md2.c: Likewise.
26560         * lib/md4.c: Likewise.
26561         * lib/md5.c: Likewise.
26562         * lib/sha1.c: Likewise.
26563         * lib/sha256.c: Likewise.
26564         * lib/sha512.c: Likewise.
26565
26566 2009-10-22  Eric Blake  <ebb9@byu.net>
26567
26568         tests: avoid several compiler warnings
26569         * tests/test-getcwd.c (main): Avoid buffer underflow.
26570         * tests/test-getdate.c (main): String literals are not safe with
26571         putenv, so use setenv.  Declare unused argument.
26572         * modules/getdate-tests (Depends-on): Add setenv.
26573         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26574         problems with string literals in char *.
26575         * tests/test-hash.c (main): Avoid shadowing declaration.
26576         (insert_new): Treat string literals as char const *.
26577         * tests/test-getopt.h (test_getopt): Likewise.
26578         (getopt_loop): Alter types to minimize casting elsewhere.
26579         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26580         (test_getopt_long_posix): Likewise.
26581         (do_getopt_long): Add wrapper to minimize casting.
26582         * tests/test-atexit.c (clear_temp_file): Use void.
26583         * tests/test-areadlink-with-size.c (main): Declare unused
26584         arguments.
26585         * tests/test-areadlink.c (main): Likewise.
26586         * tests/test-areadlinkat-with-size.c (main): Likewise.
26587         * tests/test-areadlinkat.c (main): Likewise.
26588         * tests/test-canonicalize-lgpl.c (main): Likewise.
26589         * tests/test-canonicalize.c (main): Likewise.
26590         * tests/test-dirent-safer.c (main): Likewise.
26591         * tests/test-dirname.c (main): Likewise.
26592         * tests/test-dup2.c (main): Likewise.
26593         * tests/test-fchdir.c (main): Likewise.
26594         * tests/test-fcntl-h.c (main): Likewise.
26595         * tests/test-fcntl-safer.c (main): Likewise.
26596         * tests/test-fdopendir.c (main): Likewise.
26597         * tests/test-fdutimensat.c (main): Likewise.
26598         * tests/test-fflush.c (main): Likewise.
26599         * tests/test-filenamecat.c (main): Likewise.
26600         * tests/test-filevercmp.c (main): Likewise.
26601         * tests/test-fopen-safer.c (main): Likewise.
26602         * tests/test-fopen.c (main): Likewise.
26603         * tests/test-fpending.c (main): Likewise.
26604         * tests/test-fpurge.c (main): Likewise.
26605         * tests/test-freading.c (main): Likewise.
26606         * tests/test-fstatat.c (main): Likewise.
26607         * tests/test-fsync.c (main): Likewise.
26608         * tests/test-futimens.c (main): Likewise.
26609         * tests/test-getndelim2.c (main): Likewise.
26610         * tests/test-gettimeofday.c (main): Likewise.
26611         * tests/test-getopt.c (main): Likewise.
26612         * tests/test-i-ring.c (main): Likewise.
26613         * tests/test-inttypes.c (main): Likewise.
26614         * tests/test-link.c (main): Likewise.
26615         * tests/test-lstat.c (main): Likewise.
26616         * tests/test-math.c (main): Likewise.
26617         * tests/test-md5.c (main): Likewise.
26618         * tests/test-memchr2.c (main): Likewise.
26619         * tests/test-memrchr.c (main): Likewise.
26620         * tests/test-mkdir.c (main): Likewise.
26621         * tests/test-mkdirat.c (main): Likewise.
26622         * tests/test-mkfifoat.c (main): Likewise.
26623         * tests/test-open.c (main): Likewise.
26624         * tests/test-openat-safer.c (main): Likewise.
26625         * tests/test-openat.c (main): Likewise.
26626         * tests/test-quotearg.c (main): Likewise.
26627         * tests/test-rawmemchr.c (main): Likewise.
26628         * tests/test-readlink.c (main): Likewise.
26629         * tests/test-remove.c (main): Likewise.
26630         * tests/test-rename.c (main): Likewise.
26631         * tests/test-renameat.c (main): Likewise.
26632         * tests/test-rmdir.c (main): Likewise.
26633         * tests/test-sha1.c (main): Likewise.
26634         * tests/test-signal.c (main): Likewise.
26635         * tests/test-sigaction.c (main): Likewise.
26636         * tests/test-stat.c (main): Likewise.
26637         * tests/test-stat-time.c (main): Likewise.
26638         * tests/test-stddef.c (main): Likewise.
26639         * tests/test-stdint.c (main): Likewise.
26640         * tests/test-stdio.c (main): Likewise.
26641         * tests/test-stdlib.c (main): Likewise.
26642         * tests/test-strchrnul.c (main): Likewise.
26643         * tests/test-strerror.c (main): Likewise.
26644         * tests/test-string.c (main): Likewise.
26645         * tests/test-strtod.c (main): Likewise.
26646         * tests/test-strverscmp.c (main): Likewise.
26647         * tests/test-symlink.c (main): Likewise.
26648         * tests/test-symlinkat.c (main): Likewise.
26649         * tests/test-sys_stat.c (main): Likewise.
26650         * tests/test-sys_time.c (main): Likewise.
26651         * tests/test-time.c (main): Likewise.
26652         * tests/test-unistd.c (main): Likewise.
26653         * tests/test-unlink.c (main): Likewise.
26654         * tests/test-unlinkat.c (main): Likewise.
26655         * tests/test-utimens.c (main): Likewise.
26656         * tests/test-utimensat.c (main): Likewise.
26657         * tests/test-version-etc.c (main): Likewise.
26658         * tests/test-wchar.c (main): Likewise.
26659         * tests/test-wctype.c (main): Likewise.
26660         * tests/test-xprintf-posix.c (main): Likewise.
26661         * tests/test-posixtm.c (main): Likewise.
26662         (STREQ): Delete unused macro.
26663         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26664         shadowed variables.
26665         * tests/test-memchr.c (main): Likewise.
26666
26667 2009-10-21  Eric Blake  <ebb9@byu.net>
26668
26669         areadlinkat: avoid failure on older glibc
26670         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26671         rather than mis-comparing 0 against FUNC_RESULT of char*.
26672
26673 2009-10-21  Bruno Haible  <bruno@clisp.org>
26674
26675         * modules/stpncpy (License): Relicense under LGPLv2+.
26676         Reported by David Lutterkort <lutter@redhat.com>.
26677
26678 2009-10-20  Eric Blake  <ebb9@byu.net>
26679
26680         utimensat: work around Solaris 9 bug
26681         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26682         has trailing slash bugs.
26683         * tests/test-lutimens.h (test_lutimens): Enhance test.
26684         * tests/test-utimens.h (test_utimens): Likewise.
26685         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26686         * doc/posix-functions/utimes.texi (utimes): Likewise.
26687         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26688         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26689         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26690         * doc/posix-functions/futimens.texi (futimens): Likewise.
26691
26692         fdutimensat: new module
26693         * modules/fdutimensat: New file.
26694         * lib/fdutimensat.c (fdutimensat): Likewise.
26695         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26696         * MODULES.html.sh (File system functions): Mention module.
26697         * modules/fdutimensat-tests: New test.
26698         * tests/test-fdutimensat.c: Likewise.
26699
26700         doc: regenerate INSTALL
26701         * doc/INSTALL: Reflect recent autoconf update.
26702         * doc/INSTALL.ISO: Likewise.
26703         * doc/INSTALL.UTF-8: Likewise.
26704
26705 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26706
26707         acl: warn if ACL support is not detected
26708         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26709
26710 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26711
26712         * lib/nproc.h: Add extern "C" block for C++.
26713
26714 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26715             Bruno Haible  <bruno@clisp.org>
26716
26717         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26718         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26719         * doc/posix-functions/isalpha.texi: Likewise.
26720         * doc/posix-functions/isblank.texi: Likewise.
26721         * doc/posix-functions/iscntrl.texi: Likewise.
26722         * doc/posix-functions/isdigit.texi: Likewise.
26723         * doc/posix-functions/isgraph.texi: Likewise.
26724         * doc/posix-functions/islower.texi: Likewise.
26725         * doc/posix-functions/isprint.texi: Likewise.
26726         * doc/posix-functions/ispunct.texi: Likewise.
26727         * doc/posix-functions/isspace.texi: Likewise.
26728         * doc/posix-functions/isupper.texi: Likewise.
26729         * doc/posix-functions/isxdigit.texi: Likewise.
26730
26731 2009-10-18  Bruno Haible  <bruno@clisp.org>
26732
26733         Tests for module 'isblank'.
26734         * modules/isblank-tests: New file.
26735         * tests/test-isblank.c: New file.
26736
26737         New module 'isblank'.
26738         * lib/isblank.c: New file.
26739         * m4/isblank.m4: New file.
26740         * modules/isblank: New file.
26741         * doc/posix-functions/isblank.texi: Mention the new module.
26742
26743 2009-10-18  Bruno Haible  <bruno@clisp.org>
26744
26745         New module 'ctype'.
26746         * lib/ctype.in.h: New file.
26747         * m4/ctype.m4: New file.
26748         * modules/ctype: New file.
26749         * doc/posix-headers/ctype.texi: Mention the new module.
26750
26751 2009-10-18  Jim Meyering  <meyering@redhat.com>
26752
26753         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26754         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26755         right after its initialization, rather than farther down.
26756         Keeping these in close proximity makes it easier to ensure
26757         that each such variable is initialized.  E.g.,
26758
26759             LIB_CLOCK_GETTIME=
26760             AC_SUBST([LIB_CLOCK_GETTIME])
26761
26762         This change also increments these serial numbers.
26763         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26764         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26766
26767 2009-10-18  Bruno Haible  <bruno@clisp.org>
26768
26769         Don't let environment variables perturb build.
26770         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26771         (gl_PREREQ_GETHRXTIME): ... not here.
26772
26773 2009-10-18  Bruno Haible  <bruno@clisp.org>
26774
26775         Avoid symlink attack in localcharset module.
26776         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26777         (O_NOFOLLOW): Define fallback.
26778         (get_charset_aliases): Don't open the file if it is a symbolic link.
26779         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26780         gl_FCNTL_H.
26781         (gl_FCNTL_H): Require it.
26782         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26783         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26784         Reported by Fergal Glynn <fglynn@veracode.com>.
26785
26786 2009-10-18  Bruno Haible  <bruno@clisp.org>
26787
26788         Implement nproc for mingw.
26789         * lib/nproc.c: Include <windows.h>
26790         (num_processors): On native Windows platforms, try GetSystemInfo.
26791
26792 2009-10-18  Bruno Haible  <bruno@clisp.org>
26793
26794         Implement nproc for IRIX.
26795         * lib/nproc.c: Include <sys/sysmp.h>.
26796         (num_processors): On IRIX systems, try sysmp.
26797         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26798
26799 2009-10-18  Bruno Haible  <bruno@clisp.org>
26800
26801         Implement nproc for HP-UX.
26802         * lib/nproc.c: Include <sys/pstat.h>
26803         (num_processors): On HP-UX systems, try pstat_getdynamic.
26804         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26805         pstat_getdynamic.
26806
26807 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26808             Bruno Haible  <bruno@clisp.org>
26809
26810         Implement nproc for NetBSD, OpenBSD.
26811         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26812         (ARRAY_SIZE): New macro.
26813         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26814         * m4/nproc.m4: New file.
26815         * modules/nproc (Files): Add m4/nproc.m4.
26816         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26817         (Makefile.am): Instead, augment lib_SOURCES.
26818
26819 2009-10-18  Bruno Haible  <bruno@clisp.org>
26820
26821         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26822         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26823         sys/param.h.
26824
26825 2009-10-16  Eric Blake  <ebb9@byu.net>
26826
26827         utimensat: new module
26828         * modules/utimensat: New file.
26829         * lib/utimensat.c (utimensat): Likewise.
26830         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26831         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26832         so we can work around Linux bugs.
26833         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26834         * modules/sys_stat (Makefile.am): Substitute them.
26835         * lib/sys_stat.in.h (utimensat): Declare it.
26836         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26837         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26838         * modules/utimensat-tests: New test.
26839         * tests/test-utimensat.c: Likewise.
26840
26841         utimens: let lutimens work on non-symlinks
26842         * lib/utimens.c (lutimens): Fall back to utimens rather than
26843         failing with ENOSYS, when file is not a symlink.
26844         (utimens): Reduce redirection.
26845         * tests/test-lutimens.h (test_lutimens): Update test to cover
26846         non-symlinks.
26847         * tests/test-utimens.h (test_utimens): Update test to cover
26848         symlinks.
26849         * tests/test-utimens.c (main): Update caller.
26850
26851         utimens: cache whether utimensat syscall works
26852         * lib/utimens.c (utimensat_works_really): New cache variable.
26853         (fdutimens, lutimens): Use it to avoid failing syscall.
26854
26855         test-stat-time, test-utimens: improve portability
26856         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26857         ext4 on alpha, and for cygwin.
26858         * tests/test-utimens-common.h: New file.
26859         (nap): Factor delays into single function.
26860         * tests/test-lutimens.h (test_lutimens): Use new header.
26861         * tests/test-futimens.h (test_futimens): Likewise.
26862         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26863         timestamps to occur from same machine, as was done previously for
26864         test_utimens.
26865         * modules/utimens-tests (Files): Ship new file.
26866         * modules/futimens-tests (Files): Likewise.
26867         Reported in part by Jim Meyering.
26868
26869         sys_stat: sort replacement declarations
26870         * lib/sys_stat.in.h: Sort declarations.
26871         * lib/futimens.c (futimens): Fix typo.
26872
26873 2009-10-15  Jim Meyering  <meyering@redhat.com>
26874
26875         don't let environment settings perturb build
26876         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26877         could cause a configure-time and/or build-time malfunction.
26878         Typically, a configure-time function-in-library test is performed
26879         via code like this:
26880
26881           LIB_VAR=
26882           AC_SUBST([LIB_VAR])
26883           prefix_saved_LIBS=$LIBS
26884             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26885                        [test "$ac_cv_search_FUNC" = "none required" ||
26886                         LIB_VAR=$ac_cv_search_FUNC])
26887           LIBS=$prefix_saved_LIBS
26888
26889         However, in each of the files affected by this change, the LIB_VAR=
26890         initialization was omitted.  Thus, when set in the environment, its
26891         value would propagate into generated Makefiles when FUNC is not found
26892         in LIB_NAME.
26893         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26894         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26896
26897 2009-10-14  Eric Blake  <ebb9@byu.net>
26898
26899         fchdir: avoid infinite recursion in mingw
26900         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26901         recursing.
26902
26903         test-stat-time: port to mingw
26904         * tests/test-stat-time.c (force_unlink): Return a value.
26905         (test_ctime) [W32]: Fix compilation error.
26906         (nap): Don't call usleep with too large an argument.  Use
26907         force_unlink.
26908         * doc/pastposix-functions/usleep.texi (usleep): Document the
26909         portability issue.
26910
26911 2009-10-13  Jim Meyering  <meyering@redhat.com>
26912
26913         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26914         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26915         * modules/pipe-filter-ii: Likewise.
26916         * modules/sys_socket-tests: Likewise.
26917         * modules/tsearch-tests: Likewise.
26918         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26919         (check): Depend on it.
26920
26921 2009-10-12  Eric Blake  <ebb9@byu.net>
26922
26923         utimens-tests: port to NFS file systems
26924         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26925         comparisons to avoid spurious failures from timestamp drift
26926         between NFS machines.
26927
26928 2009-10-12  Eric Blake  <ebb9@byu.net>
26929
26930         stat-time-tests: minor cleanups
26931         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26932         * tests/test-stat-time.c (nap): Separate assignment from call.
26933         Suggested by Paolo Bonzini and Bruno Haible.
26934
26935         sys_stat: guarantee struct timespec
26936         * lib/sys_stat.in.h (includes): Always include <time.h>
26937         * modules/sys_stat (Depends-on): Add time.
26938         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26939         mode_t permission values.
26940         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26941         get at subsecond timestamps.
26942
26943 2009-10-10  Eric Blake  <ebb9@byu.net>
26944
26945         futimens: new module
26946         * modules/futimens: New file.
26947         * lib/futimens.c (futimens): Likewise.
26948         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26949         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26950         we can work around Linux bugs.
26951         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26952         * modules/sys_stat (Makefile.am): Substitute them.
26953         * lib/sys_stat.in.h (futimens): Declare it.
26954         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26955         * doc/posix-functions/futimens.texi (futimens): Likewise.
26956         * modules/futimens-tests: New test.
26957         * tests/test-futimens.c: Likewise.
26958
26959         utimens: introduce fdutimens
26960         * lib/utimens.h (fdutimens): New prototype.
26961         * lib/utimens.c (gl_futimens): Move guts...
26962         (fdutimens): ...to new interface.
26963         * tests/test-utimens.c (do_fdutimens): Use it.
26964
26965         utimens: add UTIME_NOW and UTIME_OMIT support
26966         * lib/utimens.c (validate_timespec, update_timespec): New helper
26967         functions.
26968         (gl_futimens, lutimens): Use them.
26969         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26970         stdbool, sys_stat.
26971         (Link): Mention resulting library dependency.
26972         * modules/utimecmp (Link): Likewise.
26973         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26974         (Makefile.am): Pick up library dependency.
26975         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26976         definition.
26977         * tests/test-sys_stat.c: Test the definitions.
26978         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26979         * NEWS: Document library dependency.
26980
26981         utimecmp: support symlink timestamps
26982         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26983         hashing when possible.  Use pathconf when available.
26984         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26985         * modules/utimecmp (Depends-on): Add lstat.
26986
26987         utimens: add lutimens interface
26988         * lib/utimens.c (lutimens): New function.
26989         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26990         * lib/utimens.h (lutimens): Declare new interface.
26991         * tests/test-utimens.c (main): Enhance test.
26992         * tests/test-lutimens.h (test_lutimens): New file.
26993         * modules/utimens-tests (Files): Distribute it.
26994         (Depends-on): Add symlink.
26995         (configure.ac): Check for usleep.
26996
26997         utimens: validate futimens usage
26998         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26999         fewer syscalls on failure later on.  Avoid compiler warning on
27000         mingw.
27001         * modules/utimens (Depends-on): Add dup2.
27002
27003         utimens: add test
27004         * modules/utimens-tests: New test.
27005         * tests/test-utimens.h: New file.
27006         * tests/test-futimens.h: Likewise.
27007         * tests/test-utimens.c: Likewise.
27008
27009         doc: mention timestamp portability issues
27010         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
27011         instead.
27012         * doc/posix-functions/utime.texi (utime): Likewise.
27013         * doc/posix-functions/utimes.texi (utimes): Likewise.
27014         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
27015         instead.
27016         * doc/posix-functions/futimens.texi (futimens): Mention utimens
27017         module.
27018         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27019         Mention weakness with symlink timestamps.
27020         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
27021         to utimensat/futimens instead.
27022         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
27023
27024         test-dup2: enhance test
27025         * tests/test-dup2.c (main): Also check AT_FDCWD.
27026
27027         test-stat-time: avoid more spurious failures
27028         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
27029         xfs; and avoid race if the two timestamps cross quantization edge.
27030
27031         relocatable: prefer 'file system' over 'filesystem'
27032         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
27033         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
27034         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
27035         * doc/relocatable.texi (Enabling Relocatability): Likewise.
27036         * lib/relocatable.c (compute_curr_prefix): Likewise.
27037
27038 2009-10-10  Jim Meyering  <meyering@redhat.com>
27039
27040         stat-time-tests: check for the usleep function
27041         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
27042
27043 2009-10-10  Bruno Haible  <bruno@clisp.org>
27044
27045         * modules/xnanosleep: Put the Link section after the Include section.
27046
27047 2009-10-09  Eric Blake  <ebb9@byu.net>
27048
27049         dup2: work around FreeBSD 6.1 bug
27050         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
27051         * doc/posix-functions/dup2.texi (dup2): Document it.
27052         Reported by Nelson H. F. Beebe and Jim Meyering.
27053
27054         test-stat-time: port to buggy NFS clients
27055         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
27056         (test_ctime): Also skip test if mtime and ctime are skewed.
27057
27058         maint: prefer 'file system' over 'filesystem'
27059         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27060         * doc/posix-functions/lstat.texi (lstat): Likewise.
27061         * lib/file-has-acl.c (file_has_acl): Likewise.
27062         * lib/fwriteerror.c [TEST]: Likewise.
27063         * tests/test-areadlink.h (test_areadlink): Likewise.
27064         * tests/test-areadlinkat-with-size.c (main): Likewise.
27065         * tests/test-areadlinkat.c (main): Likewise.
27066         * tests/test-canonicalize-lgpl.c (main): Likewise.
27067         * tests/test-canonicalize.c (main): Likewise.
27068         * tests/test-fstatat.c (main): Likewise.
27069         * tests/test-linkat.c (main): Likewise.
27070         * tests/test-lstat.h (test_lstat_func): Likewise.
27071         * tests/test-mkdir.h (test_mkdir): Likewise.
27072         * tests/test-readlink.h (test_readlink): Likewise.
27073         * tests/test-remove.c (main): Likewise.
27074         * tests/test-rename.h (test_rename): Likewise.
27075         * tests/test-renameat.c (main): Likewise.
27076         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27077         * tests/test-symlink.h (test_symlink): Likewise.
27078         * tests/test-symlinkat.c (main): Likewise.
27079         * tests/test-unlink.h (test_unlink_func): Likewise.
27080         * tests/test-unlinkat.c (main): Likewise.
27081
27082         maint: make realtime library usage explicit
27083         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
27084         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
27085         * modules/settime (Link): Likewise.
27086         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
27087
27088         test-stat-time: speed up execution
27089         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
27090         warning on mingw.
27091         (nap): New helper function.
27092         (prepare_test): Use it to reduce sleep time.
27093         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
27094         execution.
27095         * modules/stat-time-tests (configure.ac): Check for usleep.
27096
27097 2009-10-09  Jim Meyering  <meyering@redhat.com>
27098
27099         selinux-h: always use getfilecon wrappers
27100         * lib/getfilecon.c: New file.
27101         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
27102         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
27103         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
27104         (fgetfilecon): Provide a stub.
27105         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
27106         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
27107         file unconditionally.
27108         When <selinux/selinux.h> is found, arrange to use wrappers.
27109         * modules/selinux-h (Files): Add getfilecon.c.
27110         (Makefile.am): Substitute include-next-related bits
27111         into the now-always-generated selinux/selinux.h file.
27112         * doc/glibc-functions/lgetfilecon.texi: New file.
27113         * doc/glibc-functions/fgetfilecon.texi: New file.
27114         * doc/glibc-functions/getfilecon.texi: New file.
27115         * doc/glibc-functions/getfilecon-desc.texi: New file.
27116         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
27117         which to pull in the new files.
27118         * MODULES.html.sh (Misc): Add selinux-h.
27119
27120 2009-10-08  Jim Meyering  <meyering@redhat.com>
27121
27122         unistd: fix comment typo
27123         * lib/unistd.in.h (euidaccess): Fix a comment typo.
27124
27125 2009-10-08  Eric Blake  <ebb9@byu.net>
27126
27127         areadlink: use SIZE_MAX consistently
27128         * modules/areadlink (Depends-on): Add stdint.
27129         * modules/areadlink-with-size (Depends-on): Likewise.
27130         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
27131         gives NULL; drop sys/types, since unistd gives size_t; and add
27132         stdint for SIZE_MAX.
27133         (SIZE_MAX): Rely on headers.
27134         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
27135         and add stdint.
27136         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
27137         (SIZE_MAX): Likewise.
27138         (INITIAL_BUF_SIZE): Turn into enum.
27139         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
27140
27141 2009-10-08  Jim Meyering  <meyering@redhat.com>
27142
27143         areadlinkat: avoid compilation failure
27144         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
27145         Fix typo in comment.
27146
27147 2009-10-07  Eric Blake  <ebb9@byu.net>
27148
27149         areadlinkat-with-size: new module
27150         * modules/areadlinkat-with-size: New module.
27151         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
27152         * lib/areadlink.h (areadlinkat): Declare it.
27153         * MODULES.html.sh (File system functions): Mention it.
27154         * modules/areadlinkat-with-size-tests: New test.
27155         * tests/test-areadlinkat-with-size.c: New file.
27156
27157         xreadlinkat: new module
27158         * modules/xreadlinkat: New module.
27159         * lib/xreadlinkat.c (xreadlinkat): New file.
27160         * lib/xreadlink.h (xreadlinkat): Declare it.
27161         * MODULES.html.sh (File system functions): Mention it.
27162
27163         areadlinkat: new module
27164         * lib/at-func.c (FUNC_FAIL): New define.
27165         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
27166         * modules/areadlinkat: New module.
27167         * lib/linkat.c (areadlinkat): Move...
27168         * lib/areadlinkat.c (areadlinkat): ...to new file.
27169         * lib/areadlink.h (areadlinkat): Declare it.
27170         * modules/linkat (Depends-on): Add areadlinkat.
27171         * MODULES.html.sh (File system functions): Mention it.
27172         * modules/areadlinkat-tests: New test.
27173         * tests/test-areadlinkat.c: New file.
27174
27175         areadlink, areadlink-with-size: add tests
27176         * modules/areadlink-tests: New test.
27177         * modules/areadlink-with-size-tests: Likewise.
27178         * tests/test-areadlink.h: New file.
27179         * tests/test-areadlink.c: Likewise.
27180         * tests/test-areadlink-with-size.c: Likewise.
27181
27182         maint: minor cleanups
27183         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
27184         _UNUSED_PARAMETER_ instead.
27185         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
27186         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
27187         * modules/linkat-tests (Files): Distribute test-link.h.
27188
27189         openat, utimens: whitespace cleanup
27190         * lib/openat.c: Prefer space throughout, rather than mix of 8
27191         spaces vs. tabs.
27192         * lib/at-func.c: Likewise.
27193         * lib/utimens.c: Likewise.
27194
27195         openat: avoid using wrong fd
27196         * lib/openat.c (openat_permissive): Reject user's fd if saving the
27197         working directory chooses same fd.
27198         * lib/at-func.c (AT_FUNC_NAME): Likewise.
27199
27200         mkdir, mkdirat: fix cygwin 1.5.x bug
27201         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
27202         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
27203         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
27204         bug.
27205         (gl_PREREQ_MKDIR): Delete unused macro.
27206         * modules/mkdir (Files): Track file rename.
27207         (configure.ac): Update macro name.
27208         * modules/openat (Depends-on): Add mkdir.
27209         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
27210
27211         mkdir, mkdirat: add tests
27212         * modules/mkdir-tests: New test.
27213         * tests/test-mkdir.h: New file.
27214         * tests/test-mkdir.c: Likewise.
27215         * tests/test-mkdirat.c: Likewise.
27216         * modules/openat-tests (Files): Add new files.
27217         (Makefile.am): Run new test.
27218
27219 2009-10-06  Eric Blake  <ebb9@byu.net>
27220
27221         doc: tweak *at function documentation
27222         * doc/posix-functions/faccessat.texi (faccessat): Mention
27223         known issue with replacement.
27224         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
27225         * doc/posix-functions/linkat.texi (linkat): Likewise.
27226         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27227         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27228         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27229         * doc/posix-functions/renameat.texi (renameat): Likewise.
27230         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27231
27232         openat: fix GNU/Hurd bug in unlinkat
27233         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
27234         broken.
27235         * doc/posix-functions/unlink.texi (unlink): Document this.
27236         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
27237
27238         fdopendir: fix GNU/Hurd bug
27239         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
27240         allowing non-directory fds.
27241         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27242         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27243         * modules/dirent (Makefile.am): Substitute it.
27244         * lib/dirent.in.h (fdopendir): Declare replacement.
27245         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27246         * tests/test-fdopendir.c (main): Test something other than
27247         /dev/null, since on Hurd that behaves like a directory.
27248
27249         test-symlink: port to GNU/Hurd
27250         * tests/test-symlink.h (test_symlink): Relax expected errno.
27251
27252         doc: tweak more cygwin information
27253         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27254         now compatible with glibc.
27255         * doc/posix-functions/getopt.texi (getopt): Likewise.
27256
27257         getopt-gnu: add another test
27258         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27259         guarantee behavior relied on by m4.
27260         * tests/test-getopt.c (main): Use it.
27261         * modules/getopt-posix-tests (Depends-on): Add setenv.
27262         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27263
27264         getopt: fix compilation on darwin
27265         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27266         include.
27267         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27268         Reported by Ludovic Courtès.
27269
27270 2009-10-06  Bruno Haible  <bruno@clisp.org>
27271
27272         * modules/size_max (Description): Discourage its use.
27273         Reported by Simon Josefsson.
27274
27275 2009-10-06  Jim Meyering  <meyering@redhat.com>
27276
27277         linkat: avoid compilation failure
27278         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27279
27280 2009-10-05  Eric Blake  <ebb9@byu.net>
27281
27282         linkat: support Linux 2.6.17
27283         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27284         linkat on Linux, but allow cache variable override.
27285         * lib/linkat.c (rpl_linkat): Define override.
27286         * modules/linkat (Depends-on): Add symlinkat.
27287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27288         * modules/unistd (Makefile.am): Substitute it.
27289         * lib/unistd.in.h (linkat): Declare replacement.
27290         Reported by Pádraig Brady.
27291
27292         quotearg: port test to systems with C.UTF-8 locale
27293         * tests/test-quotearg.c (struct result_strings): Add another
27294         member, differentiating between C.ASCII and C.UTF-8 handling.
27295         (compare_strings): Add parameter.
27296         (main): Adjust all callers.
27297
27298         getopt: avoid clash with FreeBSD _getopt_internal
27299         * lib/getopt.in.h (_getopt_internal): Override the name.
27300         * lib/getopt_int.h (includes): Pick up any overrides.
27301         Reported by Reuben Thomas.
27302
27303         hash: allow C89 compilation
27304         * lib/hash.c (check_tuning): Move declaration before statement.
27305         Reported by Reuben Thomas.
27306
27307 2009-10-05  Karl Berry  <karl@gnu.org>
27308
27309         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27310
27311 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27312             Bruno Haible  <bruno@clisp.org>
27313
27314         * lib/uname.c (uname): Use a table-driven algorithm to compute
27315         Windows NT versions.
27316
27317 2009-10-04  Bruno Haible  <bruno@clisp.org>
27318
27319         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27320         program_invocation_short_name.
27321         * modules/progname (configure.ac): Test for presence of
27322         program_invocation_short_name.
27323         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27324
27325 2009-10-04  Bruno Haible  <bruno@clisp.org>
27326
27327         * lib/progname.c (set_program_name): Fix comment.
27328         Reported by Jim Meyering.
27329
27330 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27331             Bruno Haible  <bruno@clisp.org>
27332
27333         * lib/uname.c: Include <string.h>.
27334         (uname): Do only one call to GetVersionEx in the common case.
27335
27336 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27337             Bruno Haible  <bruno@clisp.org>
27338
27339         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27340         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27341         (uname): Add support for Windows CE and various non-x86 CPU types.
27342
27343 2009-10-03  Bruno Haible  <bruno@clisp.org>
27344
27345         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27346         invocation to tests/configure.ac.
27347         Reported by Ian Beckwith <ianb@erislabs.net>.
27348
27349 2009-10-02  Eric Blake  <ebb9@byu.net>
27350
27351         fchdir: avoid compiler warning
27352         * lib/fchdir.c (canonicalize_file_name)
27353         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27354
27355         test-open: support mingw errno values
27356         * tests/test-open.h (test_open): Relax test.
27357         * tests/test-fopen.h (test_fopen): Likewise.
27358         * tests/test-openat-safer.c (main): Likewise.
27359
27360         open: fix opening directory on mingw
27361         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27362
27363         test-open: on GNU/Hurd, /dev/null is a directory
27364         * tests/test-fopen.h (main): Rename...
27365         (test_fopen): ...to this.  Use a guaranteed non-directory when
27366         confirming open behavior on trailing slash.
27367         * tests/test-openat-safer.c (main): Likewise.
27368         * tests/test-open.h (main): Likewise....
27369         (test_open): ...to this.
27370         * tests/test-fopen.c (main): Adjust caller.
27371         * tests/test-fopen-safer.c (main): Likewise.
27372         * tests/test-open.c (main): Likewise.
27373         * tests/test-fcntl-safer.c (main): Likewise.
27374         Reported by Samuel Thibault.
27375
27376         rename, fchdir: don't ignore chdir failure
27377         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27378         * lib/rename.c (rpl_rename) [W32]: Likewise.
27379         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27380         an empty destination directory if source cannot be renamed,
27381         although there is still possibility for failure.
27382         * doc/posix-functions/rename.texi (rename): Document the race.
27383         Reported by Jim Meyering.
27384
27385         maint: cleanup whitespace in recent commits
27386         * lib/rename.c (rpl_rename): Remove tabs.
27387         * tests/test-link.h (test_link): Likewise.
27388         * lib/fchdir.c (get_name): Likewise.
27389         Reported by Jim Meyering.
27390
27391 2009-10-02  Ben Pfaff  <blp@gnu.org>
27392
27393         relocatable-prog-wrapper: Add missing dependency on
27394         double-slash-root.
27395         * modules/relocatable-prog-wrapper: Add dependency.
27396         Reported by Ian Beckwith <ianb@erislabs.net>.
27397
27398 2009-10-02  Eric Blake  <ebb9@byu.net>
27399
27400         renameat: fix Solaris bugs
27401         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27402         needed fixing.
27403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27404         * modules/stdio (Makefile.am): Substitute it.
27405         * lib/stdio.in.h (renameat): Declare replacement.
27406         * lib/renameat.c (rpl_renameat): Implement fix.
27407
27408         renameat: new module
27409         * modules/renameat: New file.
27410         * lib/renameat.c (renameat): Likewise.
27411         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27413         * modules/stdio (Makefile.am): Substitute them.
27414         * lib/stdio.in.h (renameat): Declare it.
27415         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27416         * doc/posix-functions/renameat.texi (renameat): Likewise.
27417         * modules/renameat-tests: New test.
27418         * tests/test-renameat.c: Likewise.
27419
27420         rename: fix mingw bugs
27421         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27422         directory overwrite bugs.
27423
27424         rename: fix another cygwin 1.5 bug
27425         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27426         checks.
27427         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27428         unnecessary cygwin workarounds.  Also work around bug with moving
27429         full directory onto an empty one.
27430         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27431
27432         rename-dest-slash: merge into rename module
27433         * modules/rename-dest-slash (Status): Mark obsolete.
27434         (Depends-on): Add rename.
27435         (Files): Let rename do it all.
27436         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27437         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27438         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27439         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27440         * lib/rename.c (rpl_rename): Update comments.
27441
27442         rename: fix cygwin 1.5.x bugs
27443         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27444         * lib/rename.c (rpl_rename): Work around them.
27445         * modules/rename (Depends-on): Add same-inode.
27446
27447         rename: fix Solaris 10 bug
27448         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27449         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27450         was the only bug.
27451
27452         rename: fix Solaris 9 bug
27453         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27454         on non-directory.  Avoid calling exit.
27455         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27456         strdup.
27457         * modules/rename-tests (Depends-on): Drop lstat.
27458         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27459         (gl_PREREQ_RENAME): Delete unused macro.
27460
27461         rename-dest-slash: fix NetBSD bug
27462         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27463         links.
27464         * modules/rename-dest-slash (Depends-on): Add same-inode.
27465
27466         rename-tests: new test, exposes several platform bugs
27467         * modules/rename-tests: New file.
27468         * tests/test-rename.h: Likewise.
27469         * tests/test-rename.c: Likewise.
27470         * doc/posix-functions/rename.texi (rename): Improve documentation,
27471         including bugs that will eventually be fixed in gnulib.
27472
27473 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27474
27475         * lib/uname.c: Include <stdlib.h>
27476         (uname): Assume version info is available.
27477
27478 2009-10-02  Jim Meyering  <meyering@redhat.com>
27479
27480         gnu-web-doc-update: correct --help output
27481         * build-aux/gnu-web-doc-update: Make --help output relevant.
27482
27483         gnu-web-doc-update: add standard options
27484         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27485
27486         gnu-web-doc-update: New module.
27487         Use this script to automatically update the on-line web documentation
27488         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27489         * modules/gnu-web-doc-update: New file, from coreutils.
27490         * build-aux/gnu-web-doc-update: New script.
27491
27492 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27493
27494         link: LoadLibrary is not needed.
27495         * lib/link.c: Use GetModuleHandle.
27496
27497 2009-10-01  Eric Blake  <ebb9@byu.net>
27498
27499         getopt: bump serial number
27500         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27501         change.
27502
27503         tests: tighten link, rmdir, and remove tests
27504         * tests/test-link.h (includes): No need to use <config.h> here.
27505         Clean up if directory hard link was created, otherwise test for
27506         trailing '.'.
27507         * tests/test-linkat.c (main): Simplify.
27508         * tests/test-remove.c (main): Enhance test for trailing '.'.
27509         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27510
27511 2009-10-01  Jim Meyering  <meyering@redhat.com>
27512
27513         maint.mk: requiring "make major" was annoying, for a "minor" release.
27514         What is intended is "stable", to contrast with alpha and beta,
27515         so require "make stable", not "make major".
27516         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27517         (get_tool_versions): Likewise.
27518         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27519
27520 2009-09-30  Ben Pfaff  <blp@gnu.org>
27521
27522         Fix broken build of replacement for Windows tmpfile().
27523         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27524         flags argument added along with the 'mkostemp' module.
27525
27526 2009-09-28  Bruno Haible  <bruno@clisp.org>
27527
27528         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27529         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27530         to 'remove_elt'.
27531         (gl_list_remove): Update.
27532         * lib/gl_list.c (gl_list_remove): Update.
27533         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27534         to 'remove_elt'.
27535         (gl_oset_remove): Update.
27536         * lib/gl_list.c (gl_oset_remove): Update.
27537         Reported by Eric Blake.
27538
27539 2009-09-28  Eric Blake  <ebb9@byu.net>
27540
27541         doc: mention yet more cygwin 1.7 status
27542         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27543         cygwin.
27544         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27545         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27546
27547         argp: fix test failure
27548         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27549         that are not upper-case.  Pass correct range to tolower.
27550
27551 2009-09-27  Jim Meyering  <meyering@redhat.com>
27552
27553         test-yesno: work around sparc-dash here-document infelicity
27554         Without this change, the literal \177 byte in a here document
27555         would make dash 0.5.5.1-3 access uninitialized memory.
27556         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27557         Instead, use a marker, "@", and filter through tr to create the desired
27558         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27559
27560 2009-09-27  Bruno Haible  <bruno@clisp.org>
27561
27562         Disable untested support for new flavours of ACLs on AIX.
27563         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27564         progress.
27565         * lib/set-mode-acl.c (qset_acl): Likewise.
27566
27567 2008-12-07  Bruno Haible  <bruno@clisp.org>
27568
27569         Add support for new flavours of ACLs on AIX. (Untested.)
27570         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27571         (file_has_acl): Add support for newer AIX.
27572         * lib/set-mode-acl.c (qset_acl): Likewise.
27573         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27574         Rainer Tammer <tammer@tammer.net>.
27575
27576 2009-09-26  Eric Blake  <ebb9@byu.net>
27577
27578         argp: fix compilation of getopt
27579         * lib/getopt.in.h (includes): Use different guard than glibc.
27580         Reported by Sergey Poznyakoff.
27581
27582         doc: mention more cygwin 1.7 status
27583         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27584         bug.
27585         * doc/posix-functions/execl.texi (execl): Likewise.
27586         * doc/posix-functions/execle.texi (execle): Likewise.
27587         * doc/posix-functions/execlp.texi (execlp): Likewise.
27588         * doc/posix-functions/execv.texi (execv): Likewise.
27589         * doc/posix-functions/execve.texi (execve): Likewise.
27590         * doc/posix-functions/execvp.texi (execvp): Likewise.
27591         * doc/glibc-functions/canonicalize_file_name.texi
27592         (canonicalize_file_name): Cygwin 1.7 now provides this.
27593         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27594         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27595         on AT_SYMLINK_NOFOLLOW.
27596
27597 2009-09-24  Eric Blake  <ebb9@byu.net>
27598
27599         test-linkat: make test more robust
27600         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27601
27602         getopt: fix inclusion guards for cygwin
27603         * modules/getopt-posix (Depends-on): Add include-next.
27604         (Makefile.am): Substitute more items in replacement header.
27605         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27606         <getopt.h>.
27607         * lib/getopt.in.h (includes): Use split inclusion guard, and
27608         prefer <getopt.h> over include <unistd.h> when one is present.
27609         (option): Also override name of 'struct option'.
27610
27611         same-inode: revert prior change; it is not yet ready
27612         * NEWS: Undo mention of this change.
27613         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27614         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27615         * lib/cycle-check.c (cycle_check): Likewise.
27616         * lib/same.c (same_name): Likewise.
27617         * lib/at-func2.c (at_func2): Likewise.
27618
27619 2009-09-23  Eric Blake  <ebb9@byu.net>
27620
27621         linkat: new module
27622         * modules/linkat: New file.
27623         * lib/at-func2.c (at_func2): Likewise.
27624         * lib/linkat.c (linkat): Likewise.
27625         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27626         * lib/openat-priv.h (at_func2): Add declaration.
27627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27628         * modules/unistd (Makefile.am): Substitute them.
27629         * lib/unistd.in.h (linkat): Declare it.
27630         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27631         * doc/posix-functions/linkat.texi (linkat): Likewise.
27632         * doc/posix-functions/link.texi (link): Tweak wording.
27633         * tests/test-link.c (main): Move guts...
27634         * tests/test-link.h (test_link): ...into new file.
27635         * modules/linkat-tests: New test.
27636         * tests/test-linkat.c: Likewise.
27637         * modules/link-tests (Files): Ship new file.
27638         (Depends-on): Add stdbool.
27639
27640         dirname: add library-safe mdir_name
27641         * lib/dirname.h (mdir_name): New prototype.
27642         * lib/dirname.c (dir_name): Move guts...
27643         (mdir_name): ...to new function that avoids xalloc_die.
27644
27645         fchdir: another mingw fix
27646         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27647         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27648         on mingw (where it has not yet been ported), and make it optional
27649         elsewhere.
27650         (_gl_register_fd): Use it.
27651
27652         same-inode: make SAME_INODE tri-state, to port to mingw
27653         * NEWS: Mention this change.
27654         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27655         st_ino always being 0.
27656         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27657         * lib/cycle-check.c (cycle_check): Likewise.
27658         * lib/same.c (same_name): Likewise.
27659
27660         lstat: avoid mingw compilation error
27661         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27662         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27663         lstat ourselves.
27664         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27665         was adequate.
27666         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27667         the checks for lstat.
27668         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27669
27670         link: fix test failure on Solaris 9
27671         * lib/link.c (rpl_link): Don't assume link will catch bogus
27672         trailing slash on source.
27673
27674         test-symlinkat: enhance test
27675         * tests/test-readlink.c (main): Move guts...
27676         * tests/test-readlink.h (test_readlink): ...into new file.
27677         * tests/test-symlink.c (main): Move guts...
27678         * tests/test-symlink.h (test_symlink): ...into new file.
27679         * tests/test-symlinkat.c (main): Use new files for further
27680         coverage.
27681         (do_symlink, do_readlink): New helper functions.
27682         * modules/symlink-tests (Files): Ship new file.
27683         (Depends-on): Add stdbool.
27684         * modules/readlink-tests (Files): Ship new file.
27685         (Depends-on): Add stdbool.
27686         * modules/symlinkat-tests (Files): Use new files.
27687
27688 2009-09-23  Eric Blake  <ebb9@byu.net>
27689
27690         readlink: document portability issue with symlink length
27691         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27692         systems have bogus st_size on symlinks, and mention the
27693         areadlink-with-size module.
27694         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27695         * doc/posix-functions/readlink.texi (readlink): Mention the
27696         areadlink module, and ERANGE failure.
27697         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27698         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27699
27700         readlink: fix Solaris 9 bug with trailing slash
27701         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27702         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27703         * doc/posix-functions/readlink.texi (readlink): Document this.
27704         * modules/readlink-tests: New test.
27705         * tests/test-readlink.c: Likewise.
27706
27707         readlink: fix cygwin 1.5.x bug with return type
27708         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27709         * lib/unistd.in.h (readlink): Use ssize_t.
27710         * lib/readlink.c (readlink): Likewise.
27711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27712         * modules/unistd (Makefile.am): Substitute it.
27713         * lib/unistd.in.h (readlink): Declare replacement.
27714         * doc/posix-functions/readlink.texi (readlink): Document this.
27715
27716         symlink: use throughout gnulib
27717         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27718         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27719         symlink is not used.
27720         * modules/symlinkat (Depends-on): Add symlink.
27721         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27722         * modules/canonicalize-tests (Depends-on): Likewise.
27723         * modules/lstat-tests (Depends-on): Likewise.
27724         * modules/openat-tests (Depends-on): Likewise.
27725         * modules/remove-tests (Depends-on): Likewise.
27726         * modules/rmdir-tests (Depends-on): Likewise.
27727         * modules/unlink-tests (Depends-on): Likewise.
27728         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27729         * tests/test-canonicalize.c (symlink): Likewise.
27730         * tests/test-fstatat.c (symlink): Likewise.
27731         * tests/test-lstat.c (symlink): Likewise.
27732         * tests/test-remove.c (symlink): Likewise.
27733         * tests/test-rmdir.c (symlink): Likewise.
27734         * tests/test-unlink.c (symlink): Likewise.
27735         * tests/test-unlinkat.c (symlink): Likewise.
27736
27737         symlink: new module, for Solaris 9 bug
27738         * modules/symlink: New file.
27739         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27740         * lib/symlink.c: Likewise.
27741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27742         * modules/unistd (Makefile.am): Substitute them.
27743         * lib/unistd.in.h (symlink): Declare replacement.
27744         * MODULES.html.sh (File system functions): Mention it.
27745         * doc/posix-functions/symlink.texi (symlink): Likewise.
27746         * modules/symlink-tests: New test.
27747         * tests/test-symlink.c: Likewise.
27748
27749 2009-09-23  Bruno Haible  <bruno@clisp.org>
27750
27751         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27752         when needed.
27753         Test case: gnulib-tool --import --with-tests atexit inttypes.
27754         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27755
27756 2009-09-23  Bruno Haible  <bruno@clisp.org>
27757
27758         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27759         subcommand, not in a subshell.
27760
27761 2009-09-22  Eric Blake  <ebb9@byu.net>
27762
27763         unistd: sort replacement declarations
27764         * lib/unistd.in.h: Sort declarations.
27765
27766         open, openat: minor optimization
27767         * lib/open.c (open): If open succeeded, len is non-zero.
27768         * lib/openat.c (rpl_openat): Likewise.
27769
27770         link-follow: ensure correct result
27771         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27772         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27773         distinguish between possible failures.
27774
27775 2009-09-21  Eric Blake  <ebb9@byu.net>
27776
27777         fts: avoid compiler warning
27778         * lib/fts.c (dirent_inode_sort_may_be_useful)
27779         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27780
27781 2009-09-19  Bruno Haible  <bruno@clisp.org>
27782
27783         * lib/progreloc.c (canonicalize_file_name): New declaration.
27784
27785 2009-09-19  Eric Blake  <ebb9@byu.net>
27786
27787         link: fix quoting
27788         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27789
27790         openat: fix openat bugs on Solaris 9
27791         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27792         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27793         * modules/openat (Depends-on): Add open.
27794         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27795         * modules/fcntl-h (Makefile.am): Substitute it.
27796         * lib/fcntl.in.h (openat): Declare replacement.
27797         * doc/posix-functions/openat.texi (openat): Document this.
27798
27799         openat: move fstatat and unlinkat into correct files
27800         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27801         compiled.
27802         * lib/openat.c (fstatat, unlinkat): Move...
27803         * lib/fstatat.c (fstatat): ...into correct files.
27804         * lib/unlinkat.c (unlinkat): Likewise.
27805
27806         openat: fix unlinkat bugs on Solaris 9
27807         * lib/unlinkat.c (unlinkat): New file.
27808         * modules/openat (Depends-on): Add unlink.
27809         (Files): Distribute it.
27810         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27811         trailing slash behavior is broken.
27812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27813         * modules/unistd (Makefile.am): Substitute it.
27814         * lib/unistd.in.h (unlinkat): Declare replacement.
27815         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27816
27817         openat: fix fstatat bugs on Solaris 9
27818         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27819         stat.
27820         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27821
27822         test-unlinkat: enhance test, to expose Solaris 9 bug
27823         * tests/test-unlink.c (main): Factor guts...
27824         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27825         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27826         * tests/test-rmdir.c (main): Adjust caller.
27827         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27828         (unlinker): New helper function.
27829         (rmdirat): Enhance check.
27830         * modules/rmdir-tests (Depends-on): Add stdbool.
27831         * modules/unlink-tests (Depends-on): Likewise.
27832         (Files): Add test-unlink.h.
27833         * modules/openat-tests (Files): Likewise.
27834         (Depends-on): Add unlinkdir.
27835
27836         test-fstatat: new test, to expose Solaris 9 bugs
27837         * tests/test-stat.c (main): Factor guts...
27838         * tests/test-stat.h (test_stat_func): ...into new file.
27839         * tests/test-lstat.c (main): Factor guts...
27840         * tests/test-lstat.h (test_lstat_func): ...into new file.
27841         * tests/test-fstatat.c: New file.
27842         * modules/stat-tests (Files): Add test-stat.h.
27843         * modules/lstat-tests (Files): Add test-lstat.h.
27844         (Depends-on): Add stdbool.
27845         * modules/openat-tests (Depends-on): Add pathmax.
27846         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27847         (Makefile.am): Run new test.
27848
27849         remove: new module, for mingw and Solaris 9 bugs
27850         * modules/remove: New file.
27851         * lib/remove.c: Likewise.
27852         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27854         * modules/stdio (Makefile.am): Use them.
27855         * lib/stdio.in.h (remove): Declare replacement.
27856         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27857         * doc/posix-functions/remove.texi (remove): Likewise.
27858         * modules/remove-tests: New test.
27859         * tests/test-remove.c: Likewise.
27860
27861         unlink: new module, for Solaris 9 bug
27862         * modules/unlink: New file.
27863         * lib/unlink.c: Likewise.
27864         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27866         * modules/unistd (Makefile.am): Use them.
27867         * lib/unistd.in.h (stat): Declare replacement.
27868         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27869         * doc/posix-functions/unlink.texi (unlink): Likewise.
27870         * modules/unlink-tests: New test.
27871         * tests/test-unlink.c: Likewise.
27872
27873         lstat: fix Solaris 9 bug
27874         * lib/lstat.c (lstat): Also check for trailing slash on
27875         non-symlink, non-directories.  Use stat module to simplify logic.
27876         * doc/posix-functions/lstat.texi (lstat): Document it.
27877         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27878         (configure.ac): Check for symlink.
27879         * tests/test-lstat.c (main): Add more tests.
27880
27881         stat: add as dependency to other modules
27882         * modules/chown (Depends-on): Add stat.
27883         * modules/euidaccess (Depends-on): Likewise.
27884         * modules/fchdir (Depends-on): Likewise.
27885         * modules/isdir (Depends-on): Likewise.
27886         * modules/link (Depends-on): Likewise.
27887         * modules/lstat (Depends-on): Likewise.
27888         * modules/mkdir-p (Depends-on): Likewise.
27889         * modules/modechange (Depends-on): Likewise.
27890         * modules/open (Depends-on): Likewise.
27891         * modules/readlink (Depends-on): Likewise.
27892         * modules/same (Depends-on): Likewise.
27893
27894         stat: fix Solaris 9 bug
27895         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27896         slash.
27897         * lib/stat.c (rpl_stat): Work around it.
27898         * doc/posix-functions/stat.texi (stat): Update documentation.
27899
27900         stat: new module, for mingw bug
27901         * modules/stat: New file.
27902         * lib/stat.c: Likewise.
27903         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27904         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27905         * modules/sys_stat (Makefile.am): Use them.
27906         * lib/sys_stat.in.h (stat): Declare replacement.
27907         * lib/openat.c (fstatat): Deal with lstat and stat being function
27908         macros.
27909         * modules/openat (Depends-on): Add inline.
27910         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27911         * doc/posix-functions/stat.texi (stat): Likewise.
27912         * modules/stat-tests: New test.
27913         * tests/test-stat.c: Likewise.
27914
27915 2009-09-19  Jim Meyering  <meyering@redhat.com>
27916
27917         syntax-check: detect unnecessary inclusion of canonicalize.h
27918         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27919
27920 2009-09-19  Eric Blake  <ebb9@byu.net>
27921
27922         canonicalize-lgpl: adjust clients to use correct header
27923         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27924         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27925         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27926         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27927         * lib/progreloc.c (includes): Likewise.
27928
27929 2009-09-19  Jim Meyering  <meyering@redhat.com>
27930
27931         test-posixtm.c: correct a comment
27932         * tests/test-posixtm.c: Correct first-line comment.
27933         Spotted by Eric Blake.
27934
27935 2009-09-16  Jim Meyering  <meyering@redhat.com>
27936
27937         posixtm-tests: make T const-correct; add a test case
27938         * tests/test-posixtm.c (T): Declare const.
27939         Add a test for -(2^31+1).
27940         Remove useless can-succeed-only-in-2002 test.
27941
27942         posixtm-tests: adjust the sole failing test
27943         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27944         expected output matches what mktime now produces.  Cross-checked via
27945         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27946
27947         posixtm: move #ifdef'd tests into a new module
27948         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27949         * tests/test-posixtm.c: ... this new file.
27950         * modules/posixtm-tests: New module.
27951
27952 2009-09-19  Eric Blake  <ebb9@byu.net>
27953
27954         openat: simplify use of at-func.c
27955         * lib/at-func.c (includes): Include prerequisites here, to
27956         simplify requirements on client files.
27957         * lib/openat-priv.h: Add double-inclusion guard.
27958         * lib/faccessat.c (includes): Simplify.
27959         * lib/fchmodat.c (includes): Likewise.
27960         * lib/fchownat.c (includes): Likewise.
27961         * lib/mkdirat.c (includes): Likewise.
27962         * lib/mkfifoat.c (includes): Likewise.
27963         * lib/symlinkat.c (includes): Likewise.
27964
27965         openat: allow return of fd 0
27966         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27967         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27968         unistd-safer.
27969         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27970         <fcntl.h>; this module does not leak fds.
27971         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27972         must be allowed to return 0, leaving openat_safer to add the
27973         safety.
27974         (openat_permissive): Avoid writing to just-opened fd 2 if
27975         restoring the current directory fails.
27976         * lib/openat-die.c (openat_restore_fail): Add comment.
27977         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27978         (save_cwd): Guarantee safe fd, but without use of open_safer.
27979         * tests/test-openat.c: New test.
27980         * modules/openat-tests (Files, Makefile.am): Distribute and build
27981         new file.
27982
27983         relocatable-prog-wrapper: fix build
27984         * modules/relocatable-prog-wrapper (Files): Update name of
27985         canonicalize m4 file, broken on 2009-09-17.
27986         Reported by emad hajjar <aleppos@hotmail.com>.
27987
27988 2009-09-19  Bruno Haible  <bruno@clisp.org>
27989
27990         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27991         * lib/safe-alloc.c: Likewise.
27992         Reported by Ian Beckwith <ianb@erislabs.net>.
27993
27994 2009-09-18  Bruno Haible  <bruno@clisp.org>
27995
27996         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27997         Reported by <erobles@sensacd.com.mx>.
27998
27999 2009-09-17  Eric Blake  <ebb9@byu.net>
28000
28001         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
28002         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
28003         slashes when checking if last component is missing.
28004         * tests/test-canonicalize.c (main): Test this.
28005
28006         canonicalize, canonicalize-lgpl: honor // if distinct from /
28007         * modules/canonicalize (Files): Add double-slash-root.m4.
28008         * modules/canonicalize-lgpl (Files): Likewise.
28009         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28010         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
28011         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
28012         fallback definition.
28013         (canonicalize_filename_mode): Use it to protect //.
28014         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
28015         (__realpath): Likewise.
28016         * tests/test-canonicalize.c (main): Test this.
28017         * tests/test-canonicalize-lgpl.c (main): Likewise.
28018         * modules/canonicalize-tests (Depends-on): Add same-inode.
28019         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28020
28021         canonicalize-lgpl: fix glibc bug with trailing slash
28022         * m4/canonicalize-lgpl.m4: Move contents...
28023         * m4/canonicalize.m4: ...here.
28024         (gl_CANONICALIZE_LGPL): Factor realpath check...
28025         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
28026         glibc 2.3.5 bug, fixed 2005-04-27.
28027         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
28028         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
28029         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
28030         * modules/canonicalize-lgpl (Files): Manage file rename.
28031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28032         * modules/stdlib (Makefile.am): Substitute witness.
28033         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
28034         is needed.
28035         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
28036         replacement is required.
28037         * lib/canonicalize.c (canonicalize_file_name): Likewise.
28038         * doc/glibc-functions/canonicalize_file_name.texi
28039         (canonicalize_file_name): Document this.
28040         * doc/posix-functions/realpath.texi (realpath): Likewise.
28041
28042         canonicalize-lgpl: reject non-directory with trailing slash
28043         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
28044         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
28045         catches failures in glibc 2.3.5.
28046         * tests/test-canonicalize.c (main): Likewise.
28047
28048         canonicalize-lgpl: use native realpath if it works
28049         * lib/canonicalize-lgpl.c (realpath): Guard with
28050         FUNC_REALPATH_WORKS.
28051         * lib/stdlib.in.h (realpath): Make declaration optional based on
28052         HAVE_REALPATH.
28053         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
28054         native realpath works.
28055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28056         * modules/stdlib (Makefile.am): Substitute witness.
28057
28058         canonicalize, canonicalize-lgpl: use <stdlib.h>
28059         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
28060         (Include): Mention <stdlib.h>.
28061         (configure.ac): Mention functions we provide.
28062         * modules/canonicalize (configure.ac): Likewise.
28063         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
28064         realpath if canonicalize_file_name is missing.
28065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
28066         * modules/stdlib (Makefile.am): Substitute witnesses.
28067         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
28068         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
28069         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
28070         * NEWS: Document this.
28071         * doc/glibc-functions/canonicalize_file_name.texi
28072         (canonicalize_file_name): Likewise.
28073         * doc/posix-functions/realpath.texi (realpath): Likewise.
28074         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
28075
28076         test-canonicalize: consolidate into single C program
28077         * tests/test-canonicalize.sh: Delete; move setup into...
28078         * tests/test-canonicalize.c (main): ...the program, making it
28079         easier to run in debugger.  Add some tests.
28080         * modules/canonicalize-tests (Files): Remove unused file.
28081         (Depends-on): Add progname.
28082         (configure.ac, Makefile.am): Simplify.
28083
28084         test-canonicalize-lgpl: consolidate into single C program
28085         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
28086         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
28087         easier to run in debugger.  Add some tests.
28088         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
28089         (configure.ac, Makefile.am): Simplify.
28090
28091         canonicalize: avoid resolvepath
28092         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
28093         unnecessary checks.
28094         * lib/canonicalize.c (includes): Simplify.
28095         (canonicalize_file_name): Drop resolvepath implementation.
28096         * modules/canonicalize (Depends-on): Drop filenamecat.
28097
28098         canonicalize: don't lose errno
28099         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
28100         over calls to free.
28101
28102         canonicalize: simplify errno handling
28103         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
28104         assignment.
28105
28106         canonicalize, canonicalize-lgpl: update module dependencies
28107         * modules/canonicalize (Depends-on): Add extensions, lstat,
28108         pathmax, stdlib.
28109         (Files): Drop pathmax.h.
28110         (configure.ac): Adjust macro name.
28111         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
28112         lstat, stdlib, sys_stat.
28113         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
28114         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
28115         extensions.
28116         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
28117         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
28118         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
28119         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
28120         declaration, if available.
28121         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
28122         we can rely on the readlink module.
28123         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
28124         (includes): Use <unistd.h> unconditionally.
28125
28126 2009-09-17  Eric Blake  <ebb9@byu.net>
28127
28128         maint: make Include sections of modules consistent
28129         * modules/alloca: Use only header name; no need to list #include.
28130         * modules/alloca-opt: Likewise.
28131         * modules/arpa_inet: Likewise.
28132         * modules/canon-host: Likewise.
28133         * modules/configmake: Likewise.
28134         * modules/dirent: Likewise.
28135         * modules/eealloc: Likewise.
28136         * modules/environ: Likewise.
28137         * modules/fchdir: Likewise.
28138         * modules/fcntl: Likewise.
28139         * modules/fcntl-h: Likewise.
28140         * modules/gethrxtime: Likewise.
28141         * modules/gettime: Likewise.
28142         * modules/ignore-value: Likewise.
28143         * modules/inet_ntop: Likewise.
28144         * modules/inet_pton: Likewise.
28145         * modules/inttypes: Likewise.
28146         * modules/isnand-nolibm: Likewise.
28147         * modules/isnanf-nolibm: Likewise.
28148         * modules/mbchar: Likewise.
28149         * modules/mbfile: Likewise.
28150         * modules/mbiter: Likewise.
28151         * modules/mbuiter: Likewise.
28152         * modules/netdb: Likewise.
28153         * modules/netinet_in: Likewise.
28154         * modules/nproc: Likewise.
28155         * modules/pagealign_alloc: Likewise.
28156         * modules/poll: Likewise.
28157         * modules/printf-frexp: Likewise.
28158         * modules/pthread: Likewise.
28159         * modules/putenv: Likewise.
28160         * modules/random_r: Likewise.
28161         * modules/relocatable-prog: Likewise.
28162         * modules/search: Likewise.
28163         * modules/select: Likewise.
28164         * modules/selinux-h: Likewise.
28165         * modules/settime: Likewise.
28166         * modules/signal: Likewise.
28167         * modules/size_max: Likewise.
28168         * modules/socklen: Likewise.
28169         * modules/ssize_t: Likewise.
28170         * modules/stdarg: Likewise.
28171         * modules/stdbool: Likewise.
28172         * modules/stddef: Likewise.
28173         * modules/stdint: Likewise.
28174         * modules/stdio: Likewise.
28175         * modules/stdlib: Likewise.
28176         * modules/string: Likewise.
28177         * modules/strings: Likewise.
28178         * modules/sys_file: Likewise.
28179         * modules/sys_ioctl: Likewise.
28180         * modules/sys_select: Likewise.
28181         * modules/sys_socket: Likewise.
28182         * modules/sys_stat: Likewise.
28183         * modules/sys_time: Likewise.
28184         * modules/sys_times: Likewise.
28185         * modules/sys_utsname: Likewise.
28186         * modules/sys_wait: Likewise.
28187         * modules/sysexits: Likewise.
28188         * modules/time: Likewise.
28189         * modules/times: Likewise.
28190         * modules/tmpfile: Likewise.
28191         * modules/trim: Likewise.
28192         * modules/unistd: Likewise.
28193         * modules/wchar: Likewise.
28194         * modules/wctype: Likewise.
28195
28196 2009-09-17  Bruno Haible  <bruno@clisp.org>
28197
28198         Make getdate.y compile on QNX and NetBSD 5 / i386.
28199         * m4/getdate.m4 (gl_GETDATE): Conditionally define
28200         TIME_T_FITS_IN_LONG_INT.
28201         * lib/getdate.y (long_time_t): New type.
28202         (relative_time): Change type of 'seconds' field to long_time_t.
28203         (get_date): Update types of local variables. Check against overflow
28204         during conversion from long_time_t to time_t.
28205         Reported by Matt Kraai <kraai@ftbfs.org>
28206         and Hasso Tepper <hasso@netbsd.org>.
28207
28208 2009-09-17  Bruno Haible  <bruno@clisp.org>
28209
28210         * modules/COPYING: Update copyright years.
28211         * modules/README: Likeiwse.
28212         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
28213         Reported by Ian Beckwith <ianb@erislabs.net>.
28214
28215 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28216
28217         * users.txt: Update references for gnuit package.
28218
28219 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28220
28221         * m4/getdelim.m4: Fix typo in copyright line.
28222
28223 2009-09-17  Bruno Haible  <bruno@clisp.org>
28224
28225         * lib/atoll.c: Use the standard header with GPL copyright.
28226         * lib/argz.in.h: Likewise.
28227         * lib/glob.c: Likewise.
28228         * lib/glob-libc.h: Likewise.
28229         * lib/random_r.c: Likewise.
28230         * lib/siglist.h: Likewise.
28231         * lib/strsignal.c: Likewise.
28232         Reported by Ian Beckwith <ianb@erislabs.net>.
28233
28234 2009-09-17  Eric Blake  <ebb9@byu.net>
28235
28236         rmdir: ensure correct dependency order
28237         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
28238
28239 2009-09-17  Bruno Haible  <bruno@clisp.org>
28240
28241         Disable assertion that fails on NetBSD 5 / i386.
28242         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28243         Reported by Sam Steingold <sds@gnu.org>
28244         and Hasso Tepper <hasso@netbsd.org>.
28245
28246 2009-09-16  Eric Blake  <ebb9@byu.net>
28247
28248         unlinkdir: port to mingw
28249         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28250         on which no one can unlink a directory.
28251
28252         stdlib: sort witness names
28253         * modules/stdlib (Makefile.am): Sort replacements.
28254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28255         * lib/stdlib.in.h: Likewise.
28256
28257         parse-duration-tests: avoid link failure
28258         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28259         LIBINTL.
28260         Reported by Tom G. Christensen.
28261
28262         openat-tests: ensure unlinkat behaves like rmdir
28263         * tests/test-rmdir.c (main): Factor guts...
28264         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28265         * modules/rmdir-tests (Files): Ship new file.
28266         * modules/openat-tests: New test.
28267         * tests/test-unlinkat.c: Likewise.
28268
28269         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28270         * modules/rmdir-errno (Status, Notice): Now obsolete.
28271
28272         rmdir: work around cygwin 1.5.x and mingw bugs
28273         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28274         * lib/rmdir.c (rmdir): Work around it.
28275         * modules/rmdir (Status, Notice): No longer obsolete.
28276         (Files): Add dos.m4.
28277         (Depends-on): Add unistd.
28278         (configure.ac): Set witnesses.
28279         (License): Relax to LGPLv2+.
28280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28281         * modules/unistd (Makefile.am): Substitute witnesses.
28282         * lib/unistd.in.h (rmdir): Declare replacement.
28283         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28284         * modules/rmdir-tests: New tests.
28285         * tests/test-rmdir.c: Likewise.
28286
28287 2009-09-15  Eric Blake  <ebb9@byu.net>
28288
28289         fchdir: improve use of replacement functions
28290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28291         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28292         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28293         REPLACE_CLOSEDIR.
28294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28295         * modules/sys_stat (Makefile.am): Substitute correct witness.
28296         * modules/dirent (Makefile.am): Likewise.
28297         * modules/unistd (Makefile.am): Likewise.
28298         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28299         * lib/unistd.in.h (dup): Likewise.
28300         * lib/sys_stat.in.h (fstat): Likewise.
28301
28302         maint: ignore gnulib-tool temp files
28303         * .gitignore: Ignore files created during gnulib-tool --test.
28304
28305 2009-09-13  Jim Meyering  <meyering@redhat.com>
28306
28307         posixtm: don't reject a time that specify "60" as the number of seconds
28308         * lib/posixtm.c (posixtime): The code to reject invalid dates
28309         would also reject a time specified with the .60 suffix.
28310         But POSIX allows that, in order to accommodate leap seconds.
28311         So don't reject it.
28312         (main): Adjust tests accordingly.
28313         * modules/posixtm (Depends-on): Add stpcpy.
28314
28315 2009-09-11  Jim Meyering  <meyering@redhat.com>
28316
28317         announce-gen: include [$release_type] in emitted Subject:
28318         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28319         e.g., [stable] in the emitted Subject: line.
28320
28321 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28322
28323         Remove obsolete macros from several modules.
28324         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28325         obsolete Autoconf macros with their modern counterparts.
28326         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28327         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28329         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28330         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28331         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28333         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28334         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28335         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28336         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28337         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28338         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28339         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28340         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28341         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28342         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28343         * m4/time_r.m4 (gl_TIME_R): Likewise.
28344         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28345         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28346         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28347
28348         Fix copyright header in build-aux scripts.
28349         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28350         recommendation.
28351         * build-aux/ncftpput-ftp: Likewise.
28352         * build-aux/update-copyright: Likewise.
28353
28354 2009-09-09  Eric Blake  <ebb9@byu.net>
28355
28356         test-link: allow Linux choice of errno
28357         * tests/test-link.c (main): Relax test for alternate error.
28358
28359         strndup: fix improper m4 caching
28360         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28361         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28362         (gl_PREREQ_STRNDUP): Delete.
28363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28364         * modules/string (Makefile.am): Substitute it.
28365         * lib/string.in.h (strndup): Modernize prototype.
28366
28367         getcwd: port to mingw
28368         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28369         different from the POSIX assumptions made throughout the getcwd
28370         module; fortunately, the mingw getcwd does not need replacement.
28371         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28372         * modules/getcwd-tests: New test.
28373         * tests/test-getcwd.c: Likewise.
28374
28375         link: fix platform bugs
28376         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28377         * lib/link.c (link): Work around them.  Fix related mingw bug.
28378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28379         * modules/unistd (Makefile.am): Substitute it.
28380         * lib/unistd.in.h (link): Declare replacement.
28381         * doc/posix-functions/link.texi (link): Document this.
28382         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28383
28384         test-link: consolidate into single C program, test more cases
28385         * tests/test-link.sh: Delete.
28386         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28387         at least Cygwin and Solaris.
28388         * modules/link-tests (Files): Remove unused file.
28389         (Depends-on): Add errno, sys_stat.
28390         (Makefile.am): Simplify.
28391
28392 2009-09-08  Bruno Haible  <bruno@clisp.org>
28393
28394         Work around towlower, towupper bug on mingw.
28395         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28396         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28397         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28398         * doc/posix-functions/towupper.texi: Likewise.
28399         Reported by Eric Blake.
28400
28401 2009-09-08  Jim Meyering  <meyering@redhat.com>
28402
28403         build: don't try to run autoheader if we don't use it
28404         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28405         is not used in configure.ac.
28406
28407 2009-09-08  Eric Blake  <ebb9@byu.net>
28408
28409         euidaccess: fix compilation error
28410         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28411
28412         rawmemchr: relax license
28413         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28414         okay.
28415         Reported by Jim Meyering.
28416
28417         mkfifoat: new module
28418         * modules/mkfifoat: New file.
28419         * lib/mkfifoat.c: Likewise.
28420         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28421         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28422         * modules/sys_stat (Makefile.am): Use them.
28423         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28424         * MODULES.html.sh (File system functions): Mention module.
28425         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28426         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28427         * modules/mkfifoat-tests: New test.
28428         * tests/test-mkfifoat.c: Likewise.
28429
28430         strchrnul: relax license
28431         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28432         okay.
28433         Reported by Jim Meyering.
28434
28435 2009-09-08  Eric Blake  <ebb9@byu.net>
28436
28437         fstatat: fix compilation on Solaris
28438         * lib/fstatat.c (includes): Add fcntl.h.
28439         Reported by Pádraig Brady.
28440
28441 2009-09-07  Eric Blake  <ebb9@byu.net>
28442
28443         rename: modernize replacement
28444         * modules/rename (Depends-on): Add stdio.
28445         (configure.ac): Declare witness.
28446         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28447         stdio take care of replacement.
28448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28449         * modules/stdio (Makefile.am): Substitute them.
28450         * lib/stdio.in.h (rename): Declare replacement.
28451         * lib/rename.c (includes): Allow cross-compilation to non-windows
28452         machines.
28453         * doc/posix-functions/rename.texi (rename): Improve
28454         documentation.
28455
28456         stdio: sort witness names
28457         * modules/stdio (Makefile.am): Sort replacements.
28458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28459         * lib/stdio.in.h: Likewise.
28460
28461         getcwd: minor cleanups
28462         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28463         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28464
28465         openat: provide more convenience names
28466         * modules/faccessat (configure.ac): Add C witness.
28467         * lib/unistd.in.h (readlinkat): Fix typo.
28468         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28469         convenience wrappers.
28470         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28471         wrappers in syntax checks.
28472
28473 2009-09-06  Eric Blake  <ebb9@byu.net>
28474
28475         doc: fix comments in recent patches
28476         * lib/faccessat.c: Mention correct function.
28477         * lib/fchmodat.c: Likewise.
28478         * lib/fchownat.c: Likewise.
28479         * lib/symlinkat.c: Likewise.
28480         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28481         constants.
28482
28483         faccessat, symlinkat: continue cleanup of previous patch
28484         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28485         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28486         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28488         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28489         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28490         set.
28491
28492 2009-09-06  Bruno Haible  <bruno@clisp.org>
28493
28494         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28495         (fstatat): Declare if GNULIB_FSTATAT is set.
28496         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28497         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28498         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28499         * modules/fcntl-h (Files): Remove m4/openat.m4.
28500         * modules/sys_stat (Files): Remove m4/openat.m4.
28501         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28502         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28503         * modules/unistd (Files): Remove m4/openat.m4.
28504         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28505         GNULIB_OPENAT.
28506         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28507         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28508         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28509         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28510         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28511         gl_OPENAT_DEFAULTS.
28512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28513         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28514         Don't require gl_OPENAT_DEFAULTS.
28515         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28516         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28517         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28518         (gl_OPENAT_DEFAULTS): Remove macro.
28519
28520 2009-09-06  Bruno Haible  <bruno@clisp.org>
28521
28522         * modules/openat (configure.ac): Remove unneeded witness.
28523
28524 2009-09-06  Bruno Haible  <bruno@clisp.org>
28525
28526         Set errno to ENOSYS when a function is entirely unsupported.
28527         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28528         EOPNOTSUPP.
28529         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28530         * modules/chown (Depends-on): Remove errno.
28531
28532 2009-09-06  Bruno Haible  <bruno@clisp.org>
28533
28534         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28535
28536 2009-09-06  Bruno Haible  <bruno@clisp.org>
28537
28538         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28539
28540 2009-09-06  Ben Pfaff  <blp@gnu.org>
28541             Bruno Haible  <bruno@clisp.org>
28542
28543         Work around a glibc bug in strtok_r.
28544         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28545         Undefine if UNDEFINE_STRTOK_R is set.
28546         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28548         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28549         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28550         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28551         UNDEFINE_STRTOK_R.
28552         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28553
28554 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28555
28556         exclude: minor fix
28557         * lib/exclude.c: Include wctype.h
28558
28559 2009-09-06  Akim Demaille  <demaille@gostai.com>
28560
28561         bootstrap: improve error message
28562         * build-aux/bootstrap (find_tool): Upon failure, report the list
28563         of candidates.
28564         Honor the initial value of the envvar.
28565
28566 2009-09-05  Eric Blake  <ebb9@byu.net>
28567
28568         symlinkat: new module
28569         * modules/symlinkat: New file.
28570         * lib/symlinkat.c: Likewise.
28571         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28573         * modules/unistd (Makefile.am): Use them.
28574         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28575         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28576         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28577         * MODULES.html.sh (File system functions): Mention module.
28578         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28579         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28580         * modules/symlinkat-tests: New test.
28581         * tests/test-symlinkat.c: Likewise.
28582
28583         test-openat-safer: add more checks
28584         * tests/test-openat-safer.c (main): Check more code paths.
28585
28586 2009-09-05  Jim Meyering  <meyering@redhat.com>
28587
28588         syntax-check: detect unnecessary inclusion of openat.h
28589         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28590
28591 2009-09-05  Bruno Haible  <bruno@clisp.org>
28592
28593         Support towlower, towupper.
28594         * doc/posix-functions/towlower.texi: Mention module wctype.
28595         * doc/posix-functions/towupper.texi: Likewise.
28596         * lib/wctype.in.h (towlower, towupper): New functions.
28597         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28598         (ASSERT): New macro.
28599         (e): New variable.
28600         (main): Test also towlower, towupper. Test WEOF argument.
28601         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28602
28603 2009-09-05  Bruno Haible  <bruno@clisp.org>
28604
28605         Fix conversion behaviour when the input is invalid.
28606         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28607         mark occurring in first pass of indirect conversion.
28608         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28609         input.
28610         Found by clang's static analyzer.
28611
28612 2009-09-05  Bruno Haible  <bruno@clisp.org>
28613
28614         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28615         where direct conversion is possible.
28616
28617 2009-09-04  Eric Blake  <ebb9@byu.net>
28618
28619         openat: fail with ENOENT on empty name
28620         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28621         buffer.
28622
28623         link-follow: fix logic bug in prior patch
28624         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28625         reversed sense of yes and no in prior patch.  Avoid confusing
28626         compilation failure with desired semantics.
28627
28628         link-follow: accomodate mingw and cross-compilation
28629         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28630         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28631         cross-compilation results to -1, to make linkat easier to
28632         implement when cross-compiling.  Trivially support mingw.
28633         * modules/link-follow (configure.ac): Call new name.
28634         * NEWS: Mention this.
28635
28636 2009-09-03  Eric Blake  <ebb9@byu.net>
28637
28638         faccessat: compile replacement
28639         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28640         needed.
28641
28642         fts: fix compilation error
28643         * lib/fts.c (includes): Re-add "openat.h", for
28644         openat_needs_fchdir.
28645
28646         faccessat: new module
28647         * modules/faccessat: New file.
28648         * lib/faccessat.c: Likewise.
28649         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28651         * modules/unistd (Makefile.am): Use it.
28652         * lib/unistd.in.h (faccessat): Declare it.
28653         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28654         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28655         * MODULES.html.sh (File system functions): Mention it.
28656         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28657         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28658
28659         euidaccess: prefer POSIX over non-standard implementation
28660         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28661         * lib/euidaccess.c (euidaccess): Use it if available.
28662
28663         openat: make template easier to use
28664         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28665         AT_FUNC_F2 to be undefined.
28666         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28667         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28668         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28669         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28670         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28671         Likewise.
28672         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28673         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28674         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28675         Likewise.
28676
28677         openat: declare in POSIX headers
28678         * NEWS: Mention this.
28679         * modules/openat (configure.ac): Declare witnesses.
28680         (Depends-on): Add fcntl-h, sys_stat, unistd.
28681         (Include): Mention correct headers.
28682         * modules/fcntl-h (Depends-on): Add link-warning.
28683         (Files): Add openat.m4.
28684         (Makefile.am): Substitute witnesses.
28685         * modules/sys_stat (Files, Makefile.am): Likewise.
28686         * modules/unistd (Files, Makefile.am): Likewise.
28687         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28688         (gl_OPENAT_DEFAULTS): New macro.
28689         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28691         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28692         (SYS_STAT_H): Remove unused variable.
28693         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28694         * lib/fcntl--.h (includes): Remove unneeded header.
28695         * lib/openat-safer.c (includes): Likewise.
28696         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28697         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28698         appropriate headers.
28699         (__OPENAT_PREFIX): Delete.
28700         * lib/fcntl.in.h (openat): Provide declaration.
28701         (AT_FDCWD): Fix Solaris bug.
28702         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28703         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28704         * lib/fchmodat.c (includes):  Adjust to find declaration.
28705         * lib/fchownat.c (includes): Likewise.
28706         * lib/mkdirat.c (includes): Likewise.
28707         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28708         still visible.
28709
28710 2009-09-02  Eric Blake  <ebb9@byu.net>
28711
28712         errno: use consistently
28713         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28714         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28715         * lib/canonicalize.c (ELOOP): Likewise.
28716         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28717         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28718         * lib/lchown.c (EOPNOTSUPP): Likewise.
28719         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28720         * lib/savewd.c (ESTALE): Likewise.
28721         * lib/settime.c (ENOSYS): Likewise.
28722         * lib/utimens.c (ENOSYS): Likewise.
28723         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28724         * lib/chdir-safer.c (ELOOP): Likewise.
28725         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28726         * modules/c-stack (Depends-on): Add errno.
28727         * modules/canonicalize (Depends-on): Likewise.
28728         * modules/chdir-safer (Depends-on): Likewise.
28729         * modules/fdopendir (Depends-on): Likewise.
28730         * modules/inet_ntop (Depends-on): Likewise.
28731         * modules/inet_pton (Depends-on): Likewise.
28732         * modules/lchown (Depends-on): Likewise.
28733         * modules/openat (Depends-on): Likewise.
28734         * modules/savewd (Depends-on): Likewise.
28735         * modules/settime (Depends-on): Likewise.
28736         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28737
28738         fts: avoid leaking fds
28739         * modules/fts (Depends-on): Add cloexec.
28740         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28741         flag.
28742
28743         fts: make directory fds more robust
28744         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28745         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28746
28747         backupfile, chdir-long, fts, savedir: make safer
28748         * lib/backupfile.c (includes): Use "dirent--.h", since
28749         numbered_backup can write to stderr during readdir.
28750         * lib/savedir.c (includes): Likewise.
28751         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28752         emulation can write to stderr on failure.
28753         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28754         * lib/getcwd.c: Document why opendir_safer is unused.
28755         * lib/glob.c: Likewise.
28756         * lib/scandir.c: Likewise.
28757         * lib/openat-proc.c: Likewise, for open_safer.
28758         * modules/backupfile (Depends-on): Add dirent-safer.
28759         * modules/savedir (Depends-on): Likewise.
28760         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28761         * modules/chdir-long (Depends-on): Add openat-safer.
28762
28763         openat-safer: new module
28764         * modules/openat-safer: New file.
28765         * lib/openat-safer.c: Likewise.
28766         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28767         * lib/fcntl-safer.h (openat_safer): Declare.
28768         * lib/fcntl--.h (openat): Override.
28769         * MODULES.html.sh (File descriptor based I/O): Mention it.
28770         * lib/openat.h: Add double-inclusion guards.
28771         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28772         "fcntl--.h", so we can implement openat.
28773         * modules/openat-safer-tests: New test.
28774         * tests/test-openat-safer.c: New file.
28775
28776         dirent-safer: new module
28777         * modules/dirent-safer: New file.
28778         * lib/dirent--.h: Likewise.
28779         * lib/dirent-safer.h: Likewise.
28780         * lib/opendir-safer.c: Likewise.
28781         * m4/dirent-safer.m4: Likewise.
28782         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28783         * modules/dirent-safer-tests: New test.
28784         * tests/test-dirent-safer.c: New file.
28785         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28786
28787         fdopendir: optimize on mingw
28788         * lib/unistd.in.h (_gl_directory_name): New prototype.
28789         * lib/fchdir.c (_gl_directory_name): Implement it.
28790         (fchdir): Use it to simplify implementation.
28791         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28792         fchdir, when available, to avoid calling [f]chdir().
28793
28794         fdopendir: split into its own module
28795         * lib/openat.c (fdopendir): Move...
28796         * lib/fdopendir.c: ...into new file.
28797         * modules/fdopendir: New module.
28798         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28799         * modules/openat (Depends-on): Add fdopendir.
28800         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28801         fdopendir here.
28802         * modules/savedir (Depends-on): Only need fdopendir, not full
28803         openat.
28804         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28805         * lib/openat.h (fdopendir): Drop prototype.
28806         * lib/dirent.in.h (fdopendir): Provide prototype.
28807         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28808         * modules/dirent (Makefile.am): Substitute them.
28809         * MODULES.html.sh (File system functions): Mention it.
28810         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28811         * modules/fdopendir-tests: New file.
28812         * tests/test-fdopendir.c: Likewise.
28813
28814         fchdir: use more consistent macro convention
28815         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28816         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28817         REPLACE_FCHDIR, rather than relying on config.h macros.
28818         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28819         inside a single make-time REPLACE_FCHDIR block, rather than using
28820         the config.h FCHDIR_REPLACEMENT.
28821         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28822         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28823         Manage fstat replacement.
28824         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28825         REPLACE_FCHDIR.
28826         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28827         (Makefile.am): Substitute REPLACE_FCHDIR.
28828         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28829         FCHDIR_REPLACEMENT.
28830         * lib/dup-safer.c (dup_safer): Likewise.
28831         * lib/dup2.c (rpl_dup2): Likewise.
28832         * lib/dup3.c (rpl_dup3): Likewise.
28833         * lib/open.c (rpl_open): Likewise.
28834
28835         fchdir: simplify error handling, and support dup3
28836         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28837         stdbool, malloc-posix, realloc-posix.
28838         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28839         (ensure_dirs_slot): Return false on allocation failure.
28840         (rpl_dup2): Delete.
28841         (_gl_register_dup): New function.
28842         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28843         (_gl_register_fd): Close fd on allocation failure.
28844         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28845         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28846         prototype.
28847         (rpl_dup2_fchdir): Delete prototype.
28848         * lib/open.c (open): Update caller.
28849         * lib/dup2.c (dup2): Track fchdir metadata.
28850         * lib/dup3.c (dup3): Likewise.
28851         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28852         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28853
28854 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28855
28856         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28857         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28858         don't pass arguments to AC_OUTPUT.
28859
28860 2009-09-02  Bruno Haible  <bruno@clisp.org>
28861
28862         * modules/mkdtemp (License): Relicense under LGPLv2+.
28863         Reported by Paolo Bonzini.
28864
28865 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28866
28867         Replace uses of obsolete autoconf macros in Jim's modules.
28868         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28869         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28870         can evoke a warning from autoconf when run with -Wobsolete
28871         enabled.  They were declared obsolete for good reasons (see
28872         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28873         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28874         should not continue using the deprecated macros.
28875         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28876         obsolete Autoconf macros with modern counterparts.
28877         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28878         * m4/dos.m4 (gl_AC_DOS): Likewise.
28879         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28880         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28881         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28882         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28883         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28884         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28885         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28886         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28887         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28888         Likewise.
28889         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28890         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28891         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28892         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28893         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28894         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28895
28896 2009-09-01  Eric Blake  <ebb9@byu.net>
28897
28898         fchdir: fix off-by-one bug in previous patch
28899         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28900         (_gl_unregister_fd): Delete useless if.
28901
28902 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28903
28904         maint.mk: sort the list of syntax-check rules
28905         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28906         easier to get a sense of progress when the rules are run sequentially
28907         and take a long time.
28908
28909 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28910
28911         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28912         * modules/netinet_in: Likewise.
28913         * modules/sys_file: Likewise.
28914         * modules/sys_ioctl: Likewise.
28915         * modules/sys_select: Likewise.
28916         * modules/sys_socket: Likewise.
28917         * modules/sys_stat: Likewise.
28918         * modules/sys_time: Likewise.
28919         * modules/sys_times: Likewise.
28920         * modules/sys_utsname: Likewise.
28921         * modules/sys_wait: Likewise.
28922
28923 2009-09-01  Jim Meyering  <meyering@redhat.com>
28924
28925         fts: help ensure that return values are not ignored
28926         * lib/fts_.h (__GNUC_PREREQ): Define.
28927         (__attribute_warn_unused_result__): Define.
28928         (fts_children, fts_close, fts_open, fts_read): Declare with
28929         __attribute_warn_unused_result__.
28930
28931         fts: fts_close now fails also when closing a dir file descriptor fails
28932         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28933         and propagate to caller, along with errno.
28934
28935         announce-gen: correct formatting in --help output
28936         * build-aux/announce-gen (usage): Move the one-line description in
28937         --help output "up", to where it belongs, just after Usage:.
28938
28939 2009-08-31  Eric Blake  <ebb9@byu.net>
28940
28941         fchdir: port to mingw
28942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28943         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28944         opened, then use a substitute.
28945         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28946         replacement.
28947         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28948         (_gl_register_fd): No need to check stat if open already filters
28949         all directories.
28950         (fchdir): Fix error condition to match POSIX.
28951         * modules/fchdir (Depends-on): Add sys_stat.
28952         * doc/posix-functions/open.texi (open): Document the limitation.
28953         * modules/fchdir-tests: New file.
28954         * tests/test-fchdir.c: Likewise.
28955
28956         canonicalize: allow cross-testing from cygwin to mingw
28957         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28958         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28959         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28960         Likewise.
28961         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28962         target does not support symlinks.
28963         * tests/test-canonicalize-lgpl.sh: Likewise.
28964
28965         chown: avoid compilation warning on mingw
28966         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28967         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28968         mingw.
28969         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28970         * modules/chown (Depends-on): Add errno.
28971
28972 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28973
28974         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28975         command.
28976
28977 2009-08-31  Jim Meyering  <meyering@redhat.com>
28978
28979         canonicalize: remove useless initialization
28980         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28981         initialization of local, "end".
28982
28983 2009-08-30  Bruno Haible  <bruno@clisp.org>
28984
28985         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28986         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28987         ENOSYS.
28988
28989 2009-08-30  Bruno Haible  <bruno@clisp.org>
28990
28991         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28992         /usr/xpg4/bin/tr when it exists.
28993         * tests/test-pipe-filter-gi1.sh: Likewise.
28994
28995 2009-08-30  Bruno Haible  <bruno@clisp.org>
28996
28997         Work around deficient /usr/bin/id program on Solaris.
28998         * tests/test-file-has-acl.sh (ID): New variable.
28999         * tests/test-set-mode-acl.sh (ID): Likewise.
29000         * tests/test-copy-acl.sh (ID): Likewise.
29001         * tests/test-copy-file.sh (ID): Likewise.
29002
29003 2009-08-30  Bruno Haible  <bruno@clisp.org>
29004
29005         New module 'xstriconveh'.
29006         * lib/xstriconveh.h: New file.
29007         * lib/xstriconveh.c: New file.
29008         * modules/xstriconveh: New file.
29009
29010 2009-08-30  Bruno Haible  <bruno@clisp.org>
29011
29012         Make it easier to use mem_cd_iconveh.
29013         * lib/striconveh.h (iconveh_t): New type.
29014         (iconveh_open, iconveh_close): New declarations.
29015         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29016         with a single 'const iconveh_t *' argument.
29017         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
29018         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29019         with a single 'const iconveh_t *' argument.
29020         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
29021         * tests/test-striconveh.c (main): Update.
29022         * NEWS: Mention the change.
29023
29024 2009-08-30  Bruno Haible  <bruno@clisp.org>
29025
29026         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
29027         problem.
29028
29029 2009-08-30  Bruno Haible  <bruno@clisp.org>
29030
29031         Work around iconv_open problem on Solaris.
29032         * lib/iconv_open-solaris.gperf: New file.
29033         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
29034         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
29035         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
29036         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
29037         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
29038         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
29039
29040 2009-08-29  Jim Meyering  <meyering@redhat.com>
29041
29042         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
29043         * top/maint.mk (cvs-check): Remove target; it was just an alias
29044         to the better-named vc-diff-check.
29045         (maintainer-distcheck): Remove rule.  It was used only from
29046         the (alpha/beta/major) target, and all of its commands but one
29047         were coreutils-specific.
29048         (vc-dist): Remove rule.
29049         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
29050         Run vc-diff-check, not vc-dist.
29051         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
29052
29053 2009-08-27  Bruno Haible  <bruno@clisp.org>
29054
29055         * tests/test-bitrotate.c (main): Remove test that uses a shift count
29056         of 0.
29057
29058 2009-08-27  Bruno Haible  <bruno@clisp.org>
29059
29060         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
29061         compilers.
29062         * doc/func.texi: Document the SunPRO C bug.
29063
29064 2009-08-27  Bruno Haible  <bruno@clisp.org>
29065
29066         Fix link error on Solaris.
29067         * tests/test-parse-duration.c (xstrdup): Remove function.
29068
29069 2009-08-26  Pádraig Brady  <P@draigbrady.com>
29070
29071         ignore-value: handle pointer types, too
29072         * lib/ignore-value.h (__attribute__): Remove definition.
29073         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
29074         of a more concise and more-often effective "(void) i" statement.
29075         (ignore_ptr): New function to suppress warnings from functions that
29076         return pointers, and to make it explicit that one function doesn't
29077         handle all cases.
29078
29079 2009-08-25  Bruno Haible  <bruno@clisp.org>
29080
29081         dup2: work around a Linux bug.
29082         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
29083         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
29084         * doc/posix-functions/dup2.texi: Mention the Linux bug.
29085         Reported by Simon Josefsson.
29086
29087 2009-08-25  Jim Meyering  <meyering@redhat.com>
29088
29089         libguestfs uses gnulib
29090         * users.txt: Add libguestfs.
29091
29092 2009-08-24  Eric Blake  <ebb9@byu.net>
29093
29094         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
29095         * lib/pipe2.c (includes): Add binary-io.h.
29096         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
29097
29098 2009-08-24  Bruno Haible  <bruno@clisp.org>
29099
29100         Tolerate declared but missing accept4 syscall.
29101         * lib/accept4.c (accept4): Invoke original accept4 function first, if
29102         available.
29103         * lib/sys_socket.in.h (accept4): If the function is already present,
29104         override it.
29105         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
29106         * modules/accept4 (Makefile.am): Compile accept4.c always.
29107         Reported by Paolo Bonzini and Eric Blake.
29108
29109 2009-08-23  Bruno Haible  <bruno@clisp.org>
29110
29111         New module 'accept4'.
29112         * lib/sys_socket.in.h (accept4): New declaration.
29113         * lib/accept4.c: New file.
29114         * m4/accept4.m4: New file.
29115         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29116         GNULIB_ACCEPT4, HAVE_ACCEPT4.
29117         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
29118         HAVE_ACCEPT4.
29119         * modules/accept4: New file.
29120         * doc/glibc-functions/accept4.texi: Mention the new module.
29121
29122 2009-08-24  Jim Meyering  <meyering@redhat.com>
29123
29124         progname: also set global program_invocation_name, when possible
29125         Before this change, a libtool-enabled program that calls glibc's
29126         error function would report the program name as
29127         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
29128         * modules/progname (configure.ac): Check for a declaration of
29129         program_invocation_name.
29130         * lib/progname.c:  Include <errno.h>.
29131         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
29132         Set program_invocation_name.
29133
29134 2009-08-23  Bruno Haible  <bruno@clisp.org>
29135
29136         * lib/dup3.c: Include <string.h>.
29137
29138 2009-08-23  Bruno Haible  <bruno@clisp.org>
29139
29140         * lib/dup3.c (dup3): Test only once whether the system actually exists.
29141         * lib/pipe2.c (pipe2): Likewise.
29142         Suggested by Eric Blake.
29143
29144 2009-08-23  Bruno Haible  <bruno@clisp.org>
29145
29146         Tolerate declared but missing dup3 syscall.
29147         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
29148         * lib/unistd.in.h (dup3): If the function is already present,
29149         override it.
29150         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
29151         * modules/dup3 (Makefile.am): Compile dup3.c always.
29152         Reported by Paolo Bonzini.
29153
29154 2009-08-23  Bruno Haible  <bruno@clisp.org>
29155
29156         Tolerate declared but missing pipe2 syscall.
29157         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
29158         available.
29159         * lib/unistd.in.h (pipe2): If the function is already present,
29160         override it.
29161         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
29162         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
29163         Reported by Paolo Bonzini.
29164
29165 2009-08-23  Bruno Haible  <bruno@clisp.org>
29166
29167         * lib/pipe2.c (pipe2): Move #ifs inside function.
29168
29169 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29170
29171         quotearg: document limitations of quote_these_too
29172         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
29173         those limitations are created.
29174         * lib/quotearg.h (set_char_quoting): Document that digits and
29175         letters that are special after backslash are not permitted.
29176         (quotearg_char): Cross-reference set_char_quoting documentation.
29177
29178 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
29179
29180         quotearg: implement custom_quoting_style
29181         * lib/quotearg.c: (struct quoting_options): Add left_quote and
29182         right_quote fields.
29183         (set_custom_quoting): New public function.
29184         (quotearg_buffer_restyled): Add left_quote and right_quote
29185         arguments, handle them very much like locale quoting, and update
29186         all uses.
29187         (quotearg_n_custom): New public function.
29188         (quotearg_n_custom_mem): New public function.
29189         (quotearg_custom): New public function.
29190         (quotearg_custom_mem): New public function.
29191         * lib/quotearg.h: Prototype and document new public functions.
29192         (enum quoting_style): For escape_quoting_style and
29193         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
29194         ignored even though they're otherwise like c_quoting_style.
29195         Add custom_quoting_style member and document with comparison to
29196         clocale_quoting_style.
29197         * tests/test-quotearg.c (custom_quotes): New array.
29198         (custom_results): New array.
29199         (main): Extend to test custom quoting.
29200
29201 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29202
29203         quotearg: fix right quote escaping when it's in quote_these_too
29204         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
29205         quote, be sure to prepend only one backslash.
29206         * tests/test-quotearg.c (use_quote_double_quotes): New function.
29207         (main): Test it.
29208
29209 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29210
29211         quotearg-tests: test escaping of embedded locale quotes
29212         * tests/test-quotearg.c (struct result_strings): Add member for
29213         new input.
29214         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
29215         (inputs): Add new input.
29216         (results_g): Add expected results.
29217         (flag_results): Likewise.
29218         (locale_results): Likewise.
29219         (compare_strings): Check those.
29220
29221 2009-08-23  Bruno Haible  <bruno@clisp.org>
29222
29223         Tests for module 'dup3'.
29224         * modules/dup3-tests: New file.
29225         * tests/test-dup3.c: New file.
29226
29227         New module 'dup3'.
29228         * lib/unistd.in.h (dup3): New declaration.
29229         * lib/dup3.c: New file.
29230         * m4/dup3.m4: New file.
29231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
29232         HAVE_DUP3.
29233         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
29234         * modules/dup3: New file.
29235         * doc/glibc-functions/dup3.texi: Mention the new module.
29236
29237 2009-08-23  Bruno Haible  <bruno@clisp.org>
29238
29239         Tweak the dup2 test.
29240         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29241         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29242         the test file is still empty. Fix argument order of lseek.
29243
29244 2009-08-23  Bruno Haible  <bruno@clisp.org>
29245
29246         Avoid test link errors when the modules getopt-gnu, gettext are used.
29247         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29249
29250 2009-08-23  Bruno Haible  <bruno@clisp.org>
29251
29252         Fix getdtablesize() on mingw.
29253         * lib/getdtablesize.c (getdtablesize): Implement differently.
29254         * lib/unistd.in.h (getdtablesize): Improve comment.
29255
29256 2009-08-23  Bruno Haible  <bruno@clisp.org>
29257
29258         New module 'mkostemp'.
29259         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29260         * lib/stdlib.in.h (mksotemp): New declaration.
29261         * lib/mkostemp.c: New file, from glibc with modifications.
29262         * lib/tempname.h (GT_FILE): Remove outdated comment.
29263         (gen_tempname): Add flags argument.
29264         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29265         (__GT_FILE): Map to 1.
29266         (small_open, large_open): Remove macros.
29267         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29268         * lib/mkstemp.c (mkstemp): Update.
29269         * lib/mkdtemp.c (mkdtemp): Likewise.
29270         * m4/mkostemp.m4: New file.
29271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29272         HAVE_MKOSTEMP.
29273         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29274         HAVE_MKOSTEMP.
29275         * modules/mkostemp: New file, based on modules/mkstemp.
29276         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29277         * NEWS: Mention the change.
29278
29279 2009-08-23  Bruno Haible  <bruno@clisp.org>
29280
29281         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29282         Reported by Eric Blake.
29283
29284 2009-08-23  Bruno Haible  <bruno@clisp.org>
29285
29286         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29287         Reported by Eric Blake.
29288
29289 2009-08-23  Bruno Haible  <bruno@clisp.org>
29290
29291         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29292         * modules/pipe2 (Depends-on): Likewise.
29293
29294 2009-08-23  Eric Blake  <ebb9@byu.net>
29295
29296         fcntl-h: add O_TTY_INIT support
29297         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29298         * tests/test-fcntl-h.c (o): Test it.
29299         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29300
29301         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29302         * modules/fcntl: Move <fcntl.h> header replacement...
29303         * modules/fcntl-h: ...to new name, so as not to collide with
29304         like-named function.
29305         * tests/test-fcntl.c: Rename...
29306         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29307         * modules/fcntl-tests: Rename...
29308         * modules/fcntl-h-tests: ...to this.  Update test file name.
29309         * modules/chdir-long (Depends-on): Update clients.
29310         * modules/chdir-safer (Depends-on): Likewise.
29311         * modules/fcntl-safer (Depends-on): Likewise.
29312         * modules/fts (Depends-on): Likewise.
29313         * modules/mkancesdirs (Depends-on): Likewise.
29314         * modules/mkdir-p (Depends-on): Likewise.
29315         * modules/open (Depends-on): Likewise.
29316         * modules/savewd (Depends-on): Likewise.
29317         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29318         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29319
29320 2009-08-22  Bruno Haible  <bruno@clisp.org>
29321
29322         * modules/binary-io (License): Relicense under LGPL.
29323         * modules/pipe2 (License): Likewise.
29324
29325 2009-08-22  Bruno Haible  <bruno@clisp.org>
29326
29327         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29328         return value.
29329         * lib/pipe-filter-gi.c (filter_init): Likewise.
29330         Reported by Eric Blake.
29331
29332 2009-08-22  Bruno Haible  <bruno@clisp.org>
29333
29334         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29335         * modules/pipe (Depends-on): Add pipe2.
29336
29337 2009-08-22  Bruno Haible  <bruno@clisp.org>
29338
29339         Tests for module 'pipe2'.
29340         * modules/pipe2-tests: New file.
29341         * tests/test-pipe2.c: New file.
29342
29343         New module 'pipe2'.
29344         * lib/unistd.in.h (pipe2): New declaration.
29345         * lib/pipe2.c: New file.
29346         * m4/pipe2.m4: New file.
29347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29348         HAVE_PIPE2.
29349         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29350         * modules/pipe2: New file.
29351         * doc/glibc-functions/pipe2.texi: Mention the new module.
29352
29353 2009-08-22  Bruno Haible  <bruno@clisp.org>
29354
29355         Reference some new glibc functions.
29356         * doc/glibc-functions/accept4.texi: New file.
29357         * doc/glibc-functions/dup3.texi: New file.
29358         * doc/glibc-functions/mkostemp.texi: New file.
29359         * doc/glibc-functions/pipe2.texi: New file.
29360         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29361         (Glibc sys/socket.h): Refer to accept4.
29362         (Glibc unistd.h): Refer to dup3, pipe2.
29363         Reported by Eric Blake.
29364
29365 2009-08-22  Jim Meyering  <meyering@redhat.com>
29366             Bruno Haible  <bruno@clisp.org>
29367
29368         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29369         This makes it so packages using automake-1.11's silent-rules option
29370         can print e.g., a single "GEN    configmake.h" line, rather than
29371         the 30+ statements that perform the job.  If you want to see the
29372         actual commands, you can still run "make V=1".
29373         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29374         so that make output is abbreviated when those variables are defined
29375         appropriately.
29376         * modules/argz: Likewise.
29377         * modules/arpa_inet: Likewise.
29378         * modules/byteswap: Likewise.
29379         * modules/configmake: Likewise.
29380         * modules/dirent: Likewise.
29381         * modules/errno: Likewise.
29382         * modules/fcntl: Likewise.
29383         * modules/float: Likewise.
29384         * modules/fnmatch: Likewise.
29385         * modules/getopt-posix: Likewise.
29386         * modules/glob: Likewise.
29387         * modules/iconv_open: Likewise.
29388         * modules/inttypes: Likewise.
29389         * modules/localcharset: Likewise.
29390         * modules/locale: Likewise.
29391         * modules/math: Likewise.
29392         * modules/netdb: Likewise.
29393         * modules/netinet_in: Likewise.
29394         * modules/poll: Likewise.
29395         * modules/posix_spawnp-tests: Likewise.
29396         * modules/sched: Likewise.
29397         * modules/search: Likewise.
29398         * modules/selinux-h: Likewise.
29399         * modules/signal: Likewise.
29400         * modules/spawn: Likewise.
29401         * modules/stdarg: Likewise.
29402         * modules/stdbool: Likewise.
29403         * modules/stddef: Likewise.
29404         * modules/stdint: Likewise.
29405         * modules/stdio: Likewise.
29406         * modules/stdlib: Likewise.
29407         * modules/string: Likewise.
29408         * modules/strings: Likewise.
29409         * modules/sys_file: Likewise.
29410         * modules/sys_ioctl: Likewise.
29411         * modules/sys_select: Likewise.
29412         * modules/sys_socket: Likewise.
29413         * modules/sys_stat: Likewise.
29414         * modules/sys_time: Likewise.
29415         * modules/sys_times: Likewise.
29416         * modules/sys_utsname: Likewise.
29417         * modules/sys_wait: Likewise.
29418         * modules/sysexits: Likewise.
29419         * modules/time: Likewise.
29420         * modules/unistd: Likewise.
29421         * modules/wchar: Likewise.
29422         * modules/wctype: Likewise.
29423
29424 2009-08-22  Jim Meyering  <meyering@redhat.com>
29425
29426         announce-gen: detect write failure
29427         * build-aux/announce-gen: Add Coda at end.
29428         Remove equivalent-but-more-verbose block at top.
29429
29430 2009-08-19  Akim Demaille  <demaille@gostai.com>
29431
29432         bootstrap: --help to stdout.
29433         * bootstrap (usage): Don't send --help to stderr.
29434         Use a here doc instead of a long string.
29435
29436 2009-08-21  Eric Blake  <ebb9@byu.net>
29437
29438         test-popen-safer: split from test-popen
29439         * tests/test-popen.c (main): Move...
29440         * tests/test-popen.h: ...into new file.
29441         * tests/test-popen-safer2.c: New file.
29442         * modules/popen-tests (Files): Add test-popen.h.
29443         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29444         Suggested by Bruno Haible.
29445
29446         test-fcntl-safer: split from test-open
29447         * tests/test-open.c (main): Move...
29448         * tests/test-open.h: ...into new file.
29449         * tests/test-fcntl-safer.c: New file.
29450         * modules/open-tests (Files): Add test-open.h.
29451         * modules/fcntl-safer-tests: New file.
29452         Suggested by Bruno Haible.
29453
29454         test-fopen-safer: split from test-fopen
29455         * tests/test-fopen.c (main): Move...
29456         * tests/test-fopen.h: ...into new file.
29457         * tests/test-fopen-safer.c: New file.
29458         * modules/fopen-tests (Files): Add test-fopen.h.
29459         * modules/fopen-safer-tests: New file.
29460         Suggested by Bruno Haible.
29461
29462 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29463
29464         popen-safer: test O_CLOEXEC at run-time.
29465         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29466
29467 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29468
29469         fcntl: move more flags to the header
29470         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29471         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29472         * lib/fcntl.in.h: Do both things here.
29473
29474 2009-08-21  Jim Meyering  <meyering@redhat.com>
29475
29476         consistently remove $@-t before redirecting to it
29477         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29478         * modules/alloca-opt: Likewise.
29479         * modules/byteswap: Likewise.
29480         * modules/fnmatch: Likewise.
29481         * modules/getopt-posix: Likewise.
29482         * modules/glob: Likewise.
29483         * modules/poll: Likewise.
29484         * modules/posix_spawnp-tests: Likewise.
29485         * modules/sys_socket: Likewise.
29486         * modules/sysexits: Likewise.
29487
29488 2009-08-21  Eric Blake  <ebb9@byu.net>
29489
29490         popen: simplify access to original popen
29491         * lib/popen.c (rpl_popen): No need to worry about popen being a
29492         macro.
29493         Reported by Bruno Haible.
29494
29495 2009-08-20  Eric Blake  <ebb9@byu.net>
29496
29497         build: avoid some compiler warnings
29498         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29499         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29500         type.
29501         (new_exclude_segment, excluded_file_pattern_p)
29502         (excluded_file_name_p): Reduce scope.
29503         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29504         old-style declaration.
29505
29506 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29507
29508         * tests/test-exclude1.sh: Handle Windows EOL.
29509         * tests/test-exclude2.sh: Likewise.
29510         * tests/test-exclude3.sh: Likewise.
29511         * tests/test-exclude4.sh: Likewise.
29512         * tests/test-exclude5.sh: Likewise.
29513         * tests/test-exclude6.sh: Likewise.
29514         * tests/test-exclude7.sh: Likewise.
29515
29516 2009-08-19  Akim Demaille  <demaille@gostai.com>
29517
29518         bootstrap: find sha1sum when named gsha1sum.
29519         * bootstrap (find_tool): New.
29520         ($SHA1SUM): New.
29521         Use it.
29522
29523 2009-08-20  Jim Meyering  <meyering@redhat.com>
29524
29525         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29526         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29527         expression that converts "." in a file name to "\." in the resulting
29528         regexp.  Start with a dummy statement, so that prior shell variable
29529         definitions are expanded portably.  Reported by Simon Josefsson.
29530
29531 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29532
29533         Fix polling for writeability of a screen buffer.
29534         * lib/poll.c: Distinguish input and screen buffers for the
29535         Win32 implementation.
29536         * lib/select.c: Likewise.
29537
29538 2009-08-19  Eric Blake  <ebb9@byu.net>
29539
29540         popen-safer: prevent popen from clobbering std descriptors
29541         * modules/popen-safer: New file.
29542         * lib/popen-safer.c: Likewise.
29543         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29544         * lib/stdio--.h (popen): Provide override.
29545         * lib/stdio-safer.h (popen_safer): Provide declaration.
29546         * tests/test-popen.c (includes): Partially test this.
29547         * modules/popen-safer-tests: New file, for more tests.
29548         * tests/test-popen-safer.c: Likewise.
29549         * MODULES.html.sh (file stream based Input/Output): Mention it.
29550
29551         tests: test some of the *-safer modules
29552         * modules/fopen-safer (Depends-on): Add fopen.
29553         * modules/fcntl-safer (Depends-on): Add fcntl.
29554         * modules/stdlib-safer (Depends-on): Add stdlib.
29555         (configure.ac): Set indicator.
29556         * modules/unistd-safer (configure.ac): Likewise.
29557         * modules/tmpfile-safer (configure.ac): Likewise.
29558         (Depends-on): Add tmpfile.
29559         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29560         active.
29561         * tests/test-fopen.c (includes): Test safer versions when they are
29562         in use.
29563         * tests/test-open.c (includes): Likewise.
29564
29565         popen: fix cygwin 1.5 bug when stdin closed
29566         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29567         * modules/popen: New file.
29568         * modules/popen-tests: Likewise.
29569         * tests/test-popen.c: Likewise.
29570         * m4/popen.m4: Likewise.
29571         * lib/popen.c: Likewise.
29572         * lib/stdio.in.h (popen): New declaration.
29573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29574         * modules/stdio (Makefile.am): Likewise.
29575         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29576
29577 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29578
29579         maint.mk: give full control over update-copyright exclusions
29580         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29581         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29582         (update-copyright): Don't force inclusion of top-level
29583         ChangeLog.  Don't force exclusion of all COPYING files, but make
29584         them the default exclusion instead.
29585
29586 2009-08-16  Bruno Haible  <bruno@clisp.org>
29587
29588         Fix test failures on Solaris 10.
29589         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29590         tests when Solaris iconv() is used.
29591         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29592         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29593         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29594         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29595         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29596
29597 2009-08-16  Bruno Haible  <bruno@clisp.org>
29598
29599         Fix test failures on Solaris 10.
29600         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29601         'tr' program and pass it as first argument.
29602         * tests/test-pipe-filter-gi1.sh: Likewise.
29603         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29604         program as first argument.
29605         * tests/test-pipe-filter-gi1.c (main): Likewise.
29606
29607 2009-08-16  Eric Blake  <ebb9@byu.net>
29608
29609         fpurge: fix previous commits
29610         * modules/fpurge (Makefile.am): Make replacement conditional,
29611         partially reverting 2007-04-29 change; missed in previous
29612         attempt.
29613         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29614         is missing.
29615
29616 2009-08-16  Bruno Haible  <bruno@clisp.org>
29617
29618         Clarify fpurge's effect on the file position.
29619         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29620         * tests/test-fpurge.c (main): Make a second pass for checking the file
29621         position.
29622
29623 2009-08-16  Bruno Haible  <bruno@clisp.org>
29624
29625         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29626         declaration of fpurge is missing.
29627         * tests/test-fpurge.c (main): Check that the file has not more contents
29628         than expected. Close the file before removing it.
29629
29630 2009-08-15  Eric Blake  <ebb9@byu.net>
29631
29632         fpurge: don't wrap working cygwin implementation
29633         * lib/fpurge.c (fpurge): Fix comment typo.
29634         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29635         1.7 to avoid replacement.
29636         * tests/test-fpurge.c (main): Enhance test.
29637
29638 2009-08-15  Eric Blake  <ebb9@byu.net>
29639         and Jim Meyering  <meyering@redhat.com>
29640
29641         test-update-copyright: skip if perl is insufficient
29642         * tests/test-update-copyright.sh: Failure to run maintainer tool
29643         should not cause testsuite failure on cygwin 1.5.
29644
29645 2009-08-14  Eric Blake  <ebb9@byu.net>
29646
29647         doc: mention more functions added in cygwin 1.7.0
29648         * doc/posix-headers/limits.texi (limits.h): Update for recent
29649         cygwin additions.
29650         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29651         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29652         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29653         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29654         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29655
29656 2009-08-14  Eric Blake  <ebb9@byu.net>
29657
29658         maint.mk: simplify update-copyright rule
29659         * top/maint.mk (update-copyright-local): Delete, and document how
29660         to do it in cfg.mk instead.
29661         (update-copyright-exclude-regexp): Delete, and document how to do
29662         it in .x-update-copyright instead.
29663         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29664         exclude ChangeLog.
29665
29666 2009-08-14  Bruno Haible  <bruno@clisp.org>
29667
29668         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29669
29670 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29671
29672         maint.mk: support update-copyright-env
29673         * top/maint.mk (update-copyright-env): Define place-holder.
29674         (update-copyright): Expand $(update-copyright-env) before
29675         invoking update-copyright.
29676
29677 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29678
29679         update-copyright: implement forced reformatting
29680         * build-aux/update-copyright: Implement and document
29681         UPDATE_COPYRIGHT_FORCE.
29682         * tests/test-update-copyright.sh: Test it.
29683
29684 2009-08-14  Eric Blake  <ebb9@byu.net>
29685         and Bruno Haible  <bruno@clisp.org>
29686
29687         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29688         * tests/test-locale.c: Revert previous patch related to NULL.
29689         * tests/test-stdio.c: Likewise.
29690         * tests/test-stdlib.c: Likewise.
29691         * tests/test-string.c: Likewise.
29692         * tests/test-unistd.c: Likewise.
29693         * modules/time-tests (Depends-on): Add verify.
29694         * modules/wchar-tests (Depends-on): Likewise.
29695         * tests/test-time.c: Test for NULL compliance.
29696         * tests/test-wchar.c: Likewise.
29697         * modules/locale (Depends-on): Add stddef.
29698         * modules/stdio (Depends-on): Likewise.
29699         * modules/stdlib (Depends-on): Likewise.
29700         * modules/string (Depends-on): Likewise.
29701         * modules/time (Depends-on): Likewise.
29702         * modules/unistd (Depends-on): Likewise.
29703         * modules/wchar (Depends-on): Likewise.
29704         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29705         * lib/stdlib.in.h (includes): Likewise.
29706         * lib/string.in.h (includes): Likewise.
29707         * lib/time.in.h (includes): Likewise.
29708         * lib/unistd.in.h (includes): Likewise.
29709         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29710         replaced.
29711         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29712         * m4/stddef_h.m4: New file.
29713         * modules/stddef: Likewise.
29714         * lib/stddef.in.h: Likewise.
29715         * modules/stddef-tests: Likewise.
29716         * tests/test-stddef.c: Likewise.
29717         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29718         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29719         * doc/posix-headers/locale.texi (locale.h): Likewise.
29720         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29721         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29722         * doc/posix-headers/string.texi (string.h): Likewise.
29723         * doc/posix-headers/time.texi (time.h): Likewise.
29724         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29725         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29726
29727 2009-08-14  Eric Blake  <ebb9@byu.net>
29728
29729         doc: improve git diff of texinfo files
29730         * .gitattributes: Add rule for *.texi files, with hint on how to
29731         use it.
29732         Copied from m4, and based on a report by Bruno Haible.
29733
29734 2009-08-14  Bruno Haible  <bruno@clisp.org>
29735
29736         Disable multithread support by default on Cygwin 1.5.x for real.
29737         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29738
29739 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29740
29741         update-copyright: much ado about intervals
29742         * build-aux/update-copyright: Implement and document
29743         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29744         of copyright year intervals.
29745         Also, document UPDATE_COPYRIGHT_YEAR.
29746         * tests/test-update-copyright.sh: Test it.
29747
29748         update-copyright: convert 2-digit to 4-digit years
29749         * build-aux/update-copyright: Implement and document.
29750         * tests/test-update-copyright.sh: Update.
29751
29752 2009-08-14  Jim Meyering  <meyering@redhat.com>
29753
29754         test-exclude: avoid coreutils "make check" failure
29755         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29756         just as in test-argmatch.c.
29757
29758 2009-08-13  Eric Blake  <ebb9@byu.net>
29759
29760         test-dup2: fix bad assumption
29761         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29762         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29763
29764         test-version-etc: fix CRLF portability issue
29765         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29766         recognize \r.
29767         * tests/test-argp-version-etc-1.sh: Likewise.
29768
29769         getopt: update client modules
29770         * modules/argp (Depends-on): Use getopt-gnu.
29771         * modules/git-merge-changelog (Depends-on): Likewise.
29772         * modules/long-options (Depends-on): Likewise.
29773         * modules/xstrtol (Depends-on): Likewise.
29774
29775 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29776
29777         * tests/test-version-etc.sh: Don't fail on different
29778         project/version.  Don't fail on CRLF differences.  Rewrite to use
29779         multiple -e instead of multiple sed forks, suggested by Eric Blake
29780         <ebb9@byu.net>.
29781         * tests/test-argp-version-etc-1.sh: Likewise.
29782
29783 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29784
29785         * tests/test-version-etc.sh: Don't fail on different
29786         project/version.
29787
29788 2009-08-12  Bruno Haible  <bruno@clisp.org>
29789
29790         Tests for modules 'getopt-posix', 'getopt-gnu'.
29791         * modules/getopt-posix-tests: New file.
29792         * tests/test-getopt.c: New file.
29793         * tests/test-getopt.h: New file.
29794         * tests/test-getopt_long.h: New file.
29795
29796         New modules 'getopt-posix', 'getopt-gnu'.
29797         * modules/getopt-gnu: New file, renamed from modules/getopt.
29798         * modules/getopt-posix: New file.
29799         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29800         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29801         (gl_GETOPT): Remove macro.
29802         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29803         Disable the test against BSD systems that declare optreset. Test
29804         against mingw bug. Test against lack of support of optional arguments
29805         on many platforms.
29806         * doc/glibc-headers/getopt.texi: Update module name and list of
29807         relevant platforms.
29808         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29809         'getopt-gnu' and more portability problems.
29810         * NEWS: Mention the changes.
29811
29812 2009-08-12  Bruno Haible  <bruno@clisp.org>
29813
29814         Ensure that optarg etc. get declared by <unistd.h>.
29815         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29816         AC_USE_SYSTEM_EXTENSIONS.
29817         * modules/getopt (Depends-on): Add 'extensions'.
29818
29819 2009-08-12  Bruno Haible  <bruno@clisp.org>
29820
29821         Avoid test link errors.
29822         * modules/pipe-filter-ii-tests (Makefile.am): Define
29823         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29824         * modules/pipe-filter-gi-tests (Makefile.am): Define
29825         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29826         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29827
29828 2009-08-12  Bruno Haible  <bruno@clisp.org>
29829
29830         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29831         gl_GETOPT_SUBSTITUTE before.
29832         (gl_GETOPT): Use it.
29833         * m4/argp.m4 (gl_ARGP): Update.
29834         Reported by Sergey Poznyakoff.
29835
29836         * m4/getopt.m4: Reorder macros.
29837         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29838         (gl_GETOPT_SUBSTITUTE): Remove macro.
29839
29840 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29841
29842         Minor improvement in gitlog-to-changelog
29843
29844         * build-aux/gitlog-to-changelog: New option `--format' makes
29845         output format string configurable.
29846
29847 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29848
29849         Optimize exclude: use hash tables for non-wildcard patterns.
29850
29851         * lib/exclude.c: Include hash.h and mbuiter.h
29852         (struct exclude_pattern, exclude_segment): New data types.
29853         (struct exclude): Rewrite.
29854         (fnmatch_pattern_has_wildcards): New function.
29855         (new_exclude_segment, free_exclude_segment): New functions.
29856         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29857         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29858         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29859         * modules/exclude: Depend on hash and mbuiter.
29860
29861         * modules/exclude-tests: New file.
29862         * tests/test-exclude.c: New file.
29863         * tests/test-exclude1.sh: New file.
29864         * tests/test-exclude2.sh: New file.
29865         * tests/test-exclude3.sh: New file.
29866         * tests/test-exclude4.sh: New file.
29867         * tests/test-exclude5.sh: New file.
29868         * tests/test-exclude6.sh: New file.
29869         * tests/test-exclude7.sh: New file.
29870
29871 2009-08-12  Bruno Haible  <bruno@clisp.org>
29872
29873         Ensure that getopt() gets declared by <unistd.h>.
29874         * lib/unistd.in.h: Conditionally include getopt.h.
29875         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29876         Set GNULIB_UNISTD_H_GETOPT.
29877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29878         GNULIB_UNISTD_H_GETOPT.
29879         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29880
29881 2009-08-12  Bruno Haible  <bruno@clisp.org>
29882
29883         Clarify logic.
29884         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29885         gl_replace_getopt instead of GETOPT_H.
29886
29887 2009-08-12  Bruno Haible  <bruno@clisp.org>
29888
29889         * m4/getopt.m4: Add comments.
29890
29891 2009-08-12  Bruno Haible  <bruno@clisp.org>
29892
29893         Disable multithread support by default on Cygwin 1.5.x.
29894         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29895         set gl_use_threads=no if not specified otherwise.
29896
29897 2009-08-11  Bruno Haible  <bruno@clisp.org>
29898
29899         Avoid compilation error on NetBSD 5.0.
29900         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29901         * tests/test-stdio.c: Likewise.
29902         * tests/test-stdlib.c: Likewise.
29903         * tests/test-string.c: Likewise.
29904         * tests/test-unistd.c: Likewise.
29905         Reported by Greg Troxel <gdt@ir.bbn.com>
29906         at <https://savannah.gnu.org/support/?106973>.
29907
29908 2009-08-11  Bruno Haible  <bruno@clisp.org>
29909
29910         * modules/dup2-tests (Depends-on): Remove close.
29911
29912         Undo 2009-07-19 commit.
29913         * modules/acl-tests (Depends-on): Remove close.
29914         * modules/binary-io-tests (Depends-on): Likewise.
29915         * modules/closein-tests (Depends-on): Likewise.
29916         * modules/flock-tests (Depends-on): Likewise.
29917         * modules/fsync-tests (Depends-on): Likewise.
29918         * modules/lseek-tests (Depends-on): Likewise.
29919         * modules/pipe-tests (Depends-on): Likewise.
29920         * modules/posix_spawn-tests (Depends-on): Likewise.
29921         * modules/posix_spawnp-tests (Depends-on): Likewise.
29922         * modules/stat-time-tests (Depends-on): Likewise.
29923         * modules/yesno-tests (Depends-on): Likewise.
29924
29925 2009-08-10  Bruno Haible  <bruno@clisp.org>
29926
29927         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29928
29929 2009-08-10  Bruno Haible  <bruno@clisp.org>
29930
29931         Fix a gcc warning.
29932         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29933
29934 2009-08-10  Bruno Haible  <bruno@clisp.org>
29935
29936         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29937         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29938         not only the first time.
29939         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29940         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29941         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29942         is 1, not only the the first time.
29943
29944 2009-08-10  Bruno Haible  <bruno@clisp.org>
29945
29946         Make it possible to use module 'gethostname' without module 'close'.
29947         * lib/unistd.in.h (close): Evoke a link error only if
29948         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29950         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29951         * modules/unistd (Makefile.am): Substitute
29952         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29953         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29954         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29955         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29956         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29957         * modules/sys_ioctl (Makefile.am): Substitute
29958         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29959         * modules/socket (configure.ac): On native Windows, set
29960         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29961         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29962         Reported by Sam Steingold <sds@gnu.org>.
29963
29964 2009-08-10  Bruno Haible  <bruno@clisp.org>
29965
29966         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29967         * modules/ioctl (configure.ac): Likewise.
29968
29969 2009-08-10  Bruno Haible  <bruno@clisp.org>
29970
29971         Avoid collision between gnulib wrapper and libintl wrapper.
29972         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29973         already defined in intl/printf.c.
29974         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29975         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29976
29977 2009-08-09  Bruno Haible  <bruno@clisp.org>
29978
29979         Make <sys/select.h> really self-contained, also on Solaris 10.
29980         * lib/sys_select.in.h: Include <string.h>.
29981         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29982         Solaris 10 problem.
29983         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29984         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29985         Reported by Jim Meyering.
29986
29987 2009-08-09  Bruno Haible  <bruno@clisp.org>
29988
29989         Avoid warnings from 'aclocal' that are due to a use of macro name
29990         AM_XGETTEXT_OPTION that is not defined in automake.
29991         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29992         automake.
29993         * modules/error (configure.ac): Likewise.
29994         * modules/propername (configure.ac): Likewise.
29995         * modules/vasprintf (configure.ac): Likewise.
29996         * modules/verror (configure.ac): Likewise.
29997         * modules/xprintf (configure.ac): Likewise.
29998         * modules/xvasprintf (configure.ac): Likewise.
29999
30000 2009-08-08  Bruno Haible  <bruno@clisp.org>
30001
30002         Avoid compilation error in C++ mode.
30003         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
30004         Reported by Sam Steingold <sds@gnu.org>.
30005
30006 2009-08-08  Bruno Haible  <bruno@clisp.org>
30007
30008         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
30009         for the various Unix platforms.
30010         * doc/posix-headers/limits.texi: Update platforms list regarding
30011         HOST_NAME_MAX.
30012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30013
30014 2009-08-07  Jim Meyering  <meyering@redhat.com>
30015
30016         selinux-at: fix typo in a comment
30017         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
30018         Spotted by Paolo Bonzini.
30019
30020         selinux-at: remove redundant m4 code, add documentation
30021         * modules/selinux-at (configure.ac): Remove redundant code.
30022         LIB_SELINUX is already set via the dependent module, selinux-h.
30023         (Include): Add quotes around selinux-at.h.
30024         * lib/selinux-at.h: Add documentation.
30025         Reported by Bruno Haible in
30026         http://marc.info/?l=gnulib-bug&m=124958988300749
30027
30028 2009-08-07  Bruno Haible  <bruno@clisp.org>
30029
30030         Avoid link error on MacOS X 10.3 and 10.4.
30031         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
30032         on non-ELF systems.
30033         * lib/argp-pv.c (argp_program_version): Likewise.
30034         Reported by Simon Josefsson.
30035
30036 2009-08-07  Simon Josefsson  <simon@josefsson.org>
30037
30038         * tests/test-version-etc.sh: Use $EXEEXT.
30039
30040 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
30041
30042         update-copyright: update documentation to point to maint.mk
30043         * build-aux/update-copyright: Here.
30044
30045 2009-08-06  Jim Meyering  <meyering@redhat.com>
30046
30047         maint.mk: support update-copyright-local
30048         * top/maint.mk (update-copyright-local): Define place-holder.
30049         (update-copyright): Depend on $(update-copyright-local).
30050
30051 2009-08-06  Jim Meyering  <meyering@redhat.com>
30052
30053         selinux-at: new module
30054         Initially written for coreutils, this module will soon be
30055         used by findutils, too.
30056         * MODULES.html.sh [Misc]: Add selinux-at.
30057         * lib/selinux-at.h: New file, from coreutils.
30058         * lib/selinux-at.c: Likewise.
30059         * modules/selinux-at: Likewise.
30060         (License): Change from LGPL to GPL, since it depends
30061         on the GPL'd openat module.
30062
30063         doc: update README
30064         * README: Remove references to cogito.
30065         Remove cvs-repo-updating instructions from 2007.
30066         Don't imply that CVS is better if you have limited disk space.
30067
30068 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30069
30070         update-copyright: support C-style comments
30071         * build-aux/update-copyright: Implement and document.
30072         * tests/test-update-copyright.sh: Test.
30073
30074 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30075
30076         update-copyright: support omitted "(C)"
30077         * build-aux/update-copyright: Implement and document.  Also,
30078         allow variable whitespace before "(C)".
30079         * tests/test-update-copyright.sh: Test.
30080
30081 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30082
30083         update-copyright: don't trip on non-FSF copyright statements
30084         * build-aux/update-copyright: Fix so that the first correctly
30085         formatted FSF copyright statement is recognized no matter what
30086         appears before it.  Update documentation.
30087         * tests/test-update-copyright.sh: Test that.
30088
30089 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30090
30091         update-copyright: clean up code a little
30092         * build-aux/update-copyright: Append "_re" to the name of any
30093         variable holding a regular expression.
30094         Replace "old" and "new" with "stmt" in variable names.
30095         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
30096         handled correctly.
30097         Format code more consistently.
30098
30099 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30100
30101         update-copyright-tests: improve portability
30102         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
30103         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
30104
30105 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30106
30107         update-copyright: support @copyright{} and &copy;
30108         * build-aux/update-copyright: Implement and document.
30109         * tests/test-update-copyright.sh: Test.
30110
30111 2009-08-04  Jim Meyering  <meyering@redhat.com>
30112
30113         update-copyright-tests: correctly test EOL=\r\n handling
30114         * tests/test-update-copyright.sh: Put \r at the end of some lines
30115         for the dos-eol tests.  Based on a patch by Joel E. Denny.
30116
30117         maint.mk: make update-copyright exclusion list more configurable
30118         * top/maint.mk (update-copyright): Default to excluding COPYING,
30119         but allow an override, in case someone does want to update that file.
30120
30121         maint.mk: don't update copyright date in COPYING
30122         * top/maint.mk (update-copyright): Exclude COPYING.
30123
30124         maint.mk: add a copyright-updating rule
30125         * top/maint.mk (update-copyright): New rule.
30126         Derived from coreutils/Makefile.am.
30127
30128         update-copyright: rename some variables
30129         * build-aux/update-copyright: Rename a few variables for clarity.
30130         Tweak syntax.  List Joel E. Denny as coauthor.
30131
30132 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30133
30134         update-copyright: fix bug for 2-digit last year and add tests
30135         * build-aux/update-copyright: Fix bug.
30136         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
30137         specified.
30138         * modules/update-copyright-tests: New
30139         * tests/test-update-copyright.sh: New.
30140
30141 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30142
30143         update-copyright: handle leading tabs in line prefix
30144         * build-aux/update-copyright: Count leading tabs as 8 spaces
30145         when computing margin.  This helps with the formatting of
30146         ChangeLogs, for example.
30147         Fix documentation a little.
30148
30149 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30150
30151         update-copyright: support EOL=\r\n
30152         * build-aux/update-copyright: Implement that.
30153
30154 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30155
30156         update-copyright: automatically format copyright statements
30157         * build-aux/update-copyright: Implement that.
30158         Also, be a little more predictable and safer by always failing
30159         when the full copyright format is not perfectly recognized as an
30160         unbroken whole.  Discussed at
30161         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
30162         Rewrite documentation.
30163
30164 2009-08-03  Bruno Haible  <bruno@clisp.org>
30165
30166         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
30167
30168 2009-08-02  Bruno Haible  <bruno@clisp.org>
30169
30170         Tests for module 'uname'.
30171         * modules/uname-tests: New file.
30172         * tests/test-uname.c: New file.
30173
30174         New module 'uname'.
30175         * lib/uname.c: New file.
30176         * m4/uname.m4: New file.
30177         * modules/uname: New file.
30178         * doc/posix-functions/uname.texi: Mention the new module.
30179
30180 2009-08-02  Bruno Haible  <bruno@clisp.org>
30181
30182         Tests for module 'sys_utsname'.
30183         * modules/sys_utsname-tests: New file.
30184         * tests/test-sys_utsname.c: New file.
30185
30186         New module 'sys_utsname'.
30187         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
30188         * m4/sys_utsname_h.m4: New file.
30189         * modules/sys_utsname: New file.
30190         * doc/posix-headers/sys_utsname.texi: Mention the new module.
30191
30192 2009-08-02  Bruno Haible  <bruno@clisp.org>
30193
30194         Implicitly initialize the sockets library.
30195         * lib/gethostname.c: Include sockets.h.
30196         (rpl_gethostname): Invoke gl_sockets_startup.
30197         * lib/socket.c: Include sockets.h.
30198         (rpl_socket): Invoke gl_sockets_startup.
30199         * modules/gethostname (Depends-on): Add sockets.
30200         * modules/socket (Depends-on): Likewise.
30201         * tests/test-poll.c: Don't include sockets.h.
30202         (main): Don't invoke gl_sockets_startup.
30203         * tests/test-select.c: Don't include sockets.h.
30204         (main): Don't invoke gl_sockets_startup.
30205
30206 2009-08-02  Bruno Haible  <bruno@clisp.org>
30207
30208         Allow multiple calls to gl_sockets_startup.
30209         * lib/sockets.c (initialized_sockets_version): New variable.
30210         (gl_sockets_startup): Do nothing if already called for this or a higher
30211         version.
30212         (gl_sockets_cleanup): Reset initialized_sockets_version.
30213
30214 2009-08-03  Simon Josefsson  <simon@josefsson.org>
30215
30216         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
30217         different project/version.
30218
30219 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
30220             Bruno Haible  <bruno@clisp.org>
30221
30222         Tests for module 'pipe-filter-gi'.
30223         * modules/pipe-filter-gi-tests: New file.
30224         * tests/test-pipe-filter-gi1.sh: New file.
30225         * tests/test-pipe-filter-gi1.c: New file.
30226         * tests/test-pipe-filter-gi2.sh: New file.
30227         * tests/test-pipe-filter-gi2-main.c: New file.
30228         * tests/test-pipe-filter-gi2-child.c: New file.
30229
30230         New module 'pipe-filter-gi'.
30231         * lib/pipe-filter-gi.c: New file.
30232         * modules/pipe-filter-gi: New file.
30233
30234 2009-08-02  Bruno Haible  <bruno@clisp.org>
30235             Paolo Bonzini  <bonzini@gnu.org>
30236
30237         Tests for module 'pipe-filter-ii'.
30238         * modules/pipe-filter-ii-tests: New file.
30239         * tests/test-pipe-filter-ii1.sh: New file.
30240         * tests/test-pipe-filter-ii1.c: New file.
30241         * tests/test-pipe-filter-ii2.sh: New file.
30242         * tests/test-pipe-filter-ii2-main.c: New file.
30243         * tests/test-pipe-filter-ii2-child.c: New file.
30244
30245         New module 'pipe-filter-ii'.
30246         * lib/pipe-filter.h: New file.
30247         * lib/pipe-filter-ii.c: New file.
30248         * lib/pipe-filter-aux.h: New file.
30249         * modules/pipe-filter-ii: New file.
30250
30251 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30252
30253         * lib/gc-libgcrypt.c: Change copyright to FSF.
30254         * lib/gc-gnulib.c: Likewise.
30255
30256 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30257
30258         * lib/gethostname.c: Include limits.h.
30259
30260 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30261             Bruno Haible  <bruno@clisp.org>
30262
30263         Ensure HOST_NAME_MAX as part of the gethostname module.
30264         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30265         define also HOST_NAME_MAX.
30266         * tests/test-gethostname.c: Include <limits.h>.
30267         (main): Check also HOST_NAME_MAX.
30268         * doc/posix-headers/limits.texi: Document the mingw problem.
30269
30270 2009-08-02  Bruno Haible  <bruno@clisp.org>
30271
30272         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30273         Add comments.
30274
30275 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30276
30277         * lib/gethostname.c: Add Windows wrapper.
30278         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30279         * modules/gethostname: Depend on sys_socket & errno, for also
30280         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30281         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30282
30283 2009-07-31  Jim Meyering  <meyering@redhat.com>
30284
30285         getloadavg: fix symbol name in comment
30286         * lib/getloadavg.c: Correct a typo I introduced when adding
30287         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30288         Matt Kraai spotted the problem.
30289
30290 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30291
30292         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30293         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30294         code also if ! defined N_NAME_POINTER.
30295         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30296         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30297         but the n_name member is a 12-byte array.
30298
30299 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30300
30301         update-copyright: generalize comment handling
30302         * build-aux/update-copyright: Handle copyright statements
30303         within more comment styles.
30304         Document usage.
30305         Report any file with an external copyright holder or parse failure.
30306
30307 2009-07-29  Jim Meyering  <meyering@redhat.com>
30308
30309         mktime: correct setting of REPLACE_MKTIME
30310         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30311
30312         update-copyright: new module
30313         * modules/update-copyright: New file.
30314         * build-aux/update-copyright: New file.
30315         * MODULES.html.sh (maint+release support): Add update-copyright.
30316
30317 2009-07-27  Bruno Haible  <bruno@clisp.org>
30318
30319         Fix compilation error when <ctime> is used and mktime is replaced.
30320         * lib/time.in.h (mktime): New declaration.
30321         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30322         REPLACE_MKTIME instead of defining mktime in config.h.
30323         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30324         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30325         Reported by Ross McFarland <rwmcfa1@neces.com>.
30326
30327 2009-07-27  Bruno Haible  <bruno@clisp.org>
30328
30329         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30330         Reported by Matt Kraai <mkraai@beckman.com>.
30331
30332 2009-07-25  Jim Meyering  <meyering@redhat.com>
30333
30334         maint.mk: avoid warnings about missing files
30335         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30336         diagnostic when .prev-version does not exist.
30337         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30338         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30339         nonexistent cfg.mk.
30340         Suggestions from Simon Josefsson.
30341
30342 2009-07-25  Bruno Haible  <bruno@clisp.org>
30343
30344         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30345         defined as macros. Needed on QNX 6.4.1.
30346         Reported by Matt Kraai <mkraai@beckman.com>.
30347
30348 2009-07-23  Jim Meyering  <meyering@redhat.com>
30349
30350         maint.mk: invoke "make dist" with a working value of XZ_OPT
30351         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30352
30353 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30354
30355         Make fseeko.c compile on QNX.
30356         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30357
30358 2009-07-22  Peter Simons  <simons@cryp.to>
30359
30360         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30361         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30362         * lib/md4.h: Likewise.
30363         * lib/md5.h: Likewise.
30364         * lib/sha1.h: Likewise.
30365         * lib/sha256.h: Likewise.
30366         * lib/sha512.h: Likewise.
30367
30368         tests-sha1: don't assign literal string to 'char *' variable
30369         * tests/test-sha1.c (main): Declare locals with "const" to match
30370         attributes of the right hand side.
30371
30372 2009-07-21  Eric Blake  <ebb9@byu.net>
30373
30374         dup2: fix more mingw problems
30375         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30376         fd to itself.
30377         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30378         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30379         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30380         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30381         care of mingw bugs.
30382
30383 2009-07-21  Jim Meyering  <meyering@redhat.com>
30384
30385         vc-list-files: avoid failure when /bin/sh is dash
30386         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30387         On some Debian based systems, /bin/sh is a symlink to dash, and running
30388         this command would omit the "/" following each 'tests' prefix:
30389           dash -x build-aux/vc-list-files -C . tests
30390         That is because bash and dash work differently:
30391           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30392           bash ok
30393           dash odd
30394
30395 2009-07-21  Eric Blake  <ebb9@byu.net>
30396
30397         dup2-tests: test previous patch
30398         * modules/dup2-tests: New file.
30399         * tests/test-dup2.c: Likewise.
30400         * tests/test-open.c (main): Avoid unspecified behavior.
30401         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30402         test.
30403
30404         dup2: work around mingw and cygwin 1.5 bug
30405         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30407         * modules/unistd (Makefile.am): Substitute it.
30408         * lib/unistd.in.h (dup2): Declare the replacement.
30409         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30410         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30411         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30412         * modules/execute (Depends-on): Add dup2.
30413         * modules/fseterr (Depends-on): Likewise.
30414         * modules/pipe (Depends-on): Likewise.
30415         * modules/posix_spawn-internal (Depends-on): Likewise.
30416
30417 2009-07-21  Bruno Haible  <bruno@clisp.org>
30418
30419         * modules/.gitattributes: New file.
30420
30421 2009-07-20  Bruno Haible  <bruno@clisp.org>
30422
30423         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30424         (main): Use it.
30425
30426 2009-07-20  Eric Blake  <ebb9@byu.net>
30427
30428         test-pipe: make a bit more robust.
30429         * tests/test-pipe.c (myerr): Allow error messages regardless of
30430         what we do to stderr.
30431         (test_pipe): Rearrange to avoid deadlock.
30432         (child_main): Try a larger read, to ensure we avoided deadlock.
30433         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30434         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30435         if misused.
30436
30437 2009-07-19  Jim Meyering  <meyering@redhat.com>
30438
30439         fts: avoid false-positive cycle-detection
30440         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30441         for each new command line argument.
30442
30443 2009-07-19  Bruno Haible  <bruno@clisp.org>
30444
30445         Fix build error on mingw with the modules sys_select and unistd.
30446         * modules/acl-tests (Depends-on): Add close.
30447         * modules/binary-io-tests (Depends-on): Likewise.
30448         * modules/closein-tests (Depends-on): Likewise.
30449         * modules/flock-tests (Depends-on): Likewise.
30450         * modules/fsync-tests (Depends-on): Likewise.
30451         * modules/lseek-tests (Depends-on): Likewise.
30452         * modules/pipe-tests (Depends-on): Likewise.
30453         * modules/posix_spawn-tests (Depends-on): Likewise.
30454         * modules/posix_spawnp-tests (Depends-on): Likewise.
30455         * modules/stat-time-tests (Depends-on): Likewise.
30456         * modules/yesno-tests (Depends-on): Likewise.
30457
30458 2009-07-19  Bruno Haible  <bruno@clisp.org>
30459
30460         Unify conditionals.
30461         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30462         macros, not at the compiler macros.
30463         * lib/pipe.c: Likewise.
30464         * lib/execute.c: Likewise.
30465         * lib/spawni.c: Likewise.
30466
30467 2009-07-19  Bruno Haible  <bruno@clisp.org>
30468
30469         Fix handling of closed stdin/stdout/stderr on mingw.
30470         * lib/w32spawn.h: Include unistd.h.
30471         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30472         file descriptor with O_NOINHERIT flag.
30473         (fd_safer_noinherit): New function, based on fd-safer.c.
30474         (dup_safer_noinherit): New function, based on dup-safer.c.
30475         (undup_safer_noinherit): New function.
30476         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30477         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30478         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30479         instead of fd_safer.
30480         * tests/test-pipe.c: Include <windows.h>.
30481         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30482         result.
30483
30484         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30485         from main.
30486         (test_pipe): Pass an extra argument for disambiguation.
30487         (main): Invoke parent_main or child_main.
30488
30489         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30490         consistently.
30491
30492 2009-07-18  Eric Blake  <ebb9@byu.net>
30493
30494         test-pipe: fix mingw build
30495         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30496
30497 2009-07-18  Bruno Haible  <bruno@clisp.org>
30498
30499         * modules/pipe-tests (Makefile.am): Fix typo.
30500
30501 2009-07-18  Eric Blake  <ebb9@byu.net>
30502
30503         error: fix mingw build
30504         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30505         Reported by Bruno Haible.
30506
30507         error: avoid undefined use of stdout
30508         * lib/error.c (error, error_at_line): Check that fd 1 is open
30509         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30510         is handling faults and the close_stdout module wants to report the
30511         detection of closed stdout as an error.
30512
30513 2009-07-17  Eric Blake  <ebb9@byu.net>
30514
30515         pipe: be robust in face of closed fds
30516         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30517         should cause child to misbehave.
30518         * modules/pipe-tests: New module.
30519         * tests/test-pipe.c: New file.
30520         * tests/test-pipe.sh: New file.
30521         Reported by Akim Demaille.
30522
30523 2009-07-14  Bruno Haible  <bruno@clisp.org>
30524
30525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30526         Reported by anonymous kc.
30527
30528 2009-07-07  Jim Meyering  <meyering@redhat.com>
30529
30530         maint.mk: don't look for translatable strings in *.m4 or *.mk
30531         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30532         when searching for translatable strings.
30533
30534 2009-07-05  Jim Meyering  <meyering@redhat.com>
30535
30536         remove superfluous parentheses in STREQ definition
30537         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30538         * lib/getugroups.c (STREQ): Likewise.
30539         * lib/fnmatch.c (STREQ): Likewise.
30540         Spotted by Bruno Haible.
30541
30542 2009-07-04  Jim Meyering  <meyering@redhat.com>
30543
30544         argv-iter: new module
30545         * MODULES.html.sh: Add argv-iter.
30546         * lib/argv-iter.c, lib/argv-iter.h: New files.
30547         * modules/argv-iter: New file.
30548         * modules/argv-iter-tests: New file.
30549         * tests/test-argv-iter.c: Test it.
30550
30551 2009-07-04  Bruno Haible  <bruno@clisp.org>
30552
30553         Fix assertion.
30554         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30555         contains more exact copies of a given entry than file2, leave the extra
30556         copies unpaired rather than aborting.
30557         Reported by Eric Blake.
30558
30559 2009-07-02  Bruno Haible  <bruno@clisp.org>
30560
30561         Speedup git-merge-changelog for git cherry-pick.
30562         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30563         (entries_mapping_get): New function, extracted from compute_mapping.
30564         (entries_mapping_reverse_get): New function.
30565         (compute_mapping): Add a 'full' argument. Return the result in a
30566         'struct entries_mapping'.
30567         (main): Update. Access the mappings through entries_mapping_get.
30568         Reported by Eric Blake.
30569
30570 2009-07-02  Bruno Haible  <bruno@clisp.org>
30571
30572         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30573         best_i.
30574
30575 2009-07-02  Bruno Haible  <bruno@clisp.org>
30576
30577         Speed up approximate search for matching ChangeLog entries.
30578         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30579         argument. Call fstrcmp_bounded instead of fstrcmp.
30580         (compute_mapping, try_split_merged_entry, main): Update callers.
30581
30582 2009-07-02  Bruno Haible  <bruno@clisp.org>
30583
30584         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30585
30586 2009-06-30  Bruno Haible  <bruno@clisp.org>
30587
30588         Reduce the number of uc_is_cased calls.
30589         * lib/unicase.h (casing_suffix_context_t): Add
30590         'first_char_except_ignorable' field.
30591         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30592         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30593         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30594         Update initializer.
30595         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30596         case-ignorable characters.
30597         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30598         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30599         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30600         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30601         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30602
30603 2009-06-30  Bruno Haible  <bruno@clisp.org>
30604
30605         Tests for module 'unicase/ignorable'.
30606         * modules/unicase/ignorable-tests: New file.
30607         * tests/unicase/test-ignorable.c: New file, generated by
30608         gen-uni-tables.
30609
30610         Tests for module 'unicase/cased'.
30611         * modules/unicase/cased-tests: New file.
30612         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30613         * tests/unicase/test-predicate-part1.h: New file, derived from
30614         tests/unictype/test-predicate-part1.h.
30615         * tests/unicase/test-predicate-part2.h: New file, same as
30616         tests/unictype/test-predicate-part2.h.
30617
30618         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30619         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30620         (output_casing_properties): New function.
30621         (main): Call it.
30622         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30623         * lib/unicase/cased.c: Include unictype/bitmap.h.
30624         (uc_is_cased): Define through a bitmap lookup.
30625         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30626         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30627         (uc_is_case_ignorable): Define through a bitmap lookup.
30628         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30629         lib/unictype/bitmap.h.
30630         (Depends-on): Add inline. Clean up.
30631         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30632         lib/unictype/bitmap.h.
30633         (Depends-on): Add inline. Clean up.
30634         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30635         recognition.
30636         * tests/unicase/test-u16-tolower.c (main): Likewise.
30637         * tests/unicase/test-u32-tolower.c (main): Likewise.
30638
30639 2009-06-30  Bruno Haible  <bruno@clisp.org>
30640
30641         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30642         * lib/unicase/u16-casemap.c: Likewise.
30643         * lib/unicase/u32-casemap.c: Likewise.
30644
30645 2009-06-29  Bruno Haible  <bruno@clisp.org>
30646
30647         Define u32_casefold as a wrapper around u32_ct_casefold.
30648         * lib/unicase/u32-casefold.c: Update.
30649         * modules/unicase/u32-casefold (Depends-on): Add
30650         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30651         unicase/empty-suffix-context. Clean up.
30652
30653         Define u16_casefold as a wrapper around u16_ct_casefold.
30654         * lib/unicase/u16-casefold.c: Update.
30655         * modules/unicase/u16-casefold (Depends-on): Add
30656         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30657         unicase/empty-suffix-context. Clean up.
30658
30659         Define u8_casefold as a wrapper around u8_ct_casefold.
30660         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30661         * lib/unicase/u8-casefold.c: Update.
30662         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30663         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30664
30665         Define u32_totitle as a wrapper around u32_ct_totitle.
30666         * lib/unicase/u32-totitle.c: Update.
30667         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30668         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30669
30670         Define u16_totitle as a wrapper around u16_ct_totitle.
30671         * lib/unicase/u16-totitle.c: Update.
30672         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30673         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30674
30675         Define u8_totitle as a wrapper around u8_ct_totitle.
30676         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30677         functions.
30678         (FUNC): Delegate to U_CT_TOTITLE.
30679         * lib/unicase/u8-totitle.c: Update.
30680         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30681         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30682
30683         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30684         invocation.
30685         * modules/unicase/u32-tolower (Depends-on): Add
30686         unicase/empty-prefix-context, unicase/empty-suffix-context.
30687
30688         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30689         invocation.
30690         * modules/unicase/u16-tolower (Depends-on): Add
30691         unicase/empty-prefix-context, unicase/empty-suffix-context.
30692
30693         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30694         * modules/unicase/u8-tolower (Depends-on): Add
30695         unicase/empty-prefix-context, unicase/empty-suffix-context.
30696
30697         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30698         invocation.
30699         * modules/unicase/u32-toupper (Depends-on): Add
30700         unicase/empty-prefix-context, unicase/empty-suffix-context.
30701
30702         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30703         invocation.
30704         * modules/unicase/u16-toupper (Depends-on): Add
30705         unicase/empty-prefix-context, unicase/empty-suffix-context.
30706
30707         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30708         * modules/unicase/u8-toupper (Depends-on): Add
30709         unicase/empty-prefix-context, unicase/empty-suffix-context.
30710
30711         New module 'unicase/u32-ct-casefold'.
30712         * lib/unicase/u32-ct-casefold.c: New file.
30713         * modules/unicase/u32-ct-casefold: New file.
30714
30715         New module 'unicase/u16-ct-casefold'.
30716         * lib/unicase/u16-ct-casefold.c: New file.
30717         * modules/unicase/u16-ct-casefold: New file.
30718
30719         New module 'unicase/u8-ct-casefold'.
30720         * lib/unicase/u8-ct-casefold.c: New file.
30721         * lib/unicase/u-ct-casefold.h: New file, derived from
30722         lib/unicase/u-casefold.h.
30723         * modules/unicase/u8-ct-casefold: New file.
30724
30725         New module 'unicase/u32-ct-totitle'.
30726         * lib/unicase/u32-ct-totitle.c: New file.
30727         * modules/unicase/u32-ct-totitle: New file.
30728
30729         New module 'unicase/u16-ct-totitle'.
30730         * lib/unicase/u16-ct-totitle.c: New file.
30731         * modules/unicase/u16-ct-totitle: New file.
30732
30733         New module 'unicase/u8-ct-totitle'.
30734         * lib/unicase/u8-ct-totitle.c: New file.
30735         * lib/unicase/u-ct-totitle.h: New file, derived from
30736         lib/unicase/u-totitle.h.
30737         * modules/unicase/u8-ct-totitle: New file.
30738
30739         New module 'unicase/u32-ct-tolower'.
30740         * lib/unicase/u32-ct-tolower.c: New file.
30741         * modules/unicase/u32-ct-tolower: New file.
30742
30743         New module 'unicase/u16-ct-tolower'.
30744         * lib/unicase/u16-ct-tolower.c: New file.
30745         * modules/unicase/u16-ct-tolower: New file.
30746
30747         New module 'unicase/u8-ct-tolower'.
30748         * lib/unicase/u8-ct-tolower.c: New file.
30749         * modules/unicase/u8-ct-tolower: New file.
30750
30751         New module 'unicase/u32-ct-toupper'.
30752         * lib/unicase/u32-ct-toupper.c: New file.
30753         * modules/unicase/u32-ct-toupper: New file.
30754
30755         New module 'unicase/u16-ct-toupper'.
30756         * lib/unicase/u16-ct-toupper.c: New file.
30757         * modules/unicase/u16-ct-toupper: New file.
30758
30759         New module 'unicase/u8-ct-toupper'.
30760         * lib/unicase/u8-ct-toupper.c: New file.
30761         * modules/unicase/u8-ct-toupper: New file.
30762
30763         Add context arguments to u*_casemap functions.
30764         * lib/unicase/unicasemap.h: Include unicase.h.
30765         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30766         suffix_context arguments.
30767         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30768         functions.
30769         (FUNC): Add prefix_context and suffix_context arguments. Use
30770         uc_is_cased and uc_is_case_ignorable.
30771         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30772         * lib/unicase/u16-casemap.c: Likewise.
30773         * lib/unicase/u32-casemap.c: Likewise.
30774         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30775         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30776         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30777         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30778         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30779         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30780
30781         New module 'unicase/u32-suffix-context'.
30782         * lib/unicase/u32-suffix-context.c: New file.
30783         * modules/unicase/u32-suffix-context: New file.
30784
30785         New module 'unicase/u16-suffix-context'.
30786         * lib/unicase/u16-suffix-context.c: New file.
30787         * modules/unicase/u16-suffix-context: New file.
30788
30789         New module 'unicase/u8-suffix-context'.
30790         * lib/unicase/u8-suffix-context.c: New file.
30791         * lib/unicase/u-suffix-context.h: New file.
30792         * modules/unicase/u8-suffix-context: New file.
30793
30794         New module 'unicase/empty-suffix-context'.
30795         * lib/unicase/empty-suffix-context.c: New file.
30796         * modules/unicase/empty-suffix-context: New file.
30797
30798         New module 'unicase/u32-prefix-context'.
30799         * lib/unicase/u32-prefix-context.c: New file.
30800         * modules/unicase/u32-prefix-context: New file.
30801
30802         New module 'unicase/u16-prefix-context'.
30803         * lib/unicase/u16-prefix-context.c: New file.
30804         * modules/unicase/u16-prefix-context: New file.
30805
30806         New module 'unicase/u8-prefix-context'.
30807         * lib/unicase/u8-prefix-context.c: New file.
30808         * lib/unicase/u-prefix-context.h: New file.
30809         * lib/unicase/context.h: New file.
30810         * modules/unicase/u8-prefix-context: New file.
30811
30812         New module 'unicase/empty-prefix-context'.
30813         * lib/unicase/empty-prefix-context.c: New file.
30814         * modules/unicase/empty-prefix-context: New file.
30815
30816         New module 'unicase/ignorable'.
30817         * lib/unicase/ignorable.c: New file.
30818         * modules/unicase/ignorable: New file.
30819
30820         New module 'unicase/cased'.
30821         * lib/unicase/caseprop.h: New file.
30822         * lib/unicase/cased.c: New file.
30823         * modules/unicase/cased: New file.
30824
30825         New functions for case mapping of substrings.
30826         * lib/unicase.h (casing_prefix_context_t): New type.
30827         (unicase_empty_prefix_context): New variable.
30828         (u8_casing_prefix_context, u16_casing_prefix_context,
30829         u32_casing_prefix_context, u8_casing_prefixes_context,
30830         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30831         declarations.
30832         (casing_suffix_context_t): New type.
30833         (unicase_empty_suffix_context): New variable.
30834         (u8_casing_suffix_context, u16_casing_suffix_context,
30835         u32_casing_suffix_context, u8_casing_suffixes_context,
30836         u16_casing_suffixes_context, u32_casing_suffixes_context,
30837         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30838         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30839         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30840         declarations.
30841
30842 2009-06-28  Jim Meyering  <meyering@redhat.com>
30843
30844         boostrap: indent only with spaces
30845         * build-aux/bootstrap: Indent only with spaces, never TABs.
30846
30847         bootstrap: split long lines
30848         * build-aux/bootstrap: Keep line length < 80.
30849
30850         bootstrap: sync from coreutils
30851         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30852         just as autoreconf does.  Verify a list of prerequisite
30853         package-name,version-number pairs if defined in bootstrap.conf.
30854         Refer to README-prereq, if prerequisites are not satisfied.
30855
30856 2009-06-27  Eric Blake  <ebb9@byu.net>
30857
30858         tests: add test for bogus NULL definition
30859         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30860         * tests/test-stdlib.c: Likewise.
30861         * tests/test-string.c: Likewise.
30862         * tests/test-locale.c: Likewise.
30863         * tests/test-unistd.c: Likewise.
30864         * modules/stdio-tests (Depends-on): Add verify.
30865         * modules/stdlib-tests (Depends-on): Likewise.
30866         * modules/string-tests (Depends-on): Likewise.
30867         * modules/locale-tests (Depends-on): Likewise.
30868         * modules/unistd-tests (Depends-on): Likewise.
30869
30870 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30871
30872         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30873         self-explaining comment.
30874         * m4/selinux-selinux-h: Update serial.
30875         (gl_LIBSELINUX): New macro, adding a warning for missing development
30876         packages to code extracted from...
30877         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30878         Add warning for missing development packages here, too.
30879
30880 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30881
30882         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30883
30884 2009-06-25  Eric Blake  <ebb9@byu.net>
30885
30886         version-etc: fix regression
30887         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30888         gcc.
30889         (version_etc): Use it, to catch bugs with trailing NULL.
30890         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30891         (version_etc_va): Fix logic bug.
30892         * modules/version-etc-tests: Add test.
30893         * tests/test-version-etc.c: New file.
30894         * tests/test-version-etc.sh: Likewise.
30895
30896 2009-06-25  Sam Steingold  <sds@gnu.org>
30897
30898         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30899         mbtowc declaration.
30900
30901 2009-06-25  Eric Blake  <ebb9@byu.net>
30902
30903         fpurge: migrate into <stdio.h>
30904         * lib/fpurge.h: Delete...
30905         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30906         * lib/fpurge.c (fpurge): Change declaring header.
30907         * modules/fpurge (Files): Drop deleted file.
30908         (Depends-on): Add stdio.
30909         (configure.ac): Set witness.
30910         * modules/stdio (Makefile.am): Support fpurge macros.
30911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30912         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30913         * lib/fflush.c: Update client.
30914         * tests/test-fpurge.c: Likewise.
30915         * NEWS: Mention the change.
30916
30917 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30918
30919         * lib/argp-version-etc.c (program_authors): Add const
30920         qualifier.
30921         * lib/version-etc.c: Fix typos in the comments.
30922         * modules/argp-version-etc: Depends on version-etc.
30923
30924 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30925
30926         argp-version-etc: new module.
30927
30928         * lib/argp-version-etc.c: New file.
30929         * lib/argp-version-etc.h: New file.
30930         * modules/argp-version-etc: New file.
30931         * modules/argp-version-etc-tests: New file.
30932         * tests/test-argp-version-etc.c: New test.
30933         * tests/test-argp-version-etc-1.sh: New test.
30934
30935 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30936
30937         Provide additional interfaces and documentation for version-etc
30938         module.
30939
30940         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30941         interfaces.
30942         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30943         prototypes.
30944
30945 2009-06-24  Bruno Haible  <bruno@clisp.org>
30946
30947         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30948         HAVE_LIB${NAME} macro.
30949         Reported by Sam Steingold <sds@gnu.org>.
30950
30951 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30952
30953         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30954         needed.
30955
30956 2009-06-21  Bruno Haible  <bruno@clisp.org>
30957
30958         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30959         work.
30960         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30961         together with LIB${NAME}, LTLIB${NAME}.
30962         Reported by Sam Steingold <sds@gnu.org>.
30963
30964 2009-06-20  Jim Meyering  <meyering@redhat.com>
30965
30966         tests: make sc_require_test_exit_idiom more generic
30967         * top/maint.mk (Exit_witness_file): New overridable variable.
30968         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30969         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30970
30971 2009-06-19  Jim Meyering  <meyering@redhat.com>
30972
30973         hash: reverse order of src/dst parameters in an internal interface
30974         * lib/hash.c (transfer_entries): Reverse order of parameters to
30975         put DST before SRC.  Adjust callers.
30976
30977         tests: test-hash: avoid wholesale duplication
30978         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30979         Instead, use a loop and add a single conditional.
30980
30981         tests: test-hash: allow seed selection via a command line argument
30982         * tests/test-hash.c (get_seed): New function.
30983         (main): Use it.
30984
30985 2009-06-19  Eric Blake  <ebb9@byu.net>
30986
30987         hash: avoid memory leak on allocation failure
30988         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30989         failure.  Factor repeated algorithm...
30990         (transfer_entries): ...into new helper routine.
30991         (hash_delete): React to hash_rehash return value.
30992
30993         hash: reduce memory pressure in hash_rehash no-op case
30994         * lib/hash.c (next_prime): Avoid overflow.
30995         (hash_initialize): Factor bucket size computation...
30996         (compute_bucket_size): ...into new helper function.
30997         (hash_rehash): Use new function and open coding to reduce memory
30998         pressure, and avoid a memory leak in USE_OBSTACK code.
30999         Reported by Jim Meyering.
31000
31001 2009-06-18  Eric Blake  <ebb9@byu.net>
31002
31003         hash: make rotation more obvious
31004         * modules/hash (Depends-on): Add bitrotate and stdint.
31005         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
31006         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
31007         (SIZE_MAX): Rely on headers for definition.
31008         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
31009         (raw_hasher): Use rotr_sz.
31010         Suggested by Jim Meyering.
31011
31012         hash: fix memory leak in last patch
31013         * lib/hash.c (hash_rehash): Avoid memory leak.
31014
31015         hash: avoid no-op rehashing
31016         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
31017
31018         hash: provide default callback functions
31019         * lib/hash.c (raw_hasher, raw_comparator): New functions.
31020         (hash_initialize): Use them as defaults.
31021         * tests/test-hash.c (main): Test this.
31022
31023         hash: minor optimization
31024         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
31025         when possible.
31026         (hash_initialize): Document this promise.
31027         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
31028         * tests/test-hash.c (hash_compare_strings): Test this.
31029
31030 2009-06-18  Bruno Haible  <bruno@clisp.org>
31031
31032         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
31033         going to be replaced anyway.
31034
31035 2009-06-18  Bruno Haible  <bruno@clisp.org>
31036
31037         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
31038         in one place.
31039         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
31040         be replaced anyway.
31041
31042 2009-06-18  Eric Blake  <ebb9@byu.net>
31043
31044         hash: check for resize before insertion
31045         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
31046         threshold before insertion, so that a pathological hash_rehash
31047         that fills every bucket can still trigger another rehash.
31048
31049 2009-06-18  Jim Meyering  <meyering@redhat.com>
31050
31051         hash-tests: add a loop around the small tests
31052         * tests/test-hash.c (main): Repeat small tests with selected
31053         small initial table sizes.
31054
31055 2009-06-17  Eric Blake  <ebb9@byu.net>
31056
31057         hash: minor cleanups
31058         * lib/hash.h (hash_entry): Make opaque, by moving...
31059         * lib/hash.c (hash_entry): ...here.
31060         (hash_insert): Clarify restrictions on what can be inserted.
31061         (hash_get_next): Clarify when it is safe to remove an element
31062         during traversal.
31063         (check_tuning): Skip verification when tuning is known safe.
31064         (hash_initialize): Clarify restrictions on tuning.
31065
31066 2009-06-17  Jim Meyering  <jim@meyering.net>
31067         and Eric Blake  <ebb9@byu.net>
31068
31069         hash-tests: new module
31070         * modules/hash-tests: New file.
31071         * tests/test-hash.c: New file.
31072
31073 2009-06-17  Eric Blake  <ebb9@byu.net>
31074
31075         strstr-simple: document new module
31076         * MODULES.html.sh: Document new module.
31077
31078         strstr, strcasestr: replace on platforms with broken memchr
31079         * modules/strstr: Split into...
31080         * modules/strstr-simple: ...new module that does not care about
31081         performance, but does care about glibc bug.
31082         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
31083         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
31084         if platform memchr is broken, per Debian bug 521737.
31085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
31086         memchr.
31087         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
31088         * doc/posix-functions/strstr.texi (strstr): Document the fix.
31089         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31090         * modules/mountlist (Depends-on): Add strstr-simple.
31091         * modules/gen-uni-tables (Depends-on): Likewise.
31092         * modules/argz (Depends-on): Add strstr.
31093
31094 2009-06-17  Bruno Haible  <bruno@clisp.org>
31095
31096         * modules/posix_spawn-internal (Depends-on): Add errno.
31097
31098 2009-06-17  Bruno Haible  <bruno@clisp.org>
31099
31100         Define missing ESTALE on Interix 3.5.
31101         * lib/errno.in.h (ESTALE): Assign a value if missing.
31102         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
31103         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
31104         missing.
31105         * doc/posix-headers/errno.texi: Mention the Interix bug.
31106         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
31107
31108 2009-06-15  Eric Blake  <ebb9@byu.net>
31109
31110         memchr, memchr2: add valgrind exception
31111         * lib/memchr.valgrind: New file.
31112         * lib/memchr2.valgrind: New file.
31113         * modules/memchr (Files): Distribute valgrind file.
31114         * modules/memchr2 (Files): Likewise.
31115
31116         docs: memchr is no longer obsolete
31117         * MODULES.html.sh: Move memchr from obsolete to string.h section.
31118         * lib/string.in.h (memchr): Simplify logic.
31119
31120 2009-06-14  Jim Meyering  <meyering@redhat.com>
31121
31122         link-follow: fix the "checking..." message to not mention trailing slash
31123         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
31124         never considered trailing slashes.
31125
31126 2009-06-14  Bruno Haible  <bruno@clisp.org>
31127
31128         * m4/memchr.m4: Mention also the bug on IA-64.
31129         * doc/posix-functions/memchr.texi: Likewise.
31130
31131 2009-06-12  Eric Blake  <ebb9@byu.net>
31132
31133         memchr: detect broken x86_64 and alpha implementations
31134         * modules/memchr-tests (Depends-on): Move mmap detection...
31135         * modules/memchr (Depends-on): ...here.
31136         (configure.ac): Set indicator.
31137         * lib/string.in.h (memchr): Declare replacement.
31138         * modules/string (Makefile.am): Trigger replacement.
31139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31140         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
31141         bugs.
31142         * doc/posix-functions/memchr.texi (memchr): Document the bug.
31143         * modules/getpagesize (License): Relax license.
31144
31145 2009-06-11  Bruno Haible  <bruno@clisp.org>
31146
31147         * lib/idpriv.h: Add more references.
31148
31149 2009-06-08  Bruno Haible  <bruno@clisp.org>
31150
31151         Tests for module 'idpriv-droptemp'.
31152         * modules/idpriv-droptemp-tests: New file.
31153         * tests/test-idpriv-droptemp.sh: New file.
31154         * tests/test-idpriv-droptemp.su.sh: New file.
31155         * tests/test-idpriv-droptemp.c: New file.
31156
31157         New module 'idpriv-droptemp'.
31158         * lib/idpriv-droptemp.c: New file.
31159         * modules/idpriv-droptemp: New file.
31160
31161 2009-06-08  Bruno Haible  <bruno@clisp.org>
31162
31163         Tests for module 'idpriv-drop'.
31164         * modules/idpriv-drop-tests: New file.
31165         * tests/test-idpriv-drop.sh: New file.
31166         * tests/test-idpriv-drop.su.sh: New file.
31167         * tests/test-idpriv-drop.c: New file.
31168
31169         New module 'idpriv-drop'.
31170         * lib/idpriv.h: New file.
31171         * lib-idpriv-drop.c: New file.
31172         * m4/idpriv.m4: New file.
31173         * modules/idpriv-drop: New file.
31174
31175 2009-06-08  Bruno Haible  <bruno@clisp.org>
31176
31177         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
31178         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31179         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31180         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31181         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31182         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31183         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31184
31185 2009-06-08  Eric Blake  <ebb9@byu.net>
31186
31187         test-strstr: use memory fence, when possible
31188         * tests/test-strstr.c (main): Use memory fence, in order to be
31189         more likely to trigger Debian bug 521737.
31190         * modules/strstr-tests (Files): Pull in additional files.
31191
31192         memchr: no longer obsolete, for wider field testing
31193         * modules/memchr (Status, Notice): Delete, this module is no
31194         longer obsolete.
31195         * modules/vasnprintf (Depends-on): Add memchr.
31196
31197 2009-06-07  Jim Meyering  <meyering@redhat.com>
31198
31199         hash: declare some functions with the warn_unused_result attribute
31200         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
31201
31202 2009-06-07  Bruno Haible  <bruno@clisp.org>
31203
31204         * tests/test-alignof.c: Don't test int64_t if it does not exist.
31205         Reported by Eric Blake.
31206
31207 2009-06-06  Eric Blake  <ebb9@byu.net>
31208
31209         test-alignof: fix typo with long double
31210         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
31211         compiler error.
31212
31213 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
31214
31215         Escape non-texinfo { and }s.
31216         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
31217         markup error.
31218
31219 2009-06-04  Jim Meyering  <meyering@redhat.com>
31220
31221         gitlog-to-changelog: don't infloop on an empty commit log
31222         * build-aux/gitlog-to-changelog: Warn about an empty log message.
31223         Reported by Boris Petersen <transacid@centerim.org>.
31224
31225 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
31226
31227         version-etc: extend for packagers
31228         Add three new configure options, intended for packagers:
31229           --with-packager="packager name"
31230           --with-packager-version="packager-specific version"
31231           --with-packager-bug-reports="packager bug reporting"
31232         An example with coreutils:
31233           $ ./configure \
31234             --with-packager=Gentoo \
31235             --with-packager-bug-report=http://bugs.gentoo.org/ \
31236             --with-packager-version="patchset 1.6"
31237           $ ./src/ls --version | head -n2
31238           ls (GNU coreutils) 7.1-dirty
31239           Packaged by Gentoo (patchset 1.6)
31240         Note that the bug reporting info via --help doesn't show up because
31241         coreutils uses its own custom emit_bug_reporting_address() implementation
31242         in src/system.h.  If it didn't, it'd look like:
31243           $ ./src/ls --help | tail -n4
31244           Report bugs to <bug-coreutils@gnu.org>.
31245           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31246           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31247           General help using GNU software: <http://www.gnu.org/gethelp/>.
31248         * lib/version-etc.c: Print new information, if provided.
31249         * m4/version-etc.m4: New file.
31250         * modules/version-etc (Files): Add m4/version-etc.m4.
31251         (configure.ac): Add gl_VERSION_ETC.
31252
31253 2009-05-31  Bruno Haible  <bruno@clisp.org>
31254
31255         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31256         and 'int64_t'.
31257         * modules/alignof-tests (Dependencies): Add stdint.
31258         Reported by Eric Blake.
31259
31260 2009-05-31  Bruno Haible  <bruno@clisp.org>
31261
31262         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31263         restriction due to compiler bugs.
31264         Reported by Eric Blake.
31265
31266 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31267             Bruno Haible  <bruno@clisp.org>
31268
31269         Fix test-alignof failure.
31270         * lib/alignof.h (alignof_slot): New macro.
31271         (alignof_type): New macro, with the same semantics as the previous
31272         'alignof'.
31273         (alignof): Alias to alignof_slot.
31274         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31275         check that the results are usable as constant expressions.
31276
31277 2009-05-31  Bruno Haible  <bruno@clisp.org>
31278
31279         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31280         * tests/test-memchr.c (main): Check that memchr does not read past the
31281         first occurrence of the byte.
31282         * tests/test-strstr.c (main): Update comment.
31283         Suggested by Eric Blake.
31284
31285 2009-05-30  Bruno Haible  <bruno@clisp.org>
31286
31287         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31288         detail how to use dumpbin.
31289         Reported by David Byron <dbyron@dbyron.com>.
31290
31291 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31292
31293         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31294
31295 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31296
31297         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31298
31299 2009-05-28  Bruno Haible  <bruno@clisp.org>
31300
31301         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31302         build-aux/ files.
31303
31304 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31305
31306         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31307
31308 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31309
31310         * gnulib-tool (sed_transform_main_lib_file)
31311         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31312         regexps.
31313
31314 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31315
31316         * tests/test-strstr.c: Add another self-test.
31317         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31318         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31319
31320 2009-05-23  Bruno Haible  <bruno@clisp.org>
31321
31322         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31323         change.
31324
31325 2009-05-21  Bruno Haible  <bruno@clisp.org>
31326
31327         Simplify use of mode_t varargs.
31328         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31329         uses 'mode_t' or 'int'.
31330         * lib/openat.c (openat): Likewise.
31331         * lib/open-safer.c (open_safer): Likewise.
31332         * m4/mode_t.m4: New file.
31333         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31334         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31335         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31336         * modules/open (Files): Add m4/mode_t.m4.
31337         * modules/openat (Files): Likewise.
31338         * modules/fcntl-safer (Files): Likewise.
31339         Suggested by Eric Blake.
31340
31341 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31342
31343         * doc/glibc-functions/fallocate.texi: New file.
31344         * doc/gnulib.texi: Include it.
31345
31346 2009-05-21  Eric Blake  <ebb9@byu.net>
31347             Bruno Haible  <bruno@clisp.org>
31348
31349         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31350         invocations.
31351         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31352
31353 2009-05-21  Eric Blake  <ebb9@byu.net>
31354             Bruno Haible  <bruno@clisp.org>
31355
31356         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31357         include_next. Fix of 2008-11-20 commit.
31358         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31359         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31360         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31361         NEXT_MATH_H.
31362         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31363         instead of NEXT_MATH_H.
31364
31365 2009-05-21  Bruno Haible  <bruno@clisp.org>
31366
31367         Avoid redefinition warnings for SIZE_MAX.
31368         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31369         Reported by Simon Josefsson.
31370
31371 2009-05-21  Bruno Haible  <bruno@clisp.org>
31372
31373         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31374         AC_CACHE_VAL.
31375
31376 2009-05-20  Bruno Haible  <bruno@clisp.org>
31377
31378         Make zeroptr.h work on mingw.
31379         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31380         mprotect.
31381         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31382         * modules/memchr2-tests (configure.ac): Likewise.
31383         * modules/memcmp-tests (configure.ac): Likewise.
31384         * modules/memmem-tests (configure.ac): Likewise.
31385         * modules/memrchr-tests (configure.ac): Likewise.
31386         Reported by Simon Josefsson.
31387
31388 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31389
31390         * tests/test-glob.c: Include string.h for strcmp prototype.
31391
31392 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31393
31394         * modules/getdelim (Depends-on): Add explicit stdint, although it
31395         was implicitly already pulled in via realloc-posix.
31396         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31397
31398 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31399
31400         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31401         G. Christensen" <tgc@jupiterrise.com>.
31402         * m4/sys_socket_h.m4: Check for sa_family_t.
31403         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31404         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31405         * tests/test-sys_socket.c: Check that sa_family_t works.
31406
31407 2009-05-18  Eric Blake  <ebb9@byu.net>
31408
31409         maint.mk: allow gnulib_dir in VPATH build
31410         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31411
31412 2009-05-15  Jim Meyering  <meyering@redhat.com>
31413
31414         maint.mk: Give gnulib_dir a default definition.
31415         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31416         Thus, most packages no longer need to specify this variable in cfg.mk
31417
31418 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31419
31420         rename.m4: fix typos that would make non-mingw cross-configure fail
31421         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31422
31423 2009-05-13  Eric Blake  <ebb9@byu.net>
31424
31425         mmap-anon: avoid out-of-order autoconf expansion
31426         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31427         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31428         * modules/memchr-tests (Depends-on): Add extensions.
31429         * modules/memchr2-tests (Depends-on): Add extensions.
31430         * modules/memcmp-tests (Depends-on): Add extensions.
31431         * modules/memmem-tests (Depends-on): Add extensions.
31432         * modules/memrchr-tests (Depends-on): Add extensions.
31433
31434 2009-05-13  Bruno Haible  <bruno@clisp.org>
31435
31436         Make some tests ISO C 99 compliant.
31437         * tests/zerosize-ptr.h: New file.
31438         * tests/test-memchr.c: Include zerosize-ptr.h.
31439         (main): Use a zero-size object pointer instead of NULL.
31440         * tests/test-memchr2.c: Include zerosize-ptr.h.
31441         (main): Use a zero-size object pointer instead of NULL.
31442         * tests/test-memcmp.c: Include zerosize-ptr.h.
31443         (main): Use a zero-size object pointer instead of NULL.
31444         * tests/test-memmem.c: Include zerosize-ptr.h.
31445         (main): Use a zero-size object pointer instead of NULL.
31446         * tests/test-memrchr.c: Include zerosize-ptr.h.
31447         (main): Use a zero-size object pointer instead of NULL.
31448         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31449         m4/mmap-anon.m4.
31450         (Depends-on): Add getpagesize.
31451         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31452         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31453         m4/mmap-anon.m4.
31454         (Depends-on): Add getpagesize.
31455         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31456         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31457         m4/mmap-anon.m4.
31458         (Depends-on): Add getpagesize.
31459         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31460         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31461         m4/mmap-anon.m4.
31462         (Depends-on): Add getpagesize.
31463         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31464         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31465         m4/mmap-anon.m4.
31466         (Depends-on): Add getpagesize.
31467         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31468
31469 2009-05-12  Bruno Haible  <bruno@clisp.org>
31470
31471         Tests for module 'alignof'.
31472         * modules/alignof-tests: New file.
31473         * tests/test-alignof.c: New file.
31474
31475 2009-05-12  Bruno Haible  <bruno@clisp.org>
31476
31477         Fix alignof macro.
31478         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31479         vendor compilers that are always correct.
31480
31481 2009-05-12  Bruno Haible  <bruno@clisp.org>
31482
31483         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31484         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31485         not whether its fully works.
31486
31487 2009-05-12  Bruno Haible  <bruno@clisp.org>
31488
31489         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31490
31491 2009-05-12  Jim Meyering  <meyering@redhat.com>
31492
31493         * top/maint.mk: Adjust backslash alignment.
31494
31495 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31496
31497         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31498
31499 2009-05-11  Eric Blake  <ebb9@byu.net>
31500
31501         argp: avoid undefined behavior
31502         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31503         macros.
31504
31505 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31506
31507         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31508         user.name to prevent git commit from complaining.
31509
31510 2009-05-10  Bruno Haible  <bruno@clisp.org>
31511
31512         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31513         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31514         it rewrites every file name only once.
31515         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31516
31517 2009-05-08  Bruno Haible  <bruno@clisp.org>
31518
31519         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31520         instead of 'max'.
31521
31522 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31523
31524         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31525         sockaddr_storage test.
31526
31527 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31528
31529         * modules/sys_socket (Makefile.am): Substitute
31530         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31531         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31532         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31533         * tests/test-sys_socket.c: Check sockaddr_storage.
31534
31535 2009-05-08  Bruno Haible  <bruno@clisp.org>
31536
31537         New module 'alignof'.
31538         * lib/alignof.h: New file.
31539         * modules/alignof: New file.
31540
31541 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31542             Bruno Haible  <bruno@clisp.org>
31543
31544         Fix test-file-has-acl on FreeBSD.
31545         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31546         mask is implicitly added.
31547         * tests/test-file-has-acl.c: Include <signal.h>.
31548         (main): Terminate the test after 5 seconds.
31549         * modules/acl-tests (configure.ac): Check for alarm function.
31550
31551 2009-05-04  Bruno Haible  <bruno@clisp.org>
31552
31553         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31554         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31555         * modules/errno (configure.ac): Drop AC_REQUIRE.
31556         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31557         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31558
31559 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31560
31561         * modules/glob-tests: New module.
31562         * tests/test-glob.c: Add.
31563
31564 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31565
31566         * modules/fnmatch-tests: New module.
31567         * tests/test-fnmatch.c: Add.
31568
31569 2009-05-04  Eric Blake  <ebb9@byu.net>
31570
31571         maint: make the new no-submodule-changes rule VPATH-safe
31572         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31573
31574 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31575             Bruno Haible  <bruno@clisp.org>
31576
31577         acl: Fix infinite loop on FreeBSD.
31578         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31579         of return value from acl_get_entry.
31580         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31581         Likewise.
31582
31583 2009-05-03  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/acl-internal.h (acl_entries): Clarify return value.
31586         * lib/acl_entries.c (acl_entries): Likewise.
31587
31588 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31589
31590         Bug fix in acl module.
31591         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31592
31593 2009-05-03  Bruno Haible  <bruno@clisp.org>
31594
31595         Create gperf-generated file in the source dir, not in the build dir.
31596         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31597         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31598         * modules/unicase/locale-language (unicase/locale-languages.h):
31599         Likewise.
31600         * modules/unicase/special-casing (unicase/special-casing-table.h):
31601         Likewise.
31602         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31603         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31604         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31605         Reported by Ralf Wildenhues.
31606
31607 2009-05-03  Bruno Haible  <bruno@clisp.org>
31608
31609         * modules/fnmatch (Description, configure.ac): Taken from
31610         fnmatch-posix.
31611         * modules/fnmatch-posix: Turn into a symbolic reference to the
31612         'fnmatch' module, and deprecate.
31613         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31614
31615 2009-05-03  Bruno Haible  <bruno@clisp.org>
31616
31617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31618         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31619         Reported by Ralf Wildenhues.
31620
31621 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31622
31623         * m4/fnmatch.m4: Fix fnmatch re-define.
31624
31625 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31626
31627         priv-set: new module and tests; adapt write-any-file
31628         * lib/priv-set.c: New file.
31629         * lib/priv-set.h: New file.
31630         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31631         * lib/write-any-file.c: Simplify by using priv-set module.
31632         * m4/priv-set.m4: New file.
31633         * modules/priv-set: New file.
31634         * modules/unlinkdir: Add dependency on priv-set module.
31635         * modules/write-any-file: Likewise.
31636
31637         Tests for module 'priv-set'.
31638         * modules/priv-set-tests: New file.
31639         * tests/test-priv-set.c: New file.
31640
31641 2009-05-03  Jim Meyering  <meyering@redhat.com>
31642             Bruno Haible  <bruno@clisp.org>
31643
31644         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31645         use the converted UTF-8 variant of the name instead.
31646
31647 2009-05-03  Jim Meyering  <meyering@redhat.com>
31648
31649         tests: tighten some getdate tests
31650         * tests/test-getdate.c (main): Tighten tests: require equality,
31651         not just greater than.  Set TZ envvar to UTC0.
31652
31653 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31654
31655         getdate: correctly interpret "next monday" when run on a Monday
31656         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31657         that e.g., "next tues" (when run on a tuesday) results in a date
31658         that is one week in the future, and not today's date.
31659         I.e., add a week when the wday is the same as the current one.
31660         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31661         and earlier by Martin Bernreuther and Jan Minář.
31662         * tests/test-getdate.c (main): Check that "next DAY" is always in
31663         the future and that "last DAY" is always in the past.
31664
31665 2009-05-02  Jim Meyering  <meyering@redhat.com>
31666
31667         build: ensure that a release build fails when a submodule is unclean
31668         * top/maint.mk (no-submodule-changes): New rule.
31669         (alpha beta major): Depend on it.
31670
31671 2009-05-02  Bruno Haible  <bruno@clisp.org>
31672
31673         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31674         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31675         shell variable gl_fnmatch_required to detect which variant is
31676         requested.
31677         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31678         gl_FUNC_FNMATCH_POSIX.
31679         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31680         exclude fnmatch-posix.
31681
31682 2009-05-02  Bruno Haible  <bruno@clisp.org>
31683
31684         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31685         * modules/mbsrtowcs (License): Change to LGPLv2+.
31686         * modules/strnlen1 (License): Likewise.
31687         Reported by Simon Josefsson.
31688
31689 2009-05-02  Bruno Haible  <bruno@clisp.org>
31690
31691         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31692         "cross".
31693         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31694         gnulib-tool was called with option --source-base=lib.
31695
31696 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31697
31698         Use automake *-local hooks without commands, for extensibility.
31699         * modules/localcharset (Makefile.am): Rename install-exec-local
31700         rule to install-exec-localcharset, and make it a prerequisite of
31701         install-exec-local.  Likewise, rename the uninstall-local rule to
31702         uninstall-localcharset, and make it a prerequisite of the former.
31703
31704 2009-05-01  Bruno Haible  <bruno@clisp.org>
31705
31706         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31707         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31708         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31709         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31710         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31711         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31712         m4/locale-zh.m4, m4/codeset.m4.
31713
31714         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31715         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31716         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31717         m4/locale-zh.m4.
31718
31719         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31720         REPLACE_WCRTOMB if mbstate_t must be replaced.
31721         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31722         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31723
31724 2009-05-01  Bruno Haible  <bruno@clisp.org>
31725
31726         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31727         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31728         dngettext, dcngettext, textdomain, bindtextdomain,
31729         bind_textdomain_codeset): Undefine before redefining.
31730
31731 2009-04-30  Bruno Haible  <bruno@clisp.org>
31732
31733         Fix bug introduced on 2009-04-25.
31734         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31735         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31736         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31737         is defined.
31738         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31739         is defined.
31740         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31741         is defined.
31742         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31743
31744 2009-04-28  Bruno Haible  <bruno@clisp.org>
31745
31746         Comment tweaks.
31747         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31748         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31749         * lib/unicase.h (u*_casexfrm): Likewise.
31750         Reported by Paolo Bonzini.
31751
31752 2009-04-28  Bruno Haible  <bruno@clisp.org>
31753
31754         Fix a compilation error.
31755         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31756         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31757         Reported by Jim Meyering.
31758
31759 2009-04-27  Bruno Haible  <bruno@clisp.org>
31760
31761         New module 'libunistring'.
31762         * modules/libunistring: New file.
31763         * m4/libunistring.m4: New file.
31764         * MODULES.html.sh (Unicode string functions): Add it.
31765
31766 2009-04-27  Eric Blake  <ebb9@byu.net>
31767
31768         maint.mk: allow package-specific header to provide <config.h>
31769         * top/maint.mk (sc_require_config_h): New variable.
31770         (sc_require_config_h, sc_require_config_h_first): Use it.
31771
31772 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31773
31774         * top/maint.mk (sc_avoid_if_before_free): Except
31775         useless-if-before-free script.
31776
31777 2009-04-27  Eric Blake  <ebb9@byu.net>
31778
31779         maintainer-makefile: depend on all required helper scripts
31780         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31781         useless-if-before-free.
31782         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31783         version, rather than assuming gnulib checkout is available.
31784         Reported by Simen Josefsson.
31785
31786 2009-04-26  Bruno Haible  <bruno@clisp.org>
31787
31788         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31789         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31790         "../" or "..".
31791
31792 2009-04-26  Bruno Haible  <bruno@clisp.org>
31793
31794         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31795         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31796         AC_LIB_HAVE_LINKFLAGS.
31797
31798 2009-04-26  Bruno Haible  <bruno@clisp.org>
31799
31800         Simplify calling convention of u*_conv_from_encoding.
31801         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31802         u32_conv_from_encoding): Expect a resultbuf argument and return the
31803         result directly as a pointer.
31804         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31805         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31806         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31807         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31808         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31809         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31810         Update.
31811         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31812         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31813         * lib/vasnprintf.c (VASNPRINTF): Update.
31814         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31815         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31816         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31817         * NEWS: Mention the change.
31818
31819 2009-04-26  Bruno Haible  <bruno@clisp.org>
31820
31821         Simplify calling convention of u*_conv_to_encoding.
31822         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31823         u32_conv_to_encoding): Expect a resultbuf argument and return the
31824         result directly as a pointer.
31825         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31826         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31827         freeing scaled_offsets if mem_iconveha failed.
31828         * lib/unicase/u-casexfrm.h (FUNC): Update.
31829         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31830         * lib/vasnprintf.c (VASNPRINTF): Update.
31831         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31832         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31833         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31834         * NEWS: Mention the change.
31835
31836 2009-04-26  Bruno Haible  <bruno@clisp.org>
31837
31838         Avoid test failures on AIX and OSF/1.
31839         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31840         malloc(0).
31841         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31842         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31843         Likewise.
31844         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31845         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31846         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31847         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31848         * doc/posix-functions/malloc.texi: Document the portability problem
31849         related to malloc(0).
31850
31851 2009-04-26  Bruno Haible  <bruno@clisp.org>
31852
31853         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31854         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31855         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31856
31857 2009-04-25  Bruno Haible  <bruno@clisp.org>
31858
31859         Avoid link error when creating a namespace clean library.
31860         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31861         as macro with arguments if already defined as an alias.
31862         * lib/signbitf.c (gl_signbitf): Don't undefine.
31863         * lib/signbitd.c (gl_signbitd): Don't undefine.
31864         * lib/signbitl.c (gl_signbitl): Don't undefine.
31865
31866 2009-04-25  Jim Meyering  <meyering@redhat.com>
31867
31868         vc-list-files: fix another quoting bug
31869         * build-aux/vc-list-files: Avoid sed backslash expansion
31870         of pathological directory names.
31871
31872 2009-04-25  Eric Blake  <ebb9@byu.net>
31873
31874         vc-list-files: fix shell quoting error
31875         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31876         timestamp.
31877
31878 2009-04-25  Jim Meyering  <meyering@redhat.com>
31879
31880         vc-list-files: restore lost functionality with subdir argument
31881         * build-aux/vc-list-files: When given a non-"." sub-directory
31882         argument, substitute the $dir/ prefix back onto each resulting name.
31883         Otherwise, coreutils' root_tests check would fail.
31884
31885 2009-04-24  Eric Blake  <ebb9@byu.net>
31886
31887         vc-list-files: ignore git symlinks
31888         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31889         than ls-files, to ignore git symlinks.
31890
31891         maint.mk: import improvements from m4
31892         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31893         (move_if_change): Delete unused macro.
31894         (news-date-check, vc-diff-check): Support VPATH builds.
31895         (announcement): Likewise.  Split --bootstrap-tools list...
31896         (boostrap-tools): ...into separate list, which can be overridden
31897         in cfg.mk.
31898         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31899         requiring dependency on useless-if-before-free module.
31900         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31901         Support VPATH builds.
31902
31903 2009-04-24  Jim Meyering  <meyering@redhat.com>
31904
31905         maint.mk: remove coreutils-specific rules and variables
31906         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31907         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31908         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31909
31910         maint.mk: remove obsolete rule
31911         * top/maint.mk (rel-check): Remove rule.
31912         (WGET, WGETFLAGS): Remove now-unused variables.
31913
31914 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31915
31916         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31917         consistency.
31918
31919         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31920         '$(PATH_SEPARATOR)' instead of ':'.
31921
31922 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31923
31924         * lib/getopt1.c (main): Use 'const' for static array.
31925
31926 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31927
31928         * top/maint.mk: Sync with coreutils.
31929         * NEWS: Explain incompatibilities.
31930
31931 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31932             Bruno Haible  <bruno@clisp.org>
31933
31934         Fix cross-compilation results.
31935         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31936         statement, as third argument of AC_TRY_RUN.
31937         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31938         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31939         Likewise.
31940         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31941         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31942         Likewise.
31943         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31944         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31945         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31946
31947 2009-04-20  Bruno Haible  <bruno@clisp.org>
31948
31949         Avoid test failure on mingw.
31950         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31951
31952 2009-04-20  Bruno Haible  <bruno@clisp.org>
31953
31954         Avoid compilation error on mingw.
31955         * modules/localename-tests (Depends-on): Add locale.
31956
31957 2009-04-19  Bruno Haible  <bruno@clisp.org>
31958
31959         Support for building a shared library on Windows platforms.
31960         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31961         (main): Test the presence of UNINORM_NFC here.
31962         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31963         (main): Test the presence of UNINORM_NFD here.
31964         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31965         (main): Test the presence of UNINORM_NFKC here.
31966         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31967         (main): Test the presence of UNINORM_NFKD here.
31968
31969 2009-04-19  Bruno Haible  <bruno@clisp.org>
31970
31971         Avoid a compiler warning.
31972         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31973         Change type of variable 'sequence'.
31974
31975 2009-04-19  Bruno Haible  <bruno@clisp.org>
31976
31977         * modules/configmake (Makefile.am): When the contents of configmake.h
31978         does not change, arrange to preserve its modification time.
31979
31980 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31981
31982         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31983         gettext domain.
31984
31985 2009-04-16  Jim Meyering  <meyering@redhat.com>
31986
31987         useless-if-before-free: improve conversion code
31988         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31989         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31990
31991 2009-04-14  Bruno Haible  <bruno@clisp.org>
31992
31993         * modules/fcntl (Depends-on): Add extensions.
31994         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31995
31996 2009-04-12  Ben Pfaff  <blp@gnu.org>
31997
31998         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31999         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
32000
32001 2009-03-20  Ben Pfaff  <blp@gnu.org>
32002
32003         Make rename replace existing destinations on Windows.
32004         * m4/rename.m4: Add test for Mingw.
32005         * lib/rename.c: Add rename replacement that uses MoveFileEx with
32006         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
32007         * doc/posix-functions/rename.texi: Document.
32008
32009 2009-04-10  Bruno Haible  <bruno@clisp.org>
32010
32011         New include file "iconveh.h".
32012         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
32013         * lib/striconveh.h: Include it.
32014         (enum iconv_ilseq_handler): Remove definition.
32015         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
32016         striconveh.h.
32017         * lib/striconveha.c: Include striconveh.h.
32018         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
32019         * modules/striconveh (Files): Add lib/iconveh.h.
32020         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
32021         lib/striconveh.h.
32022
32023 2009-04-10  Bruno Haible  <bruno@clisp.org>
32024
32025         * lib/uniconv.h: Update comment.
32026
32027 2009-04-10  Bruno Haible  <bruno@clisp.org>
32028
32029         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
32030         always.
32031         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32032         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32033         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32034         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
32035         "unistring-notinline.h", so that the function gets defined always.
32036         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32037         * lib/unistr/u8-uctomb.c: Likewise.
32038         * lib/unistr/u16-mbtouc.c: Likewise.
32039         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32040         * lib/unistr/u16-uctomb.c: Likewise.
32041         * lib/unistr/u32-mbtouc.c: Likewise.
32042         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32043         * lib/unistr/u32-uctomb.c: Likewise.
32044
32045 2009-04-10  Bruno Haible  <bruno@clisp.org>
32046
32047         Mark 'utime' obsolete.
32048         * modules/utime (Status, Notice): New sections.
32049         Suggested by Jim Meyering.
32050
32051         Fix cross-compile guess for utime test.
32052         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
32053         autoconf.
32054         * doc/posix-functions/utime.texi: Give more precisions.
32055         Reported by Jan <ipif@ymail.com>.
32056
32057 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
32058
32059         filevercmp: correct today's change
32060         * lib/filevercmp.c: Also handle coreutils' test inputs.
32061         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
32062
32063         Fix regression in 'filevercmp' module. Thanks Sven Joachim
32064         for reporting it.
32065         * lib/filevercmp.c: Special handle for "", "." and "..".
32066         * tests/test-filevercmp.c: Enlarge the set suite.
32067
32068 2009-04-07  Jim Meyering  <meyering@redhat.com>
32069
32070         useless-if-before-free: show how to remove braced useless free, too
32071         * build-aux/useless-if-before-free: still only in a comment, though.
32072
32073 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
32074
32075         maint.mk: import changes to syntax-check macros from coreutils
32076         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
32077         Use them in the relevant macros.
32078
32079 2009-04-06  Bruno Haible  <bruno@clisp.org>
32080
32081         Fix unportable use of bit-fields.
32082         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
32083         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
32084         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
32085
32086 2009-04-06  Bruno Haible  <bruno@clisp.org>
32087
32088         Avoid test failures on AIX and OSF/1.
32089         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
32090         that malloc(0) = NULL.
32091         * tests/unicase/test-u8-tolower.c (check): Likewise.
32092         * tests/unicase/test-u8-totitle.c (check): Likewise.
32093         * tests/unicase/test-u8-toupper.c (check): Likewise.
32094         * tests/unicase/test-u16-casefold.c (check): Likewise.
32095         * tests/unicase/test-u16-tolower.c (check): Likewise.
32096         * tests/unicase/test-u16-totitle.c (check): Likewise.
32097         * tests/unicase/test-u16-toupper.c (check): Likewise.
32098         * tests/unicase/test-u32-casefold.c (check): Likewise.
32099         * tests/unicase/test-u32-tolower.c (check): Likewise.
32100         * tests/unicase/test-u32-totitle.c (check): Likewise.
32101         * tests/unicase/test-u32-toupper.c (check): Likewise.
32102         * tests/uninorm/test-u8-nfc.c (check): Likewise.
32103         * tests/uninorm/test-u8-nfd.c (check): Likewise.
32104         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
32105         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
32106         * tests/uninorm/test-u16-nfc.c (check): Likewise.
32107         * tests/uninorm/test-u16-nfd.c (check): Likewise.
32108         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
32109         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
32110         * tests/uninorm/test-u32-nfc.c (check): Likewise.
32111         * tests/uninorm/test-u32-nfd.c (check): Likewise.
32112         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
32113         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
32114
32115 2009-04-05  Bruno Haible  <bruno@clisp.org>
32116
32117         Work around an autoconf limitation.
32118         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
32119         comment line if it would be longer than 3 KB.
32120
32121 2009-04-05  Bruno Haible  <bruno@clisp.org>
32122
32123         Avoid test failure with libiconv-1.13.
32124         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
32125         of the expected test results.
32126
32127 2009-04-05  Bruno Haible  <bruno@clisp.org>
32128
32129         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
32130         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
32131         that it should be installed.
32132
32133 2009-04-05  Bruno Haible  <bruno@clisp.org>
32134
32135         * gnulib-tool: New option --copy-file.
32136         (func_usage): Document it.
32137         (func_dest_tmpfilename): Moved out of func_import.
32138         (func_add_file, func_update_file): New functions, extracted from
32139         func_import.
32140         (func_import): Update.
32141
32142 2009-04-05  Karl Berry  <karl@gnu.org>
32143
32144         * README: prominently mention gnulib-tool.
32145         Rearrange sections so getting the code is near the top.
32146
32147 2009-04-05  Bruno Haible  <bruno@clisp.org>
32148
32149         * lib/unicase.h: Mention u*_cmp2.
32150         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32151         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
32152         * lib/unicase/ulc-casecmp.c: Likewise.
32153         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
32154         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
32155         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
32156         unistr/u8-cmp.
32157         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
32158         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
32159         unistr/u16-cmp.
32160         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
32161         unistr/u32-cmp.
32162
32163         * lib/uninorm.h: Mention u*_cmp2.
32164         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32165         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
32166         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
32167         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
32168         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
32169         unistr/u8-cmp.
32170         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
32171         unistr/u16-cmp.
32172         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
32173         unistr/u32-cmp.
32174
32175         New module 'unistr/u32-cmp2'.
32176         * lib/unistr/u32-cmp2.c: New file.
32177         * modules/unistr/u32-cmp2: New file.
32178
32179         New module 'unistr/u16-cmp2'.
32180         * lib/unistr/u16-cmp2.c: New file.
32181         * modules/unistr/u16-cmp2: New file.
32182
32183         New module 'unistr/u8-cmp2'.
32184         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
32185         * lib/unistr/u8-cmp2.c: New file.
32186         * lib/unistr/u-cmp2.h: New file.
32187         * modules/unistr/u8-cmp2: New file.
32188
32189 2009-04-05  Bruno Haible  <bruno@clisp.org>
32190
32191         * lib/unictype.h (uc_property_is_valid): New macro.
32192         * tests/unictype/test-pr_byname.c (main): Use it.
32193
32194         * lib/unistr.h: Doc fixes.
32195         * lib/uniconv.h: Doc fixes.
32196         * lib/unictype.h: Doc fixes.
32197
32198 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
32199
32200         Port coreutils 7.2 to Solaris 8.
32201
32202         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
32203         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
32204         for Solaris 8.  This is a bit of a hack, as it means it's the
32205         caller's responsibility to add -lnsl if needed, but most likely it
32206         won't be needed since only getaddrinfo uses this and getaddrinfo
32207         isn't needed on Solaris 8.
32208
32209         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
32210         problem to Solaris 8 encountered with coreutils 7.2, which
32211         resulted in a message "fnmatch.c:292: warning: passing argument 4
32212         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
32213         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
32214
32215 2009-04-03  Simon Josefsson  <simon@josefsson.org>
32216
32217         * m4/ld-version-script.m4: Add FIXME comment.
32218
32219 2009-04-02  Simon Josefsson  <simon@josefsson.org>
32220
32221         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
32222         SOVERSION variable.
32223
32224 2009-04-02  Bruno Haible  <bruno@clisp.org>
32225
32226         * Makefile (info, html, dvi, pdf): Combine the rules.
32227         Suggested by Jim Meyering.
32228
32229 2009-04-01  Bruno Haible  <bruno@clisp.org>
32230
32231         * Makefile (info, html, dvi, pdf): New targets.
32232         Reported by Reuben Thomas <rrt@sc3d.org>.
32233
32234 2009-04-01  Bruno Haible  <bruno@clisp.org>
32235
32236         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
32237         can be put into PATH.
32238         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
32239
32240 2009-04-01  Bruno Haible  <bruno@clisp.org>
32241
32242         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32243
32244 2009-04-01  Bruno Haible  <bruno@clisp.org>
32245
32246         Rename module 'visibility'.
32247         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32248         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32249         * doc/gnulib.texi: Update.
32250         * MODULES.html.sh (Misc): Update.
32251         * NEWS: Mention the change.
32252
32253 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32254
32255         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32256         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32257         Eric Blake <ebb9@byu.net> for review.
32258         * MODULES.html.sh: Add lib-msvc-compat.
32259         * doc/gnulib.texi: Link to new section.
32260         * m4/ld-output-def.m4: New file.
32261         * doc/ld-output-def.texi: New file.
32262
32263 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32264
32265         Rename ld-version-script to lib-symbol-versions.  Suggested by
32266         Bruno Haible <bruno@clisp.org>.
32267         * modules/ld-version-script: Renamed to lib-symbol-versions.
32268         * doc/ld-version-script.texi: Fix module name.
32269         * MODULES.html.sh: Add lib-symbol-versions.
32270
32271 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32272
32273         * modules/u64-tests: New file.
32274         * tests/test-u64.c: New file.
32275
32276 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32277
32278         * MODULES.html.sh: Mention u64.
32279         * modules/u64: New module.
32280         * modules/crypto/sha512: Depend on u64 module instead of providing
32281         u64.h.
32282
32283 2009-03-27  Eric Blake  <ebb9@byu.net>
32284
32285         test-strerror: make debugging EAI_SYSTEM easier
32286         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32287         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32288         failure was EAI_SYSTEM.
32289
32290 2009-03-25  Bruno Haible  <bruno@clisp.org>
32291
32292         Fix a problem with --enable-relocatable on Solaris 7.
32293         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32294         since 2008-02-24.
32295
32296 2009-03-25  Eric Blake  <ebb9@byu.net>
32297
32298         test-sockets: avoid gcc warning
32299         * tests/test-sockets.c (main): Silence compiler warning.
32300
32301 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32302
32303         New modules nproc, pthread, contributed by Glen Lenker.
32304
32305         * MODULES.html.sh: Add pthread, nproc.
32306         * lib/nproc.c: New file.
32307         * lib/nproc.h: New file.
32308         * lib/pthread.in.h: New file.
32309         * m4/pthread.m4: New file.
32310         * modules/nproc: New file.
32311         * modules/pthread: New file.
32312
32313 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32314
32315         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32316         New variable.
32317
32318 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32319
32320         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32321         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32322         * tests/test-filevercmp.c: Add tests for backup suffixes.
32323
32324 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32325
32326         * modules/stdlib (Depends-on): Add stdint, needed when defining
32327         struct random_data on, for example, HP-UX 10.20.  Reported by
32328         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32329
32330 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32331
32332         * lib/readline.c (readline): Call fflush on stdout after printing
32333         prompt.
32334
32335 2009-03-20  Bruno Haible  <bruno@clisp.org>
32336
32337         Remove dependency from 'close' module to -lws2_32 on native Windows.
32338         * lib/close-hook.h: New file.
32339         * lib/close-hook.c: New file.
32340         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32341         w32sock.h.
32342         (_gl_close_fd_maybe_socket): Remove function.
32343         (rpl_close): Invoke execute_all_close_hooks instead of
32344         _gl_close_fd_maybe_socket.
32345         * lib/sockets.c: Include close-hook.h, w32sock.h.
32346         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32347         (close_sockets_hook): New variable.
32348         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32349         (gl_sockets_cleanup): Unregister it.
32350         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32351         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32352         * modules/close-hook: New file.
32353         * modules/close (Files): Remove lib/w32sock.h.
32354         (Depends-on): Add close-hook.
32355         (Link): Remove section.
32356         * modules/sockets (Files): Add lib/w32sock.h.
32357         (Depends-on): Add close-hook.
32358         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32359         invocation.
32360         * NEWS: Mention that LIB_CLOSE is gone.
32361
32362 2009-03-23  Eric Blake  <ebb9@byu.net>
32363
32364         signal-tests: test previous patch
32365         * tests/test-signal.c: New file.
32366         * modules/signal-tests: Likewise.
32367
32368         signal.h: always support 'volatile sig_atomic_t'
32369         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32370         (gl_SIGNAL_H_DEFAULTS): Add a default.
32371         * modules/signal (Makefile.am): Substitute if needed.
32372         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32373         users can blindly add volatile.
32374         * doc/posix-headers/signal.texi (signal.h): Document it.
32375         Reported by Matthew Woehlke.
32376
32377 2009-03-23  Jim Meyering  <meyering@redhat.com>
32378
32379         pathmax: PATH_MAX: use pathconf only when available
32380         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32381         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32382         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32383         This avoids a link failure in a PSP cross-compilation environment
32384         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32385
32386         * lib/vasnprintf.c (divide): Fix typo in comment.
32387
32388 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32389
32390         * gnulib-tool (func_filter_filelist): Fix comment.
32391
32392 2009-03-20  Bruno Haible  <bruno@clisp.org>
32393
32394         Make sockets.h self-contained.
32395         * lib/sockets.c: Include sockets.h first.
32396         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32397
32398 2009-03-19  Eric Blake  <ebb9@byu.net>
32399
32400         doc: mention more functions added in cygwin 1.7.0
32401         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32402         addition.
32403         * doc/posix-functions/log2f.texi: Likewise.
32404
32405 2009-03-19  Jim Meyering  <meyering@redhat.com>
32406
32407         fsusage: avoid syntax error due to statement-before-declaration
32408         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32409         after all declarations.  Reported by Matthew Woehlke in
32410         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32411
32412 2009-03-18  Eric Blake  <ebb9@byu.net>
32413
32414         build-aux/compile: sync from automake
32415         * build-aux/compile: New file, from automake.
32416         * config/srclist.txt: Mention build-aux/compile.
32417
32418 2009-03-17  Bruno Haible  <bruno@clisp.org>
32419
32420         * lib/git-merge-changelog.c: Fix typo in comment.
32421         Reported by Reuben Thomas <rrt@sc3d.org>.
32422
32423 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32424
32425         * m4/regex.m4: update and improve help for
32426         --without-included-regex.
32427
32428 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32429
32430         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32431         failure on missing include files.
32432
32433 2009-03-17  Eric Blake  <ebb9@byu.net>
32434
32435         doc: mention more functions added in cygwin 1.7.0
32436         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32437         addition.
32438         * doc/posix-functions/fwscanf.texi: Likewise.
32439         * doc/posix-functions/swprintf.texi: Likewise.
32440         * doc/posix-functions/swscanf.texi: Likewise.
32441         * doc/posix-functions/vfwprintf.texi: Likewise.
32442         * doc/posix-functions/vfwscanf.texi: Likewise.
32443         * doc/posix-functions/vswprintf.texi: Likewise.
32444         * doc/posix-functions/vswscanf.texi: Likewise.
32445         * doc/posix-functions/vwprintf.texi: Likewise.
32446         * doc/posix-functions/vwscanf.texi: Likewise.
32447         * doc/posix-functions/wcscasecmp.texi: Likewise.
32448         * doc/posix-functions/wcsdup.texi: Likewise.
32449         * doc/posix-functions/wcsftime.texi: Likewise.
32450         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32451         * doc/posix-functions/wprintf.texi: Likewise.
32452         * doc/posix-functions/wscanf.texi: Likewise.
32453         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32454
32455 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32456
32457         maint.mk: really add $(AM_MAKEFLAGS)
32458         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32459         was inadvertently omitted in the last commit.
32460         Spotted by Bruno Haible.
32461
32462         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32463         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32464         $(AM_MAKEFLAGS)' rather than plain `make'.
32465
32466         gnulib-tool: execute $MAKE not make
32467         * gnulib-tool: Default $MAKE to 'make'.
32468         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32469         than make.  Initialize $MAKE in the do-autobuild script.
32470
32471         gnulib-tool: use $MAKE not make in generated files
32472         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32473         make, in generated files.  Initialize $MAKE in the do-autobuild
32474         script.
32475
32476         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32477
32478         GNUmakefile: disable parallelism only for multiple, recursive targets
32479         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32480         additions in the Makefile.
32481         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32482         by Automake.
32483         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32484         are listed on the command line and at least one of them is
32485         listed in $(ALL_RECURSIVE_TARGETS).
32486
32487 2009-03-14  Bruno Haible  <bruno@clisp.org>
32488
32489         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32490         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32491         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32492         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32493         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32494         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32495         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32496         unistr/u8-uctomb.
32497         * modules/unistr/u8-strchr (Depends-on): Likewise.
32498         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32499         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32500         unistr/u16-uctomb.
32501         * modules/unistr/u16-strchr (Depends-on): Likewise.
32502         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32503
32504 2009-03-12  Bruno Haible  <bruno@clisp.org>
32505
32506         Work around select() bug on Interix 3.5.
32507         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32508         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32509         * m4/select.m4: New file.
32510         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32511         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32512         * modules/select (Files): Add m4/select.m4.
32513         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32514         * modules/nanosleep (Depends-on): Add select.
32515         * modules/poll (Depends-on): Likewise.
32516         * doc/posix-functions/select.texi: Mention the Interix bug.
32517         Reported by Markus Duft <mduft@gentoo.org>.
32518
32519         * lib/select.c: Renamed from lib/winsock-select.c.
32520         * modules/select (Files): Add lib/select.c, remove
32521         lib/winsock-select.c.
32522         (configure.ac): Update.
32523
32524 2009-03-12  Jim Meyering  <meyering@redhat.com>
32525
32526         avoid gcc warnings about unused macro definitions
32527         * lib/readtokens.c (STREQ): Remove unused definition.
32528         * lib/xmalloc.c (SIZE_MAX): Likewise.
32529         * lib/openat-die.c (N_): Likewise.
32530         * lib/mountlist.c (SIZE_MAX): Remove definition.
32531         Instead, include <stdint.h>.
32532         * lib/readutmp.c: Likewise.
32533         * modules/readutmp (Depends-on): Add stdint.
32534         * modules/mountlist (Depends-on): Add stdint.
32535         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32536
32537 2009-03-10  Bruno Haible  <bruno@clisp.org>
32538
32539         Tests for module 'mbmemcasecoll'.
32540         * modules/mbmemcasecoll-tests: New file.
32541         * tests/test-mbmemcasecoll1.sh: New file.
32542         * tests/test-mbmemcasecoll2.sh: New file.
32543         * tests/test-mbmemcasecoll3.sh: New file.
32544         * tests/test-mbmemcasecoll.c: New file.
32545
32546         New module 'mbmemcasecoll'.
32547         * lib/mbmemcasecoll.h: New file.
32548         * lib/mbmemcasecoll.c: New file.
32549         * modules/mbmemcasecoll: New file.
32550
32551         * tests/test-mbmemcasecmp.h: New file, extracted from
32552         tests/test-mbmemcasecmp.c.
32553         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32554         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32555         (main): Update.
32556         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32557
32558 2009-03-09  Bruno Haible  <bruno@clisp.org>
32559
32560         Tests for module 'mbmemcasecmp'.
32561         * modules/mbmemcasecmp-tests: New file.
32562         * tests/test-mbmemcasecmp1.sh: New file.
32563         * tests/test-mbmemcasecmp2.sh: New file.
32564         * tests/test-mbmemcasecmp3.sh: New file.
32565         * tests/test-mbmemcasecmp.c: New file.
32566
32567         New module 'mbmemcasecmp'.
32568         * lib/mbmemcasecmp.h: New file.
32569         * lib/mbmemcasecmp.c: New file.
32570         * modules/mbmemcasecmp: New file.
32571
32572 2009-03-09  Bruno Haible  <bruno@clisp.org>
32573
32574         Tests for module 'unicase/ulc-casecoll'.
32575         * modules/unicase/ulc-casecoll-tests: New file.
32576         * tests/unicase/test-ulc-casecoll1.sh: New file.
32577         * tests/unicase/test-ulc-casecoll2.sh: New file.
32578         * tests/unicase/test-ulc-casecoll.c: New file.
32579
32580         New module 'unicase/ulc-casecoll'.
32581         * lib/unicase.h (ulc_casecoll): New declaration.
32582         * lib/unicase/ulc-casecoll.c: New file.
32583         * modules/unicase/ulc-casecoll: New file.
32584
32585         New module 'unicase/ulc-casexfrm'.
32586         * lib/unicase.h (ulc_casexfrm): New declaration.
32587         * lib/unicase/ulc-casexfrm.c: New file.
32588         * modules/unicase/ulc-casexfrm: New file.
32589
32590 2009-03-09  Bruno Haible  <bruno@clisp.org>
32591
32592         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32593         invocations.
32594
32595         * m4/mbscasecmp.m4: Remove file.
32596         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32597         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32598
32599         * m4/mbscasestr.m4: Remove file.
32600         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32601         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32602
32603         * m4/mbschr.m4: Remove file.
32604         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32605         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32606
32607         * m4/mbscspn.m4: Remove file.
32608         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32609         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32610
32611         * m4/mbslen.m4: Remove file.
32612         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32613         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32614
32615         * m4/mbsncasecmp.m4: Remove file.
32616         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32617         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32618
32619         * m4/mbsnlen.m4: Remove file.
32620         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32621         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32622
32623         * m4/mbspbrk.m4: Remove file.
32624         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32625         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32626
32627         * m4/mbspcasecmp.m4: Remove file.
32628         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32629         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32630
32631         * m4/mbsrchr.m4: Remove file.
32632         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32633         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32634
32635         * m4/mbssep.m4: Remove file.
32636         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32637         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32638
32639         * m4/mbsspn.m4: Remove file.
32640         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32641         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32642
32643         * m4/mbsstr.m4: Remove file.
32644         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32645         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32646
32647         * m4/mbstok_r.m4: Remove file.
32648         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32649         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32650
32651         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32652
32653         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32654         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32655
32656         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32657
32658 2009-03-08  Bruno Haible  <bruno@clisp.org>
32659
32660         Tests for module 'unicase/ulc-casecmp'.
32661         * modules/unicase/ulc-casecmp-tests: New file.
32662         * tests/unicase/test-ulc-casecmp1.sh: New file.
32663         * tests/unicase/test-ulc-casecmp2.sh: New file.
32664         * tests/unicase/test-ulc-casecmp.c: New file.
32665
32666         New module 'unicase/ulc-casecmp'.
32667         * lib/unicase.h (ulc_casecmp): New declaration.
32668         * lib/unicase/ulc-casecmp.c: New file.
32669         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32670         'const SRC_UNIT *'.
32671         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32672         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32673         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32674         * modules/unicase/ulc-casecmp: New file.
32675
32676         Tests for module 'unicase/u32-is-cased'.
32677         * modules/unicase/u32-is-cased-tests: New file.
32678         * tests/unicase/test-u32-is-cased.c: New file.
32679
32680         Tests for module 'unicase/u16-is-cased'.
32681         * modules/unicase/u16-is-cased-tests: New file.
32682         * tests/unicase/test-u16-is-cased.c: New file.
32683
32684         Tests for module 'unicase/u8-is-cased'.
32685         * modules/unicase/u8-is-cased-tests: New file.
32686         * tests/unicase/test-u8-is-cased.c: New file.
32687         * tests/unicase/test-is-cased.h: New file.
32688
32689         New module 'unicase/u32-is-cased'.
32690         * lib/unicase/u32-is-cased.c: New file.
32691         * modules/unicase/u32-is-cased: New file.
32692
32693         New module 'unicase/u16-is-cased'.
32694         * lib/unicase/u16-is-cased.c: New file.
32695         * modules/unicase/u16-is-cased: New file.
32696
32697         New module 'unicase/u8-is-cased'.
32698         * lib/unicase/u8-is-cased.c: New file.
32699         * lib/unicase/u-is-cased.h: New file.
32700         * modules/unicase/u8-is-cased: New file.
32701
32702         Tests for module 'unicase/u32-is-casefolded'.
32703         * modules/unicase/u32-is-casefolded-tests: New file.
32704         * tests/unicase/test-u32-is-casefolded.c: New file.
32705
32706         Tests for module 'unicase/u16-is-casefolded'.
32707         * modules/unicase/u16-is-casefolded-tests: New file.
32708         * tests/unicase/test-u16-is-casefolded.c: New file.
32709
32710         Tests for module 'unicase/u8-is-casefolded'.
32711         * modules/unicase/u8-is-casefolded-tests: New file.
32712         * tests/unicase/test-u8-is-casefolded.c: New file.
32713         * tests/unicase/test-is-casefolded.h: New file.
32714
32715         New module 'unicase/u32-is-casefolded'.
32716         * lib/unicase/u32-is-casefolded.c: New file.
32717         * modules/unicase/u32-is-casefolded: New file.
32718
32719         New module 'unicase/u16-is-casefolded'.
32720         * lib/unicase/u16-is-casefolded.c: New file.
32721         * modules/unicase/u16-is-casefolded: New file.
32722
32723         New module 'unicase/u8-is-casefolded'.
32724         * lib/unicase/u8-is-casefolded.c: New file.
32725         * modules/unicase/u8-is-casefolded: New file.
32726
32727         Tests for module 'unicase/u32-is-titlecase'.
32728         * modules/unicase/u32-is-titlecase-tests: New file.
32729         * tests/unicase/test-u32-is-titlecase.c: New file.
32730
32731         Tests for module 'unicase/u16-is-titlecase'.
32732         * modules/unicase/u16-is-titlecase-tests: New file.
32733         * tests/unicase/test-u16-is-titlecase.c: New file.
32734
32735         Tests for module 'unicase/u8-is-titlecase'.
32736         * modules/unicase/u8-is-titlecase-tests: New file.
32737         * tests/unicase/test-u8-is-titlecase.c: New file.
32738         * tests/unicase/test-is-titlecase.h: New file.
32739
32740         New module 'unicase/u32-is-titlecase'.
32741         * lib/unicase/u32-is-titlecase.c: New file.
32742         * modules/unicase/u32-is-titlecase: New file.
32743
32744         New module 'unicase/u16-is-titlecase'.
32745         * lib/unicase/u16-is-titlecase.c: New file.
32746         * modules/unicase/u16-is-titlecase: New file.
32747
32748         New module 'unicase/u8-is-titlecase'.
32749         * lib/unicase/u8-is-titlecase.c: New file.
32750         * modules/unicase/u8-is-titlecase: New file.
32751
32752         Tests for module 'unicase/u32-is-lowercase'.
32753         * modules/unicase/u32-is-lowercase-tests: New file.
32754         * tests/unicase/test-u32-is-lowercase.c: New file.
32755
32756         Tests for module 'unicase/u16-is-lowercase'.
32757         * modules/unicase/u16-is-lowercase-tests: New file.
32758         * tests/unicase/test-u16-is-lowercase.c: New file.
32759
32760         Tests for module 'unicase/u8-is-lowercase'.
32761         * modules/unicase/u8-is-lowercase-tests: New file.
32762         * tests/unicase/test-u8-is-lowercase.c: New file.
32763         * tests/unicase/test-is-lowercase.h: New file.
32764
32765         New module 'unicase/u32-is-lowercase'.
32766         * lib/unicase/u32-is-lowercase.c: New file.
32767         * modules/unicase/u32-is-lowercase: New file.
32768
32769         New module 'unicase/u16-is-lowercase'.
32770         * lib/unicase/u16-is-lowercase.c: New file.
32771         * modules/unicase/u16-is-lowercase: New file.
32772
32773         New module 'unicase/u8-is-lowercase'.
32774         * lib/unicase/u8-is-lowercase.c: New file.
32775         * modules/unicase/u8-is-lowercase: New file.
32776
32777         Tests for module 'unicase/u32-is-uppercase'.
32778         * modules/unicase/u32-is-uppercase-tests: New file.
32779         * tests/unicase/test-u32-is-uppercase.c: New file.
32780
32781         Tests for module 'unicase/u16-is-uppercase'.
32782         * modules/unicase/u16-is-uppercase-tests: New file.
32783         * tests/unicase/test-u16-is-uppercase.c: New file.
32784
32785         Tests for module 'unicase/u8-is-uppercase'.
32786         * modules/unicase/u8-is-uppercase-tests: New file.
32787         * tests/unicase/test-u8-is-uppercase.c: New file.
32788         * tests/unicase/test-is-uppercase.h: New file.
32789
32790         New module 'unicase/u32-is-uppercase'.
32791         * lib/unicase/u32-is-uppercase.c: New file.
32792         * modules/unicase/u32-is-uppercase: New file.
32793
32794         New module 'unicase/u16-is-uppercase'.
32795         * lib/unicase/u16-is-uppercase.c: New file.
32796         * modules/unicase/u16-is-uppercase: New file.
32797
32798         New module 'unicase/u8-is-uppercase'.
32799         * lib/unicase/u8-is-uppercase.c: New file.
32800         * modules/unicase/u8-is-uppercase: New file.
32801
32802         New module 'unicase/u32-is-invariant'.
32803         * lib/unicase/u32-is-invariant.c: New file.
32804         * modules/unicase/u32-is-invariant: New file.
32805
32806         New module 'unicase/u16-is-invariant'.
32807         * lib/unicase/u16-is-invariant.c: New file.
32808         * modules/unicase/u16-is-invariant: New file.
32809
32810         New module 'unicase/u8-is-invariant'.
32811         * lib/unicase/u8-is-invariant.c: New file.
32812         * lib/unicase/invariant.h: New file.
32813         * lib/unicase/u-is-invariant.h: New file.
32814         * modules/unicase/u8-is-invariant: New file.
32815
32816         Tests for module 'unicase/u32-casecoll'.
32817         * modules/unicase/u32-casecoll-tests: New file.
32818         * tests/unicase/test-u32-casecoll.c: New file.
32819
32820         Tests for module 'unicase/u16-casecoll'.
32821         * modules/unicase/u16-casecoll-tests: New file.
32822         * tests/unicase/test-u16-casecoll.c: New file.
32823
32824         Tests for module 'unicase/u8-casecoll'.
32825         * modules/unicase/u8-casecoll-tests: New file.
32826         * tests/unicase/test-u8-casecoll.c: New file.
32827
32828         New module 'unicase/u32-casecoll'.
32829         * lib/unicase/u32-casecoll.c: New file.
32830         * modules/unicase/u32-casecoll: New file.
32831
32832         New module 'unicase/u16-casecoll'.
32833         * lib/unicase/u16-casecoll.c: New file.
32834         * modules/unicase/u16-casecoll: New file.
32835
32836         New module 'unicase/u8-casecoll'.
32837         * lib/unicase/u8-casecoll.c: New file.
32838         * lib/unicase/u-casecoll.h: New file.
32839         * modules/unicase/u8-casecoll: New file.
32840
32841         New module 'unicase/u32-casexfrm'.
32842         * lib/unicase/u32-casexfrm.c: New file.
32843         * modules/unicase/u32-casexfrm: New file.
32844
32845         New module 'unicase/u16-casexfrm'.
32846         * lib/unicase/u16-casexfrm.c: New file.
32847         * modules/unicase/u16-casexfrm: New file.
32848
32849         New module 'unicase/u8-casexfrm'.
32850         * lib/unicase/u8-casexfrm.c: New file.
32851         * lib/unicase/u-casexfrm.h: New file.
32852         * modules/unicase/u8-casexfrm: New file.
32853
32854         Tests for module 'unicase/u32-casecmp'.
32855         * modules/unicase/u32-casecmp-tests: New file.
32856         * tests/unicase/test-u32-casecmp.c: New file.
32857
32858         Tests for module 'unicase/u16-casecmp'.
32859         * modules/unicase/u16-casecmp-tests: New file.
32860         * tests/unicase/test-u16-casecmp.c: New file.
32861
32862         Tests for module 'unicase/u8-casecmp'.
32863         * modules/unicase/u8-casecmp-tests: New file.
32864         * tests/unicase/test-u8-casecmp.c: New file.
32865         * tests/unicase/test-casecmp.h: New file.
32866
32867         New module 'unicase/u32-casecmp'.
32868         * lib/unicase/u32-casecmp.c: New file.
32869         * modules/unicase/u32-casecmp: New file.
32870
32871         New module 'unicase/u16-casecmp'.
32872         * lib/unicase/u16-casecmp.c: New file.
32873         * modules/unicase/u16-casecmp: New file.
32874
32875         New module 'unicase/u8-casecmp'.
32876         * lib/unicase/u8-casecmp.c: New file.
32877         * lib/unicase/u-casecmp.h: New file.
32878         * modules/unicase/u8-casecmp: New file.
32879
32880         Tests for module 'unicase/u32-casefold'.
32881         * modules/unicase/u32-casefold-tests: New file.
32882         * tests/unicase/test-u32-casefold.c: New file.
32883
32884         Tests for module 'unicase/u16-casefold'.
32885         * modules/unicase/u16-casefold-tests: New file.
32886         * tests/unicase/test-u16-casefold.c: New file.
32887
32888         Tests for module 'unicase/u8-casefold'.
32889         * modules/unicase/u8-casefold-tests: New file.
32890         * tests/unicase/test-u8-casefold.c: New file.
32891
32892         New module 'unicase/u32-casefold'.
32893         * lib/unicase/u32-casefold.c: New file.
32894         * modules/unicase/u32-casefold: New file.
32895
32896         New module 'unicase/u16-casefold'.
32897         * lib/unicase/u16-casefold.c: New file.
32898         * modules/unicase/u16-casefold: New file.
32899
32900         New module 'unicase/u8-casefold'.
32901         * lib/unicase/u8-casefold.c: New file.
32902         * lib/unicase/u-casefold.h: New file.
32903         * modules/unicase/u8-casefold: New file.
32904
32905         New module 'unicase/tocasefold'.
32906         * lib/unicase/casefold.h: New file.
32907         * lib/unicase/tocasefold.c: New file.
32908         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32909         * modules/unicase/tocasefold: New file.
32910
32911         Tests for module 'unicase/u32-totitle'.
32912         * modules/unicase/u32-totitle-tests: New file.
32913         * tests/unicase/test-u32-totitle.c: New file.
32914
32915         Tests for module 'unicase/u16-totitle'.
32916         * modules/unicase/u16-totitle-tests: New file.
32917         * tests/unicase/test-u16-totitle.c: New file.
32918
32919         Tests for module 'unicase/u8-totitle'.
32920         * modules/unicase/u8-totitle-tests: New file.
32921         * tests/unicase/test-u8-totitle.c: New file.
32922
32923         New module 'unicase/u32-totitle'.
32924         * lib/unicase/u32-totitle.c: New file.
32925         * modules/unicase/u32-totitle: New file.
32926
32927         New module 'unicase/u16-totitle'.
32928         * lib/unicase/u16-totitle.c: New file.
32929         * modules/unicase/u16-totitle: New file.
32930
32931         New module 'unicase/u8-totitle'.
32932         * lib/unicase/u8-totitle.c: New file.
32933         * lib/unicase/u-totitle.h: New file.
32934         * modules/unicase/u8-totitle: New file.
32935
32936         Tests for module 'unicase/u32-tolower'.
32937         * modules/unicase/u32-tolower-tests: New file.
32938         * tests/unicase/test-u32-tolower.c: New file.
32939
32940         Tests for module 'unicase/u16-tolower'.
32941         * modules/unicase/u16-tolower-tests: New file.
32942         * tests/unicase/test-u16-tolower.c: New file.
32943
32944         Tests for module 'unicase/u8-tolower'.
32945         * modules/unicase/u8-tolower-tests: New file.
32946         * tests/unicase/test-u8-tolower.c: New file.
32947
32948         New module 'unicase/u32-tolower'.
32949         * lib/unicase/u32-tolower.c: New file.
32950         * modules/unicase/u32-tolower: New file.
32951
32952         New module 'unicase/u16-tolower'.
32953         * lib/unicase/u16-tolower.c: New file.
32954         * modules/unicase/u16-tolower: New file.
32955
32956         New module 'unicase/u8-tolower'.
32957         * lib/unicase/u8-tolower.c: New file.
32958         * modules/unicase/u8-tolower: New file.
32959
32960         Tests for module 'unicase/u32-toupper'.
32961         * modules/unicase/u32-toupper-tests: New file.
32962         * tests/unicase/test-u32-toupper.c: New file.
32963
32964         Tests for module 'unicase/u16-toupper'.
32965         * modules/unicase/u16-toupper-tests: New file.
32966         * tests/unicase/test-u16-toupper.c: New file.
32967
32968         Tests for module 'unicase/u8-toupper'.
32969         * modules/unicase/u8-toupper-tests: New file.
32970         * tests/unicase/test-u8-toupper.c: New file.
32971
32972         New module 'unicase/u32-toupper'.
32973         * lib/unicase/u32-toupper.c: New file.
32974         * modules/unicase/u32-toupper: New file.
32975
32976         New module 'unicase/u16-toupper'.
32977         * lib/unicase/u16-toupper.c: New file.
32978         * modules/unicase/u16-toupper: New file.
32979
32980         New module 'unicase/u8-toupper'.
32981         * lib/unicase/u8-toupper.c: New file.
32982         * modules/unicase/u8-toupper: New file.
32983
32984         New module 'unicase/u32-casemap'.
32985         * lib/unicase/u32-casemap.c: New file.
32986         * modules/unicase/u32-casemap: New file.
32987
32988         New module 'unicase/u16-casemap'.
32989         * lib/unicase/u16-casemap.c: New file.
32990         * modules/unicase/u16-casemap: New file.
32991
32992         New module 'unicase/u8-casemap'.
32993         * lib/unicase/unicasemap.h: New file.
32994         * lib/unicase/u8-casemap.c: New file.
32995         * lib/unicase/u-casemap.h: New file.
32996         * modules/unicase/u8-casemap: New file.
32997
32998         New module 'unicase/special-casing'.
32999         * lib/unicase/special-casing.h: New file.
33000         * lib/unicase/special-casing.c: New file.
33001         * lib/unicase/special-casing-table.gperf: New file, generated by
33002         gen-uni-tables.c.
33003         * modules/unicase/special-casing: New file.
33004
33005         Tests for module 'unicase/locale-language'.
33006         * modules/unicase/locale-language-tests: New file.
33007         * tests/unicase/test-locale-language.sh: New file.
33008         * tests/unicase/test-locale-language.c: New file.
33009
33010         New module 'unicase/locale-language'.
33011         * lib/unicase/locale-language.c: New file.
33012         * lib/unicase/locale-languages.gperf: New file.
33013         * modules/unicase/locale-language: New file.
33014
33015         Generate more tables for case conversion and case folding.
33016         * lib/gen-uni-tables.c (SCC_*): New enum items.
33017         (struct special_casing_rule): New type.
33018         (casing_rules, num_casing_rules, allocated_casing_rules): New
33019         variables.
33020         (add_casing_rule, fill_casing_rules): New functions.
33021         (struct casefold_rule): New type.
33022         (casefolding_rules, num_casefolding_rules,
33023         allocated_casefolding_rules): New variables.
33024         (fill_casefolding_rules): New function.
33025         (unicode_casefold): New variable.
33026         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
33027         sort_casing_rules, output_casing_rules): New functions.
33028         (main): Accept to more arguments: SpecialCasing.txt and
33029         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
33030         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
33031         Output mapping for casefolding.
33032
33033         * lib/unicase.h: Include stdbool.h, uninorm.h.
33034         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
33035         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
33036         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
33037         arguments.
33038         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
33039         resultp arguments.
33040         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
33041         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
33042         resultp arguments.
33043         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
33044         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
33045         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
33046         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
33047         declarations.
33048         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
33049
33050 2009-03-08  Bruno Haible  <bruno@clisp.org>
33051
33052         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33053         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
33054         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
33055         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33056
33057 2009-03-07  Bruno Haible  <bruno@clisp.org>
33058
33059         Adjust u*_normcmp, u*_normcoll API.
33060         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33061         u16_normcoll, u32_normcoll): Change failure conventions.
33062         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
33063         errno and return -1.
33064         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33065
33066 2009-03-07  Bruno Haible  <bruno@clisp.org>
33067
33068         Tests for module 'uninorm/u32-normcoll'.
33069         * modules/uninorm/u32-normcoll-tests: New file.
33070         * tests/uninorm/test-u32-normcoll.c: New file.
33071
33072         Tests for module 'uninorm/u16-normcoll'.
33073         * modules/uninorm/u16-normcoll-tests: New file.
33074         * tests/uninorm/test-u16-normcoll.c: New file.
33075
33076         Tests for module 'uninorm/u8-normcoll'.
33077         * modules/uninorm/u8-normcoll-tests: New file.
33078         * tests/uninorm/test-u8-normcoll.c: New file.
33079
33080 2009-03-07  Bruno Haible  <bruno@clisp.org>
33081
33082         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
33083         tests/uninorm/test-u32-normcmp.c.
33084         * tests/uninorm/test-u32-normcmp.c: Include it.
33085         (test_nonascii): New function, extracted from main. Add some more
33086         tests.
33087         (main): Invoke test_ascii and test_nonascii.
33088         * modules/uninorm/u32-normcmp-tests (Files): Add
33089         tests/uninorm/test-u32-normcmp.h.
33090         (Depends-on): Remove uninorm/u32-normcmp.
33091
33092         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
33093         tests/uninorm/test-u16-normcmp.c.
33094         * tests/uninorm/test-u16-normcmp.c: Include it.
33095         (test_nonascii): New function, extracted from main. Add some more
33096         tests.
33097         (main): Invoke test_ascii and test_nonascii.
33098         * modules/uninorm/u16-normcmp-tests (Files): Add
33099         tests/uninorm/test-u16-normcmp.h.
33100         (Depends-on): Remove uninorm/u16-normcmp.
33101
33102         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
33103         tests/uninorm/test-u8-normcmp.c.
33104         * tests/uninorm/test-u8-normcmp.c: Include it.
33105         (test_nonascii): New function, extracted from main. Add some more
33106         tests.
33107         (main): Invoke test_ascii and test_nonascii.
33108         * modules/uninorm/u8-normcmp-tests (Files): Add
33109         tests/uninorm/test-u8-normcmp.h.
33110         (Depends-on): Remove uninorm/u8-normcmp.
33111
33112 2009-03-07  Bruno Haible  <bruno@clisp.org>
33113
33114         New module 'uninorm/u32-normcoll'.
33115         * lib/uninorm/u32-normcoll.c: New file.
33116         * modules/uninorm/u32-normcoll: New file.
33117
33118         New module 'uninorm/u16-normcoll'.
33119         * lib/uninorm/u16-normcoll.c: New file.
33120         * modules/uninorm/u16-normcoll: New file.
33121
33122         New module 'uninorm/u8-normcoll'.
33123         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
33124         declarations.
33125         * lib/uninorm/u8-normcoll.c: New file.
33126         * lib/uninorm/u-normcoll.h: New file.
33127         * modules/uninorm/u8-normcoll: New file.
33128
33129         New module 'uninorm/u32-normxfrm'.
33130         * lib/uninorm/u32-normxfrm.c: New file.
33131         * modules/uninorm/u32-normxfrm: New file.
33132
33133         New module 'uninorm/u16-normxfrm'.
33134         * lib/uninorm/u16-normxfrm.c: New file.
33135         * modules/uninorm/u16-normxfrm: New file.
33136
33137         New module 'uninorm/u8-normxfrm'.
33138         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
33139         declarations.
33140         * lib/uninorm/u8-normxfrm.c: New file.
33141         * lib/uninorm/u-normxfrm.h: New file.
33142         * modules/uninorm/u8-normxfrm: New file.
33143
33144 2009-03-07  Bruno Haible  <bruno@clisp.org>
33145
33146         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
33147         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
33148         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
33149
33150 2009-03-07  Bruno Haible  <bruno@clisp.org>
33151
33152         New module 'memxfrm'.
33153         * lib/memxfrm.h: New file.
33154         * lib/memxfrm.c: New file.
33155         * modules/memxfrm: New file.
33156
33157 2009-03-07  Bruno Haible  <bruno@clisp.org>
33158
33159         New module 'memcmp2'.
33160         * lib/memcmp2.h: New file.
33161         * lib/memcmp2.c: New file.
33162         * modules/memcmp2: New file.
33163
33164 2009-03-07  Bruno Haible  <bruno@clisp.org>
33165
33166         Tests for module 'uninorm/decomposing-form'.
33167         * modules/uninorm/decomposing-form-tests: New file.
33168         * tests/uninorm/test-decomposing-form.c: New file.
33169
33170         New module 'uninorm/decomposing-form'.
33171         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
33172         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
33173         Add 'decomposing_variant' field.
33174         * lib/uninorm/decomposing-form.c: New file.
33175         * lib/uninorm/nfc.c (uninorm_nfc): Update.
33176         * lib/uninorm/nfd.c (uninorm_nfd): Update.
33177         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
33178         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
33179         * modules/uninorm/decomposing-form: New file.
33180         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
33181         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
33182
33183 2009-03-07  Bruno Haible  <bruno@clisp.org>
33184
33185         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
33186         strings.
33187
33188 2009-03-06  Bruno Haible  <bruno@clisp.org>
33189
33190         Tests for module 'uninorm/u32-normcmp'.
33191         * tests/uninorm/test-u32-normcmp.c: New file.
33192         * modules/uninorm/u32-normcmp-tests: New file.
33193
33194         Tests for module 'uninorm/u16-normcmp'.
33195         * tests/uninorm/test-u16-normcmp.c: New file.
33196         * modules/uninorm/u16-normcmp-tests: New file.
33197
33198         Tests for module 'uninorm/u8-normcmp'.
33199         * tests/uninorm/test-u8-normcmp.c: New file.
33200         * modules/uninorm/u8-normcmp-tests: New file.
33201
33202         New module 'uninorm/u32-normcmp'.
33203         * lib/uninorm/u32-normcmp.c: New file.
33204         * modules/uninorm/u32-normcmp: New file.
33205
33206         New module 'uninorm/u16-normcmp'.
33207         * lib/uninorm/u16-normcmp.c: New file.
33208         * modules/uninorm/u16-normcmp: New file.
33209
33210         New module 'uninorm/u8-normcmp'.
33211         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
33212         declarations.
33213         * lib/uninorm/u8-normcmp.c: New file.
33214         * lib/uninorm/u-normcmp.h: New file.
33215         * modules/uninorm/u8-normcmp: New file.
33216
33217 2009-03-06  Bruno Haible  <bruno@clisp.org>
33218
33219         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
33220         Reported by Eric Blake.
33221
33222 2009-03-06  Eric Blake  <ebb9@byu.net>
33223             Bruno Haible  <bruno@clisp.org>
33224
33225         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
33226         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
33227         condition.
33228         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33229         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
33230         condition.
33231         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33232
33233 2009-03-06  Eric Blake  <ebb9@byu.net>
33234
33235         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
33236         to avoid compiler warnings.
33237         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
33238
33239 2009-03-05  Bruno Haible  <bruno@clisp.org>
33240
33241         * tests/test-ftell.c (main): Disable test beyond end of file on
33242         FreeMiNT.
33243         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33244
33245 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33246
33247         * lib/filevercmp.c: Move hidden files up in ordering.
33248         * tests/test-filevercmp.c: Add tests for hidden files.
33249
33250 2009-03-04  Bruno Haible  <bruno@clisp.org>
33251
33252         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33253         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33254         AM_CFLAGS.
33255         Reported by Simon Josefsson.
33256
33257 2009-03-03  Bruno Haible  <bruno@clisp.org>
33258
33259         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33260         Reported by Simon Josefsson.
33261
33262         * doc/ld-version-script.texi: Update node reference.
33263
33264 2009-03-03  Bruno Haible  <bruno@clisp.org>
33265
33266         * modules/visibility (License): Change to 'unlimited'.
33267         Suggested by Simon Josefsson.
33268
33269 2009-03-03  Jim Meyering  <meyering@redhat.com>
33270
33271         unlinkdir: cannot_unlink_dir may modify process state
33272         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33273         it's neither thread-safe nor appropriate for use in a library.
33274
33275 2009-03-03  Eric Blake  <ebb9@byu.net>
33276
33277         test-closein: silence test under Darwin
33278         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33279         care if it dies from EPIPE or EBADF.
33280
33281 2009-03-03  Bruno Haible  <bruno@clisp.org>
33282
33283         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33284         earlier.
33285         * doc/visibility.texi: Fix @node and @section.
33286
33287 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33288
33289         * doc/gnulib.texi: Link to sections for ld version script and
33290         visibility.
33291         * doc/visibility.texi: Add @node and @section.
33292         * modules/ld-version-script: New module.
33293         * m4/ld-version-script.m4: New file.
33294         * doc/ld-version-script.texi: New file.
33295
33296 2009-03-02  David Lutterkort  <lutter@redhat.com>
33297
33298         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33299         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33300
33301 2009-03-02  Bruno Haible  <bruno@clisp.org>
33302
33303         * doc/visibility.texi: Mention libtool's -export-symbols option.
33304
33305 2009-03-02  Jim Meyering  <meyering@redhat.com>
33306
33307         announce-gen: new option: --no-print-checksums
33308         * build-aux/announce-gen (usage): Describe it.
33309         (print_checksums): Print a newline here, not in the [*] footnote.
33310         (main): Honor it.
33311
33312 2009-03-01  Bruno Haible  <bruno@clisp.org>
33313
33314         Use socklen_t in the native Windows replacements prototypes.
33315         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33316         instead of 'int'.
33317         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33318         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33319         * modules/getsockopt (Depends-on): Add socklen.
33320         * modules/setsockopt (Depends-on): Add socklen.
33321
33322 2009-03-01  Bruno Haible  <bruno@clisp.org>
33323
33324         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33325         least 4.2.
33326
33327 2009-03-01  Eric Blake  <ebb9@byu.net>
33328             Bruno Haible  <bruno@clisp.org>
33329
33330         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33331         error messages.
33332         * lib/wait-process.c (wait_subprocess): Omit error message about
33333         deadly signal sent to the child of termsigp != NULL.
33334
33335 2009-03-01  Eric Blake  <ebb9@byu.net>
33336
33337         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33338
33339 2009-03-01  Bruno Haible  <bruno@clisp.org>
33340
33341         Avoid a gcc warning.
33342         * tests/test-sched.c (b): Make global.
33343         Reported by Eric Blake.
33344
33345 2009-01-19  Martin Lambers  <marlam@marlam.de>
33346
33347         Provide POSIX semantics for socket timeout options on W32.
33348         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33349         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33350         * modules/setsockopt: Depend on sys_time module for struct timeval.
33351         * modules/getsockopt: Depend on sys_time module for struct timeval.
33352
33353 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33354
33355         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33356         __USE_GNU, for consistency with netdb.in.h.
33357         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33358
33359 2009-03-01  Bruno Haible  <bruno@clisp.org>
33360
33361         More support for FreeMiNT.
33362         * lib/fseeko.c (rpl_fseeko): Complete last commit.
33363         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33364
33365 2009-03-01  Bruno Haible  <bruno@clisp.org>
33366
33367         More support for FreeMiNT.
33368         * lib/fpurge.c (fpurge): Correct last commit.
33369         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33370
33371 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33372
33373         Fix unportable awk script in vc-list-files.
33374         * build-aux/vc-list-files: In the replacement awk script, use
33375         substr with a second argument of 1, not zero.
33376         Report by Simon Josefsson.
33377
33378 2009-02-28  Bruno Haible  <bruno@clisp.org>
33379
33380         More support for FreeMiNT.
33381         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33382         to FreeMiNT today.
33383         * lib/fwriting.c (fwriting): Likewise.
33384         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33385
33386 2009-02-28  Bruno Haible  <bruno@clisp.org>
33387
33388         * tests/test-freadseek.c (main): Disable test beyond end of file on
33389         FreeMiNT.
33390         * tests/test-ftello.c (main): Likewise.
33391         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33392
33393 2009-02-28  Bruno Haible  <bruno@clisp.org>
33394
33395         Add tentative support for FreeMiNT.
33396         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33397         * lib/fpurge.c (fpurge): Likewise.
33398         * lib/freadable.c (freadable): Likewise.
33399         * lib/freading.c (freading): Likewise.
33400         * lib/freadptr.c (freadptr): Likewise.
33401         * lib/freadseek.c (freadptrinc): Likewise.
33402         * lib/fseeko.c (rpl_fseeko): Likewise.
33403         * lib/fseterr.c (fseterr): Likewise.
33404         * lib/fwritable.c (fwritable): Likewise.
33405         * lib/fwriting.c (fwriting): Likewise.
33406         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33407         Hourihane.
33408         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33409
33410 2009-02-28  Bruno Haible  <bruno@clisp.org>
33411
33412         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33413         SIGCHLD.
33414         Reported by Jim Meyering.
33415
33416 2009-02-28  Bruno Haible  <bruno@clisp.org>
33417
33418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33419         Mention the results of these tests on various platforms.
33420         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33421         order.
33422         * doc/posix-functions/printf.texi: Likewise.
33423         * doc/posix-functions/snprintf.texi: Likewise.
33424         * doc/posix-functions/sprintf.texi: Likewise.
33425         * doc/posix-functions/vfprintf.texi: Likewise.
33426         * doc/posix-functions/vprintf.texi: Likewise.
33427         * doc/posix-functions/vsnprintf.texi: Likewise.
33428         * doc/posix-functions/vsprintf.texi: Likewise.
33429         * doc/glibc-functions/obstack_printf.texi: Likewise.
33430         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33431
33432 2009-02-28  Bruno Haible  <bruno@clisp.org>
33433
33434         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33435         Reported by Loïc Minier <lool@dooz.org>.
33436
33437 2009-02-27  Bruno Haible  <bruno@clisp.org>
33438
33439         * gnulib-tool (func_import): Make the sed expression used to create the
33440         sed script for updating the .gitignore file POSIX compliant.
33441         Reported by Eric Blake.
33442
33443 2009-02-27  Bruno Haible  <bruno@clisp.org>
33444
33445         * gnulib-tool (sed): Don't alias as "sed --posix".
33446         Reported by Eric Blake.
33447
33448 2009-02-27  Bruno Haible  <bruno@clisp.org>
33449
33450         Avoid test link errors.
33451         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33452         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33453         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33454         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33456
33457 2009-02-27  Bruno Haible  <bruno@clisp.org>
33458
33459         Avoid spurious "(cached)" in configure output.
33460         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33461         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33462         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33463         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33464         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33465         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33466         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33467         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33468         Reported by Eric Blake.
33469
33470 2009-02-27  Eric Blake  <ebb9@byu.net>
33471
33472         printf: fix regression in previous patch
33473         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33474
33475 2009-02-27  Bruno Haible  <bruno@clisp.org>
33476
33477         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33478         value.
33479         * lib/stdint.in.h: Likewise.
33480         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33481
33482 2009-02-27  Eric Blake  <ebb9@byu.net>
33483
33484         doc: mention more functions added in cygwin 1.7.0
33485         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33486         addition.
33487         * doc/posix-functions/open_wmemstream.texi: Likewise.
33488         * doc/posix-functions/wcsnlen.texi: Likewise.
33489         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33490         * doc/posix-functions/wcstod.texi: Likewise.
33491         * doc/posix-functions/wcstof.texi: Likewise.
33492         * doc/posix-functions/wcstoimax.texi: Likewise.
33493         * doc/posix-functions/wcstok.texi: Likewise.
33494         * doc/posix-functions/wcstoumax.texi: Likewise.
33495
33496         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33497         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33498         * doc/posix-functions/fprintf.texi: Update.
33499         * doc/posix-functions/printf.texi: Update.
33500         * doc/posix-functions/snprintf.texi: Update.
33501         * doc/posix-functions/sprintf.texi: Update.
33502         * doc/posix-functions/vfprintf.texi: Update.
33503         * doc/posix-functions/vprintf.texi: Update.
33504         * doc/posix-functions/vsnprintf.texi: Update.
33505         * doc/posix-functions/vsprintf.texi: Update.
33506         * doc/glibc-functions/obstack_printf.texi: Update.
33507         * doc/glibc-functions/obstack_vprintf.texi: Update.
33508
33509 2009-02-26  Eric Blake  <ebb9@byu.net>
33510
33511         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33512         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33513         compilation bug by using runtime conversion.
33514         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33515         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33516         * modules/ceill-tests (Files): Use nan.h.
33517         * modules/floorl-tests (Files): Likewise.
33518         * modules/frexpl-tests (Files): Likewise.
33519         * modules/isnanl-tests (Files): Likewise.
33520         * modules/ldexpl-tests (Files): Likewise.
33521         * modules/roundl-tests (Files): Likewise.
33522         * modules/truncl-tests (Files): Likewise.
33523         * tests/test-ceill.c (main): Use a working NaN.
33524         * tests/test-floorl.c (main): Likewise.
33525         * tests/test-frexpl.c (main): Likewise.
33526         * tests/test-isnan.c (test_long_double): Likewise.
33527         * tests/test-isnanl.h (main): Likewise.
33528         * tests/test-ldexpl.h (main): Likewise.
33529         * tests/test-roundl.h (main): Likewise.
33530         * tests/test-truncl.h (main): Likewise.
33531         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33532
33533 2009-02-26  Eric Blake  <ebb9@byu.net>
33534             Bruno Haible  <bruno@clisp.org>
33535
33536         Work around a *printf bug with %ls on Solaris.
33537         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33538         precision is specified, sprintf stops converting the wide string
33539         argument when the number of bytes that have been produced by this
33540         conversion equals or exceeds the precision.
33541         * doc/posix-functions/fprintf.texi: Update.
33542         * doc/posix-functions/printf.texi: Update.
33543         * doc/posix-functions/snprintf.texi: Update.
33544         * doc/posix-functions/sprintf.texi: Update.
33545         * doc/posix-functions/vfprintf.texi: Update.
33546         * doc/posix-functions/vprintf.texi: Update.
33547         * doc/posix-functions/vsnprintf.texi: Update.
33548         * doc/posix-functions/vsprintf.texi: Update.
33549         * doc/glibc-functions/obstack_printf.texi: Update.
33550         * doc/glibc-functions/obstack_vprintf.texi: Update.
33551
33552 2009-02-26  Eric Blake  <ebb9@byu.net>
33553
33554         stdlib: favor compiler check of random.h
33555         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33556         to avoid an ObjC random.h installed by Swarm.
33557
33558 2009-02-26  Bruno Haible  <bruno@clisp.org>
33559
33560         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33561         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33562         Reported by Gary V. Vaughan <gary@gnu.org>.
33563
33564 2009-02-26  Bruno Haible  <bruno@clisp.org>
33565
33566         Fix *printf behaviour regarding the %ls directive.
33567         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33568         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33569         NEED_PRINTF_DIRECTIVE_LS.
33570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33571         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33572         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33573         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33574         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33575         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33576         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33577         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33578         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33579         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33580         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33581         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33582         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33583         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33584         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33585         * doc/posix-functions/fprintf.texi: Update.
33586         * doc/posix-functions/printf.texi: Update.
33587         * doc/posix-functions/snprintf.texi: Update.
33588         * doc/posix-functions/sprintf.texi: Update.
33589         * doc/posix-functions/vfprintf.texi: Update.
33590         * doc/posix-functions/vprintf.texi: Update.
33591         * doc/posix-functions/vsnprintf.texi: Update.
33592         * doc/posix-functions/vsprintf.texi: Update.
33593         * doc/glibc-functions/obstack_printf.texi: Update.
33594         * doc/glibc-functions/obstack_vprintf.texi: Update.
33595         Reported by Eric Blake.
33596
33597 2009-02-25  Bruno Haible  <bruno@clisp.org>
33598
33599         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33600         with known value.
33601         Reported by Gary V. Vaughan <gary@gnu.org>.
33602
33603 2009-02-25  Bruno Haible  <bruno@clisp.org>
33604
33605         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33606         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33607         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33608         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33609         Reported by Gary V. Vaughan <gary@gnu.org>.
33610
33611 2009-02-25  Bruno Haible  <bruno@clisp.org>
33612
33613         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33614         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33615         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33616         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33617         Reported by Gary V. Vaughan <gary@gnu.org>.
33618
33619 2009-02-25  Eric Blake  <ebb9@byu.net>
33620
33621         tests: skip fseek/ftell tests if ungetc is broken
33622         * m4/ungetc.m4: New file.
33623         * modules/fseek-tests: Split test, so ungetc dependency is
33624         separate from rest of test.
33625         * modules/fseeko-tests: Likewise.
33626         * modules/ftell-tests: Likewise.
33627         * modules/ftello-tests: Likewise.
33628         * tests/test-fseek.c (main): Isolate ungetc dependency.
33629         * tests/test-fseeko.c (main): Likewise.
33630         * tests/test-ftell.c (main): Likewise.
33631         * tests/test-ftello.c (main): Likewise.
33632         * tests/test-fseek2.sh: New file.
33633         * tests/test-fseeko2.sh: Likewise.
33634         * tests/test-ftell2.sh: Likewise.
33635         * tests/test-ftello2.sh: Likewise.
33636
33637 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33638
33639         test-getaddrinfo: fix usage of skip return code 77
33640         * tests/test-gettaddrinfo.c: Return skip code 77 only
33641         for first occurance of skip (4x77 is not 77)
33642
33643 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33644
33645         strtod: avoid C99 decl-after-statement
33646         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33647
33648 2009-02-24  Eric Blake  <ebb9@byu.net>
33649
33650         strtod: detect HP-UX 11.31 bug
33651         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33652         Reported by Gary V. Vaughan.
33653
33654 2009-02-23  Bruno Haible  <bruno@clisp.org>
33655
33656         Fix invalid read past end of memory block.
33657         * lib/vasnprintf.c (DCHAR_SET): Define.
33658         (local_wcslen): Define only when needed.
33659         (local_strnlen, local_wcsnlen): New functions.
33660         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33661         directives that involve a conversion ourselves.
33662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33663         wcsnlen, mbrtowc, wcrtomb.
33664         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33665         * tests/test-vasprintf-posix.c (test_function): Likewise.
33666         * tests/test-snprintf-posix.h (test_function): Likewise.
33667         * tests/test-sprintf-posix.h (test_function): Likewise.
33668         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33669
33670 2009-02-22  Bruno Haible  <bruno@clisp.org>
33671
33672         Implement new clarified decomposition of Hangul syllables.
33673         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33674         of type LTV, return only a pairwise decomposition.
33675         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33676         Likewise.
33677         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33678         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33679         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33680
33681 2009-02-22  Bruno Haible  <bruno@clisp.org>
33682
33683         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33684         zero-length results and shrink excess allocated memory.
33685         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33686         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33687         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33688         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33689         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33690         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33691         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33692         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33693         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33694         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33695         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33696         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33697
33698 2009-02-21  Bruno Haible  <bruno@clisp.org>
33699
33700         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33701         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33702         spaces after a period. Put a space between a macro name and its
33703         argument list. Trivial rewordings.
33704         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33705         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33706         (main): Return 0 explicitly.
33707
33708 2009-02-21  Bruno Haible  <bruno@clisp.org>
33709
33710         Tests for module 'uninorm/filter'.
33711         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33712         * modules/uninorm/filter-tests: New file.
33713
33714         New module 'uninorm/filter'.
33715         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33716         uninorm_filter_flush, uninorm_filter_free): New declarations.
33717         * lib/uninorm/uninorm-filter.c: New file.
33718         * modules/uninorm/filter: New file.
33719
33720 2009-02-21  Bruno Haible  <bruno@clisp.org>
33721
33722         Tests for module 'uninorm/nfkc'.
33723         * tests/uninorm/test-nfkc.c: New file.
33724         * tests/uninorm/test-u8-nfkc.c: New file.
33725         * tests/uninorm/test-u16-nfkc.c: New file.
33726         * tests/uninorm/test-u32-nfkc.c: New file.
33727         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33728         * tests/uninorm/test-u32-nfkc-big.c: New file.
33729         * modules/uninorm/nfkc-tests: New file.
33730
33731         New module 'uninorm/nfkc'.
33732         * lib/uninorm/nfkc.c: New file.
33733         * modules/uninorm/nfkc: New file.
33734
33735         Tests for module 'uninorm/nfkd'.
33736         * tests/uninorm/test-nfkd.c: New file.
33737         * tests/uninorm/test-u8-nfkd.c: New file.
33738         * tests/uninorm/test-u16-nfkd.c: New file.
33739         * tests/uninorm/test-u32-nfkd.c: New file.
33740         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33741         * tests/uninorm/test-u32-nfkd-big.c: New file.
33742         * modules/uninorm/nfkd-tests: New file.
33743
33744         New module 'uninorm/nfkd'.
33745         * lib/uninorm/nfkd.c: New file.
33746         * modules/uninorm/nfkd: New file.
33747
33748         Tests for module 'uninorm/nfc'.
33749         * tests/uninorm/test-nfc.c: New file.
33750         * tests/uninorm/test-u8-nfc.c: New file.
33751         * tests/uninorm/test-u16-nfc.c: New file.
33752         * tests/uninorm/test-u32-nfc.c: New file.
33753         * tests/uninorm/test-u32-nfc-big.sh: New file.
33754         * tests/uninorm/test-u32-nfc-big.c: New file.
33755         * modules/uninorm/nfc-tests: New file.
33756
33757         New module 'uninorm/nfc'.
33758         * lib/uninorm/nfc.c: New file.
33759         * modules/uninorm/nfc: New file.
33760
33761         Tests for module 'uninorm/nfd'.
33762         * tests/uninorm/test-nfd.c: New file.
33763         * tests/uninorm/test-u8-nfd.c: New file.
33764         * tests/uninorm/test-u16-nfd.c: New file.
33765         * tests/uninorm/test-u32-nfd.c: New file.
33766         * tests/uninorm/test-u32-nfd-big.sh: New file.
33767         * tests/uninorm/test-u32-nfd-big.c: New file.
33768         * tests/uninorm/test-u32-normalize-big.h: New file.
33769         * tests/uninorm/test-u32-normalize-big.c: New file.
33770         * tests/uninorm/NormalizationTest.txt: New file, created from
33771         Unicode 5.1.0 NormalizationTest.txt.
33772         * modules/uninorm/nfd-tests: New file.
33773
33774         New module 'uninorm/nfd'.
33775         * lib/uninorm/nfd.c: New file.
33776         * modules/uninorm/nfd: New file.
33777
33778         New module 'uninorm/u32-normalize'.
33779         * lib/uninorm/u32-normalize.c: New file.
33780         * modules/uninorm/u32-normalize: New file.
33781
33782         New module 'uninorm/u16-normalize'.
33783         * lib/uninorm/u16-normalize.c: New file.
33784         * modules/uninorm/u16-normalize: New file.
33785
33786         New module 'uninorm/u8-normalize'.
33787         * lib/uninorm/u8-normalize.c: New file.
33788         * lib/uninorm/normalize-internal.h: New file.
33789         * lib/uninorm/u-normalize-internal.h: New file.
33790         * modules/uninorm/u8-normalize: New file.
33791
33792         New module 'uninorm/decompose-internal'.
33793         * lib/uninorm/decompose-internal.c: New file.
33794         * modules/uninorm/decompose-internal: New file.
33795
33796         Tests for module 'uninorm/composition'.
33797         * tests/uninorm/test-composition.c: New file.
33798         * modules/uninorm/composition-tests: New file.
33799
33800         New module 'uninorm/composition'.
33801         * lib/uninorm/composition.c: New file.
33802         * lib/uninorm/composition-table.gperf: New file, generated by
33803         gen-uni-tables.
33804         * modules/uninorm/composition: New file.
33805
33806         Tests for module 'uninorm/compat-decomposition'.
33807         * tests/uninorm/test-compat-decomposition.c: New file.
33808         * modules/uninorm/compat-decomposition-tests: New file.
33809
33810         New module 'uninorm/compat-decomposition'.
33811         * lib/uninorm/decompose-internal.h: New file.
33812         * lib/uninorm/compat-decomposition.c: New file.
33813         * modules/uninorm/compat-decomposition: New file.
33814
33815         Tests for module 'uninorm/canonical-decomposition'.
33816         * tests/uninorm/test-canonical-decomposition.c: New file.
33817         * modules/uninorm/canonical-decomposition-tests: New file.
33818
33819         New module 'uninorm/canonical-decomposition'.
33820         * lib/uninorm/canonical-decomposition.c: New file.
33821         * modules/uninorm/canonical-decomposition: New file.
33822
33823         Tests for module 'uninorm/decomposition'.
33824         * tests/uninorm/test-decomposition.c: New file.
33825         * modules/uninorm/decomposition-tests: New file.
33826
33827         New module 'uninorm/decomposition'.
33828         * lib/uninorm/decomposition.c: New file.
33829         * modules/uninorm/decomposition: New file.
33830
33831         New module 'uninorm/decomposition-table'.
33832         * lib/uninorm/decomposition-table.h: New file.
33833         * lib/uninorm/decomposition-table.c: New file.
33834         * lib/uninorm/decomposition-table1.h: New file, generated by
33835         gen-uni-tables.
33836         * lib/uninorm/decomposition-table2.h: New file, generated by
33837         gen-uni-tables.
33838         * modules/uninorm/decomposition-table: New file.
33839
33840         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33841         (UC_DECOMP_*): New enumeration items.
33842         (get_decomposition): New function.
33843         (struct decomp_table): New type.
33844         (output_decomposition, output_decomposition_tables): New functions.
33845         (unicode_composition_exclusions): New variable.
33846         (fill_composition_exclusions, debug_output_composition_tables): New
33847         functions.
33848         (main): Accept one more argument. Invoke fill_composition_exclusions.
33849         Output decomposition and composition tables.
33850
33851         New module 'uninorm/base'.
33852         * lib/uninorm.h: New file.
33853         * lib/unictype.h: Update comment.
33854         * modules/uninorm/base: New file.
33855
33856 2009-02-21  David Lutterkort  <lutter@redhat.com>
33857
33858         Tests for module 'safe-alloc'.
33859         * tests/test-safe-alloc.c: New file.
33860         * modules/safe-alloc-tests: New file.
33861
33862         New module 'safe-alloc'.
33863         * lib/safe-alloc.h: New file.
33864         * lib/safe-alloc.c: New file.
33865         * m4/safe-alloc.m4: New file.
33866         * modules/safe-alloc: New file.
33867         * doc/safe-alloc.texi: New file.
33868         * doc/gnulib.texi: Include it.
33869         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33870         safe-alloc.
33871
33872 2009-02-18  Bruno Haible  <bruno@clisp.org>
33873
33874         Fix link error on non-glibc systems.
33875         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33876         variable.
33877         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33878
33879 2009-02-18  Jim Meyering  <meyering@redhat.com>
33880
33881         fts: avoid used-uninitialized error due to recent change
33882         * lib/fts.c (fts_read): Guard uses of the new member,
33883         parent->fts_n_dirs_remaining, since it's not relevant for
33884         the parent of a directory specified on the command-line.
33885
33886 2009-02-17  James Youngman  <jay@gnu.org>
33887             Bruno Haible  <bruno@clisp.org>
33888
33889         * m4/include_next.m4: Reformulate comment.
33890
33891 2009-02-16  Jim Meyering  <meyering@redhat.com>
33892
33893         fts: add #if guards so that the fts_lgpl module still builds
33894         * lib/fts.c: Guard just-added hash-table-using parts with
33895         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33896         Reported by Simon Josefsson.
33897
33898 2009-02-15  Bruno Haible  <bruno@clisp.org>
33899
33900         * modules/array-mergesort-tests: New file.
33901         * tests/test-array-mergesort.c: New file.
33902
33903         New module 'array-mergesort'.
33904         * modules/array-mergesort: New file.
33905         * lib/array-mergesort.h: New file.
33906
33907 2009-02-15  Bruno Haible  <bruno@clisp.org>
33908
33909         Fix 2009-02-07 commit.
33910         * lib/gen-uni-tables.c (output_predicate, output_category,
33911         output_combclass, output_bidi_category, output_decimal_digit,
33912         output_digit, output_numeric, output_mirror, output_scripts,
33913         output_ident_category, output_simple_mapping): Fix format directives.
33914         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33915
33916 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33917
33918         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33919         fixes are available from IBM.
33920
33921 2009-02-13  Jim Meyering  <meyering@redhat.com>
33922
33923         fts: arrange not to stat non-directories in more cases
33924         This makes GNU find (when it doesn't need to stat each file)
33925         *much* more efficient at traversing reiserfs file systems.
33926         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33927         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33928         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33929         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33930         (leaf_optimization_applies): New function.
33931         (LCO_hash, LCO_compare): New helper functions.
33932         (link_count_optimize_ok): New function.
33933         (fts_stat): Initialize new member (if dir).
33934         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33935         we've just stat'ed a directory.  Skip the stat call when possible.
33936         ---
33937         Note this AFS-related exchange:
33938         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33939         and note find's pioctl call in find/fstype.c.
33940         But that is necessary only if you want to enable the
33941         optimization for AFS, and for now, I don't.
33942
33943         fts: move a function definition "up" (no semantic change)
33944         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33945         "up" to precede upcoming use of a related function.
33946
33947 2009-02-11  Jim Meyering  <meyering@redhat.com>
33948
33949         fts: correct internal computation of nlinks (optimization-related)
33950         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33951         whether the current entry is a directory, so don't test it.
33952
33953 2009-02-10  Bruno Haible  <bruno@clisp.org>
33954
33955         Tests for module 'uniwbrk/ulc-wordbreaks'.
33956         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33957         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33958         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33959
33960         Tests for module 'uniwbrk/u32-wordbreaks'.
33961         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33962         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33963
33964         Tests for module 'uniwbrk/u16-wordbreaks'.
33965         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33966         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33967
33968         Tests for module 'uniwbrk/u8-wordbreaks'.
33969         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33970         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33971
33972 2009-02-10  Bruno Haible  <bruno@clisp.org>
33973
33974         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33975         property.
33976         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33977         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33978         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33979
33980 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33981
33982         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33983         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33984
33985 2009-02-10  Bruno Haible  <bruno@clisp.org>
33986
33987         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33988         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33989         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33990         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33991         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33992         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33993
33994 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33995
33996         * lib/sockets.h (gl_fd_to_handle): New function.
33997
33998         * tests/test-sockets.c: Call gl_fd_to_handle.
33999
34000 2009-02-09  Bruno Haible  <bruno@clisp.org>
34001
34002         * doc/havelib.texi: Document the conventions on bi-arch systems.
34003
34004 2009-02-08  Bruno Haible  <bruno@clisp.org>
34005
34006         Document the AC_LIB_LINKFLAGS macro.
34007         * doc/havelib.texi: New file, mostly written on 2005-05-24.
34008         * doc/gnulib.texi: Include it.
34009
34010 2009-02-08  Bruno Haible  <bruno@clisp.org>
34011
34012         Fix wrong order of sections, compared to TOC.
34013         * doc/gnulib.texi: Include relocatable-maint.texi after the
34014         "Regular expressions" node, not before.
34015
34016 2009-02-08  Bruno Haible  <bruno@clisp.org>
34017
34018         Tests for module 'unicase/totitle'.
34019         * modules/unicase/totitle-tests: New file.
34020
34021         Tests for module 'unicase/tolower'.
34022         * modules/unicase/tolower-tests: New file.
34023
34024         Tests for module 'unicase/toupper'.
34025         * modules/unicase/toupper-tests: New file.
34026         * tests/unicase/test-mapping-part1.h: New file.
34027         * tests/unicase/test-mapping-part2.h: New file.
34028
34029         New module 'unicase/totitle'.
34030         * modules/unicase/totitle: New file.
34031         * lib/unicase/totitle.c: New file.
34032
34033         New module 'unicase/tolower'.
34034         * modules/unicase/tolower: New file.
34035         * lib/unicase/tolower.c: New file.
34036
34037         New module 'unicase/toupper'.
34038         * modules/unicase/toupper: New file.
34039         * lib/unicase/toupper.c: New file.
34040         * lib/unicase/simple-mapping.h: New file.
34041
34042         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
34043         (mapping_table): New structure.
34044         (output_simple_mapping): New function.
34045         (main): Invoke output_simple_mapping_test and output_simple_mapping.
34046         * modules/gen-uni-tables (Description): Update.
34047         * lib/unicase/toupper.h: New file, automatically generated by
34048         gen-uni-tables.
34049         * lib/unicase/tolower.h: New file, automatically generated by
34050         gen-uni-tables.
34051         * lib/unicase/totitle.h: New file, automatically generated by
34052         gen-uni-tables.
34053         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
34054         gen-uni-tables.
34055         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
34056         gen-uni-tables.
34057         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
34058         gen-uni-tables.
34059
34060         New module 'unicase/base'.
34061         * modules/unicase/base: New file.
34062         * lib/unicase.h: New file.
34063
34064 2009-02-08  Bruno Haible  <bruno@clisp.org>
34065
34066         New module 'uniwbrk/ulc-wordbreaks'.
34067         * modules/uniwbrk/ulc-wordbreaks: New file.
34068         * lib/uniwbrk/ulc-wordbreaks.c: New file.
34069
34070         New module 'uniwbrk/u32-wordbreaks'.
34071         * modules/uniwbrk/u32-wordbreaks: New file.
34072         * lib/uniwbrk/u32-wordbreaks.c: New file.
34073
34074         New module 'uniwbrk/u16-wordbreaks'.
34075         * modules/uniwbrk/u16-wordbreaks: New file.
34076         * lib/uniwbrk/u16-wordbreaks.c: New file.
34077
34078         New module 'uniwbrk/u8-wordbreaks'.
34079         * modules/uniwbrk/u8-wordbreaks: New file.
34080         * lib/uniwbrk/u8-wordbreaks.c: New file.
34081         * lib/uniwbrk/u-wordbreaks.h: New file.
34082
34083         New module 'uniwbrk/table'.
34084         * modules/uniwbrk/table: New file.
34085         * lib/uniwbrk/wbrktable.h: New file.
34086         * lib/uniwbrk/wbrktable.c: New file.
34087
34088         New module 'uniwbrk/wordbreak-property'.
34089         * modules/uniwbrk/wordbreak-property: New file.
34090         * lib/uniwbrk/wordbreak-property.c: New file.
34091
34092         * lib/gen-uni-tables.c (WBP_*): New enum items.
34093         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
34094         (unicode_org_wbp): New variable.
34095         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
34096         New functions.
34097         (wbp_table): New structure.
34098         (output_wbp, output_wbrk_tables): New functions.
34099         (main): Accept additional argument. Invoke fill_org_wbp,
34100         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
34101         output_wbrk_tables.
34102         * modules/gen-uni-tables (Description): Update.
34103         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
34104         gen-uni-tables.
34105
34106         New module 'uniwbrk/base'.
34107         * modules/uniwbrk/base: New file.
34108         * lib/uniwbrk.h: New file.
34109
34110 2009-02-08  Bruno Haible  <bruno@clisp.org>
34111
34112         Update to Unicode 5.1.0.
34113         * lib/gen-uni-tables.c (is_property_alphabetic): Include
34114         U+2185..U+2188.
34115         (is_property_default_ignorable_code_point): Don't include characters
34116         of category Cc or Cs and not-a-characters.
34117         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
34118         U+0D79, U+109E, U+109F, U+A60C.
34119         * lib/unictype/bidi_of.h: Regenerated.
34120         * lib/unictype/blocks.h: Regenerated.
34121         * lib/unictype/categ_C.h: Regenerated.
34122         * lib/unictype/categ_Cf.h: Regenerated.
34123         * lib/unictype/categ_Cn.h: Regenerated.
34124         * lib/unictype/categ_L.h: Regenerated.
34125         * lib/unictype/categ_Ll.h: Regenerated.
34126         * lib/unictype/categ_Lm.h: Regenerated.
34127         * lib/unictype/categ_Lo.h: Regenerated.
34128         * lib/unictype/categ_Lu.h: Regenerated.
34129         * lib/unictype/categ_M.h: Regenerated.
34130         * lib/unictype/categ_Mc.h: Regenerated.
34131         * lib/unictype/categ_Me.h: Regenerated.
34132         * lib/unictype/categ_Mn.h: Regenerated.
34133         * lib/unictype/categ_N.h: Regenerated.
34134         * lib/unictype/categ_Nd.h: Regenerated.
34135         * lib/unictype/categ_Nl.h: Regenerated.
34136         * lib/unictype/categ_No.h: Regenerated.
34137         * lib/unictype/categ_P.h: Regenerated.
34138         * lib/unictype/categ_Pd.h: Regenerated.
34139         * lib/unictype/categ_Pe.h: Regenerated.
34140         * lib/unictype/categ_Pf.h: Regenerated.
34141         * lib/unictype/categ_Pi.h: Regenerated.
34142         * lib/unictype/categ_Po.h: Regenerated.
34143         * lib/unictype/categ_Ps.h: Regenerated.
34144         * lib/unictype/categ_S.h: Regenerated.
34145         * lib/unictype/categ_Sk.h: Regenerated.
34146         * lib/unictype/categ_Sm.h: Regenerated.
34147         * lib/unictype/categ_So.h: Regenerated.
34148         * lib/unictype/categ_of.h: Regenerated.
34149         * lib/unictype/combining.h: Regenerated.
34150         * lib/unictype/ctype_alnum.h: Regenerated.
34151         * lib/unictype/ctype_alpha.h: Regenerated.
34152         * lib/unictype/ctype_graph.h: Regenerated.
34153         * lib/unictype/ctype_lower.h: Regenerated.
34154         * lib/unictype/ctype_print.h: Regenerated.
34155         * lib/unictype/ctype_punct.h: Regenerated.
34156         * lib/unictype/ctype_upper.h: Regenerated.
34157         * lib/unictype/decdigit.h: Regenerated.
34158         * lib/unictype/digit.h: Regenerated.
34159         * lib/unictype/mirror.h: Regenerated.
34160         * lib/unictype/numeric.h: Regenerated.
34161         * lib/unictype/pr_alphabetic.h: Regenerated.
34162         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
34163         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
34164         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
34165         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
34166         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
34167         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
34168         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
34169         * lib/unictype/pr_combining.h: Regenerated.
34170         * lib/unictype/pr_dash.h: Regenerated.
34171         * lib/unictype/pr_decimal_digit.h: Regenerated.
34172         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
34173         * lib/unictype/pr_deprecated.h: Regenerated.
34174         * lib/unictype/pr_diacritic.h: Regenerated.
34175         * lib/unictype/pr_extender.h: Regenerated.
34176         * lib/unictype/pr_format_control.h: Regenerated.
34177         * lib/unictype/pr_grapheme_base.h: Regenerated.
34178         * lib/unictype/pr_grapheme_extend.h: Regenerated.
34179         * lib/unictype/pr_grapheme_link.h: Regenerated.
34180         * lib/unictype/pr_id_continue.h: Regenerated.
34181         * lib/unictype/pr_id_start.h: Regenerated.
34182         * lib/unictype/pr_ideographic.h: Regenerated.
34183         * lib/unictype/pr_ignorable_control.h: Regenerated.
34184         * lib/unictype/pr_lowercase.h: Regenerated.
34185         * lib/unictype/pr_math.h: Regenerated.
34186         * lib/unictype/pr_numeric.h: Regenerated.
34187         * lib/unictype/pr_other_alphabetic.h: Regenerated.
34188         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
34189         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
34190         * lib/unictype/pr_other_id_continue.h: Regenerated.
34191         * lib/unictype/pr_other_lowercase.h: Regenerated.
34192         * lib/unictype/pr_other_math.h: Regenerated.
34193         * lib/unictype/pr_punctuation.h: Regenerated.
34194         * lib/unictype/pr_sentence_terminal.h: Regenerated.
34195         * lib/unictype/pr_soft_dotted.h: Regenerated.
34196         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
34197         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
34198         * lib/unictype/pr_unified_ideograph.h: Regenerated.
34199         * lib/unictype/pr_uppercase.h: Regenerated.
34200         * lib/unictype/pr_xid_continue.h: Regenerated.
34201         * lib/unictype/pr_xid_start.h: Regenerated.
34202         * lib/unictype/pr_zero_width.h: Regenerated.
34203         * lib/unictype/scripts.h: Regenerated.
34204         * lib/unictype/scripts_byname.gperf: Regenerated.
34205         * lib/unictype/sy_java_ident.h: Regenerated.
34206         * lib/unilbrk/lbrkprop1.h: Regenerated.
34207         * lib/unilbrk/lbrkprop2.h: Regenerated.
34208         * tests/unictype/test-categ_C.c: Regenerated.
34209         * tests/unictype/test-categ_Cf.c: Regenerated.
34210         * tests/unictype/test-categ_Cn.c: Regenerated.
34211         * tests/unictype/test-categ_L.c: Regenerated.
34212         * tests/unictype/test-categ_Ll.c: Regenerated.
34213         * tests/unictype/test-categ_Lm.c: Regenerated.
34214         * tests/unictype/test-categ_Lo.c: Regenerated.
34215         * tests/unictype/test-categ_Lu.c: Regenerated.
34216         * tests/unictype/test-categ_M.c: Regenerated.
34217         * tests/unictype/test-categ_Mc.c: Regenerated.
34218         * tests/unictype/test-categ_Me.c: Regenerated.
34219         * tests/unictype/test-categ_Mn.c: Regenerated.
34220         * tests/unictype/test-categ_N.c: Regenerated.
34221         * tests/unictype/test-categ_Nd.c: Regenerated.
34222         * tests/unictype/test-categ_Nl.c: Regenerated.
34223         * tests/unictype/test-categ_No.c: Regenerated.
34224         * tests/unictype/test-categ_P.c: Regenerated.
34225         * tests/unictype/test-categ_Pd.c: Regenerated.
34226         * tests/unictype/test-categ_Pe.c: Regenerated.
34227         * tests/unictype/test-categ_Pf.c: Regenerated.
34228         * tests/unictype/test-categ_Pi.c: Regenerated.
34229         * tests/unictype/test-categ_Po.c: Regenerated.
34230         * tests/unictype/test-categ_Ps.c: Regenerated.
34231         * tests/unictype/test-categ_S.c: Regenerated.
34232         * tests/unictype/test-categ_Sk.c: Regenerated.
34233         * tests/unictype/test-categ_Sm.c: Regenerated.
34234         * tests/unictype/test-categ_So.c: Regenerated.
34235         * tests/unictype/test-ctype_alnum.c: Regenerated.
34236         * tests/unictype/test-ctype_alpha.c: Regenerated.
34237         * tests/unictype/test-ctype_graph.c: Regenerated.
34238         * tests/unictype/test-ctype_lower.c: Regenerated.
34239         * tests/unictype/test-ctype_print.c: Regenerated.
34240         * tests/unictype/test-ctype_punct.c: Regenerated.
34241         * tests/unictype/test-ctype_upper.c: Regenerated.
34242         * tests/unictype/test-decdigit.h: Regenerated.
34243         * tests/unictype/test-digit.h: Regenerated.
34244         * tests/unictype/test-numeric.h: Regenerated.
34245         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34246         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34247         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34248         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34249         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34250         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34251         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34252         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34253         * tests/unictype/test-pr_combining.c: Regenerated.
34254         * tests/unictype/test-pr_dash.c: Regenerated.
34255         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34256         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34257         * tests/unictype/test-pr_deprecated.c: Regenerated.
34258         * tests/unictype/test-pr_diacritic.c: Regenerated.
34259         * tests/unictype/test-pr_extender.c: Regenerated.
34260         * tests/unictype/test-pr_format_control.c: Regenerated.
34261         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34262         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34263         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34264         * tests/unictype/test-pr_id_continue.c: Regenerated.
34265         * tests/unictype/test-pr_id_start.c: Regenerated.
34266         * tests/unictype/test-pr_ideographic.c: Regenerated.
34267         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34268         * tests/unictype/test-pr_lowercase.c: Regenerated.
34269         * tests/unictype/test-pr_math.c: Regenerated.
34270         * tests/unictype/test-pr_numeric.c: Regenerated.
34271         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34272         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34273         Regenerated.
34274         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34275         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34276         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34277         * tests/unictype/test-pr_other_math.c: Regenerated.
34278         * tests/unictype/test-pr_punctuation.c: Regenerated.
34279         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34280         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34281         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34282         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34283         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34284         * tests/unictype/test-pr_uppercase.c: Regenerated.
34285         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34286         * tests/unictype/test-pr_xid_start.c: Regenerated.
34287         * tests/unictype/test-pr_zero_width.c: Regenerated.
34288
34289         Update to Unicode 5.1.0.
34290         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34291         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34292         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34293         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34294         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34295         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34296         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34297         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34298         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34299         (nonspacing_table_ind): Update.
34300         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34301
34302         Update to Unicode 5.1.0.
34303         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34304         code transform.
34305         * lib/uniname/uniname.c (unicode_character_name,
34306         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34307         * lib/uniname/uninames.h: Regenerated.
34308         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34309
34310 2009-02-07  Bruno Haible  <bruno@clisp.org>
34311
34312         Merge gen-ctype and gen-lbrk into a single program.
34313         * lib/gen-uni-tables.c: New file, incorporating
34314         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34315         Add directory prefixes to the names of the generated files.
34316         * lib/unictype/gen-ctype.c: Remove file.
34317         * lib/unilbrk/gen-lbrk.c: Remove file.
34318         * modules/gen-uni-tables: New file.
34319         * modules/unictype/gen-ctype: Remove file.
34320         * modules/unilbrk/gen-lbrk: Remove file.
34321
34322 2009-02-07  Bruno Haible  <bruno@clisp.org>
34323
34324         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34325
34326         New module 'unistr/u32-strcoll'.
34327         * modules/unistr/u32-strcoll: New file.
34328         * lib/unistr/u32-strcoll.c: New file.
34329
34330         New module 'unistr/u16-strcoll'.
34331         * modules/unistr/u16-strcoll: New file.
34332         * lib/unistr/u16-strcoll.c: New file.
34333
34334         New module 'unistr/u8-strcoll'.
34335         * modules/unistr/u8-strcoll: New file.
34336         * lib/unistr/u8-strcoll.c: New file.
34337         * lib/unistr/u-strcoll.h: New file.
34338
34339 2009-02-07  Bruno Haible  <bruno@clisp.org>
34340
34341         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34342         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34343         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34344         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34345         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34346         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34347
34348 2009-02-07  Bruno Haible  <bruno@clisp.org>
34349
34350         Make 64-bit clean.
34351         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34352         output_combclass, output_bidi_category, output_decimal_digit,
34353         output_digit, output_numeric, output_mirror, output_scripts,
34354         output_ident_category): Use proper width specifier in format strings.
34355
34356 2009-02-07  Bruno Haible  <bruno@clisp.org>
34357
34358         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34359         failure behaviour.
34360
34361 2009-02-07  Jim Meyering  <meyering@redhat.com>
34362
34363         regex: avoid compilation failure with upcoming gcc-4.4
34364         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34365         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34366         "... error: integer overflow in preprocessor expression".
34367
34368 2009-02-05  Ben Pfaff  <blp@gnu.org>
34369
34370         Fix link errors on Windows when close module is used.
34371         * modules/close: Add $(LIB_CLOSE) to Link section.
34372         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34373         $(LIB_CLOSE) on Windows.
34374
34375 2009-02-05  Jim Meyering  <meyering@redhat.com>
34376
34377         still avoid unused-parameter warnings, but do it cleanly
34378         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34379         (get_fs_usage): Cast to void instead.
34380         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34381         (dev_from_mount_options, read_file_system_list): Cast to void.
34382         Prompted by Bruno Haible.
34383
34384 2009-02-04  Jim Meyering  <meyering@redhat.com>
34385
34386         fsusage.c: correct copyright year
34387         * lib/fsusage.c: Reflect year in which the change is pushed into
34388
34389         avoid misc. warnings
34390         * lib/fsusage.c (UNUSED_PARAM): Define.
34391         (get_fs_usage): Mark parameter "disk" as unused.
34392         * lib/getugroups.c (getgrent): Use "void" in prototype.
34393         * lib/mountlist.c: Mark unused parameters.
34394         (read_file_system_list): Declare a local with "const".
34395         * lib/nanosleep.c (getnow): Declare static.
34396         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34397
34398         dirfd: set errno upon failure
34399         * lib/dirfd.c: Include <errno.h>.
34400         Set errno to ENOTSUP when returning -1.
34401         * modules/dirfd (Depends-on): Add errno.
34402         Suggested by John Kodis <kodis@comcast.net>.
34403
34404 2009-02-01  Bruno Haible  <bruno@clisp.org>
34405
34406         Don't assume sizeof (long) >= sizeof (void *).
34407         * lib/memcmp.c: Include stdint.h.
34408         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34409         srcp2 to 'const byte *'.
34410         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34411         types to uintptr_t.
34412         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34413         * modules/memcmp (Depends-on): Add stdint.
34414         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34415
34416 2009-01-30  Eric Blake  <ebb9@byu.net>
34417
34418         fix more require-before-expand issues
34419         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34420         expand, AC_PROG_AWK.
34421         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34422
34423 2009-01-28  Eric Blake  <ebb9@byu.net>
34424
34425         version-etc: use consistent URL formatting
34426         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34427         Improve formatting.  Use fputs for string without %.
34428
34429 2009-01-28  Jim Meyering  <meyering@redhat.com>
34430
34431         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34432         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34433         "underquoted definition of NAME" from autoconf-2.59.
34434
34435 2009-01-28  Bruno Haible  <bruno@clisp.org>
34436
34437         * doc/gnulib.texi: Add "Obsolete modules" to index.
34438
34439 2009-01-28  Jim Meyering  <meyering@redhat.com>
34440
34441         useless-if-before-free: recognize more variants
34442         * build-aux/useless-if-before-free: Also recognize e.g.,
34443         if (NULL != p) free (p);
34444
34445 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34446
34447         test-getaddrinfo: skip (don't fail) this test when there's no network
34448         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34449         on the presumption that it means you lack network access.
34450
34451 2009-01-26  Jim Meyering  <meyering@redhat.com>
34452
34453         fflush: avoid warnings on modern systems
34454         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34455         pos and result, into scopes where they're used.
34456
34457 2009-01-26  Eric Blake  <ebb9@byu.net>
34458
34459         Silence warning reintroduced by recent extensions patch.
34460         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34461         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34462         autoconf.
34463
34464         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34465         * m4/00gnulib.m4: New file.
34466         * gnulib-tool (func_get_filelist): Always use it.
34467         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34468         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34469
34470 2009-01-25  Bruno Haible  <bruno@clisp.org>
34471
34472         Make test-quotearg work on MacOS X and AIX.
34473         * tests/test-quotearg.sh: New file.
34474         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34475         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34476         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34477         include <libintl.h>.
34478         (fake_locale): Remove variable.
34479         (gettext, dgettext, dcgettext): Remove functions.
34480         (main): Instead of setting a fake locale, set a real locale. Call
34481         textdomain and bindtextdomain.
34482         * modules/quotearg-tests (Files): Add the new files.
34483         (Depends-on): Add gettext, setenv, unsetenv.
34484         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34485         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34486         Augment TESTS_ENVIRONMENT.
34487
34488 2009-01-25  Bruno Haible  <bruno@clisp.org>
34489
34490         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34491         fr_FR.ISO8859-1 locale on MacOS X.
34492         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34493         ja_JP.eucJP locale on MacOS X.
34494         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34495         zh_CN.GB18030 locale on MacOS X.
34496
34497 2009-01-25  Bruno Haible  <bruno@clisp.org>
34498
34499         Avoid link errors on MacOS X 10.3.
34500         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34501         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34502
34503 2009-01-25  Bruno Haible  <bruno@clisp.org>
34504
34505         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34506         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34507         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34508         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34509         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34510         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34511         posix_spawnattr_init, posix_spawnattr_setsigmask,
34512         posix_spawnattr_setflags, posix_spawnattr_destroy.
34513
34514         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34515         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34516         * modules/execute (Files): Remove m4/posix_spawn.m4.
34517         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34518         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34519         posix_spawnattr_init, posix_spawnattr_setsigmask,
34520         posix_spawnattr_setflags, posix_spawnattr_destroy.
34521
34522 2009-01-25  Bruno Haible  <bruno@clisp.org>
34523
34524         * lib/glthread/threadlib.c: Include <stdlib.h>.
34525
34526 2009-01-25  Bruno Haible  <bruno@clisp.org>
34527
34528         * lib/glthread/threadlib.c (dummy): New declaration.
34529
34530 2009-01-25  Bruno Haible  <bruno@clisp.org>
34531
34532         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34533         multibyte characters also for the GB18030 encoding. Don't crash when
34534         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34535
34536 2009-01-25  Bruno Haible  <bruno@clisp.org>
34537
34538         Avoid redefining 'struct random_data' on OSF/1 5.1.
34539         * lib/stdlib.in.h: Include <random.h> if it exists.
34540         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34541         HAVE_RANDOM_H. Include <random.h> when testing whether
34542         'struct random_data' exists.
34543         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34544
34545 2009-01-25  Bruno Haible  <bruno@clisp.org>
34546
34547         Don't install charset.alias on MacOS X >= 10.3.
34548         * lib/localcharset.c (DARWIN7): New macro.
34549         (get_charset_aliases): Hardcode the result for Darwin7.
34550         * modules/localcharset (install-exec-local): Don't install
34551         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34552
34553 2009-01-25  Bruno Haible  <bruno@clisp.org>
34554
34555         Don't install charset.alias on mingw and Cygwin.
34556         * modules/localcharset (install-exec-local): Don't install
34557         charset.alias on mingw and Cygwin, if the file does not yet exist.
34558         The result for these platforms is hardcoded in localcharset.c.
34559
34560 2009-01-25  Bruno Haible  <bruno@clisp.org>
34561
34562         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34563         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34564         before requiring AC_USE_SYSTEM_EXTENSIONS.
34565
34566 2009-01-25  Jim Meyering  <meyering@redhat.com>
34567
34568         c-strtod: avoid warnings
34569         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34570         "assignment discards qualifiers from pointer target type" warnings.
34571
34572 2009-01-24  Bruno Haible  <bruno@clisp.org>
34573
34574         Add support for non-UTF-8 locales on MacOS X.
34575         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34576         canonical encodings. For Darwin 7 and newer, don't map traditional
34577         encodings to UTF-8.
34578         Reported by Vincent Lefevre <vincent@vinc17.org>
34579         at <http://savannah.gnu.org/bugs/?25235>.
34580
34581 2009-01-24  Bruno Haible  <bruno@clisp.org>
34582
34583         * doc/gnulib.texi (Obsolete modules): New section.
34584         Reported by Mike Frysinger <vapier@gentoo.org>.
34585
34586 2009-01-24  Bruno Haible  <bruno@clisp.org>
34587
34588         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34589         (%.dvi): New rule.
34590
34591 2009-01-24  Bruno Haible  <bruno@clisp.org>
34592
34593         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34594         Reported by Eric Blake.
34595
34596 2009-01-24  Bruno Haible  <bruno@clisp.org>
34597
34598         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34599         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34600         Reported by Gary V. Vaughan <gary@gnu.org>.
34601
34602 2009-01-24  Bruno Haible  <bruno@clisp.org>
34603
34604         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34605
34606 2009-01-23  Bruno Haible  <bruno@clisp.org>
34607
34608         Make c-strtod, c-strtold usable in libraries.
34609         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34610         (C_STRTOD): Call strdup instead of xstrdup.
34611         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34612         * modules/c-strtold (Depends-on): Likewise.
34613         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34614         * NEWS: Mention the change.
34615         Reported by Michael Gold <mgold@ncf.ca>.
34616
34617 2009-01-23  Jim Meyering  <meyering@redhat.com>
34618
34619         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34620         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34621         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34622
34623 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34624
34625         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34626         GNU CoreUtils.
34627         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34628         * modules/version-etc (Description): Update.
34629
34630 2009-01-22  Bruno Haible  <bruno@clisp.org>
34631
34632         Cache the C locale object.
34633         * lib/c-strtod.c (c_locale_cache): New variable.
34634         (c_locale): New function.
34635         (C_STRTOD): Use it, and don't call freelocale.
34636         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34637         Suggested by Paolo Bonzini.
34638
34639 2009-01-21  Bruno Haible  <bruno@clisp.org>
34640
34641         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34642         conditions other than overflow.
34643
34644 2009-01-21  Bruno Haible  <bruno@clisp.org>
34645
34646         * lib/c-strtod.c: Include errno.h.
34647         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34648         value from STRTOD_L and STRTOD.
34649
34650 2009-01-21  Bruno Haible  <bruno@clisp.org>
34651         and Jim Meyering  <meyering@redhat.com>
34652
34653         nanosleep: skip configure test (fail it) for apple universal builds
34654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34655         universal builds, assume that nanosleep does not work.
34656         * modules/nanosleep (Depends-on): Add multiarch.
34657
34658         mktime: skip configure test (fail it) for apple universal builds
34659         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34660         universal builds, assume that mktime does not work.
34661         * modules/mktime (Depends-on): Add multiarch.
34662
34663 2009-01-21  Eric Blake  <ebb9@byu.net>
34664
34665         multiarch: avoid expand-before-require warning
34666         * modules/multiarch (configure.ac): Require, rather than expand,
34667         gl_MULTIARCH.
34668         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34669         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34670         enforce that all clients require it.  Partial reversion of
34671         2008-12-29 patch.
34672
34673         error: avoid expand-before-require warning
34674         * modules/errno (configure.ac): Require, rather than expand,
34675         gl_HEADER_ERRNO_H.
34676         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34677         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34678         enforce that all clients require it.
34679
34680         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34681         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34682         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34683         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34684
34685 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34686
34687         Revert:
34688         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34689
34690         regex: do not depend on obsolete modules.
34691         * modules/regex: Remove memcmp and memmove.
34692
34693 2009-01-20  Bruno Haible  <bruno@clisp.org>
34694
34695         Make the 'link' module link on Windows NT 4.
34696         * lib/link.c (_WIN32_WINNT): Don't define.
34697         (CreateHardLinkFuncType): New type.
34698         (CreateHardLinkFunc, initialized): New variables.
34699         (initialize): New function.
34700         (link): Invoke CreateHardLink indirectly through the function pointer.
34701
34702 2009-01-20  Bruno Haible  <bruno@clisp.org>
34703
34704         Fix compilation failure on mingw.
34705         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34706
34707 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34708
34709         * doc/c-strtod.texi: Mention a couple of restrictions.
34710
34711 2009-01-20  Jim Meyering  <meyering@redhat.com>
34712
34713         gettimeofday: move more declarations out of functions
34714         * lib/gettimeofday.c: Move extern declarations of tzset and
34715         gmtime out of containing functions.  Prompted by Bruno Haible.
34716
34717 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34718
34719         regex: do not depend on obsolete modules.
34720         * modules/regex: Remove memcmp and memmove.
34721
34722 2009-01-19  Bruno Haible  <bruno@clisp.org>
34723
34724         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34725         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34726         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34727         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34728         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34729
34730 2009-01-19  Bruno Haible  <bruno@clisp.org>
34731
34732         * tests/test-link.c: Include <errno.h>.
34733         (main): Exit with code 77 when a hard link cannot be created due to
34734         the file system.
34735         * tests/test-link.sh: Skip test when a hard link cannot be created due
34736         to the file system.
34737         Suggested by Eric Blake.
34738
34739 2009-01-19  Martin Lambers  <marlam@marlam.de>
34740
34741         * modules/link-tests: New file.
34742         * tests/test-link.sh: New file.
34743         * tests/test-link.c: New file.
34744
34745 2009-01-19  Eric Blake  <ebb9@byu.net>
34746
34747         doc: mention another function added in cygwin 1.7.0
34748         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34749         Another new function in cygwin 1.7.
34750
34751 2009-01-19  Bruno Haible  <bruno@clisp.org>
34752
34753         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34754         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34755         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34756         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34757         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34758         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34759         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34760         * m4/md4.m4 (gl_MD4): Likewise.
34761         * m4/md5.m4 (gl_MD5): Likewise.
34762         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34763         * m4/sha1.m4 (gl_SHA1): Likewise.
34764         * m4/sha256.m4 (gl_SHA256): Likewise.
34765         * m4/sha512.m4 (gl_SHA512): Likewise.
34766
34767 2009-01-19  Bruno Haible  <bruno@clisp.org>
34768
34769         * modules/uniname/uniname-tests (Depends-on): Add progname.
34770         * tests/uniname/test-uninames.c: Include progname.h.
34771         (main): Call set_program_name.
34772
34773         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34774         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34775         (main): Call set_program_name.
34776
34777         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34778         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34779         (main): Call set_program_name.
34780
34781         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34782         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34783         (main): Call set_program_name.
34784
34785         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34786         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34787         (main): Call set_program_name.
34788
34789         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34790         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34791         (main): Call set_program_name.
34792
34793         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34794         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34795         (main): Call set_program_name.
34796
34797         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34798         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34799         (main): Call set_program_name.
34800
34801         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34802         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34803         (main): Call set_program_name.
34804
34805 2009-01-19  Eric Blake  <ebb9@byu.net>
34806
34807         test-unistd: test previous patch
34808         * tests/test-unistd.c: Test *_FILENO macros.
34809
34810         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34811         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34812         Guarantee a definition.
34813         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34814         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34815         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34816         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34817         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34818         Likewise.
34819         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34820         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34821         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34822         Likewise.
34823         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34824         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34825         (STDERR_FILENO): Likewise.
34826         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34827         (STDERR_FILENO): Likewise.
34828         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34829         (STDERR_FILENO): Likewise.
34830         Reported by Elbert Pol.
34831
34832 2009-01-19  Eric Blake  <ebb9@byu.net>
34833
34834         doc: mention more functions added in cygwin 1.7.0
34835         * doc/posix-functions/abort.texi (abort): Update wording related
34836         to cygwin.
34837         * doc/posix-functions/daylight.texi (daylight): Likewise.
34838         * doc/posix-functions/optarg.texi (optarg): Likewise.
34839         * doc/posix-functions/optarg.texi (opterr): Likewise.
34840         * doc/posix-functions/optarg.texi (optind): Likewise.
34841         * doc/posix-functions/optarg.texi (optopt): Likewise.
34842         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34843         worked in 1.5.x, and was withdrawn in 1.7.
34844         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34845         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34846         cygwin versions.
34847         * doc/posix-functions/perror.texi (perror): Likewise.
34848         * doc/posix-functions/printf.texi (printf): Likewise.
34849         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34850         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34851         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34852         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34853         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34854         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34855         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34856         Likewise.
34857         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34858         Likewise.
34859         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34860         this function.
34861         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34862         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34863         Likewise.
34864         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34865         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34866         * doc/posix-functions/confstr.texi (confstr): Likewise.
34867         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34868         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34869         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34870         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34871         * doc/posix-functions/fputws.texi (fputws): Likewise.
34872         * doc/posix-functions/fwide.texi (fwide): Likewise.
34873         * doc/posix-functions/getwc.texi (getwc): Likewise.
34874         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34875         * doc/posix-functions/putwc.texi (putwc): Likewise.
34876         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34877         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34878         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34879         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34880         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34881         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34882         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34883         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34884         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34885         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34886         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34887
34888 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34889
34890         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34891         * lib/ioctl.c: Include <sys/ioctl.h>.
34892
34893 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34894
34895         * modules/getdate-tests (Depends-on): Add progname.
34896         * tests/test-getdate.c: Use progname module, to avoid link errors
34897         on non-glibc systems.
34898
34899 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34900
34901         * modules/filenamecat-tests (Depends-on): Add progname.
34902         * modules/fstrcmp-tests (Depends-on): Likewise.
34903
34904         * tests/test-filenamecat.c: Use progname module, to avoid link
34905         errors on non-glibc systems.
34906         * tests/test-fstrcmp.c: Likewise.
34907
34908 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34909
34910         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34911         * lib/gettimeofday.c: Move extern declaration out of function.
34912
34913 2009-01-18  Bruno Haible  <bruno@clisp.org>
34914
34915         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34916         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34917         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34918
34919 2009-01-18  Bruno Haible  <bruno@clisp.org>
34920
34921         * lib/strftime.c (MEMPCPY): Remove unused macro.
34922         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34923
34924 2009-01-18  Martin Lambers  <marlam@marlam.de>
34925
34926         New module 'link'.
34927         * lib/unistd.in.h (link): New declaration.
34928         * lib/link.c: New file.
34929         * m4/link.m4: New file.
34930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34931         HAVE_LINK.
34932         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34933         * modules/link: New file.
34934         * doc/posix-functions/link.texi: Mention the new module.
34935
34936 2009-01-18  Bruno Haible  <bruno@clisp.org>
34937
34938         * tests/test-avltree_list.c (main): Call set_program_name.
34939         * tests/test-avltree_oset.c (main): Likewise.
34940         * tests/test-obstack-printf.c: Include progname.h.
34941         (main): Call set_program_name.
34942         * tests/test-quotearg.c: Include progname.h.
34943         (main): Call set_program_name.
34944         * tests/test-xmemdup0.c: Include progname.h.
34945         (main): Call set_program_name.
34946
34947 2009-01-18  Bruno Haible  <bruno@clisp.org>
34948
34949         New module 'alphasort'.
34950         * lib/dirent.in.h (alphasort): New declaration.
34951         * lib/alphasort.c: New file, from glibc with modifications.
34952         * m4/alphasort.m4: New file.
34953         * modules/alphasort: New file.
34954         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34955         HAVE_ALPHASORT.
34956         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34957         HAVE_ALPHASORT.
34958         * doc/posix-functions/alphasort.texi: Mention the new module and the
34959         portability problems.
34960
34961 2009-01-18  Bruno Haible  <bruno@clisp.org>
34962
34963         New module 'scandir'.
34964         * lib/dirent.in.h (scandir): New declaration.
34965         * lib/scandir.c: New file, from glibc with modifications.
34966         * m4/scandir.m4: New file.
34967         * modules/scandir: New file.
34968         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34969         HAVE_SCANDIR.
34970         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34971         HAVE_SCANDIR.
34972         * doc/posix-functions/scandir.texi: Mention the new module and the
34973         portability problems.
34974
34975 2009-01-17  Bruno Haible  <bruno@clisp.org>
34976
34977         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34978         Update documentation.
34979         (func_remove_suffix): Escape all dots in the suffix. Update
34980         documentation.
34981         (func_filter_filelist): Update documentation.
34982         Reported by Ralf Wildenhues.
34983
34984 2009-01-17  Bruno Haible  <bruno@clisp.org>
34985
34986         * modules/dprintf-posix-tests: New file.
34987         * tests/test-dprintf-posix.sh: New file.
34988         * tests/test-dprintf-posix.c: New file.
34989
34990         New modules 'dprintf', 'dprintf-posix'.
34991         * lib/stdio.in.h (dprintf): New declaration.
34992         * lib/dprintf.c: New file.
34993         * m4/dprintf.m4: New file.
34994         * m4/dprintf-posix.m4: New file.
34995         * modules/dprintf: New file.
34996         * modules/dprintf-posix: New file.
34997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34998         HAVE_DPRINTF, REPLACE_DPRINTF.
34999         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
35000         HAVE_DPRINTF, REPLACE_DPRINTF.
35001         * doc/posix-functions/dprintf.texi: Mention the new modules.
35002
35003 2009-01-17  Bruno Haible  <bruno@clisp.org>
35004
35005         * modules/vdprintf-posix-tests: New file.
35006         * tests/test-vdprintf-posix.sh: New file.
35007         * tests/test-vdprintf-posix.c: New file.
35008
35009         New modules 'vdprintf', 'vdprintf-posix'.
35010         * lib/stdio.in.h (vdprintf): New declaration.
35011         * lib/vdprintf.c: New file.
35012         * m4/vdprintf.m4: New file.
35013         * m4/vdprintf-posix.m4: New file.
35014         * modules/vdprintf: New file.
35015         * modules/vdprintf-posix: New file.
35016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
35017         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35018         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
35019         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35020         * doc/posix-functions/vdprintf.texi: Mention the new modules.
35021
35022 2009-01-17  Bruno Haible  <bruno@clisp.org>
35023
35024         Fix replacement of fopen on mingw.
35025         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
35026         mingw.
35027
35028 2009-01-17  Bruno Haible  <bruno@clisp.org>
35029
35030         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
35031         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
35032
35033 2009-01-17  Bruno Haible  <bruno@clisp.org>
35034
35035         Avoid test-fflush2.sh failure on mingw.
35036         * tests/test-fflush2.c: Include binary-io.h.
35037         (main): Put standard input into binary mode.
35038         * modules/fflush-tests (Depends-on): Add binary-io.
35039
35040 2009-01-17  Bruno Haible  <bruno@clisp.org>
35041
35042         * lib/wchar.in.h: In another particular situation, include only the
35043         system's <wchar.h> file.
35044         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
35045         Reported by Albert Chin-A-Young <china@thewrittenword.com>
35046         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
35047
35048 2009-01-17  Bruno Haible  <bruno@clisp.org>
35049
35050         Support for stripping executables in --enable-relocatable.
35051         * build-aux/install-reloc: Expect one more argument, or an environment
35052         variable RELOC_STRIP_PROG. If set, strip the destination program and
35053         its wrapper.
35054         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
35055         RELOC_STRIP_PROG.
35056         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
35057         to set RELOCATABLE_STRIP.
35058         * NEWS: Mention the new Makefile requirement.
35059
35060 2009-01-17  Bruno Haible  <bruno@clisp.org>
35061
35062         * build-aux/install-reloc: Remove debugging information left over by
35063         C compiler on MacOS X.
35064
35065 2009-01-17  Bruno Haible  <bruno@clisp.org>
35066
35067         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
35068         * lib/progreloc.c (find_executable): Fix type of pointer passed to
35069         _NSGetExecutablePath.
35070
35071 2009-01-16  Jim Meyering  <meyering@redhat.com>
35072
35073         strerror: avoid warnings about discarding "const"
35074         * lib/strerror.c (rpl_strerror): Instead of returning a const
35075         string from each and every "case", use a variable, and add a single
35076         cast after the switch.
35077
35078 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
35079
35080         * lib/arpa_inet.in.h: Add extern "C" block for C++.
35081
35082 2009-01-16  Bruno Haible  <bruno@clisp.org>
35083
35084         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
35085         array initializer syntax that also works in C++ mode.
35086         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35087
35088 2009-01-16  Jim Meyering  <meyering@redhat.com>
35089
35090         poll: suppress a warning
35091         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
35092         to ignore "...unsigned expression < 0 is always false" warnings.
35093
35094 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
35095
35096         poll: remove declarations of unused variables
35097         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
35098         sockbuf and optlen.
35099
35100 2009-01-15  Bruno Haible  <bruno@clisp.org>
35101
35102         Make fflush-after-ungetc POSIX compliant on BSD systems.
35103         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
35104         (clear_ungetc_buffer): Implement also for other systems.
35105         (rpl_fflush): On glibc systems, invoke
35106         clear_ungetc_buffer_preserving_position. Otherwise, invoke
35107         clear_ungetc_buffer after fetching the stream's position, not before.
35108
35109 2009-01-15  Bruno Haible  <bruno@clisp.org>
35110
35111         Make fflush-after-ungetc POSIX compliant on glibc systems.
35112         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
35113         after ungetc.
35114         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
35115         (rpl_fflush): On glibc systems, simply call the system's fflush
35116         function after clearing the ungetc buffer.
35117         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
35118         Instead, lseek only to the end of file, then use the system's fseeko
35119         for the rest. On glibc systems, reset the EOF indicator bit.
35120
35121 2009-01-15  Jim Meyering  <meyering@redhat.com>
35122
35123         openmp.m4: revert quote-adding change, for portability to older autoconf
35124         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
35125         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
35126         Simon Josefsson noticed the problem when using autoconf-2.61.
35127
35128 2009-01-15  Bruno Haible  <bruno@clisp.org>
35129
35130         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
35131         * tests/test-fflush2.c (ASSERT): Always fail.
35132         (main): Add two tests for fflush() after ungetc(), taking into account
35133         the Austin Group's clarification.
35134         Suggested by Eric Blake.
35135
35136 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
35137
35138         mktime.m4: remove K&R-style function prototypes
35139         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
35140         for the Sun C++ compiler.
35141
35142 2009-01-14  Bruno Haible  <bruno@clisp.org>
35143
35144         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
35145         while including <wchar.h>.
35146         * lib/wchar.in.h: In two particular situations on HP-UX, include only
35147         the system's <wchar.h> file.
35148         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35149
35150 2009-01-14  Bruno Haible  <bruno@clisp.org>
35151
35152         * m4/csharp.m4: Don't mention gettext on the serial number line.
35153         * m4/csharpexec.m4: Likewise.
35154         * m4/eaccess.m4: Likewise.
35155         * m4/javaexec.m4: Likewise.
35156         * m4/sig_atomic_t.m4: Likewise.
35157         * m4/tmpdir.m4: Likewise.
35158         * m4/intldir.m4: Bump gettext version.
35159         * m4/lib-ld.m4: Likewise.
35160
35161 2009-01-14  Bruno Haible  <bruno@clisp.org>
35162
35163         * lib/progname.c (set_program_name): Add more comments.
35164         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35165
35166 2009-01-14  Simon Josefsson  <simon@josefsson.org>
35167
35168         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
35169         were sys/stat.h does not define it.
35170
35171 2009-01-14  Jim Meyering  <meyering@redhat.com>
35172
35173         many *.m4 files: improve m4 quoting
35174         99% of this change was performed by running the following commands:
35175         git ls-files | grep '\.m4$' | xargs perl -pi \
35176           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
35177           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35178           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35179           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
35180         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
35181         The remainder were to add Copyright dates, increment serial numbers,
35182         undo some changes in comments, exclude m4/intl.m4, and add quotes
35183         around the "1" in ",1" where the unusual spacing prohibited the
35184         above regexps from doing the job.  For more details, see
35185         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
35186         * m4/acl.m4: Modified.
35187         * m4/afs.m4: Likewise.
35188         * m4/alloca.m4: Likewise.
35189         * m4/argp.m4: Likewise.
35190         * m4/argz.m4: Likewise.
35191         * m4/atexit.m4: Likewise.
35192         * m4/bison-i18n.m4: Likewise.
35193         * m4/bison.m4: Likewise.
35194         * m4/byteswap.m4: Likewise.
35195         * m4/c-stack.m4: Likewise.
35196         * m4/c-strtod.m4: Likewise.
35197         * m4/calloc.m4: Likewise.
35198         * m4/canonicalize-lgpl.m4: Likewise.
35199         * m4/chown.m4: Likewise.
35200         * m4/clock_time.m4: Likewise.
35201         * m4/codeset.m4: Likewise.
35202         * m4/copy-file.m4: Likewise.
35203         * m4/csharp.m4: Likewise.
35204         * m4/csharpcomp.m4: Likewise.
35205         * m4/csharpexec.m4: Likewise.
35206         * m4/d-ino.m4: Likewise.
35207         * m4/d-type.m4: Likewise.
35208         * m4/dirfd.m4: Likewise.
35209         * m4/double-slash-root.m4: Likewise.
35210         * m4/eaccess.m4: Likewise.
35211         * m4/eealloc.m4: Likewise.
35212         * m4/environ.m4: Likewise.
35213         * m4/errno_h.m4: Likewise.
35214         * m4/euidaccess.m4: Likewise.
35215         * m4/execute.m4: Likewise.
35216         * m4/fatal-signal.m4: Likewise.
35217         * m4/fchdir.m4: Likewise.
35218         * m4/fcntl_h.m4: Likewise.
35219         * m4/fileblocks.m4: Likewise.
35220         * m4/filenamecat.m4: Likewise.
35221         * m4/findprog.m4: Likewise.
35222         * m4/flexmember.m4: Likewise.
35223         * m4/fnmatch.m4: Likewise.
35224         * m4/fopen.m4: Likewise.
35225         * m4/fpending.m4: Likewise.
35226         * m4/fprintf-posix.m4: Likewise.
35227         * m4/free.m4: Likewise.
35228         * m4/frexp.m4: Likewise.
35229         * m4/frexpl.m4: Likewise.
35230         * m4/fsusage.m4: Likewise.
35231         * m4/ftruncate.m4: Likewise.
35232         * m4/gc-camellia.m4: Likewise.
35233         * m4/gc-random.m4: Likewise.
35234         * m4/gc.m4: Likewise.
35235         * m4/getaddrinfo.m4: Likewise.
35236         * m4/getcwd-abort-bug.m4: Likewise.
35237         * m4/getcwd-path-max.m4: Likewise.
35238         * m4/getdate.m4: Likewise.
35239         * m4/getdomainname.m4: Likewise.
35240         * m4/getgroups.m4: Likewise.
35241         * m4/gethostname.m4: Likewise.
35242         * m4/gethrxtime.m4: Likewise.
35243         * m4/getline.m4: Likewise.
35244         * m4/getloadavg.m4: Likewise.
35245         * m4/getndelim2.m4: Likewise.
35246         * m4/getpass.m4: Likewise.
35247         * m4/gettext.m4: Likewise.
35248         * m4/gettime.m4: Likewise.
35249         * m4/gettimeofday.m4: Likewise.
35250         * m4/gnulib-common.m4: Likewise.
35251         * m4/group-member.m4: Likewise.
35252         * m4/host-os.m4: Likewise.
35253         * m4/iconv.m4: Likewise.
35254         * m4/iconv_open.m4: Likewise.
35255         * m4/inet_ntop.m4: Likewise.
35256         * m4/inet_pton.m4: Likewise.
35257         * m4/inline.m4: Likewise.
35258         * m4/intldir.m4: Likewise.
35259         * m4/intlmacosx.m4: Likewise.
35260         * m4/intmax.m4: Likewise.
35261         * m4/intmax_t.m4: Likewise.
35262         * m4/inttypes.m4: Likewise.
35263         * m4/inttypes_h.m4: Likewise.
35264         * m4/inttypes-pri.m4: Likewise.
35265         * m4/isapipe.m4: Likewise.
35266         * m4/isnand.m4: Likewise.
35267         * m4/isnanf.m4: Likewise.
35268         * m4/isnanl.m4: Likewise.
35269         * m4/javacomp.m4: Likewise.
35270         * m4/javaexec.m4: Likewise.
35271         * m4/jm-winsz1.m4: Likewise.
35272         * m4/jm-winsz2.m4: Likewise.
35273         * m4/lchown.m4: Likewise.
35274         * m4/lcmessage.m4: Likewise.
35275         * m4/ldexpl.m4: Likewise.
35276         * m4/lib-ld.m4: Likewise.
35277         * m4/lib-link.m4: Likewise.
35278         * m4/libsigsegv.m4: Likewise.
35279         * m4/link-follow.m4: Likewise.
35280         * m4/localcharset.m4: Likewise.
35281         * m4/locale-fr.m4: Likewise.
35282         * m4/locale-ja.m4: Likewise.
35283         * m4/locale-tr.m4: Likewise.
35284         * m4/locale-zh.m4: Likewise.
35285         * m4/lock.m4: Likewise.
35286         * m4/longlong.m4: Likewise.
35287         * m4/ls-mntd-fs.m4: Likewise.
35288         * m4/lstat.m4: Likewise.
35289         * m4/malloc.m4: Likewise.
35290         * m4/mathl.m4: Likewise.
35291         * m4/mbrtowc.m4: Likewise.
35292         * m4/mbstate_t.m4: Likewise.
35293         * m4/mbswidth.m4: Likewise.
35294         * m4/memchr.m4: Likewise.
35295         * m4/memcmp.m4: Likewise.
35296         * m4/memcpy.m4: Likewise.
35297         * m4/memmem.m4: Likewise.
35298         * m4/memmove.m4: Likewise.
35299         * m4/mempcpy.m4: Likewise.
35300         * m4/memrchr.m4: Likewise.
35301         * m4/memset.m4: Likewise.
35302         * m4/minmax.m4: Likewise.
35303         * m4/mkdir-slash.m4: Likewise.
35304         * m4/mkdtemp.m4: Likewise.
35305         * m4/mktime.m4: Likewise.
35306         * m4/mmap-anon.m4: Likewise.
35307         * m4/mountlist.m4: Likewise.
35308         * m4/nanosleep.m4: Likewise.
35309         * m4/nls.m4: Likewise.
35310         * m4/nocrash.m4: Likewise.
35311         * m4/open.m4: Likewise.
35312         * m4/openat.m4: Likewise.
35313         * m4/openmp.m4: Likewise.
35314         * m4/pathmax.m4: Likewise.
35315         * m4/perl.m4: Likewise.
35316         * m4/physmem.m4: Likewise.
35317         * m4/pipe.m4: Likewise.
35318         * m4/po.m4: Likewise.
35319         * m4/poll.m4: Likewise.
35320         * m4/posixtm.m4: Likewise.
35321         * m4/posixver.m4: Likewise.
35322         * m4/printf-frexp.m4: Likewise.
35323         * m4/printf-frexpl.m4: Likewise.
35324         * m4/printf-posix.m4: Likewise.
35325         * m4/printf-posix-rpl.m4: Likewise.
35326         * m4/printf.m4: Likewise.
35327         * m4/progtest.m4: Likewise.
35328         * m4/putenv.m4: Likewise.
35329         * m4/readline.m4: Likewise.
35330         * m4/readlink.m4: Likewise.
35331         * m4/readutmp.m4: Likewise.
35332         * m4/realloc.m4: Likewise.
35333         * m4/regex.m4: Likewise.
35334         * m4/relocatable.m4: Likewise.
35335         * m4/relocatable-lib.m4: Likewise.
35336         * m4/rename-dest-slash.m4: Likewise.
35337         * m4/rename.m4: Likewise.
35338         * m4/rmdir-errno.m4: Likewise.
35339         * m4/rmdir.m4: Likewise.
35340         * m4/roundf.m4: Likewise.
35341         * m4/roundl.m4: Likewise.
35342         * m4/rpmatch.m4: Likewise.
35343         * m4/save-cwd.m4: Likewise.
35344         * m4/selinux-selinux-h.m4: Likewise.
35345         * m4/setenv.m4: Likewise.
35346         * m4/settime.m4: Likewise.
35347         * m4/sig2str.m4: Likewise.
35348         * m4/sig_atomic_t.m4: Likewise.
35349         * m4/signalblocking.m4: Likewise.
35350         * m4/signbit.m4: Likewise.
35351         * m4/sigpipe.m4: Likewise.
35352         * m4/sockets.m4: Likewise.
35353         * m4/sockpfaf.m4: Likewise.
35354         * m4/st_dm_mode.m4: Likewise.
35355         * m4/stat-time.m4: Likewise.
35356         * m4/stdbool.m4: Likewise.
35357         * m4/stdint.m4: Likewise.
35358         * m4/stdint_h.m4: Likewise.
35359         * m4/stpcpy.m4: Likewise.
35360         * m4/stpncpy.m4: Likewise.
35361         * m4/strcase.m4: Likewise.
35362         * m4/strchrnul.m4: Likewise.
35363         * m4/strcspn.m4: Likewise.
35364         * m4/strdup.m4: Likewise.
35365         * m4/strftime.m4: Likewise.
35366         * m4/strndup.m4: Likewise.
35367         * m4/strnlen.m4: Likewise.
35368         * m4/strpbrk.m4: Likewise.
35369         * m4/strptime.m4: Likewise.
35370         * m4/strsep.m4: Likewise.
35371         * m4/strtod.m4: Likewise.
35372         * m4/strtoimax.m4: Likewise.
35373         * m4/strtok_r.m4: Likewise.
35374         * m4/strtol.m4: Likewise.
35375         * m4/strtoll.m4: Likewise.
35376         * m4/strtoul.m4: Likewise.
35377         * m4/strtoull.m4: Likewise.
35378         * m4/strtoumax.m4: Likewise.
35379         * m4/strverscmp.m4: Likewise.
35380         * m4/threadlib.m4: Likewise.
35381         * m4/timegm.m4: Likewise.
35382         * m4/tm_gmtoff.m4: Likewise.
35383         * m4/tmpdir.m4: Likewise.
35384         * m4/tmpfile.m4: Likewise.
35385         * m4/tzset.m4: Likewise.
35386         * m4/uintmax_t.m4: Likewise.
35387         * m4/unlinkdir.m4: Likewise.
35388         * m4/unlocked-io.m4: Likewise.
35389         * m4/uptime.m4: Likewise.
35390         * m4/userspec.m4: Likewise.
35391         * m4/utimbuf.m4: Likewise.
35392         * m4/utime.m4: Likewise.
35393         * m4/utimes-null.m4: Likewise.
35394         * m4/utimes.m4: Likewise.
35395         * m4/vararrays.m4: Likewise.
35396         * m4/vasnprintf.m4: Likewise.
35397         * m4/vfprintf-posix.m4: Likewise.
35398         * m4/vprintf-posix.m4: Likewise.
35399         * m4/wait-process.m4: Likewise.
35400         * m4/wchar_t.m4: Likewise.
35401         * m4/wint_t.m4: Likewise.
35402         * m4/write-any-file.m4: Likewise.
35403         * m4/yield.m4: Likewise.
35404
35405 2009-01-13  Bruno Haible  <bruno@clisp.org>
35406
35407         Avoid test-copy-file.sh failures when ACL support insufficient.
35408         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35409         TESTS_ENVIRONMENT.
35410         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35411         Reported by Jim Meyering.
35412
35413 2009-01-13  Bruno Haible  <bruno@clisp.org>
35414
35415         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35416         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35417         * modules/unistdio/u8-printf-parse (Files): Likewise.
35418         * modules/unistdio/u32-printf-parse (Files): Likewise.
35419         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35420
35421 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35422
35423         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35424         and m4/inttypes_h.m4 too.
35425
35426 2009-01-12  Eric Blake  <ebb9@byu.net>
35427
35428         tests: IRIX 6.2 cc can't compile -0.0 into .data
35429         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35430         rather than at compile-time.
35431         * tests/test-floorl.c (minus_zero): Likewise.
35432         * tests/test-frexpl.c (minus_zero): Likewise.
35433         * tests/test-isnan.c (minus_zerol): Likewise.
35434         * tests/test-isnanl.h (minus_zero): Likewise.
35435         * tests/test-ldexpl.c (minus_zero): Likewise.
35436         * tests/test-roundl.c (minus_zero): Likewise.
35437         * tests/test-signbit.c (minus_zerol): Likewise.
35438         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35439         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35440         * tests/test-truncl.c (minus_zero): Likewise.
35441         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35442         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35443         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35444
35445 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35446
35447         regex: fix glibc bug 9697
35448         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35449         handling.
35450
35451 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35452
35453         regex: fix glibc bug 697
35454         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35455         being NULL also if there are no backreferences.
35456
35457 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35458
35459         regex: merge glibc changes
35460         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35461         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35462         re_string_skip_chars, re_string_reconstruct): Likewise.
35463         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35464
35465 2009-01-07  Jim Meyering  <meyering@redhat.com>
35466
35467         poll: filter through cppi
35468         * lib/poll.c: Indent cpp directives to reflect nesting.
35469
35470 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35471
35472         poll: don't return uninitialized
35473         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35474
35475 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35476
35477         avoid compile failure on AIX 6.1
35478         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35479         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35480
35481 2009-01-04  Jim Meyering  <meyering@redhat.com>
35482
35483         remove duplicate inclusion of <stdio.h>
35484         * tests/test-fprintf-posix.c: Likewise.
35485         * tests/test-printf-posix.c: Likewise.
35486         * tests/test-snprintf-posix.c: Likewise.
35487         * tests/test-sprintf-posix.c: Likewise.
35488         * tests/test-vasprintf-posix.c: Likewise.
35489         * tests/test-vfprintf-posix.c: Likewise.
35490         * tests/test-vprintf-posix.c: Likewise.
35491         * tests/test-vsnprintf-posix.c: Likewise.
35492         * tests/test-vsprintf-posix.c: Likewise.
35493
35494 2009-01-03  Jim Meyering  <meyering@redhat.com>
35495
35496         gnulib-tool: fix sed-based filtering
35497         * gnulib-tool (func_filter_filelist): Remove extra backslash
35498         in sed_fff_filter definition.
35499
35500 2009-01-02  Jim Meyering  <meyering@redhat.com>
35501
35502         strftime: avoid compilation failure on Solaris 2.6
35503         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35504         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35505         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35506         be available.  Reported by Tom G. Christensen.  Details in
35507         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35508
35509 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35510             Bruno Haible  <bruno@clisp.org>
35511
35512         Speed up gnulib-tool by doing more string processing through shell
35513         built-ins.
35514         * gnulib-tool (fast_func_append): New variable.
35515         (func_remove_prefix, func_remove_suffix): New functions.
35516         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35517         (func_filter_filelist): New function.
35518         (func_get_dependencies): Use func_remove_suffix instead of sed.
35519         (func_get_automake_snippet): Use func_filter_filelist instead of a
35520         subshell and sed invocation.
35521
35522 2009-01-01  Bruno Haible  <bruno@clisp.org>
35523
35524         Fix a security bug.
35525         * gnulib-tool (func_import, import, update): Don't allow the characters
35526         '"', '$', '`', '\' in macro arguments that become part of commands that
35527         are evaluated.
35528
35529 2009-01-01  Bruno Haible  <bruno@clisp.org>
35530
35531         * gnulib-tool (func_reset_sigpipe): Add more comments.
35532
35533 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35534
35535         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35536         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35537         already know the answer.
35538
35539 2009-01-01  Jim Meyering  <meyering@redhat.com>
35540
35541         * lib/version-etc.c (version_etc_va): Update copyright year.
35542
35543 2008-12-30  Bruno Haible  <bruno@clisp.org>
35544
35545         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35546         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35547         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35548
35549 2008-12-29  Eric Blake  <ebb9@byu.net>
35550
35551         multiarch: avoid autoconf AC_REQUIRE bug
35552         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35553         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35554         2.63 and older.
35555         Reported by Bruno Haible, and analyzed in
35556         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35557
35558 2008-12-29  Bruno Haible  <bruno@clisp.org>
35559
35560         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35561         files in subdirectories correctly.
35562         Reported by Ralf Wildenhues.
35563
35564 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35565
35566         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35567         rather than 'join FILE -', for Solaris join.
35568
35569 2008-12-29  Bruno Haible  <bruno@clisp.org>
35570
35571         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35572         quoting.
35573         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35574         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35575         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35576         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35577         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35578         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35579         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35580         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35581         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35582         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35583         * m4/nls.m4 (AM_NLS): Likewise.
35584         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35585         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35586         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35587         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35588         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35589         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35590         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35591         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35592         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35593         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35594         * m4/xsize.m4 (gl_XSIZE): Likewise.
35595         Suggested by Jim Meyering.
35596
35597 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35598
35599         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35600         * lib/parse-duration.c: use a switch instead of cascading if's.
35601
35602 2008-12-29  Eric Blake  <ebb9@byu.net>
35603
35604         wchar.h: supply WEOF on Irix 5.3
35605         * lib/wchar.in.h (wint_t): Also supply WEOF.
35606         * lib/wctype.in.h (wint_t): Likewise.
35607         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35608         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35609         Reported by Tom G. Christensen.
35610
35611 2008-12-26  Bruno Haible  <bruno@clisp.org>
35612
35613         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35614         i486, i586, i686.
35615
35616 2008-12-26  Bruno Haible  <bruno@clisp.org>
35617
35618         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35619
35620 2008-12-26  Bruno Haible  <bruno@clisp.org>
35621
35622         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35623         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35624         not __STDC_CONSTANT_MACROS.
35625         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35626
35627 2008-12-25  Bruno Haible  <bruno@clisp.org>
35628
35629         Add support for universal builds to vasnprintf.
35630         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35631         universal builds, guess no.
35632         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35633         * modules/vasprintf-posix (Depends-on): Likewise.
35634         * modules/fprintf-posix (Depends-on): Likewise.
35635         * modules/vfprintf-posix (Depends-on): Likewise.
35636         * modules/snprintf-posix (Depends-on): Likewise.
35637         * modules/vsnprintf-posix (Depends-on): Likewise.
35638         * modules/sprintf-posix (Depends-on): Likewise.
35639         * modules/vsprintf-posix (Depends-on): Likewise.
35640         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35641         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35642         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35643         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35644         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35645         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35646         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35647
35648         Add support for universal builds to <inttypes.h>.
35649         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35650         _SCNu64_PREFIX): In Apple
35651         universal builds, define directly, using _LP64.
35652         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35653         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35654         * modules/inttypes (Depends-on): Add multiarch.
35655         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35656
35657         Add support for universal builds to <stdint.h>.
35658         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35659         universal builds, define directly, using _LP64.
35660         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35661         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35662         and size_t.
35663         * modules/stdint (Depends-on): Add multiarch.
35664         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35665
35666         New module 'multiarch'.
35667         * modules/multiarch: New file.
35668         * m4/multiarch.m4: New file.
35669
35670 2008-12-25  Bruno Haible  <bruno@clisp.org>
35671
35672         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35673
35674 2008-12-25  Bruno Haible  <bruno@clisp.org>
35675
35676         * modules/btowc (License): Relicense under LGPLv2+.
35677         * modules/mbsinit (License): Likewise.
35678         * modules/mbrtowc (License): Likewise.
35679         * modules/wcrtomb (License): Likewise.
35680         * modules/streq (License): Likewise.
35681         Reported by David Lutterkort <lutter@redhat.com>.
35682
35683 2008-12-23  Bruno Haible  <bruno@clisp.org>
35684
35685         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35686
35687 2008-12-23  Bruno Haible  <bruno@clisp.org>
35688
35689         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35690         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35691         GETADDRINFO_LIB, not in LIBS.
35692         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35693         * modules/canon-host (Link): Likewise.
35694         * NEWS: Mention the change.
35695         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35696         GETADDRINFO_LIB.
35697
35698 2008-12-22  Bruno Haible  <bruno@clisp.org>
35699
35700         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35701         * doc/posix-functions/iswalpha_l.texi: Likewise.
35702         * doc/posix-functions/iswblank_l.texi: Likewise.
35703         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35704         * doc/posix-functions/iswctype_l.texi: Likewise.
35705         * doc/posix-functions/iswdigit_l.texi: Likewise.
35706         * doc/posix-functions/iswgraph_l.texi: Likewise.
35707         * doc/posix-functions/iswlower_l.texi: Likewise.
35708         * doc/posix-functions/iswprint_l.texi: Likewise.
35709         * doc/posix-functions/iswpunct_l.texi: Likewise.
35710         * doc/posix-functions/iswspace_l.texi: Likewise.
35711         * doc/posix-functions/iswupper_l.texi: Likewise.
35712         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35713         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35714         * doc/posix-functions/open_wmemstream.texi: Likewise.
35715         * doc/posix-functions/swscanf.texi: Likewise.
35716         * doc/posix-functions/towctrans_l.texi: Likewise.
35717         * doc/posix-functions/towlower.texi: Likewise.
35718         * doc/posix-functions/towlower_l.texi: Likewise.
35719         * doc/posix-functions/towupper.texi: Likewise.
35720         * doc/posix-functions/towupper_l.texi: Likewise.
35721         * doc/posix-functions/vfwprintf.texi: Likewise.
35722         * doc/posix-functions/vfwscanf.texi: Likewise.
35723         * doc/posix-functions/vswscanf.texi: Likewise.
35724         * doc/posix-functions/vwprintf.texi: Likewise.
35725         * doc/posix-functions/vwscanf.texi: Likewise.
35726         * doc/posix-functions/wcpcpy.texi: Likewise.
35727         * doc/posix-functions/wcpncpy.texi: Likewise.
35728         * doc/posix-functions/wcscasecmp.texi: Likewise.
35729         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35730         * doc/posix-functions/wcscoll_l.texi: Likewise.
35731         * doc/posix-functions/wcsdup.texi: Likewise.
35732         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35733         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35734         * doc/posix-functions/wcsnlen.texi: Likewise.
35735         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35736         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35737         * doc/posix-functions/wctrans_l.texi: Likewise.
35738         * doc/posix-functions/wctype_l.texi: Likewise.
35739         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35740         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35741         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35742         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35743         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35744         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35745         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35746         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35747         * doc/glibc-functions/wcschrnul.texi: Likewise.
35748         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35749         * doc/glibc-functions/wcstod_l.texi: Likewise.
35750         * doc/glibc-functions/wcstof_l.texi: Likewise.
35751         * doc/glibc-functions/wcstol_l.texi: Likewise.
35752         * doc/glibc-functions/wcstold_l.texi: Likewise.
35753         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35754         * doc/glibc-functions/wcstoq.texi: Likewise.
35755         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35756         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35757         * doc/glibc-functions/wcstouq.texi: Likewise.
35758         * doc/glibc-functions/wmempcpy.texi: Likewise.
35759
35760 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35761             Eric Blake  <ebb9@byu.net>
35762             Paolo Bonzini  <bonzini@gnu.org>
35763             Bruno Haible  <bruno@clisp.org>
35764
35765         Make c-stack work on Haiku.
35766         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35767         (c_stack_action): Use SA_ONSTACK flag.
35768
35769 2008-12-22  Bruno Haible  <bruno@clisp.org>
35770
35771         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35772
35773 2008-12-22  Bruno Haible  <bruno@clisp.org>
35774
35775         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35776         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35777         being overridden.
35778         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35779         New macros.
35780         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35781         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35782         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35783         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35784
35785 2008-12-22  Bruno Haible  <bruno@clisp.org>
35786
35787         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35788         from test code.
35789
35790 2008-12-22  Eric Blake  <ebb9@byu.net>
35791
35792         Avoid gcc warnings on cygwin.
35793         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35794         Avoid unused variable.
35795         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35796         Likewise.
35797
35798 2008-12-22  Bruno Haible  <bruno@clisp.org>
35799
35800         Remove HAVE_MBRTOWC conditionals.
35801         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35802         (mbscasecmp): Assume mbrtowc function.
35803         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35804         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35805         * lib/mbschr.c: Include mbuiter.h unconditionally.
35806         (mbschr): Assume mbrtowc function.
35807         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35808         (mbscspn): Assume mbrtowc function.
35809         * lib/mbslen.c: Include mbuiter.h unconditionally.
35810         (mbslen): Assume mbrtowc function.
35811         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35812         (mbsncasecmp): Assume mbrtowc function.
35813         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35814         (mbsnlen): Assume mbrtowc function.
35815         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35816         (mbspbrk): Assume mbrtowc function.
35817         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35818         (mbspcasecmp): Assume mbrtowc function.
35819         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35820         (mbsrchr): Assume mbrtowc function.
35821         * lib/mbssep.c: Include mbuiter.h unconditionally.
35822         (mbssep): Assume mbrtowc function.
35823         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35824         (mbsspn): Assume mbrtowc function.
35825         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35826         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35827         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35828         (mbstok_r): Assume mbrtowc function.
35829         * lib/propername.c: Include mbuiter.h unconditionally.
35830         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35831         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35832         (trim2): Assume mbrtowc function.
35833         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35834         (mbsnwidth): Assume mbrtowc function.
35835         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35836         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35837         fallback definitions.
35838         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35839
35840 2008-12-22  Bruno Haible  <bruno@clisp.org>
35841
35842         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35843
35844 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35845
35846         * modules/regex: Request emulations for the mb*/wc* functions we need.
35847         * m4/regex.m4: Don't look for those functions here.
35848         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35849
35850 2008-12-22  Bruno Haible  <bruno@clisp.org>
35851
35852         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35853
35854 2008-12-21  Bruno Haible  <bruno@clisp.org>
35855
35856         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35857         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35858         (Include): Remove conditionalization.
35859         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35860         (Include): Remove conditionalization.
35861         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35862         (Include): Remove conditionalization.
35863         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35864         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35865         * NEWS: Mention the change.
35866         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35867         via Sergey Poznyakoff <gray@gnu.org.ua>.
35868
35869 2008-12-21  Bruno Haible  <bruno@clisp.org>
35870
35871         * MODULES.html.sh (Extended multibyte and wide character utilities
35872         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35873         wcrtomb, wcsrtombs.
35874         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35875         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35876         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35877         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35878
35879 2008-12-21  Bruno Haible  <bruno@clisp.org>
35880
35881         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35882
35883 2008-12-21  Bruno Haible  <bruno@clisp.org>
35884
35885         * modules/wcsnrtombs-tests: New file.
35886         * tests/test-wcsnrtombs1.sh: New file.
35887         * tests/test-wcsnrtombs2.sh: New file.
35888         * tests/test-wcsnrtombs3.sh: New file.
35889         * tests/test-wcsnrtombs4.sh: New file.
35890         * tests/test-wcsnrtombs.c: New file.
35891
35892         New module 'wcsnrtombs'.
35893         * lib/wchar.in.h (wcsnrtombs): New declaration.
35894         * lib/wcsnrtombs.c: New file.
35895         * lib/wcsrtombs-state.c: New file.
35896         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35897         (internal_state): Remove variable.
35898         * m4/wcsnrtombs.m4: New file.
35899         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35900         compilation units.
35901         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35902         HAVE_WCSNRTOMBS.
35903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35904         HAVE_WCSNRTOMBS.
35905         * modules/wcsnrtombs: New file.
35906         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35907         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35908
35909 2008-12-21  Bruno Haible  <bruno@clisp.org>
35910
35911         * modules/wcsrtombs-tests: New file.
35912         * tests/test-wcsrtombs1.sh: New file.
35913         * tests/test-wcsrtombs2.sh: New file.
35914         * tests/test-wcsrtombs3.sh: New file.
35915         * tests/test-wcsrtombs4.sh: New file.
35916         * tests/test-wcsrtombs.c: New file.
35917
35918         New module 'wcsrtombs'.
35919         * lib/wchar.in.h (wcsrtombs): New declaration.
35920         * lib/wcsrtombs.c: New file.
35921         * m4/wcsrtombs.m4: New file.
35922         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35923         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35924         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35925         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35926         * modules/wcsrtombs: New file.
35927         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35928         bugs.
35929
35930 2008-12-21  Bruno Haible  <bruno@clisp.org>
35931
35932         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35933         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35934         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35935         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35936         if not correct.
35937         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35938         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35939         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35940         m4/locale-zh.m4, m4/codeset.m4.
35941         * doc/posix-functions/wcrtomb.texi: Document the bug.
35942
35943 2008-12-21  Bruno Haible  <bruno@clisp.org>
35944
35945         Work around a btowc() bug on IRIX 6.5.
35946         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35947         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35948         REPLACE_WTOBC if not.
35949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35950         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35951         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35952
35953 2008-12-21  Bruno Haible  <bruno@clisp.org>
35954
35955         * modules/wcrtomb-tests: New file.
35956         * tests/test-wcrtomb.sh: New file.
35957         * tests/test-wcrtomb.c: New file.
35958
35959         New module 'wcrtomb'.
35960         * lib/wchar.in.h (wcrtomb): New declaration.
35961         * lib/wcrtomb.c: New file.
35962         * m4/wcrtomb.m4: New file.
35963         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35964         HAVE_WCRTOMB.
35965         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35966         HAVE_WCRTOMB.
35967         * modules/wcrtomb: New file.
35968         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35969
35970 2008-12-21  Bruno Haible  <bruno@clisp.org>
35971
35972         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35973         * modules/mbsrtowcs (Files): Likewise.
35974         * modules/wctob (Files): Likewise.
35975         * modules/c-strcase-tests (Files): Likewise.
35976         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35977         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35978         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35979         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35980         * modules/vasnprintf-posix-tests (Files): Likewise.
35981
35982 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35983
35984         gitlog-to-changelog: pass all command-line arguments to git-log
35985         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35986         it is sometimes convenient to filter the commits in various ways.
35987         gitlog-to-changelog only allows --since to specify a start date,
35988         but git-log itself supports many other filtering mechanisms.
35989         At the moment, I want to filter by branch name.  Rather than
35990         adding a --branch option to gitlog-to-changelog, it seems more
35991         flexible to simply pass all options directly to git-log and let
35992         git do the work.  Notice that this effectively makes --since a
35993         redundant option for gitlog-to-changelog, but removing it would
35994         require current usage to change since calls would then require
35995         an additional '--'.
35996
35997 2008-12-21  Bruno Haible  <bruno@clisp.org>
35998
35999         * modules/mbsnrtowcs-tests: New file.
36000         * tests/test-mbsnrtowcs1.sh: New file.
36001         * tests/test-mbsnrtowcs2.sh: New file.
36002         * tests/test-mbsnrtowcs3.sh: New file.
36003         * tests/test-mbsnrtowcs4.sh: New file.
36004         * tests/test-mbsnrtowcs.c: New file.
36005
36006         New module 'mbsnrtowcs'.
36007         * lib/wchar.in.h (mbsnrtowcs): New declaration.
36008         * lib/mbsnrtowcs.c: New file.
36009         * lib/mbsrtowcs-state.c: New file.
36010         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
36011         (internal_state): Remove variable.
36012         * m4/mbsnrtowcs.m4: New file.
36013         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
36014         compilation units.
36015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
36016         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36017         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
36018         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36019         * modules/mbsnrtowcs: New file.
36020         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
36021         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
36022         portability problem.
36023
36024 2008-12-21  Bruno Haible  <bruno@clisp.org>
36025
36026         Work around mbsrtowcs bug.
36027         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
36028         (gl_FUNC_MBSRTOWCS): Invoke it.
36029         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36030         m4/locale-zh.m4.
36031         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
36032
36033 2008-12-21  Bruno Haible  <bruno@clisp.org>
36034
36035         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
36036
36037 2008-12-21  Bruno Haible  <bruno@clisp.org>
36038
36039         Update doc for AIX.
36040         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
36041         16-bit wchar_t type.
36042         * doc/posix-functions/btowc.texi: Likewise.
36043         * doc/posix-functions/fgetwc.texi: Likewise.
36044         * doc/posix-functions/fgetws.texi: Likewise.
36045         * doc/posix-functions/fputwc.texi: Likewise.
36046         * doc/posix-functions/fputws.texi: Likewise.
36047         * doc/posix-functions/fwide.texi: Likewise.
36048         * doc/posix-functions/fwprintf.texi: Likewise.
36049         * doc/posix-functions/fwscanf.texi: Likewise.
36050         * doc/posix-functions/getwchar.texi: Likewise.
36051         * doc/posix-functions/getwc.texi: Likewise.
36052         * doc/posix-functions/iswalnum.texi: Likewise.
36053         * doc/posix-functions/iswalpha.texi: Likewise.
36054         * doc/posix-functions/iswblank.texi: Likewise.
36055         * doc/posix-functions/iswcntrl.texi: Likewise.
36056         * doc/posix-functions/iswctype.texi: Likewise.
36057         * doc/posix-functions/iswdigit.texi: Likewise.
36058         * doc/posix-functions/iswgraph.texi: Likewise.
36059         * doc/posix-functions/iswlower.texi: Likewise.
36060         * doc/posix-functions/iswprint.texi: Likewise.
36061         * doc/posix-functions/iswpunct.texi: Likewise.
36062         * doc/posix-functions/iswspace.texi: Likewise.
36063         * doc/posix-functions/iswupper.texi: Likewise.
36064         * doc/posix-functions/iswxdigit.texi: Likewise.
36065         * doc/posix-functions/mbrtowc.texi: Likewise.
36066         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36067         * doc/posix-functions/mbstowcs.texi: Likewise.
36068         * doc/posix-functions/mbtowc.texi: Likewise.
36069         * doc/posix-functions/putwchar.texi: Likewise.
36070         * doc/posix-functions/putwc.texi: Likewise.
36071         * doc/posix-functions/swprintf.texi: Likewise.
36072         * doc/posix-functions/tolower.texi: Likewise.
36073         * doc/posix-functions/toupper.texi: Likewise.
36074         * doc/posix-functions/towctrans.texi: Likewise.
36075         * doc/posix-functions/ungetwc.texi: Likewise.
36076         * doc/posix-functions/vswprintf.texi: Likewise.
36077         * doc/posix-functions/wcrtomb.texi: Likewise.
36078         * doc/posix-functions/wcscat.texi: Likewise.
36079         * doc/posix-functions/wcschr.texi: Likewise.
36080         * doc/posix-functions/wcscmp.texi: Likewise.
36081         * doc/posix-functions/wcscoll.texi: Likewise.
36082         * doc/posix-functions/wcscpy.texi: Likewise.
36083         * doc/posix-functions/wcscspn.texi: Likewise.
36084         * doc/posix-functions/wcsftime.texi: Likewise.
36085         * doc/posix-functions/wcslen.texi: Likewise.
36086         * doc/posix-functions/wcsncat.texi: Likewise.
36087         * doc/posix-functions/wcsncmp.texi: Likewise.
36088         * doc/posix-functions/wcsncpy.texi: Likewise.
36089         * doc/posix-functions/wcspbrk.texi: Likewise.
36090         * doc/posix-functions/wcsrchr.texi: Likewise.
36091         * doc/posix-functions/wcsrtombs.texi: Likewise.
36092         * doc/posix-functions/wcsspn.texi: Likewise.
36093         * doc/posix-functions/wcsstr.texi: Likewise.
36094         * doc/posix-functions/wcstod.texi: Likewise.
36095         * doc/posix-functions/wcstof.texi: Likewise.
36096         * doc/posix-functions/wcstoimax.texi: Likewise.
36097         * doc/posix-functions/wcstok.texi: Likewise.
36098         * doc/posix-functions/wcstold.texi: Likewise.
36099         * doc/posix-functions/wcstoll.texi: Likewise.
36100         * doc/posix-functions/wcstol.texi: Likewise.
36101         * doc/posix-functions/wcstombs.texi: Likewise.
36102         * doc/posix-functions/wcstoull.texi: Likewise.
36103         * doc/posix-functions/wcstoul.texi: Likewise.
36104         * doc/posix-functions/wcstoumax.texi: Likewise.
36105         * doc/posix-functions/wcswidth.texi: Likewise.
36106         * doc/posix-functions/wcsxfrm.texi: Likewise.
36107         * doc/posix-functions/wctob.texi: Likewise.
36108         * doc/posix-functions/wctomb.texi: Likewise.
36109         * doc/posix-functions/wctrans.texi: Likewise.
36110         * doc/posix-functions/wctype.texi: Likewise.
36111         * doc/posix-functions/wcwidth.texi: Likewise.
36112         * doc/posix-functions/wmemchr.texi: Likewise.
36113         * doc/posix-functions/wmemcmp.texi: Likewise.
36114         * doc/posix-functions/wmemcpy.texi: Likewise.
36115         * doc/posix-functions/wmemmove.texi: Likewise.
36116         * doc/posix-functions/wmemset.texi: Likewise.
36117         * doc/posix-functions/wprintf.texi: Likewise.
36118         * doc/posix-functions/wscanf.texi: Likewise.
36119
36120 2008-12-21  Bruno Haible  <bruno@clisp.org>
36121
36122         Update doc for HP-UX 11.11.
36123         * doc/posix-functions/btowc.texi: Clarify that the function is missing
36124         in HP-UX version 11.00, not in all versions of HP-UX 11.
36125         * doc/posix-functions/fwide.texi: Likewise.
36126         * doc/posix-functions/fwprintf.texi: Likewise.
36127         * doc/posix-functions/fwscanf.texi: Likewise.
36128         * doc/posix-functions/inet_ntop.texi: Likewise.
36129         * doc/posix-functions/inet_pton.texi: Likewise.
36130         * doc/posix-functions/mbrlen.texi: Likewise.
36131         * doc/posix-functions/mbrtowc.texi: Likewise.
36132         * doc/posix-functions/mbsinit.texi: Likewise.
36133         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36134         * doc/posix-functions/swprintf.texi: Likewise.
36135         * doc/posix-functions/swscanf.texi: Likewise.
36136         * doc/posix-functions/towctrans.texi: Likewise.
36137         * doc/posix-functions/vfwprintf.texi: Likewise.
36138         * doc/posix-functions/vswprintf.texi: Likewise.
36139         * doc/posix-functions/vwprintf.texi: Likewise.
36140         * doc/posix-functions/wcrtomb.texi: Likewise.
36141         * doc/posix-functions/wcsrtombs.texi: Likewise.
36142         * doc/posix-functions/wcsstr.texi: Likewise.
36143         * doc/posix-functions/wctob.texi: Likewise.
36144         * doc/posix-functions/wctrans.texi: Likewise.
36145         * doc/posix-functions/wmemchr.texi: Likewise.
36146         * doc/posix-functions/wmemcmp.texi: Likewise.
36147         * doc/posix-functions/wmemcpy.texi: Likewise.
36148         * doc/posix-functions/wmemmove.texi: Likewise.
36149         * doc/posix-functions/wmemset.texi: Likewise.
36150         * doc/posix-functions/wprintf.texi: Likewise.
36151         * doc/posix-functions/wscanf.texi: Likewise.
36152
36153 2008-12-21  Bruno Haible  <bruno@clisp.org>
36154
36155         Work around a portability problem.
36156         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
36157         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
36158
36159 2008-12-20  Bruno Haible  <bruno@clisp.org>
36160
36161         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
36162         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
36163         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
36164         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
36165         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
36166
36167         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
36168         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
36169         set.
36170         (GNULIB_defined_mbstate_t): New macro.
36171         (mbsinit): Redefine if REPLACE_MBSINIT is set.
36172         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
36173         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
36174         reuses the system's mbrtowc function but works around the bugs.
36175         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
36176         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
36177         macros.
36178         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
36179         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
36180         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
36181         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
36182         REPLACE_MBSINIT if mbsinit needs to be overridden.
36183         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
36184         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36185         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
36186         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36187         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36188         m4/locale-zh.m4.
36189         (Depends): Add mbsinit.
36190         * modules/mbsinit (Depends): Add mbrtowc.
36191         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
36192
36193 2008-12-20  Bruno Haible  <bruno@clisp.org>
36194
36195         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
36196         so that there are no conversion errors on AIX.
36197         * tests/test-mbsrtowcs.c (main): LIkewise.
36198
36199 2008-12-20  Bruno Haible  <bruno@clisp.org>
36200
36201         Work around wctob bug on Solaris <= 9.
36202         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
36203         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
36204         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
36205         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
36206         * modules/wctob (Files): Add m4/locale-fr.m4.
36207         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
36208
36209 2008-12-20  Bruno Haible  <bruno@clisp.org>
36210
36211         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
36212         /dev/null.
36213         * tests/test-select-in.sh: Likewise.
36214         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36215
36216 2008-12-20  Bruno Haible  <bruno@clisp.org>
36217
36218         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
36219         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
36220         Cygwin 1.5.x.
36221
36222 2008-12-20  Bruno Haible  <bruno@clisp.org>
36223
36224         Ensure mbstate_t is defined on HP-UX 11.11.
36225         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
36226         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
36227         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
36228         AC_USE_SYSTEM_EXTENSIONS.
36229         * modules/fnmatch (Depends-on): Add extensions.
36230         * modules/mbrlen (Depends-on): Likewise.
36231         * modules/mbrtowc (Depends-on): Likewise.
36232         * modules/mbsinit (Depends-on): Likewise.
36233         * modules/mbsrtowcs (Depends-on): Likewise.
36234         * modules/mbswidth (Depends-on): Likewise.
36235         * modules/quotearg (Depends-on): Likewise.
36236         * modules/strftime (Depends-on): Likewise.
36237
36238 2008-12-20  Bruno Haible  <bruno@clisp.org>
36239
36240         Ensure wctob is declared on IRIX 6.5.
36241         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36242         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36243         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36244         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36245         of HAVE_WCTOB.
36246         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36247         HAVE_WCTOB.
36248         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36249
36250 2008-12-19  Bruno Haible  <bruno@clisp.org>
36251
36252         * modules/mbsrtowcs-tests: New file.
36253         * tests/test-mbsrtowcs1.sh: New file.
36254         * tests/test-mbsrtowcs2.sh: New file.
36255         * tests/test-mbsrtowcs3.sh: New file.
36256         * tests/test-mbsrtowcs4.sh: New file.
36257         * tests/test-mbsrtowcs.c: New file.
36258
36259         New module 'mbsrtowcs'.
36260         * lib/wchar.in.h (mbsrtowcs): New declaration.
36261         * lib/mbsrtowcs.c: New file.
36262         * m4/mbsrtowcs.m4: New file.
36263         * modules/mbsrtowcs: New file.
36264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36265         HAVE_MBSRTOWCS.
36266         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36267         HAVE_MBSRTOWCS.
36268         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36269
36270 2008-12-19  Bruno Haible  <bruno@clisp.org>
36271
36272         New module 'mbrlen'.
36273         * lib/wchar.in.h (mbrlen): New declaration.
36274         * lib/mbrlen.c: New file.
36275         * m4/mbrlen.m4: New file.
36276         * modules/mbrlen: New file.
36277         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36278         HAVE_MBRLEN.
36279         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36280         HAVE_MBRLEN.
36281         * doc/posix-functions/mbrlen.texi: Document the new module.
36282
36283 2008-12-19  Bruno Haible  <bruno@clisp.org>
36284
36285         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36286         * modules/mbrtowc (Depends-on): Add verify.
36287         Suggested by Paul Eggert.
36288
36289 2008-12-18  Bruno Haible  <bruno@clisp.org>
36290
36291         * modules/mbsinit-tests: New file.
36292         * tests/test-mbsinit.sh: New file.
36293         * tests/test-mbsinit.c: New file.
36294
36295 2008-12-18  Bruno Haible  <bruno@clisp.org>
36296
36297         * modules/mbrtowc-tests: New file.
36298         * tests/test-mbrtowc1.sh: New file.
36299         * tests/test-mbrtowc2.sh: New file.
36300         * tests/test-mbrtowc3.sh: New file.
36301         * tests/test-mbrtowc4.sh: New file.
36302         * tests/test-mbrtowc.c: New file.
36303
36304         New module 'mbrtowc'.
36305         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36306         mbsinit and mbrtowc.
36307         (mbrtowc): New declaration.
36308         * lib/mbrtowc.c: New file.
36309         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36310         * modules/mbrtowc: New file.
36311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36312         HAVE_MBRTOWC.
36313         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36314         HAVE_MBRTOWC.
36315         * doc/posix-functions/mbrtowc.texi: Document the new module.
36316
36317 2008-12-18  Bruno Haible  <bruno@clisp.org>
36318
36319         New module 'wctob'.
36320         * lib/wchar.in.h (wctob): New declaration.
36321         * lib/wctob.c: New file.
36322         * m4/wctob.m4: New file.
36323         * modules/wctob: New file.
36324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36325         HAVE_WCTOB.
36326         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36327         * doc/posix-functions/wctob.texi: Document the new module.
36328
36329 2008-12-18  Bruno Haible  <bruno@clisp.org>
36330
36331         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36332         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36333
36334 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36335
36336         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36337         G. Christensen" <tgc@jupiterrise.com>.
36338
36339         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36340         G. Christensen" <tgc@jupiterrise.com>.
36341
36342         * lib/flock.c: Need to include string.h.  Reported by "Tom
36343         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36344         <ebb9@byu.net>.
36345
36346 2008-12-18  Bruno Haible  <bruno@clisp.org>
36347
36348         * m4/locale-ja.m4: New file, from GNU gettext.
36349
36350 2008-12-17  Bruno Haible  <bruno@clisp.org>
36351
36352         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36353         Suggested by Eric Blake.
36354
36355 2008-12-17  Bruno Haible  <bruno@clisp.org>
36356
36357         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36358
36359 2008-12-17  Bruno Haible  <bruno@clisp.org>
36360
36361         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36362         * modules/mbsinit (Depends-on): Add verify.
36363         Suggested by Paul Eggert.
36364
36365 2008-12-17  Bruno Haible  <bruno@clisp.org>
36366
36367         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36368         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36369         gl_FUNC_MBRTOWC.
36370         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36371         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36372         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36373         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36374         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36375         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36376         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36377         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36378         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36379         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36380         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36381         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36382         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36383         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36384         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36385         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36386         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36387         * modules/trim (configure.ac): Likewise.
36388
36389 2008-12-17  Bruno Haible  <bruno@clisp.org>
36390
36391         * modules/btowc-tests: New file.
36392         * tests/test-btowc1.sh: New file.
36393         * tests/test-btowc2.sh: New file.
36394         * tests/test-btowc.c: New file.
36395
36396         New module 'btowc'.
36397         * lib/wchar.in.h (btowc): New declaration.
36398         * lib/btowc.c: New file.
36399         * m4/btowc.m4: New file.
36400         * modules/btowc: New file.
36401         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36402         HAVE_BTOWC.
36403         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36404         * doc/posix-functions/btowc.texi: Document the new module.
36405
36406 2008-12-17  Bruno Haible  <bruno@clisp.org>
36407
36408         New module 'mbsinit'.
36409         * lib/wchar.in.h (mbsinit): New declaration.
36410         * lib/mbsinit.c: New file.
36411         * m4/mbsinit.m4: New file.
36412         * modules/mbsinit: New file.
36413         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36414         HAVE_MBSINIT.
36415         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36416         HAVE_MBSINIT.
36417         * doc/posix-functions/mbsinit.texi: Document the new module.
36418
36419 2008-12-16  Bruno Haible  <bruno@clisp.org>
36420
36421         * lib/unistd.in.h: Add comment.
36422         * tests/test-environ.c: Don't include <stdlib.h>.
36423
36424 2008-12-16  Bruno Haible  <bruno@clisp.org>
36425
36426         * lib/parse-duration.h (parse_duration): Document return value
36427         convention.
36428         * lib/parse-duration.c: Include specification header first. Add
36429         comments.
36430         (_): Remove macro.
36431         (parse_year_month_day, parse_hour_minute_second): Move side effects
36432         outside of strchr call.
36433         (parse_non_iso8601): Move side effects outside of isspace call.
36434         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36435         call.
36436
36437 2008-12-16  Bruno Haible  <bruno@clisp.org>
36438
36439         * tests/test-parse-duration.sh: Produce no output when the test
36440         succeeds.
36441
36442 2008-12-16  Bruno Haible  <bruno@clisp.org>
36443
36444         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36445         expressions.
36446
36447 2008-12-15  Bruno Haible  <bruno@clisp.org>
36448
36449         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36450         * doc/glibc-functions/flistxattr.texi: Likewise.
36451         * doc/glibc-functions/fopencookie.texi: Likewise.
36452         * doc/glibc-functions/fremovexattr.texi: Likewise.
36453         * doc/glibc-functions/fsetxattr.texi: Likewise.
36454         * doc/glibc-functions/getxattr.texi: Likewise.
36455         * doc/glibc-functions/lgetxattr.texi: Likewise.
36456         * doc/glibc-functions/listxattr.texi: Likewise.
36457         * doc/glibc-functions/llistxattr.texi: Likewise.
36458         * doc/glibc-functions/lremovexattr.texi: Likewise.
36459         * doc/glibc-functions/lsetxattr.texi: Likewise.
36460         * doc/glibc-functions/removexattr.texi: Likewise.
36461         * doc/glibc-functions/setxattr.texi: Likewise.
36462         * doc/posix-functions/open_memstream.texi: Likewise.
36463
36464 2008-12-15  Eric Blake  <ebb9@byu.net>
36465
36466         Update doc for cygwin 1.7.
36467         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36468         functions.
36469         * doc/posix-functions/fchmodat.texi: Likewise.
36470         * doc/posix-functions/fchownat.texi: Likewise.
36471         * doc/posix-functions/fdopendir.texi: Likewise.
36472         * doc/posix-functions/fmemopen.texi: Likewise.
36473         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36474         * doc/posix-functions/fstatat.texi: Likewise.
36475         * doc/posix-functions/futimens.texi: Likewise.
36476         * doc/posix-functions/gai_strerror.texi: Likewise.
36477         * doc/posix-functions/getaddrinfo.texi: Likewise.
36478         * doc/posix-functions/getnameinfo.texi: Likewise.
36479         * doc/posix-functions/if_freenameindex.texi: Likewise.
36480         * doc/posix-functions/if_indextoname.texi: Likewise.
36481         * doc/posix-functions/if_nameindex.texi: Likewise.
36482         * doc/posix-functions/if_nametoindex.texi: Likewise.
36483         * doc/posix-functions/insque.texi: Likewise.
36484         * doc/posix-functions/linkat.texi: Likewise.
36485         * doc/posix-functions/llrint.texi: Likewise.
36486         * doc/posix-functions/llrintf.texi: Likewise.
36487         * doc/posix-functions/llrintl.texi: Likewise.
36488         * doc/posix-functions/lockf.texi: Likewise.
36489         * doc/posix-functions/lrintl.texi: Likewise.
36490         * doc/posix-functions/mkdirat.texi: Likewise.
36491         * doc/posix-functions/mkfifoat.texi: Likewise.
36492         * doc/posix-functions/mknodat.texi: Likewise.
36493         * doc/posix-functions/mq_close.texi: Likewise.
36494         * doc/posix-functions/mq_getattr.texi: Likewise.
36495         * doc/posix-functions/mq_notify.texi: Likewise.
36496         * doc/posix-functions/mq_open.texi: Likewise.
36497         * doc/posix-functions/mq_receive.texi: Likewise.
36498         * doc/posix-functions/mq_send.texi: Likewise.
36499         * doc/posix-functions/mq_setattr.texi: Likewise.
36500         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36501         * doc/posix-functions/mq_timedsend.texi: Likewise.
36502         * doc/posix-functions/mq_unlink.texi: Likewise.
36503         * doc/posix-functions/open_memstream.texi: Likewise.
36504         * doc/posix-functions/openat.texi: Likewise.
36505         * doc/posix-functions/posix_fadvise.texi: Likewise.
36506         * doc/posix-functions/posix_fallocate.texi: Likewise.
36507         * doc/posix-functions/posix_madvise.texi: Likewise.
36508         * doc/posix-functions/posix_memalign.texi: Likewise.
36509         * doc/posix-functions/posix_openpt.texi: Likewise.
36510         * doc/posix-functions/readlinkat.texi: Likewise.
36511         * doc/posix-functions/remque.texi: Likewise.
36512         * doc/posix-functions/renameat.texi: Likewise.
36513         * doc/posix-functions/rintl.texi: Likewise.
36514         * doc/posix-functions/sem_unlink.texi: Likewise.
36515         * doc/posix-functions/shm_open.texi: Likewise.
36516         * doc/posix-functions/shm_unlink.texi: Likewise.
36517         * doc/posix-functions/signgam.texi: Likewise.
36518         * doc/posix-functions/sigset.texi: Likewise.
36519         * doc/posix-functions/stpcpy.texi: Likewise.
36520         * doc/posix-functions/stpncpy.texi: Likewise.
36521         * doc/posix-functions/strerror.texi: Likewise.
36522         * doc/posix-functions/strtod.texi: Likewise.
36523         * doc/posix-functions/symlinkat.texi: Likewise.
36524         * doc/posix-functions/unlinkat.texi: Likewise.
36525         * doc/posix-functions/utimensat.texi: Likewise.
36526         * doc/glibc-functions/bindresvport.texi: Likewise.
36527         * doc/glibc-functions/dn_expand.texi: Likewise.
36528         * doc/glibc-functions/exp10.texi: Likewise.
36529         * doc/glibc-functions/exp10f.texi: Likewise.
36530         * doc/glibc-functions/fgetxattr.texi: Likewise.
36531         * doc/glibc-functions/flistxattr.texi: Likewise.
36532         * doc/glibc-functions/fopencookie.texi: Likewise.
36533         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36534         * doc/glibc-functions/fremovexattr.texi: Likewise.
36535         * doc/glibc-functions/fsetxattr.texi: Likewise.
36536         * doc/glibc-functions/getifaddrs.texi: Likewise.
36537         * doc/glibc-functions/getxattr.texi: Likewise.
36538         * doc/glibc-functions/lgetxattr.texi: Likewise.
36539         * doc/glibc-functions/listxattr.texi: Likewise.
36540         * doc/glibc-functions/llistxattr.texi: Likewise.
36541         * doc/glibc-functions/lremovexattr.texi: Likewise.
36542         * doc/glibc-functions/lsetxattr.texi: Likewise.
36543         * doc/glibc-functions/pow10.texi: Likewise.
36544         * doc/glibc-functions/pow10f.texi: Likewise.
36545         * doc/glibc-functions/rcmd_af.texi: Likewise.
36546         * doc/glibc-functions/removexattr.texi: Likewise.
36547         * doc/glibc-functions/res_init.texi: Likewise.
36548         * doc/glibc-functions/res_mkquery.texi: Likewise.
36549         * doc/glibc-functions/res_query.texi: Likewise.
36550         * doc/glibc-functions/res_querydomain.texi: Likewise.
36551         * doc/glibc-functions/res_send.texi: Likewise.
36552         * doc/glibc-functions/rresvport_af.texi: Likewise.
36553         * doc/glibc-functions/setxattr.texi: Likewise.
36554         * doc/glibc-functions/strcasestr.texi: Likewise.
36555
36556 2008-12-15  Bruno Haible  <bruno@clisp.org>
36557
36558         Fix compilation error on OSF/1 4.0.
36559         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36560         <sys/time.h>, simply delegate to the system header.
36561         Reported by Daniel Richard G. <oss@teragram.com>.
36562
36563 2008-12-15  Bruno Haible  <bruno@clisp.org>
36564
36565         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36566         * doc/posix-functions/fchmodat.texi: Likewise.
36567         * doc/posix-functions/fchownat.texi: Likewise.
36568         * doc/posix-functions/fdopendir.texi: Likewise.
36569         * doc/posix-functions/fstatat.texi: Likewise.
36570         * doc/posix-functions/mkdirat.texi: Likewise.
36571         * doc/posix-functions/unlinkat.texi: Likewise.
36572
36573 2008-12-14  Bruno Haible  <bruno@clisp.org>
36574
36575         Update doc for POSIX:2008.
36576         * doc/posix-functions/faccessat.texi: New file.
36577         * doc/posix-functions/fchmodat.texi: New file.
36578         * doc/posix-functions/fchownat.texi: New file.
36579         * doc/posix-functions/fdopendir.texi: New file.
36580         * doc/posix-functions/fstatat.texi: New file.
36581         * doc/posix-functions/futimens.texi: New file.
36582         * doc/posix-functions/linkat.texi: New file.
36583         * doc/posix-functions/mkdirat.texi: New file.
36584         * doc/posix-functions/mkfifoat.texi: New file.
36585         * doc/posix-functions/mknodat.texi: New file.
36586         * doc/posix-functions/open_wmemstream.texi: New file.
36587         * doc/posix-functions/openat.texi: New file.
36588         * doc/posix-functions/psiginfo.texi: New file.
36589         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36590         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36591         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36592         * doc/posix-functions/readlinkat.texi: New file.
36593         * doc/posix-functions/renameat.texi: New file.
36594         * doc/posix-functions/strerror_l.texi: New file.
36595         * doc/posix-functions/symlinkat.texi: New file.
36596         * doc/posix-functions/unlinkat.texi: New file.
36597         * doc/posix-functions/utimensat.texi: New file.
36598         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36599
36600 2008-12-14  Bruno Haible  <bruno@clisp.org>
36601
36602         Update doc for POSIX:2008.
36603         * doc/posix-functions/alphasort.texi: Renamed from
36604         doc/glibc-functions/alphasort.texi.
36605         * doc/posix-functions/dirfd.texi: Renamed from
36606         doc/glibc-functions/dirfd.texi.
36607         * doc/posix-functions/dprintf.texi: Renamed from
36608         doc/glibc-functions/dprintf.texi.
36609         * doc/posix-functions/duplocale.texi: Renamed from
36610         doc/glibc-functions/duplocale.texi.
36611         * doc/posix-functions/fexecve.texi: Renamed from
36612         doc/glibc-functions/fexecve.texi.
36613         * doc/posix-functions/fmemopen.texi: Renamed from
36614         doc/glibc-functions/fmemopen.texi.
36615         * doc/posix-functions/freelocale.texi: Renamed from
36616         doc/glibc-functions/freelocale.texi.
36617         * doc/posix-functions/getdate_err.texi: Renamed from
36618         doc/glibc-functions/getdate_err.texi.
36619         * doc/posix-functions/isalnum_l.texi: Renamed from
36620         doc/glibc-functions/isalnum_l.texi.
36621         * doc/posix-functions/isalpha_l.texi: Renamed from
36622         doc/glibc-functions/isalpha_l.texi.
36623         * doc/posix-functions/isblank_l.texi: Renamed from
36624         doc/glibc-functions/isblank_l.texi.
36625         * doc/posix-functions/iscntrl_l.texi: Renamed from
36626         doc/glibc-functions/iscntrl_l.texi.
36627         * doc/posix-functions/isdigit_l.texi: Renamed from
36628         doc/glibc-functions/isdigit_l.texi.
36629         * doc/posix-functions/isgraph_l.texi: Renamed from
36630         doc/glibc-functions/isgraph_l.texi.
36631         * doc/posix-functions/islower_l.texi: Renamed from
36632         doc/glibc-functions/islower_l.texi.
36633         * doc/posix-functions/isprint_l.texi: Renamed from
36634         doc/glibc-functions/isprint_l.texi.
36635         * doc/posix-functions/ispunct_l.texi: Renamed from
36636         doc/glibc-functions/ispunct_l.texi.
36637         * doc/posix-functions/isspace_l.texi: Renamed from
36638         doc/glibc-functions/isspace_l.texi.
36639         * doc/posix-functions/isupper_l.texi: Renamed from
36640         doc/glibc-functions/isupper_l.texi.
36641         * doc/posix-functions/iswalnum_l.texi: Renamed from
36642         doc/glibc-functions/iswalnum_l.texi.
36643         * doc/posix-functions/iswalpha_l.texi: Renamed from
36644         doc/glibc-functions/iswalpha_l.texi.
36645         * doc/posix-functions/iswblank_l.texi: Renamed from
36646         doc/glibc-functions/iswblank_l.texi.
36647         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36648         doc/glibc-functions/iswcntrl_l.texi.
36649         * doc/posix-functions/iswctype_l.texi: Renamed from
36650         doc/glibc-functions/iswctype_l.texi.
36651         * doc/posix-functions/iswdigit_l.texi: Renamed from
36652         doc/glibc-functions/iswdigit_l.texi.
36653         * doc/posix-functions/iswgraph_l.texi: Renamed from
36654         doc/glibc-functions/iswgraph_l.texi.
36655         * doc/posix-functions/iswlower_l.texi: Renamed from
36656         doc/glibc-functions/iswlower_l.texi.
36657         * doc/posix-functions/iswprint_l.texi: Renamed from
36658         doc/glibc-functions/iswprint_l.texi.
36659         * doc/posix-functions/iswpunct_l.texi: Renamed from
36660         doc/glibc-functions/iswpunct_l.texi.
36661         * doc/posix-functions/iswspace_l.texi: Renamed from
36662         doc/glibc-functions/iswspace_l.texi.
36663         * doc/posix-functions/iswupper_l.texi: Renamed from
36664         doc/glibc-functions/iswupper_l.texi.
36665         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36666         doc/glibc-functions/iswxdigit_l.texi.
36667         * doc/posix-functions/isxdigit_l.texi: Renamed from
36668         doc/glibc-functions/isxdigit_l.texi.
36669         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36670         doc/glibc-functions/mbsnrtowcs.texi.
36671         * doc/posix-functions/mkdtemp.texi: Renamed from
36672         doc/glibc-functions/mkdtemp.texi.
36673         * doc/posix-functions/newlocale.texi: Renamed from
36674         doc/glibc-functions/newlocale.texi.
36675         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36676         doc/glibc-functions/nl_langinfo_l.texi.
36677         * doc/posix-functions/open_memstream.texi: Renamed from
36678         doc/glibc-functions/open_memstream.texi.
36679         * doc/posix-functions/opterr.texi: Renamed from
36680         doc/glibc-functions/opterr.texi.
36681         * doc/posix-functions/optind.texi: Renamed from
36682         doc/glibc-functions/optind.texi.
36683         * doc/posix-functions/optopt.texi: Renamed from
36684         doc/glibc-functions/optopt.texi.
36685         * doc/posix-functions/psignal.texi: Renamed from
36686         doc/glibc-functions/psignal.texi.
36687         * doc/posix-functions/scandir.texi: Renamed from
36688         doc/glibc-functions/scandir.texi.
36689         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36690         doc/glibc-functions/sched_get_priority_min.texi.
36691         * doc/posix-functions/signgam.texi: Renamed from
36692         doc/glibc-functions/signgam.texi.
36693         * doc/posix-functions/stpcpy.texi: Renamed from
36694         doc/glibc-functions/stpcpy.texi.
36695         * doc/posix-functions/stpncpy.texi: Renamed from
36696         doc/glibc-functions/stpncpy.texi.
36697         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36698         doc/glibc-functions/strcasecmp_l.texi.
36699         * doc/posix-functions/strcoll_l.texi: Renamed from
36700         doc/glibc-functions/strcoll_l.texi.
36701         * doc/posix-functions/strfmon_l.texi: Renamed from
36702         doc/glibc-functions/strfmon_l.texi.
36703         * doc/posix-functions/strftime_l.texi: Renamed from
36704         doc/glibc-functions/strftime_l.texi.
36705         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36706         doc/glibc-functions/strncasecmp_l.texi.
36707         * doc/posix-functions/strndup.texi: Renamed from
36708         doc/glibc-functions/strndup.texi.
36709         * doc/posix-functions/strnlen.texi: Renamed from
36710         doc/glibc-functions/strnlen.texi.
36711         * doc/posix-functions/strsignal.texi: Renamed from
36712         doc/glibc-functions/strsignal.texi.
36713         * doc/posix-functions/strxfrm_l.texi: Renamed from
36714         doc/glibc-functions/strxfrm_l.texi.
36715         * doc/posix-functions/timer_gettime.texi: Renamed from
36716         doc/glibc-functions/timer_gettime.texi.
36717         * doc/posix-functions/tolower_l.texi: Renamed from
36718         doc/glibc-functions/tolower_l.texi.
36719         * doc/posix-functions/toupper_l.texi: Renamed from
36720         doc/glibc-functions/toupper_l.texi.
36721         * doc/posix-functions/towctrans_l.texi: Renamed from
36722         doc/glibc-functions/towctrans_l.texi.
36723         * doc/posix-functions/towlower_l.texi: Renamed from
36724         doc/glibc-functions/towlower_l.texi.
36725         * doc/posix-functions/towupper_l.texi: Renamed from
36726         doc/glibc-functions/towupper_l.texi.
36727         * doc/posix-functions/uselocale.texi: Renamed from
36728         doc/glibc-functions/uselocale.texi.
36729         * doc/posix-functions/vdprintf.texi: Renamed from
36730         doc/glibc-functions/vdprintf.texi.
36731         * doc/posix-functions/wcpcpy.texi:
36732         Renamed from doc/glibc-functions/wcpcpy.texi.
36733         * doc/posix-functions/wcpncpy.texi: Renamed from
36734         doc/glibc-functions/wcpncpy.texi.
36735         * doc/posix-functions/wcscasecmp.texi: Renamed from
36736         doc/glibc-functions/wcscasecmp.texi.
36737         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36738         doc/glibc-functions/wcscasecmp_l.texi.
36739         * doc/posix-functions/wcscoll_l.texi: Renamed from
36740         doc/glibc-functions/wcscoll_l.texi.
36741         * doc/posix-functions/wcsdup.texi: Renamed from
36742         doc/glibc-functions/wcsdup.texi.
36743         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36744         doc/glibc-functions/wcsncasecmp.texi.
36745         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36746         doc/glibc-functions/wcsncasecmp_l.texi.
36747         * doc/posix-functions/wcsnlen.texi: Renamed from
36748         doc/glibc-functions/wcsnlen.texi.
36749         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36750         doc/glibc-functions/wcsnrtombs.texi.
36751         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36752         doc/glibc-functions/wcsxfrm_l.texi.
36753         * doc/posix-functions/wctrans_l.texi: Renamed from
36754         doc/glibc-functions/wctrans_l.texi.
36755         * doc/posix-functions/wctype_l.texi: Renamed from
36756         doc/glibc-functions/wctype_l.texi.
36757         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36758         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36759         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36760         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36761         these subsections.
36762         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36763         Remove sections.
36764
36765 2008-12-14  Bruno Haible  <bruno@clisp.org>
36766
36767         Update doc for POSIX:2008.
36768         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36769
36770 2008-12-14  Bruno Haible  <bruno@clisp.org>
36771
36772         Update doc for POSIX:2008.
36773         * doc/pastposix-functions/bcmp.texi: Renamed from
36774         doc/posix-functions/bcmp.texi.
36775         * doc/pastposix-functions/bcopy.texi: Renamed from
36776         doc/posix-functions/bcopy.texi.
36777         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36778         doc/posix-functions/bsd_signal.texi.
36779         * doc/pastposix-functions/bzero.texi: Renamed from
36780         doc/posix-functions/bzero.texi.
36781         * doc/pastposix-functions/ecvt.texi: Renamed from
36782         doc/posix-functions/ecvt.texi.
36783         * doc/pastposix-functions/fcvt.texi: Renamed from
36784         doc/posix-functions/fcvt.texi.
36785         * doc/pastposix-functions/ftime.texi: Renamed from
36786         doc/posix-functions/ftime.texi.
36787         * doc/pastposix-functions/gcvt.texi: Renamed from
36788         doc/posix-functions/gcvt.texi.
36789         * doc/pastposix-functions/getcontext.texi: Renamed from
36790         doc/posix-functions/getcontext.texi.
36791         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36792         doc/posix-functions/gethostbyaddr.texi.
36793         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36794         doc/posix-functions/gethostbyname.texi.
36795         * doc/pastposix-functions/getwd.texi: Renamed from
36796         doc/posix-functions/getwd.texi.
36797         * doc/pastposix-functions/h_errno.texi: Renamed from
36798         doc/posix-functions/h_errno.texi.
36799         * doc/pastposix-functions/index.texi: Renamed from
36800         doc/posix-functions/index.texi.
36801         * doc/pastposix-functions/makecontext.texi: Renamed from
36802         doc/posix-functions/makecontext.texi.
36803         * doc/pastposix-functions/mktemp.texi: Renamed from
36804         doc/posix-functions/mktemp.texi.
36805         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36806         doc/posix-functions/pthread_attr_getstackaddr.texi.
36807         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36808         doc/posix-functions/pthread_attr_setstackaddr.texi.
36809         * doc/pastposix-functions/rindex.texi: Renamed from
36810         doc/posix-functions/rindex.texi.
36811         * doc/pastposix-functions/scalb.texi: Renamed from
36812         doc/posix-functions/scalb.texi.
36813         * doc/pastposix-functions/setcontext.texi: Renamed from
36814         doc/posix-functions/setcontext.texi.
36815         * doc/pastposix-functions/swapcontext.texi: Renamed from
36816         doc/posix-functions/swapcontext.texi.
36817         * doc/pastposix-functions/ualarm.texi: Renamed from
36818         doc/posix-functions/ualarm.texi.
36819         * doc/pastposix-functions/usleep.texi: Renamed from
36820         doc/posix-functions/usleep.texi.
36821         * doc/pastposix-functions/vfork.texi: Renamed from
36822         doc/posix-functions/vfork.texi.
36823         * doc/pastposix-functions/wcswcs.texi: Renamed from
36824         doc/posix-functions/wcswcs.texi.
36825         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36826         (Function Substitutes): Update.
36827
36828 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36829
36830         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36831         m4/strerror.m4.
36832
36833 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36834             Bruno Haible  <bruno@clisp.org>
36835
36836         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36837
36838 2008-12-13  Bruno Haible  <bruno@clisp.org>
36839
36840         * modules/strtoull (Depends-on): Remove unistd.
36841
36842 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36843
36844         * modules/strtoull (Depends-on): Add stdlib.
36845
36846 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36847
36848         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36849
36850 2008-12-10  Jim Meyering  <meyering@redhat.com>
36851
36852         gl_ASSERT: don't say assertions are disabled when they're not
36853         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36854         "checking whether to enable assertions... no", when they are in
36855         fact enabled.  This is solely a bug in the output of configure.
36856         In spite of saying "no", NDEBUG was not defined in that case.
36857         Also, as noted by Eric Blake, leave assertions enabled upon
36858         --enable-assert=INVALID.
36859
36860 2008-12-10  Bruno Haible  <bruno@clisp.org>
36861
36862         Change MODULES.html to refer to POSIX:2008 where possible.
36863         * MODULES.html.sh (POSIX2008_URL): New variable.
36864         (posix_headers): Remove sys/timeb, ucontext.
36865         (posix2001_headers): New variable.
36866         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36867         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36868         index, makecontext, mktemp, pthread_attr_getstackaddr,
36869         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36870         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36871         (posix2001_functions): New variable.
36872         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36873         otherwise.
36874
36875 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36876
36877         add missing include to parse-duration.c
36878         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36879         * modules/parse-duration (Depends-on): Add xalloc.
36880
36881         fix sed script reading maint.mk
36882         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36883         (syntax-check-rules): Use it.
36884
36885 2008-12-09  Bruno Haible  <bruno@clisp.org>
36886
36887         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36888         MacOS X 10.4/PowerPC.
36889         Reported by Simon Josefsson.
36890
36891 2008-12-08  Jim Meyering  <meyering@redhat.com>
36892
36893         work around mingw's lack of some S_IF definitions
36894         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36895         Reported by Simon Josefsson.
36896
36897 2008-12-08  Bruno Haible  <bruno@clisp.org>
36898
36899         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36900         applied to variables. Needed on MacOS X 10.4/PowerPC.
36901         Reported by Simon Josefsson.
36902
36903 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36904         and Eric Blake  <ebb9@byu.net>
36905
36906         assert: honor --enable-assert
36907         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36908         order to honor --enable-assert, rather than treating it as a
36909         synonym for --disable-assert.
36910
36911 2008-12-08  Jim Meyering  <meyering@redhat.com>
36912
36913         * lib/posixtm.c: Remove now-useless declaration of mktime.
36914
36915         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36916
36917 2008-12-07  Bruno Haible  <bruno@clisp.org>
36918
36919         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36920         test_once): Mark functions as static.
36921         * tests/test-tls.c (test_tls): Likewise.
36922
36923 2008-12-07  Bruno Haible  <bruno@clisp.org>
36924
36925         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36926         iconv_register_autodetect.
36927
36928 2008-12-07  Jim Meyering  <meyering@redhat.com>
36929
36930         posixtm.c: avoid a warning
36931         * lib/posixtm.c (posixtime): Don't initialize tm0.
36932         It's no longer needed to placate gcc4's -Wuninitialized,
36933         and the attempt to placate would elicit a new warning.
36934
36935         unicodeio.c: mark unused parameters
36936         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36937         (fallback_failure_callback): Likewise.
36938
36939 2008-12-07  Bruno Haible  <bruno@clisp.org>
36940
36941         * gnulib-tool (func_create_testdir): When building the tests
36942         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36943         Reported by Simon Josefsson.
36944
36945 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36946
36947         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36948
36949 2008-12-06  Bruno Haible  <bruno@clisp.org>
36950
36951         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36952         Suggested by Eric Blake.
36953
36954 2008-12-06  Bruno Haible  <bruno@clisp.org>
36955
36956         Fix a c-stack test failure on MacOS X.
36957         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36958         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36959         handler for SIGBUS as well.
36960         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36961         install a signal handler for SIGBUS as well.
36962         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36963
36964 2008-12-06  Bruno Haible  <bruno@clisp.org>
36965
36966         Advocacy documentation.
36967         * doc/gnulib-intro.texi (Benefits): New section.
36968         * doc/gnulib.texi: Update.
36969
36970 2008-12-06  Bruno Haible  <bruno@clisp.org>
36971
36972         Document the 'manywarnings' module.
36973         * doc/manywarnings.texi: New file.
36974         * doc/gnulib.texi: Include it.
36975
36976 2008-12-05  Eric Blake  <ebb9@byu.net>
36977
36978         tests: silence some gcc warnings
36979         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36980         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36981         type mismatches.
36982
36983 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36984             Bruno Haible  <bruno@clisp.org>
36985
36986         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36987
36988 2008-11-29  Jim Meyering  <meyering@redhat.com>
36989
36990         unicodeio.c: mark unused parameters
36991         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36992         (fallback_failure_callback): Likewise.
36993
36994         fts: fix a thinko
36995         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36996         (set_stat_type): Return S_IF*-valued "type" directly.
36997         Prompted by James Youngman's spotting a related bug.
36998         Confirmed by further testing through find.
36999
37000         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
37001         * lib/fts.c (D_TYPE): Define.
37002         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
37003         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
37004         (s_ifmt_shift_bits): New function.
37005         (set_stat_type): New function.
37006         (fts_build): When not calling fts_stat, call set_stat_type
37007         to propagate dirent.d_type info to fts_read caller.
37008         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
37009         fts_statp->st_mode type information may be valid.
37010
37011 2008-11-28  Simon Josefsson  <simon@josefsson.org>
37012
37013         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
37014         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
37015         <sds@gnu.org>.
37016
37017 2008-11-20  Bruno Haible  <bruno@clisp.org>
37018
37019         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
37020         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
37021         INCLUDE_NEXT.
37022         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
37023         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
37024         * modules/math (Makefile.am): Substitute
37025         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
37026         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37027
37028 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37029             Bruno Haible  <bruno@clisp.org>
37030
37031         * lib/stdint.in.h: Define all type macros so that their expansion is
37032         a single typedef'ed token. Fixes a compilation failure in Boost which
37033         does "using ::int8_t;".
37034
37035 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37036
37037         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
37038         gl_MANYWARN_ALL_GCC.
37039         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
37040         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
37041         * modules/manywarnings: New file.
37042         * MODULES.html.sh: Mention manywarnings module.
37043
37044 2008-11-18  Bruno Haible  <bruno@clisp.org>
37045
37046         * doc/gnulib-tool.texi (Unit tests): New section.
37047
37048 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37049
37050         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
37051         paths like 'lib/po/foo.po'.
37052
37053 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37054
37055         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
37056         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
37057
37058 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37059
37060         * m4/warnings.m4: Use CPPFLAGS to really check whether the
37061         parameter works.
37062
37063 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37064
37065         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
37066
37067 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37068
37069         * modules/parse-duration-tests: New file.
37070         * tests/test-parse-duration.sh: New file.
37071         * tests/test-parse-duration.c: New file.
37072
37073         New module 'parse-duration'.
37074         * lib/parse-duration.h: New file.
37075         * lib/parse-duration.c: New file.
37076         * modules/parse-duration: New file.
37077
37078 2008-11-17  Bruno Haible  <bruno@clisp.org>
37079
37080         * tests/test-select-out.sh: Comment out the first pipe test.
37081         Reported by Simon Josefsson.
37082
37083 2008-11-17  Bruno Haible  <bruno@clisp.org>
37084
37085         * modules/getaddrinfo (Depends-on): Add servent, hostent.
37086         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
37087         gl_HOSTENT.
37088
37089 2008-11-17  Bruno Haible  <bruno@clisp.org>
37090
37091         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
37092         -lnetwork and -lnet. Needed for Haiku and BeOS.
37093
37094 2008-11-16  Bruno Haible  <bruno@clisp.org>
37095
37096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
37097
37098 2008-11-16  Bruno Haible  <bruno@clisp.org>
37099
37100         Avoid test failure on Haiku.
37101         * tests/test-fsync.c: Include <errno.h>.
37102         (main): Don't require that fsync (0) fails.
37103
37104 2008-11-15  Bruno Haible  <bruno@clisp.org>
37105
37106         New module 'hostent'.
37107         * modules/hostent: New file.
37108         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
37109
37110 2008-11-15  Bruno Haible  <bruno@clisp.org>
37111
37112         New module 'servent'.
37113         * modules/servent: New file.
37114         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
37115
37116 2008-11-15  Bruno Haible  <bruno@clisp.org>
37117
37118         Avoid generating same test program with two different rules.
37119         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
37120         test-frexp to test-frexp-nolibm.
37121         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
37122         test-frexpl to test-frexpl-nolibm.
37123
37124 2008-11-15  Bruno Haible  <bruno@clisp.org>
37125
37126         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
37127         $(FREXPL_LIBM).
37128
37129 2008-11-15  Bruno Haible  <bruno@clisp.org>
37130
37131         * lib/netdb.in.h: Activate the definitions also when the system's
37132         <netdb.h> has 'struct addrinfo'.
37133         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
37134         EAI_OVERFLOW or AI_NUMERICSERV.
37135         * doc/posix-headers/netdb.texi: Document the problem.
37136
37137 2008-11-15  Bruno Haible  <bruno@clisp.org>
37138
37139         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
37140
37141         Make the 'sched' module work on platforms where <sched.h> exists but
37142         is incomplete (such as Haiku).
37143         * lib/sched.in.h; Include the system's <sched.h> if it exists.
37144         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
37145         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
37146         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
37147         HAVE_STRUCT_SCHED_PARAM.
37148         * modules/sched (Depends-on): Add include_next.
37149         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
37150         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
37151         * doc/posix-headers/sched.texi: Document the issue.
37152
37153 2008-11-13  Jim Meyering  <meyering@redhat.com>
37154
37155         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
37156         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
37157         test would fail due to the difference in the Report bugs to ...
37158         line.  The expected address is empty, "<>", while the actual
37159         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
37160
37161 2008-11-12  Bruno Haible  <bruno@clisp.org>
37162
37163         lstat: don't compile lstat.c on systems lacking lstat
37164         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
37165         which don't have lstat; this is handled by lib/sys_stat.in.h already.
37166         Reported by Daniel P. Berrange via Jim Meyering.
37167
37168 2008-11-12  Jim Meyering  <meyering@redhat.com>
37169
37170         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
37171
37172 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37173
37174         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
37175         instead.
37176
37177 2008-11-12  Bruno Haible  <bruno@clisp.org>
37178
37179         * lib/unicodeio.c: Include unistr.h.
37180         (utf8_wctomb): Remove function.
37181         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
37182
37183 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37184
37185         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
37186         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
37187         <bruno@clisp.org>.
37188         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
37189
37190 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37191
37192         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
37193         * doc/gnulib.texi: Add section for warnings.
37194
37195 2008-11-11  Bruno Haible  <bruno@clisp.org>
37196
37197         * lib/sockets.h: Add a comment.
37198
37199 2008-11-11  Karl Berry  <karl@gnu.org>
37200
37201         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
37202
37203 2008-11-11  Eric Blake  <ebb9@byu.net>
37204
37205         fdl.texi: avoid git symlinks
37206         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
37207
37208 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37209
37210         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
37211
37212 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37213
37214         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
37215         (gl_WARN_ADD): Substitute $2 if literal.
37216
37217 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37218
37219         * m4/warning.m4: Remove.
37220
37221 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37222
37223         * m4/warnings.m4: Almost complete rewrite. :-)
37224
37225 2008-11-10  Simon Josefsson  <simon@josefsson.org>
37226
37227         * modules/warnings: New module.
37228         * m4/warnings.m4: New file.
37229         * MODULES.html.sh: Mention warnings module.
37230         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
37231         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37232
37233 2008-11-10  Eric Blake  <ebb9@byu.net>
37234
37235         fdl.texi: make a symlink to the latest version
37236         * doc/standards.texi: Revert today's earlier change.
37237         * doc/fdl-1.2.texi: Rename from old fdl.texi...
37238         * doc/fdl.texi: ...and replace this with a symlink to the newer
37239         fdl-1.3.texi.
37240
37241 2008-11-10  Bruno Haible  <bruno@clisp.org>
37242
37243         * tests/test-select-fd.c (main): Accept the result file name as fourth
37244         argument.
37245         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37246         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37247
37248 2008-11-10  Bruno Haible  <bruno@clisp.org>
37249
37250         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37251         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37252         as autoconf-substituted macros.
37253         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37254         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37255         gl_NETDB_H_DEFAULTS. Set these variables.
37256         * modules/netdb (Makefile.am): Substitute these variables.
37257
37258 2008-11-10  Eric Blake  <ebb9@byu.net>
37259
37260         standards.texi: include correct file for FDL 1.3
37261         * doc/standards.texi (GNU Free Documentation License): Change
37262         include file to pull in FDL 1.3, not 1.2.
37263
37264         fdl.texi: revert accidental change to license
37265         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37266
37267 2008-11-10  Bruno Haible  <bruno@clisp.org>
37268
37269         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37270         cross-compiling guesses also when the native compile gives no result.
37271
37272 2008-11-10  Bruno Haible  <bruno@clisp.org>
37273
37274         * lib/spawni.c (__spawni): Force variable into the stack.
37275
37276 2008-11-10  Bruno Haible  <bruno@clisp.org>
37277
37278         Add support for Haiku.
37279         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37280         glibc and BeOS, but also on Haiku.
37281         * lib/fpurge.c (fpurge): Likewise.
37282         * lib/freadable.c (freadable): Likewise.
37283         * lib/freadahead.c (freadahead): Likewise.
37284         * lib/freading.c (freading): Likewise.
37285         * lib/freadptr.c (freadptr): Likewise.
37286         * lib/freadseek.c (freadptrinc): Likewise.
37287         * lib/fseeko.c (rpl_fseeko): Likewise.
37288         * lib/fseterr.c (fseterr): Likewise.
37289         * lib/fwritable.c (fwritable): Likewise.
37290         * lib/fwriting.c (fwriting): Likewise.
37291         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37292
37293 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37294
37295         * lib/config.charset: Treat Haiku like BeOS.
37296
37297 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37298
37299         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37300         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37301
37302 2008-11-08  Bruno Haible  <bruno@clisp.org>
37303
37304         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37305         AC_CACHE_CHECK.
37306
37307 2008-11-08  Bruno Haible  <bruno@clisp.org>
37308
37309         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37310
37311 2008-11-08  Bruno Haible  <bruno@clisp.org>
37312
37313         * tests/test-select-fd.c: New file.
37314         * tests/test-select-in.sh: New file.
37315         * tests/test-select-out.sh: New file.
37316         * tests/test-select-stdin.c: New file.
37317         * modules/select-tests (Files): Add the new files.
37318         (Depends-on): Add gettimeofday.
37319         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37320         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37321         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37322
37323 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37324             Bruno Haible  <bruno@clisp.org>
37325
37326         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37327
37328 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37329
37330         * build-aux/pmccabe2html: Added support for C++ source files.
37331
37332 2008-11-05  Ben Pfaff  <blp@gnu.org>
37333
37334         Fix lib/close.c build on Windows.
37335         * modules/close (Files): Add lib/w32sock.h.
37336
37337 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37338
37339         Accept Bison's NEWS format.
37340         * build-aux/announce-gen (print_news_deltas): Tweak
37341         $re_prefix.
37342
37343 2008-11-04  Bruno Haible  <bruno@clisp.org>
37344
37345         * modules/random_r (Maintainer): Add glibc.
37346
37347 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37348
37349         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37350         by karl@freefriends.org (Karl Berry).
37351         * doc/alloca.texi: Likewise.
37352         * doc/c-ctype.texi: Likewise.
37353         * doc/c-strcase.texi: Likewise.
37354         * doc/c-strcaseeq.texi: Likewise.
37355         * doc/c-strcasestr.texi: Likewise.
37356         * doc/c-strstr.texi: Likewise.
37357         * doc/c-strtod.texi: Likewise.
37358         * doc/c-strtold.texi: Likewise.
37359         * doc/ctime.texi: Likewise.
37360         * doc/error.texi: Likewise.
37361         * doc/fdl.texi: Likewise.
37362         * doc/gcd.texi: Likewise.
37363         * doc/getdate.texi: Likewise.
37364         * doc/gnulib-intro.texi: Likewise.
37365         * doc/gnulib-tool.texi: Likewise.
37366         * doc/gnulib.texi: Likewise.
37367         * doc/inet_ntoa.texi: Likewise.
37368         * doc/maintain.texi: Likewise.
37369         * doc/make-stds.texi: Likewise.
37370         * doc/quote.texi: Likewise.
37371         * doc/regexprops-generic.texi: Likewise.
37372         * doc/standards.texi: Likewise.
37373         * doc/verify.texi: Likewise.
37374         * doc/visibility.texi: Likewise.
37375         * doc/gnulib.texi (GNU Free Documentation License): Include
37376         fdl-1.3.texi instead of fdl.texi.
37377
37378 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37379
37380         * doc/fdl-1.3.texi: New file, from
37381         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37382         * modules/fdl-1.3: Add.
37383         * MODULES.html.sh: Add fdl-1.3.
37384
37385 2008-11-03  Bruno Haible  <bruno@clisp.org>
37386
37387         Make determination of absolute name of header file work with AIX xlc.
37388         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37389         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37390         preprocessing.
37391         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37392         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37393
37394 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37395
37396         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37397         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37398         <ludo@gnu.org>.
37399
37400 2008-11-02  Bruno Haible  <bruno@clisp.org>
37401
37402         Mark 'strpbrk' obsolete.
37403         * modules/strpbrk (Status, Notice): New sections.
37404         * modules/strtok_r (Depends-on): Add strpbrk.
37405
37406 2008-11-02  Bruno Haible  <bruno@clisp.org>
37407
37408         Mark 'strdup' obsolete.
37409         * modules/strdup (Status, Notice): New sections.
37410         * modules/findprog (Depends-on): Add strdup.
37411         * modules/getaddrinfo (Depends-on): Likewise.
37412         * modules/localename (Depends-on): Likewise.
37413         * modules/relocatable-lib (Depends-on): Likewise.
37414         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37415         * modules/relocatable-prog (Depends-on): Likewise.
37416         * modules/trim (Depends-on): Likewise.
37417         * modules/unictype/gen-ctype (Depends-on): Likewise.
37418         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37419
37420 2008-11-02  Bruno Haible  <bruno@clisp.org>
37421
37422         Mark 'strcspn' obsolete.
37423         * modules/strcspn (Status, Notice): New sections.
37424
37425 2008-11-02  Bruno Haible  <bruno@clisp.org>
37426
37427         Mark 'rmdir' obsolete.
37428         * modules/rmdir (Status, Notice): New sections.
37429         * modules/clean-temp (Depends-on): Add rmdir.
37430         * modules/openat (Depends-on): Likewise.
37431
37432 2008-11-02  Bruno Haible  <bruno@clisp.org>
37433
37434         Mark 'raise' obsolete.
37435         * modules/raise (Status, Notice): New sections.
37436         (Include): Specify <signal.h>.
37437         * modules/stdio (Depends-on): Add raise.
37438         * modules/write (Depends-on): Likewise.
37439
37440 2008-11-02  Bruno Haible  <bruno@clisp.org>
37441
37442         Mark 'memset' obsolete.
37443         * modules/memset (Status, Notice): New sections.
37444
37445 2008-11-02  Bruno Haible  <bruno@clisp.org>
37446
37447         Mark 'memmove' obsolete.
37448         * modules/memmove (Status, Notice): New sections.
37449         * modules/argp (Depends-on): Add memmove.
37450         * modules/argz (Depends-on): Likewise.
37451         * modules/canonicalize (Depends-on): Likewise.
37452         * modules/canonicalize-lgpl (Depends-on): Likewise.
37453         * modules/fts (Depends-on): Likewise.
37454         * modules/getcwd (Depends-on): Likewise.
37455         * modules/human (Depends-on): Likewise.
37456         * modules/regex (Depends-on): Likewise.
37457         * modules/striconveh (Depends-on): Likewise.
37458         * modules/trim (Depends-on): Likewise.
37459         * modules/unistr/u8-move (Depends-on): Likewise.
37460         * modules/unistr/u16-move (Depends-on): Likewise.
37461         * modules/unistr/u32-move (Depends-on): Likewise.
37462
37463 2008-11-02  Bruno Haible  <bruno@clisp.org>
37464
37465         Mark 'memcpy' obsolete.
37466         * modules/memcpy (Status, Notice): New sections.
37467
37468 2008-11-02  Bruno Haible  <bruno@clisp.org>
37469
37470         Mark 'memcmp' obsolete.
37471         * modules/memcmp (Status, Notice): New sections.
37472         * modules/argmatch (Depends-on): Add memchr.
37473         * modules/backupfile (Depends-on): Likewise.
37474         * modules/c-strcasestr (Depends-on): Likewise.
37475         * modules/crypto/des (Depends-on): Likewise.
37476         * modules/csharpcomp (Depends-on): Likewise.
37477         * modules/fnmatch (Depends-on): Likewise.
37478         * modules/git-merge-changelog (Depends-on): Likewise.
37479         * modules/isnand (Depends-on): Likewise.
37480         * modules/isnand-nolibm (Depends-on): Likewise.
37481         * modules/isnanf (Depends-on): Likewise.
37482         * modules/isnanf-nolibm (Depends-on): Likewise.
37483         * modules/isnanl (Depends-on): Likewise.
37484         * modules/isnanl-nolibm (Depends-on): Likewise.
37485         * modules/mbchar (Depends-on): Likewise.
37486         * modules/memcoll (Depends-on): Likewise.
37487         * modules/quotearg (Depends-on): Likewise.
37488         * modules/regex (Depends-on): Likewise.
37489         * modules/relocatable-prog (Depends-on): Likewise.
37490         * modules/same (Depends-on): Likewise.
37491         * modules/signbit (Depends-on): Likewise.
37492         * modules/strcasestr-simple (Depends-on): Likewise.
37493         * modules/unictype/gen-ctype (Depends-on): Likewise.
37494         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37495         * modules/uniname/uniname (Depends-on): Likewise.
37496         * modules/unistr/u8-cmp (Depends-on): Likewise.
37497
37498 2008-11-02  Bruno Haible  <bruno@clisp.org>
37499
37500         Mark 'memchr' obsolete.
37501         * modules/memchr (Status, Notice): New sections.
37502         * modules/argp (Depends-on): Add memchr.
37503         * modules/base64 (Depends-on): Likewise.
37504         * modules/c-strcasestr (Depends-on): Likewise.
37505         * modules/chdir-long (Depends-on): Likewise.
37506         * modules/fnmatch (Depends-on): Likewise.
37507         * modules/getsubopt (Depends-on): Likewise.
37508         * modules/git-merge-changelog (Depends-on): Likewise.
37509         * modules/glob (Depends-on): Likewise.
37510         * modules/strcasestr-simple (Depends-on): Likewise.
37511         * modules/strnlen (Depends-on): Likewise.
37512
37513 2008-11-02  Bruno Haible  <bruno@clisp.org>
37514
37515         Mark 'atexit' obsolete.
37516         * modules/atexit (Status, Notice): New sections.
37517         * modules/chdir-long (Depends-on): Add atexit.
37518         * modules/wait-process (Depends-on): Likewise.
37519
37520 2008-11-02  Bruno Haible  <bruno@clisp.org>
37521
37522         * gnulib-tool: New option --with-obsolete.
37523         (func_usage): Document it.
37524         (func_modules_transitive_closure): Drop obsolete dependencies if
37525         incobsolete is not true.
37526         (func_import): Read and save the incobsolete variable to the cache.
37527
37528 2008-11-02  Bruno Haible  <bruno@clisp.org>
37529
37530         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37531         * gnulib-tool: New option --extract-status.
37532         (func_usage): Document it.
37533         (sed_extract_prog): Recognize it.
37534         (func_get_status): New function.
37535
37536 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37537
37538         * modules/sockets (License): Change from LGPL to LGPLv2+.
37539
37540 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37541
37542         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37543
37544 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37545
37546         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37547         Mention times and sys_times.
37548         * modules/sys_times, modules/sys_times-tests: New modules.
37549         * modules/times, modules/times-tests: Likewise
37550         * m4/sys_times_h.m4: New file.
37551         * lib/sys_times.in.h: Likewise
37552         * lib/times.c: Likewise.
37553         * tests/test-sys_times.c: Likewise.
37554         * tests/test-times.c: Likewise.
37555         * doc/posix-headers/sys_times.texi: Update.
37556         * doc/posix-functions/times.texi: Update.
37557
37558 2008-10-28  Jim Meyering  <meyering@redhat.com>
37559
37560         * modules/tempname (Depends-on): Add lstat.
37561
37562         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37563
37564 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37565
37566         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37567         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37568         using idiom used elsewhere in gnulib.
37569
37570 2008-10-27  Jim Meyering  <meyering@redhat.com>
37571
37572         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37573
37574 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37575
37576         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37577         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37578         programs.
37579         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37580
37581 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37582
37583         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37584
37585 2008-10-27  Bruno Haible  <bruno@clisp.org>
37586
37587         * tests/test-lstat.c: Include <stdio.h>.
37588
37589 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37590
37591         * modules/lstat-tests: New module.
37592         * tests/test-lstat.c: New file.
37593
37594 2008-10-26  Jim Meyering  <meyering@redhat.com>
37595
37596         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37597
37598 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37599             Bruno Haible  <bruno@clisp.org>
37600
37601         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37602         * modules/configmake (Include): Add a note that the include must come
37603         after all system headers.
37604         * lib/javaversion.c: Include configmake.h after all other includes.
37605
37606 2008-10-26  Bruno Haible  <bruno@clisp.org>
37607
37608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37609         HAVE_STRUCT_RANDOM_DATA to 1.
37610         (gl_STDLIB_H): Simplify.
37611
37612 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37613
37614         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37615         substitute HAVE_STRUCT_RANDOM_DATA.
37616         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37617         random_data.
37618         * modules/stdlib (Makefile.am): Substitute
37619         HAVE_STRUCT_RANDOM_DATA.
37620
37621 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37622
37623         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37624         * doc/gnulib-intro.texi (Copyright): Likewise.
37625
37626 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37627
37628         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37629         findings.
37630
37631 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37632             Bruno Haible  <bruno@clisp.org>
37633
37634         * lib/unistd.in.h: Include <winsock2.h>.
37635         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37636         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37637         Provide dummy declarations.
37638         (gethostname): Override.
37639         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37640         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37641         gl_PREREQ_SYS_H_WINSOCK2.
37642         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37643         * doc/posix-functions/gethostname.texi: More details.
37644
37645 2008-10-25  Bruno Haible  <bruno@clisp.org>
37646
37647         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37648         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37649         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37650
37651         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37652         here ...
37653         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37654         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37655         gl_UNISTD_H_DEFAULTS.
37656
37657 2008-10-25  Eric Blake  <ebb9@byu.net>
37658
37659         signbit: avoid spurious compiler failure
37660         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37661         declarations inside function.
37662
37663 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37664             Bruno Haible  <bruno@clisp.org>
37665
37666         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37667         * modules/random_r (Depends-on): Add stdint.
37668
37669 2008-10-24  Bruno Haible  <bruno@clisp.org>
37670
37671         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37672         Eggert.
37673         * modules/strerror (License): Likewise.
37674
37675 2008-10-24  Jim Meyering  <meyering@redhat.com>
37676
37677         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37678         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37679
37680 2008-10-24  Eric Blake  <ebb9@byu.net>
37681
37682         getgroups: fix compilation when getgroups is available
37683         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37684         but with <config.h> override of getgroups disabled.
37685
37686 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37687
37688         * doc/gnulib.texi (Header files): Add note about C++ problems.
37689         Explained by Bruno Haible <bruno@clisp.org>.
37690
37691 2008-10-23  Bruno Haible  <bruno@clisp.org>
37692
37693         Define a dummy SA_NODEFER macro on Interix.
37694         * lib/signal.in.h (SA_NODEFER): Define fallback.
37695         Reported by Aleksey Cheusov <cheusov@tut.by> via
37696         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37697
37698 2008-10-23  Bruno Haible  <bruno@clisp.org>
37699
37700         * modules/freadahead (License): Change to LGPLv2+.
37701         Suggested by Simon Josefsson.
37702
37703 2008-10-23  Jim Meyering  <meyering@redhat.com>
37704
37705         random_r: new module
37706         * modules/random_r: New file.
37707         * m4/random_r.m4: New file.
37708         * lib/random_r.c: New file, from glibc.
37709         * modules/random_r-tests: New file.
37710         * tests/test-random_r.c: New file.
37711         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37712          Declare.
37713         (RAND_MAX): Define.
37714         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37715         * modules/stdlib: Substitute them, too.
37716         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37717         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37718         * doc/glibc-functions/random_r.texi: Likewise.
37719         * doc/glibc-functions/setstate_r.texi: Likewise.
37720         * doc/glibc-functions/srandom_r.texi: Likewise.
37721         * config/srclist.txt: Mention it.
37722
37723 2008-10-23  David Lutterkort  <lutter@redhat.com>
37724
37725         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37726         link requirement
37727
37728 2008-10-23  Jim Meyering  <meyering@redhat.com>
37729
37730         selinux-h: mark parameters of stub functions as intentionally unused
37731         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37732         * lib/se-context.in.h: Likewise.
37733
37734 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37735
37736         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37737
37738 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37739
37740         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37741
37742 2008-10-22  Eric Blake  <ebb9@byu.net>
37743
37744         glthread/thread: avoid compiler warning
37745         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37746         Add unreachable abort to silence compiler.
37747
37748 2008-10-22  Eric Blake  <ebb9@byu.net>
37749
37750         netdb: also supply struct addrinfo for cygwin 1.5.x
37751         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37752         older cygwin.
37753         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37754         cygwin.
37755         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37756
37757 2008-10-22  Bruno Haible  <bruno@clisp.org>
37758
37759         * users.txt: Update entry about pspp.
37760
37761 2008-10-21  Bruno Haible  <bruno@clisp.org>
37762
37763         Simplification.
37764         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37765         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37766
37767         Simplification.
37768         * lib/ioctl.c (ioctl): Don't undefine.
37769         * lib/socket.c (socket): Don't undefine.
37770
37771         Remove unused module indicator macros.
37772         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37773         GNULIB_$1 as a C macro.
37774
37775         * doc/posix-functions/close.texi: Undo last change.
37776         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37777         Windows platforms.
37778
37779 2008-10-21  Bruno Haible  <bruno@clisp.org>
37780
37781         Add gethostname() declaration to <unistd.h>.
37782         * lib/unistd.in.h (gethostname): New declaration.
37783         * lib/gethostname.c: Include <unistd.h>.
37784         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37785         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37787         and HAVE_GETHOSTNAME.
37788         * modules/gethostname (Depends-on): Add unistd.
37789         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37790         (Include): Specify <unistd.h>.
37791         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37792         HAVE_GETHOSTNAME.
37793         * tests/test-gethostname.c: Include <unistd.h> first.
37794
37795 2008-10-21  Bruno Haible  <bruno@clisp.org>
37796
37797         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37798         * modules/select-tests (Depends-on): Likewise.
37799         Reported by Simon Josefsson.
37800
37801 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37802
37803         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37804         * lib/accept.c: New file, based on winsock.c.
37805         * lib/bind.c: New file, based on winsock.c.
37806         * lib/connect.c: New file, based on winsock.c.
37807         * lib/getpeername.c: New file, based on winsock.c.
37808         * lib/getsockname.c: New file, based on winsock.c.
37809         * lib/getsockopt.c: New file, based on winsock.c.
37810         * lib/ioctl.c: New file, based on winsock.c.
37811         * lib/listen.c: New file, based on winsock.c.
37812         * lib/recv.c: New file, based on winsock.c.
37813         * lib/recvfrom.c: New file, based on winsock.c.
37814         * lib/send.c: New file, based on winsock.c.
37815         * lib/sendto.c: New file, based on winsock.c.
37816         * lib/setsockopt.c: New file, based on winsock.c.
37817         * lib/shutdown.c: New file, based on winsock.c.
37818         * lib/socket.c: New file, based on winsock.c.
37819         * lib/w32sock.h: New file, based on winsock.c.
37820         * lib/winsock.c: Remove file.
37821         * modules/accept: Likewise.
37822         * modules/bind: Likewise.
37823         * modules/connect: Likewise.
37824         * modules/getpeername: Likewise.
37825         * modules/getsockname: Likewise.
37826         * modules/getsockopt: Likewise.
37827         * modules/ioctl: Likewise.
37828         * modules/listen: Likewise.
37829         * modules/recv: Likewise.
37830         * modules/recvfrom: Likewise.
37831         * modules/send: Likewise.
37832         * modules/sendto: Likewise.
37833         * modules/setsockopt: Likewise.
37834         * modules/shutdown: Likewise.
37835         * modules/socket: Use socket.c instead of winsock.c.
37836         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37837         * doc/posix-functions/accept.texi: Doc fix.
37838         * doc/posix-functions/bind.texi: Doc fix.
37839         * doc/posix-functions/close.texi: Doc fix.
37840         * doc/posix-functions/connect.texi: Doc fix.
37841         * doc/posix-functions/getpeername.texi: Doc fix.
37842         * doc/posix-functions/getsockname.texi: Doc fix.
37843         * doc/posix-functions/getsockopt.texi: Doc fix.
37844         * doc/posix-functions/ioctl.texi: Doc fix.
37845         * doc/posix-functions/listen.texi: Doc fix.
37846         * doc/posix-functions/recv.texi: Doc fix.
37847         * doc/posix-functions/recvfrom.texi: Doc fix.
37848         * doc/posix-functions/send.texi: Doc fix.
37849         * doc/posix-functions/sendto.texi: Doc fix.
37850         * doc/posix-functions/setsockopt.texi: Doc fix.
37851         * doc/posix-functions/shutdown.texi: Doc fix.
37852         * doc/posix-functions/socket.texi: Doc fix.
37853
37854 2008-10-20  Bruno Haible  <bruno@clisp.org>
37855
37856         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37857         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37858         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37859         as an alias for SIGABRT.
37860         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37861         (sigaction): Map it to SIGABRT.
37862         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37863
37864 2008-10-20  Bruno Haible  <bruno@clisp.org>
37865
37866         * lib/fts.c: Don't include lstat.h.
37867         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37868
37869         Move the lstat() declaration to <sys/stat.h>.
37870         * lib/lstat.h: Remove file.
37871         * lib/sys_stat.in.h: Add special invocation convention.
37872         (lstat): New declaration.
37873         * lib/lstat.c (orig_lstat): New function.
37874         (rpl_lstat): Use orig_lstat instead of lstat.
37875         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37876         AC_C_INLINE. Set REPLACE_LSTAT.
37877         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37878         and REPLACE_LSTAT.
37879         * modules/lstat (Files): Remove lib/lstat.h.
37880         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37881         (Include): Specify <sys/stat.h> instead of lstat.h.
37882         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37883         REPLACE_LSTAT.
37884         * NEWS: Mention the change.
37885
37886 2008-10-20  Bruno Haible  <bruno@clisp.org>
37887
37888         * modules/posix_spawn-tests: New file.
37889         * tests/test-posix_spawn3.c: New file.
37890
37891 2008-10-20  Bruno Haible  <bruno@clisp.org>
37892
37893         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37894         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37895         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37896         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37897         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37898
37899 2008-10-20  Bruno Haible  <bruno@clisp.org>
37900
37901         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37902         of posix_spawn on AIX 5.3.
37903
37904 2008-10-20  Bruno Haible  <bruno@clisp.org>
37905
37906         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37907
37908 2008-10-20  Bruno Haible  <bruno@clisp.org>
37909
37910         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37911         of AC_LANG_PROGRAM.
37912
37913 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37914
37915         * lib/netdb.in.h: Don't define GNU specific constants until they
37916         are supported or needed.  Reported by Bruno Haible
37917         <bruno@clisp.org>.
37918
37919 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37920
37921         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37922
37923 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37924
37925         * lib/getaddrinfo.h: Remove file.
37926         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37927         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37928         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37929         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37930         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37931         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37932         * tests/test-getaddrinfo.c: Likewise.
37933         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37934         * NEWS: Mention change.
37935
37936 2008-10-19  Bruno Haible  <bruno@clisp.org>
37937
37938         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37939
37940 2008-10-19  Bruno Haible  <bruno@clisp.org>
37941
37942         * lib/wait-process.c: Include simply <sys/wait.h>.
37943         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37944         WIFSTOPPED): Remove fallback definitions.
37945         * modules/wait-process (Depends-on): Add sys_wait.
37946
37947         New module 'sys_wait'.
37948         * modules/sys_wait: New file.
37949         * lib/sys_wait.in.h: New file, partially copied from
37950         lib/wait-process.c.
37951         * m4/sys_wait_h.m4: New file.
37952         * doc/posix-headers/sys_wait.texi: Mention the new module.
37953
37954 2008-10-19  Bruno Haible  <bruno@clisp.org>
37955
37956         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37957
37958 2008-10-19  Bruno Haible  <bruno@clisp.org>
37959
37960         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37961         * lib/wait-process.c (WAIT_T): Remove type.
37962         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37963         (wait_subprocess): Update.
37964
37965 2008-10-19  Bruno Haible  <bruno@clisp.org>
37966
37967         New module 'atoll'.
37968         * modules/atoll: New file.
37969         * lib/stdlib.in.h (atoll): New declaration.
37970         * lib/atoll.c: New file, from glibc with modifications.
37971         * m4/atoll.m4: New file.
37972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37973         HAVE_ATOLL.
37974         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37975         * doc/posix-functions/atoll.texi: Mention the new module.
37976
37977 2008-10-19  Bruno Haible  <bruno@clisp.org>
37978
37979         Add strtoull() declaration to <stdlib.h>.
37980         * lib/stdlib.in.h (strtoull): New declaration.
37981         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37982         Set HAVE_STRTOULL.
37983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37984         HAVE_STRTOULL.
37985         * modules/strtoull (Depends-on): Add stdlib.
37986         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37987         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37988         HAVE_STRTOULL.
37989
37990 2008-10-19  Bruno Haible  <bruno@clisp.org>
37991
37992         Add strtoll() declaration to <stdlib.h>.
37993         * lib/stdlib.in.h (strtoll): New declaration.
37994         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37995         Set HAVE_STRTOLL.
37996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37997         HAVE_STRTOLL.
37998         * modules/strtoll (Depends-on): Add stdlib.
37999         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38000         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
38001
38002 2008-10-19  Bruno Haible  <bruno@clisp.org>
38003
38004         * modules/bcopy (Depends-on): Add strings.
38005         (Include): Specify <strings.h>.
38006
38007 2008-10-19  Bruno Haible  <bruno@clisp.org>
38008
38009         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
38010
38011 2008-10-19  Bruno Haible  <bruno@clisp.org>
38012
38013         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
38014         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
38015         mingw.
38016
38017 2008-10-19  Bruno Haible  <bruno@clisp.org>
38018
38019         * lib/atanl.c: Don't include isnanl.h.
38020         * lib/cosl.c: Likewise.
38021         * lib/ldexpl.c: Likewise.
38022         * lib/logl.c: Likewise.
38023         * lib/sinl.c: Likewise.
38024         * lib/sqrtl.c: Likewise.
38025         * lib/tanl.c: Likewise.
38026
38027         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
38028         * lib/isnanf.h: Remove file.
38029         * lib/isnand.h: Remove file.
38030         * lib/isnanl.h: Remove file.
38031         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
38032         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
38033         macros.
38034         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
38035         HAVE_ISNANF, don't define it as a C macro.
38036         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
38037         HAVE_ISNAND, don't define it as a C macro.
38038         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
38039         HAVE_ISNANL, don't define it as a C macro.
38040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
38041         HAVE_ISNAN[FDL].
38042         * modules/isnanf (Files): Remove lib/isnanf.h.
38043         (Depends-on): Add math.
38044         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38045         (Include): Specify <math.h> instead of isnanf.h.
38046         * modules/isnand (Files): Remove lib/isnand.h.
38047         (Depends-on): Add math.
38048         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38049         (Include): Specify <math.h> instead of isnand.h.
38050         * modules/isnanl (Files): Remove lib/isnanl.h.
38051         (Depends-on): Add math.
38052         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38053         (Include): Specify <math.h> instead of isnanl.h.
38054         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
38055         HAVE_ISNAN[FDL].
38056         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
38057         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
38058         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
38059         * NEWS: Mention the change.
38060
38061 2008-10-18  Bruno Haible  <bruno@clisp.org>
38062
38063         Add getusershell(), setusershell(), endusershell() declarations to
38064         <unistd.h>.
38065         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
38066         declarations.
38067         * lib/getusershell.c: Include unistd.h.
38068         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
38069         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38070         HAVE_GETUSERSHELL.
38071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
38072         and HAVE_GETUSERSHELL.
38073         * modules/getusershell (Depends-on): Add unistd, extensions.
38074         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38075         (Include): Specify <unistd.h>.
38076         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
38077         HAVE_GETUSERSHELL.
38078
38079 2008-10-18  Bruno Haible  <bruno@clisp.org>
38080
38081         Add a getloadavg() declaration to <stdlib.h>.
38082         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
38083         getloadavg declaration.
38084         (getloadavg): New declaration.
38085         * lib/getloadavg.c: Include <stdlib.h> first.
38086         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
38087         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
38088         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
38089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
38090         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38091         * modules/getloadavg (Depends-on): Add stdlib, extensions.
38092         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38093         (Include): Specify <stdlib.h>.
38094         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
38095         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38096
38097 2008-10-18  Bruno Haible  <bruno@clisp.org>
38098
38099         * lib/dirchownmod.c: Don't include lchmod.h.
38100
38101         Move the lchmod() declaration to <sys/stat.h>.
38102         * lib/lchmod.h: Remove file.
38103         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
38104         (lchmod): New declaration, moved here from lib/lchown.h.
38105         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
38106         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
38107         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
38108         and HAVE_LCHMOD.
38109         * modules/lchmod (Files): Remove lib/lchmod.h.
38110         (Depends-on): Add sys_stat, extensions.
38111         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38112         (Include): Specify <sys/stat.h> instead of lchmod.h.
38113         * modules/sys_stat (Depends-on): Add link-warning.
38114         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
38115         definition of GL_LINK_WARNING.
38116         * NEWS: Mention the change.
38117
38118 2008-10-18  Bruno Haible  <bruno@clisp.org>
38119
38120         * lib/fchdir.c: Don't include dirfd.h.
38121         * lib/fts.c: Likewise.
38122         * lib/getcwd.c: Likewise.
38123         * lib/glob.c: Likewise.
38124
38125         Move the dirfd() declaration to <dirent.h>.
38126         * lib/dirfd.h: Remove file.
38127         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
38128         (dirfd): New declaration.
38129         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
38130         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
38131         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
38132         HAVE_DECL_DIRFD.
38133         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
38134         HAVE_DECL_DIRFD.
38135         * modules/dirfd (Files): Remove lib/dirfd.h.
38136         (Depends-on): Add dirent, extensions.
38137         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
38138         (Include): Specify <dirent.h> instead of dirfd.h.
38139         * modules/dirent (Depends-on): Add link-warning.
38140         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
38141         definition of GL_LINK_WARNING.
38142         * NEWS: Mention the change.
38143
38144 2008-10-18  Bruno Haible  <bruno@clisp.org>
38145
38146         Move the euidaccess() declaration to <unistd.h>.
38147         * lib/euidaccess.h: Remove file.
38148         * lib/unistd.in.h (euidaccess): New declaration.
38149         * lib/euidaccess.c: Don't include euidaccess.h.
38150         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
38151         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
38152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
38153         and HAVE_EUIDACCESS.
38154         * modules/euidaccess (Files): Remove lib/euidaccess.h.
38155         (Depends-on): Add unistd.
38156         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38157         (Include): Specify <unistd.h> instead of euidaccess.h.
38158         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
38159         HAVE_EUIDACCESS.
38160         * NEWS: Mention the change.
38161
38162 2008-10-18  Bruno Haible  <bruno@clisp.org>
38163
38164         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
38165
38166         Move the getdomainname() declaration to <unistd.h>.
38167         * lib/getdomainname.h: Remove file.
38168         * lib/unistd.in.h (getdomainname): New declaration.
38169         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
38170         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
38171         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38172         HAVE_GETDOMAINNAME.
38173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38174         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
38175         * modules/getdomainname (Files): Remove lib/getdomainname.h.
38176         (Depends-on): Add unistd, extensions.
38177         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38178         (Includes): Specify <unistd.h> instead of getdomainname.h.
38179         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
38180         HAVE_GETDOMAINNAME.
38181         * NEWS: Mention the change.
38182
38183 2008-10-18  Bruno Haible  <bruno@clisp.org>
38184
38185         * modules/dirent: New file.
38186         * m4/dirent_h.m4: New file.
38187         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
38188         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
38189         * modules/fchdir (Files): Remove lib/dirent.in.h.
38190         (Depends-on): Add dirent.
38191         (Makefile.am): Move rules to modules/dirent.
38192         * doc/posix-headers/dirent.texi: Mention the new module.
38193
38194 2008-10-18  Bruno Haible  <bruno@clisp.org>
38195
38196         Avoid -Wunused-parameter warnings in public gnulib header files.
38197         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
38198         macro.
38199         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
38200
38201 2008-10-18  Bruno Haible  <bruno@clisp.org>
38202
38203         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
38204         * doc/glibc-functions/error.texi: Mention the module 'error'.
38205         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
38206         * doc/glibc-functions/getdomainname.texi: Mention the module
38207         'getdomainname'.
38208         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
38209         * doc/glibc-functions/getpagesize.texi: Mention the module
38210         'getpagesize'.
38211         * doc/glibc-functions/getusershell.texi: Mention the module
38212         'getusershell'.
38213         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
38214         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
38215         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
38216         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
38217         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
38218         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
38219         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
38220         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
38221         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
38222         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
38223         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
38224         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
38225         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
38226         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
38227
38228 2008-10-17  Bruno Haible  <bruno@clisp.org>
38229
38230         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
38231         HP-UX and IRIX, use -0.0L.
38232         * tests/test-ceill.c (minus_zero): Likewise.
38233         * tests/test-floorl.c (minus_zero): Likewise.
38234         * tests/test-frexpl.c (minus_zero): Likewise.
38235         * tests/test-isnan.c (minus_zerol): Likewise.
38236         * tests/test-isnanl.h (minus_zero): Likewise.
38237         * tests/test-ldexpl.c (minus_zero): Likewise.
38238         * tests/test-roundl.c (minus_zero): Likewise.
38239         * tests/test-signbit.c (minus_zerol): Likewise.
38240         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38241         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38242         * tests/test-truncl.c (minus_zero): Likewise.
38243         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38244         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38245         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38246         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38247
38248 2008-10-17  Bruno Haible  <bruno@clisp.org>
38249
38250         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38251         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38252         that it gets activated only for gcc >= 3.0.
38253         * lib/dirent.in.h: Likewise.
38254         * lib/errno.in.h: Likewise.
38255         * lib/fcntl.in.h: Likewise.
38256         * lib/float.in.h: Likewise.
38257         * lib/iconv.in.h: Likewise.
38258         * lib/inttypes.in.h: Likewise.
38259         * lib/locale.in.h: Likewise.
38260         * lib/math.in.h: Likewise.
38261         * lib/netdb.in.h: Likewise.
38262         * lib/netinet_in.in.h: Likewise.
38263         * lib/search.in.h: Likewise.
38264         * lib/signal.in.h: Likewise.
38265         * lib/spawn.in.h: Likewise.
38266         * lib/stdarg.in.h: Likewise.
38267         * lib/stdint.in.h: Likewise.
38268         * lib/stdio.in.h: Likewise.
38269         * lib/stdlib.in.h: Likewise.
38270         * lib/string.in.h: Likewise.
38271         * lib/strings.in.h: Likewise.
38272         * lib/sys_file.in.h: Likewise.
38273         * lib/sys_ioctl.in.h: Likewise.
38274         * lib/sys_select.in.h: Likewise.
38275         * lib/sys_socket.in.h: Likewise.
38276         * lib/sys_stat.in.h: Likewise.
38277         * lib/sys_time.in.h: Likewise.
38278         * lib/sysexits.in.h: Likewise.
38279         * lib/time.in.h: Likewise.
38280         * lib/unistd.in.h: Likewise.
38281         * lib/wchar.in.h: Likewise.
38282         * lib/wctype.in.h: Likewise.
38283         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38284
38285 2008-10-17  Jim Meyering  <meyering@redhat.com>
38286
38287         ignore-value: don't depend on inline module
38288         * modules/ignore-value (Depends-on): Remove 'inline'.
38289         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38290         Suggestion from Bruno Haible.
38291
38292 2008-10-17  Bruno Haible  <bruno@clisp.org>
38293
38294         New implementation of condition variables for Win32.
38295         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38296         (gl_linked_waitqueue_t): New type.
38297         (gl_cond_t): Use it.
38298         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38299         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38300         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38301         (glthread_cond_init_func, glthread_cond_wait_func,
38302         glthread_cond_timedwait_func, glthread_cond_signal_func,
38303         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38304         Reimplemented on the basis of gl_linked_waitqueue_t.
38305         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38306         gl_waitqueue_t.
38307         (gl_rwlock_t): Update.
38308         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38309
38310 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38311
38312         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38313         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38314
38315 2008-10-17  Jim Meyering  <meyering@redhat.com>
38316
38317         ignore-value: new module
38318         * modules/ignore-value: New file.
38319         * lib/ignore-value.h: New file.
38320         * MODULES.html.sh (Compiler warning management): New section,
38321         just for this module.  More to come.
38322
38323 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38324
38325         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38326         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38327         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38328
38329 2008-10-16  Jim Meyering  <meyering@redhat.com>
38330
38331         openat-die.c: avoid 'no previous prototype' warning
38332         * lib/openat-die.c: Include "openat.h".
38333         Reported by Reuben Thomas <rrt@sc3d.org>.
38334
38335 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38336
38337         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38338         * lib/netdb.in.h: Fix typo.
38339         Reported by Bruno Haible  <bruno@clisp.org>
38340
38341         * lib/netdb.in.h: Include sys/socket.h for platforms without
38342         netdb.h, to get structures like hostent on MinGW.
38343         * modules/netdb (Depends-on): Add sys_socket.
38344
38345 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38346
38347         * modules/netdb, modules/netdb-tests: New file.
38348         * m4/netdb_h.m4: New file.
38349         * lib/netdb.in.h: Add, currently just an empty file pending
38350         definitions.
38351         * tests/test-netdb.c: New file.
38352         * doc/posix-headers/netdb.texi: Mention that we replace it if
38353         needed.
38354         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38355         netdb.
38356
38357 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38358
38359         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38360         with code.
38361
38362 2008-10-13  Bruno Haible  <bruno@clisp.org>
38363
38364         * lib/glthread/cond.c (glthread_cond_wait_func,
38365         glthread_cond_timedwait_func): Add a comment.
38366
38367 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38368
38369         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38370         * tests/test-select.c: Likewise,
38371
38372 2008-10-13  Bruno Haible  <bruno@clisp.org>
38373
38374         * lib/glthread/cond.c (glthread_cond_wait_func,
38375         glthread_cond_timedwait_func): Fix variable name.
38376         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38377
38378 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38379
38380         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38381         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38382         struct sockaddr.sa_len.
38383         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38384
38385 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38386
38387         * build-aux/pmccabe2html: Add css and css_url parameters.
38388
38389 2008-10-12  Bruno Haible  <bruno@clisp.org>
38390
38391         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38392         calling aclx_get.
38393         Reported by Rainer Tammer <tammer@tammer.net>.
38394
38395 2008-10-12  Bruno Haible  <bruno@clisp.org>
38396
38397         Use msvcrt aware primitives for creation/termination of Win32 threads.
38398         * lib/glthread/thread.c: Include <process.h>.
38399         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38400         (wrapper_func): Update signature.
38401         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38402
38403 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38404             Bruno Haible  <bruno@clisp.org>
38405
38406         Provide a Win32 implementation of the 'cond' module.
38407         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38408         * lib/glthread/cond.c (glthread_cond_init_func,
38409         glthread_cond_wait_func, glthread_cond_timedwait_func,
38410         glthread_cond_signal_func, glthread_cond_broadcast_func,
38411         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38412         * modules/cond (Dependencies): Add gettimeofday.
38413
38414 2008-10-11  Bruno Haible  <bruno@clisp.org>
38415
38416         Make sleep work on older versions of mingw.
38417         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38418         only whether it exists.
38419         * doc/posix-functions/sleep.texi: Mention the problem with older
38420         versions of mingw.
38421
38422 2008-10-11  Bruno Haible  <bruno@clisp.org>
38423
38424         New module 'shutdown'.
38425         * modules/shutdown: New file.
38426         * lib/sys_socket.in.h (shutdown): New declaration.
38427         * lib/winsock.c (shutdown): New function.
38428         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38429         GNULIB_SHUTDOWN.
38430         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38431         * doc/posix-functions/shutdown.texi: Document the new module.
38432
38433 2008-10-11  Jim Meyering  <meyering@redhat.com>
38434
38435         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38436
38437 2008-10-11  Bruno Haible  <bruno@clisp.org>
38438
38439         New module 'fclose'.
38440         * modules/fclose: New file.
38441         * lib/stdio.in.h (fclose): New declaration.
38442         * lib/fclose.c: New file.
38443         * m4/fclose.m4: New file.
38444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38445         REPLACE_FCLOSE.
38446         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38447         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38448         REPLACE_FCLOSE.
38449         * modules/close (Depends-on): fclose.
38450         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38451
38452 2008-10-11  Bruno Haible  <bruno@clisp.org>
38453
38454         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38455         set errno and don't call _close.
38456
38457 2008-10-10  Bruno Haible  <bruno@clisp.org>
38458
38459         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38460         ACL, not afterwards. Fixes test failure on Cygwin.
38461
38462 2008-10-09  Ben Pfaff  <blp@gnu.org>
38463
38464         * build-aux/announce-gen: Fix gnulib version related part of usage
38465         message.  Die with a useful error message if no tarballs are
38466         found.
38467
38468 2008-10-10  Jim Meyering  <meyering@redhat.com>
38469
38470         bootstrap: use git's --depth=N option only if it's supported
38471         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38472         recognize the --depth option.  Reported by Pádraig Brady.
38473
38474 2008-10-09  Bruno Haible  <bruno@clisp.org>
38475
38476         New module 'ioctl'.
38477         * modules/ioctl: New file.
38478         * lib/sys_socket.in.h (ioctl): Remove declaration.
38479         * lib/winsock.c: Include <sys/ioctl.h>.
38480         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38481         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38482         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38483         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38484         * doc/posix-functions/ioctl.texi: Mention the new module.
38485
38486 2008-10-09  Bruno Haible  <bruno@clisp.org>
38487
38488         New module 'sys_ioctl'.
38489         * lib/sys_ioctl.in.h: New file.
38490         * m4/sys_ioctl_h.m4: New file.
38491         * modules/sys_ioctl: New file.
38492         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38493
38494 2008-10-09  Bruno Haible  <bruno@clisp.org>
38495
38496         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38497         * lib/winsock.c: Include <stdarg.h>.
38498         (rpl_ioctl): Change to second argument 'int' and then varargs.
38499
38500 2008-10-09  Bruno Haible  <bruno@clisp.org>
38501
38502         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38503         when the sys_socket module is present and the system has <winsock2.h>.
38504
38505 2008-10-09  Bruno Haible  <bruno@clisp.org>
38506
38507         * doc/posix-functions/close.texi: Mention module 'close' instead of
38508         module 'sys_socket'.
38509
38510 2008-10-09  Bruno Haible  <bruno@clisp.org>
38511
38512         * doc/glibc-headers/sys_ioctl.texi: New file.
38513         * doc/gnulib.texi: Include it.
38514
38515 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38516             Bruno Haible  <bruno@clisp.org>
38517
38518         Combine the two replacements of 'close'.
38519         * lib/sys_socket.in.h (close): Define to a reminder to include
38520         <unistd.h>.
38521         (_gl_close_fd_maybe_socket): New declaration.
38522         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38523         * lib/winsock.c (close): Remove undefinition.
38524         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38525         needed for the gnulib module 'close'.
38526         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38527         define to an error symbol or to a warning, if suitable.
38528         * lib/close.c: Include <sys/socket.h>.
38529         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38530         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38531         UNISTD_H_HAVE_WINSOCK2_H.
38532         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38534         UNISTD_H_HAVE_WINSOCK2_H.
38535         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38536         (configure.ac): Set a module indicator.
38537         (Makefile.am): Substitute GNULIB_CLOSE.
38538         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38539         * modules/poll-tests (Depends-on): Add close.
38540         * modules/select-tests (Depends-on): Likewise.
38541
38542 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38543             Bruno Haible  <bruno@clisp.org>
38544
38545         New module 'close'.
38546         * modules/close: New file.
38547         * lib/unistd.in.h (close): Move declaration out of the
38548         FCHDIR_REPLACEMENT scope.
38549         (_gl_unregister_fd): New declaration.
38550         * lib/close.c: New file.
38551         * lib/fchdir.c (rpl_close): Remove function.
38552         * m4/close.m4: New file.
38553         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38554         close.
38555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38556         REPLACE_CLOSE.
38557         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38558         REPLACE_CLOSE.
38559         * modules/fchdir (Depends-on): Add close.
38560
38561 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38562             Bruno Haible  <bruno@clisp.org>
38563
38564         * lib/fcntl.in.h (open): Simplify conditionals.
38565         (_gl_register_fd): New declaration.
38566         * lib/fchdir.c (rpl_open): Remove function.
38567         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38568         also.
38569         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38571         open.
38572
38573 2008-10-09  Jim Meyering  <meyering@redhat.com>
38574
38575         GNUmakefile: use the more name-space-friendly "_version"
38576         * top/GNUmakefile (_dummy): Update.
38577         (_version): Rename from "version".
38578
38579 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38580             Bruno Haible  <bruno@clisp.org>
38581
38582         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38583         rpl_close.
38584         (_gl_register_fd): New function, extracted from rpl_open.
38585         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38586         (rpl_open, rpl_opendir): Use _gl_register_fd.
38587
38588 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38589
38590         Fix organization of 'open' replacement.
38591         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38592         (gl_FUNC_OPEN): Use it.
38593         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38594
38595 2008-10-08  Bruno Haible  <bruno@clisp.org>
38596
38597         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38598
38599 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38600
38601         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38602         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38603         listen).
38604
38605 2008-10-08  Eric Blake  <ebb9@byu.net>
38606
38607         GNUmakefile: add 'make version' target
38608         * top/GNUmakefile (_curr-ver): Split version update rules...
38609         (version): ...into a target.
38610
38611 2008-10-07  Bruno Haible  <bruno@clisp.org>
38612
38613         Use a more portable replacement expression for -0.0L.
38614         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38615         instead of -0.0L. Fix m4 quotation.
38616
38617         * tests/test-signbit.c: Include <float.h>.
38618         (minus_zero): New variable.
38619         (test_signbitl): Use minus_zero instead of -zero.
38620         * modules/signbit-tests (Depends-on): Add float.
38621
38622         * tests/test-ceill.c: Include <float.h>.
38623         (zero): Remove variable.
38624         (minus_zero): New variable.
38625         (main): Use minus_zero instead of -zero.
38626         * modules/ceill-tests (Depends-on): Add float.
38627
38628         * tests/test-floorl.c: Include <float.h>.
38629         (zero): Remove variable.
38630         (minus_zero): New variable.
38631         (main): Use minus_zero instead of -zero.
38632         * modules/floorl-tests (Depends-on): Add float.
38633
38634         * tests/test-roundl.c: Include <float.h>.
38635         (zero): Remove variable.
38636         (minus_zero): New variable.
38637         (main): Use minus_zero instead of -zero.
38638         * modules/roundl-tests (Depends-on): Add float.
38639
38640         * tests/test-truncl.c: Include <float.h>.
38641         (zero): Remove variable.
38642         (minus_zero): New variable.
38643         (main): Use minus_zero instead of -zero.
38644         * modules/truncl-tests (Depends-on): Add float.
38645
38646         * tests/test-frexpl.c (zero): Remove variable.
38647         (minus_zero): New variable.
38648         (main): Use minus_zero instead of -zero.
38649         * modules/frexpl-tests (Depends-on): Add float.
38650
38651         * tests/test-isnan.c (zerol): Remove variable.
38652         (minus_zerol): New variable.
38653         (test_long_double): Use minus_zerol instead of -zerol.
38654         * modules/isnan-tests (Depends-on): Add float.
38655
38656         * tests/test-isnanl.h (zero): Remove variable.
38657         (minus_zero): New variable.
38658         (main): Use minus_zero instead of -zero.
38659         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38660         * modules/isnanl-tests (Depends-on): Add float.
38661
38662         * tests/test-ldexpl.c (zero): Remove variable.
38663         (minus_zero): New variable.
38664         (main): Use minus_zero instead of -zero.
38665         * modules/ldexpl-tests (Depends-on): Add float.
38666
38667         * tests/test-snprintf-posix.h (zerol): Remove variable.
38668         (minus_zerol): New variable.
38669         (test_function): Use minus_zerol instead of -zerol.
38670         * modules/snprintf-posix-tests (Depends-on): Add float.
38671         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38672
38673         * tests/test-sprintf-posix.h (zerol): Remove variable.
38674         (minus_zerol): New variable.
38675         (test_function): Use minus_zerol instead of -zerol.
38676         * modules/sprintf-posix-tests (Depends-on): Add float.
38677         * modules/vsprintf-posix-tests (Depends-on): Add float.
38678
38679         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38680         (minus_zerol): New variable.
38681         (test_function): Use minus_zerol instead of -zerol.
38682         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38683
38684         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38685         (minus_zerol): New variable.
38686         (test_function): Use minus_zerol instead of -zerol.
38687         * modules/vasprintf-posix-tests (Depends-on): Add float.
38688
38689 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38690
38691         * MODULES.html.sh (Support for building documentation): Mention
38692         pmccabe2html.  Sort entries.
38693
38694         Add pmccabe2html module, from gnupdf.
38695         * build-aux/pmccabe.css: New file.
38696         * build-aux/pmccabe2html: New file.
38697         * m4/pmccabe2html.m4: New file.
38698         * modules/pmccabe2html: New file.
38699
38700 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38701
38702         flock: new module
38703         * MODULES.html.sh: Add to list of modules.
38704         * lib/flock.c: flock implementation for Windows and Unix systems
38705         which have fcntl.
38706         * doc/glibc-functions/flock.texi: Update documentation.
38707         * lib/sys_file.in.h: <sys/file.h> header file.
38708         * m4/flock.m4: M4 macros.
38709         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38710         * modules/flock: flock module.
38711         * modules/flock-tests: flock tests module.
38712         * modules/sys_file: sys/file.h module.
38713         * tests/test-flock.c: test suite for flock.
38714
38715 2008-10-06  Jim Meyering  <meyering@redhat.com>
38716
38717         bootstrap: check for LT_INIT more portably still ;-)
38718         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38719         Spotted by Bruno Haible.
38720
38721 2008-10-06  Eric Blake  <ebb9@byu.net>
38722
38723         test-signbit: avoid tripping Irix cc bug on -0.0L
38724         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38725         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38726         entire testsuite consistent and avoids an Irix 6.2 bug.
38727
38728 2008-10-05  Bruno Haible  <bruno@clisp.org>
38729             Jim Meyering  <jim@meyering.net>
38730
38731         Add an option for ignoring EPIPE during close_stdout.
38732         * lib/closeout.h: Include <stdbool.h>.
38733         (close_stdout_set_ignore_EPIPE): New declaration.
38734         * lib/closeout.c: Include <stdbool.h>.
38735         (ignore_EPIPE): New variable.
38736         (close_stdout_set_ignore_EPIPE): New function.
38737         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38738         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38739         failure.
38740         * modules/closeout (Depends-on): Add stdbool.
38741
38742 2008-10-05  Bruno Haible  <bruno@clisp.org>
38743
38744         * modules/accept: New file.
38745         * modules/bind: New file.
38746         * modules/connect: New file.
38747         * modules/getpeername: New file.
38748         * modules/getsockname: New file.
38749         * modules/getsockopt: New file.
38750         * modules/listen: New file.
38751         * modules/recv: New file.
38752         * modules/recvfrom: New file.
38753         * modules/send: New file.
38754         * modules/sendto: New file.
38755         * modules/setsockopt: New file.
38756         * modules/socket: New file.
38757         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38758         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38759         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38760         the particular module is requested. Add a link warning when the
38761         particular module is not requested.
38762         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38763         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38764         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38765         the particular module is requested.
38766         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38767         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38768         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38769         * modules/sys_socket (Depends-on): Add link-warning.
38770         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38771         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38772         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38773         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38774         GL_LINK_WARNING.
38775         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38776         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38777         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38778         * doc/posix-functions/getpeername.texi: Mention the new module
38779         'getpeername'.
38780         * doc/posix-functions/getsockname.texi: Mention the new module
38781         'getsockname'.
38782         * doc/posix-functions/getsockopt.texi: Mention the new module
38783         'getsockopt'.
38784         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38785         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38786         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38787         * doc/posix-functions/send.texi: Mention the new module 'send'.
38788         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38789         * doc/posix-functions/setsockopt.texi: Mention the new module
38790         'setsockopt'.
38791         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38792         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38793         listen, connect, accept.
38794         * modules/select-tests (Depends-on): Likewise.
38795
38796 2008-10-05  Bruno Haible  <bruno@clisp.org>
38797
38798         * lib/winsock.c (strerror): Remove unused #undef.
38799         (rpl_close): Remove unused local variable.
38800
38801         * modules/sys_socket (Depends-on); Add errno.
38802
38803 2008-10-05  Bruno Haible  <bruno@clisp.org>
38804
38805         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38806         (select): Add a link warning when the 'select' module is not used.
38807         * modules/sys_select (Depends-on): Add link-warning.
38808         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38809         Suggested by Paolo Bonzini.
38810
38811 2008-10-05  Jim Meyering  <meyering@redhat.com>
38812
38813         bootstrap: check for LT_INIT more portably
38814         * build-aux/bootstrap: Avoid using grep -E, since it's not
38815         portable enough.  Suggestion from Bruno Haible.
38816
38817 2008-10-05  Bruno Haible  <bruno@clisp.org>
38818
38819         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38820         as being fixed by gnulib.
38821
38822 2008-10-05  Bruno Haible  <bruno@clisp.org>
38823
38824         * modules/select-tests: New file, mostly copied from
38825         modules/sys_select-tests.
38826         * tests/test-select.c: New file, mostly copied from
38827         tests/test-sys_select.c.
38828         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38829         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38830         (Makefile.am): Remove test_sys_select_LDADD.
38831
38832         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38833         to an undefined symbol, for an error message.
38834         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38835         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38836         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38837         winsock-select.c here.
38838         * modules/sys_select (Files): Remove lib/winsock-select.c.
38839         (Depends-on): Remove alloca.
38840         (Makefile.am): Substitute GNULIB_SELECT.
38841         * modules/select: New file.
38842         * doc/posix-functions/select.texi: Update.
38843
38844 2008-10-05  Bruno Haible  <bruno@clisp.org>
38845
38846         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38847         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38848         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38849         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38850         getdtablesize.
38851         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38852         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38853
38854 2008-10-05  Bruno Haible  <bruno@clisp.org>
38855
38856         * modules/getdtablesize-tests: New file.
38857         * tests/test-getdtablesize.c: New file.
38858
38859         New module 'getdtablesize'.
38860         * lib/unistd.in.h (getdtablesize): New declaration.
38861         * lib/getdtablesize.c: New file.
38862         * m4/getdtablesize.m4: New file.
38863         * modules/getdtablesize: New file.
38864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38865         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38866         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38867         HAVE_GETDTABLESIZE.
38868         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38869
38870 2008-10-05  Bruno Haible  <bruno@clisp.org>
38871
38872         * modules/sched (Makefile.am): Fix typo.
38873         Reported by Simon Josefsson.
38874
38875 2008-10-05  Jim Meyering  <meyering@redhat.com>
38876
38877         bootstrap: check for LT_INIT, too
38878         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38879         are deprecated.  Suggestion from Ralf Wildenhues.
38880
38881 2008-10-05  Bruno Haible  <bruno@clisp.org>
38882
38883         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38884         overriding them by ours.
38885         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38886
38887 2008-10-05  Jim Meyering  <meyering@redhat.com>
38888
38889         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38890         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38891         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38892
38893 2008-10-04  Bruno Haible  <bruno@clisp.org>
38894
38895         * modules/dup2 (License): Change to LGPLv2+.
38896         * modules/sleep (License): Likewise.
38897         * modules/perror (License): Likewise.
38898         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38899         Blake.
38900         * modules/signal (License): Likewise.
38901         * modules/sigprocmask (License): Likewise.
38902         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38903         Meyering.
38904
38905 2008-10-04  Bruno Haible  <bruno@clisp.org>
38906
38907         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38908         Reported by Rainer Tammer <tammer@tammer.net>.
38909
38910 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38911             Bruno Haible  <bruno@clisp.org>
38912
38913         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38914         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38915         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38916
38917 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38918
38919         filevercmp: new module
38920         * lib/filevercmp.h: New function filevercmp comparing version strings.
38921         * lib/filevercmp.c: Implementation of filevercmp function.
38922         * modules/filevercmp: Module metadata.
38923         * tests/test-filevercmp.c: Unit test for new module.
38924         * modules/filevercmp-tests: Unit test metadata.
38925         * MODULES.html.sh: Add filevercmp module.
38926
38927 2008-10-03  Bruno Haible  <bruno@clisp.org>
38928
38929         * lib/c-ctype.h: Add comment.
38930         Reported by Jim Meyering.
38931
38932 2008-10-02  Bruno Haible  <bruno@clisp.org>
38933
38934         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38935
38936 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38937
38938         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38939         name of bootstrap.conf accordingly.
38940
38941 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38942
38943         * build-aux/bootstrap: Install git-merge-changelog configuration
38944         items into .gitconfig if needed.
38945
38946 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38947
38948         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38949         git repository, and initialize/update it accordingly.
38950
38951 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38952
38953         * modules/fsync-tests: New file.
38954         * tests/test-fsync.c: New file.
38955
38956         New module 'fsync'.
38957         * lib/fsync.c: New file.
38958         * m4/fsync.m4: New file.
38959         * modules/fsync: New file.
38960         * lib/unistd.in.h (fsync): New declaration.
38961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38962         GNULIB_FSYNC and HAVE_FSYNC.
38963         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38964         * MODULES.html.sh (posix_functions): Add fsync.
38965         * doc/posix-functions/fsync.texi: Mention the new module.
38966
38967 2008-10-02  Jim Meyering  <meyering@redhat.com>
38968
38969         fts.c: sync with similar code from coreutils' remove.c
38970         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38971         Guard also with "#if defined __linux__", since for now at least,
38972         this code is Linux-kernel-specific.
38973
38974 2008-10-02  Jim Meyering  <meyering@redhat.com>
38975
38976         fts: bug fixes
38977         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38978         Include <sys/vfs.h>, not <sys/statfs.h>.
38979
38980         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38981         Include <sys/vfs.h>, not <sys/statfs.h>.
38982
38983 2008-10-01  Bruno Haible  <bruno@clisp.org>
38984
38985         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38986         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38987         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38988         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38989         * doc/posix-functions/posix_spawnp.texi: Likewise.
38990         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38991         whether posix_spawn actually works.
38992         * m4/pipe.m4 (gl_PIPE): Likewise.
38993         * modules/execute (Files): Add m4/posix_spawn.m4.
38994         * modules/pipe (Files): Add m4/posix_spawn.m4.
38995         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38996
38997 2008-10-01  Jim Meyering  <meyering@redhat.com>
38998
38999         remove trailing spaces
39000         * NEWS: Likewise.
39001         * lib/poll.c (poll): Likewise.
39002         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
39003         * lib/winsock.c (rpl_close): Likewise.
39004         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
39005         * modules/yield: Likewise.
39006         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
39007         * tests/test-sys_select.c (connect_to_socket): Likewise.
39008
39009         fts.c: adjust a new interface to be more generally useful
39010         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
39011         (fts_build): Adjust caller.
39012
39013 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39014
39015         * modules/cond-tests: New file.
39016         * tests/test-cond.c: New file.
39017
39018 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39019             Bruno Haible  <bruno@clisp.org>
39020
39021         * modules/cond (Dependencies): Add errno, time.
39022         * lib/glthread/cond.h: Include <time.h>.
39023         (gl_cond_define, gl_cond_define_initialized): Use the same definition
39024         across platforms.
39025
39026 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39027             Bruno Haible  <bruno@clisp.org>
39028
39029         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
39030
39031 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39032             Bruno Haible  <bruno@clisp.org>
39033
39034         * modules/tls-tests (Depends-on): Add thread, yield.
39035         (configure.ac): Remove all checks.
39036         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
39037         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39038         gl_thread_self): Remove definitions. Include glthread/thread.h and
39039         glthread/yield.h instead.
39040         (test_tls): Pass an additional NULL argument to gl_thread_join.
39041
39042 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39043             Bruno Haible  <bruno@clisp.org>
39044
39045         * modules/lock-tests (Depends-on): Add thread, yield.
39046         (configure.ac): Remove all checks.
39047         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
39048         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39049         gl_thread_self): Remove definitions. Include glthread/thread.h and
39050         glthread/yield.h instead.
39051         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
39052         additional NULL argument to gl_thread_join.
39053
39054 2008-09-30  Bruno Haible  <bruno@clisp.org>
39055
39056         Fix the Win32 implementation of the 'thread' module.
39057         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
39058         pointer type.
39059         (gl_thread_self): Invoke gl_thread_self_func.
39060         (gl_thread_self_func): New declaration.
39061         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
39062         (do_init_self_key, init_self_key): New functions.
39063         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
39064         Remove some fields.
39065         (running_threads, running_lock): Remove variables.
39066         (get_current_thread_handle): New function.
39067         (gl_thread_self_func, wrapper_func, glthread_create_func,
39068         glthread_join_func, gl_thread_exit_func): Largely rewritten and
39069         simplified.
39070
39071 2008-09-30  Bruno Haible  <bruno@clisp.org>
39072
39073         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
39074         files.
39075
39076 2008-09-30  Jim Meyering  <meyering@redhat.com>
39077
39078         fts.m4: correct the test for statfs.f_type
39079         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
39080         when checking for statfs.f_type.
39081
39082 2008-09-15  Simon Josefsson  <simon@josefsson.org>
39083
39084         tests: avoid some compiler warnings
39085         * tests/test-memchr.c (main): Pass NULL indirectly.
39086         * tests/test-getdate.c (main): Remove unused variable 'ret'.
39087
39088 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
39089
39090         getdate.y: disallow countable dayshifts like "4 yesterday ago"
39091         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
39092         exactly specified dayshifts.
39093         (dayshift): New rule.
39094         (rel): Add dayshift.
39095         (relative_time_table) [tomorrow, yesterday, today, now]:
39096         Use tDAY_SHIFT in place of tDAY_UNIT.
39097         * tests/test-getdate.c: Add tests for now-disallowed countable
39098         dayshifts, e.g., "4 yesterday ago".
39099
39100 2008-09-29  Bruno Haible  <bruno@clisp.org>
39101
39102         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
39103         * tests/test-posix_spawn1.in.sh: Renamed from
39104         tests/test-posix_spawn.in.sh.
39105         * tests/test-posix_spawn2.c: New file.
39106         * tests/test-posix_spawn2.in.sh: New file.
39107         * modules/posix_spawnp-tests (Files): Update.
39108         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
39109
39110 2008-09-29  Bruno Haible  <bruno@clisp.org>
39111
39112         Propagate effects of putenv/setenv/unsetenv to child processes.
39113         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
39114         * lib/pipe.c (create_pipe): Likewise.
39115
39116 2008-09-29  Bruno Haible  <bruno@clisp.org>
39117
39118         Enable use of shell scripts as executables in mingw.
39119         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
39120         run the program as a shell script.
39121         * lib/pipe.c (create_pipe): Likewise.
39122         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
39123         resulting array.
39124
39125 2008-09-29  Eric Blake  <ebb9@byu.net>
39126
39127         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
39128
39129 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
39130
39131         * doc/posix-functions/accept.texi: Update mingw problems.
39132         * doc/posix-functions/bind.texi: Update mingw problems.
39133         * doc/posix-functions/close.texi: Update mingw problems.
39134         * doc/posix-functions/connect.texi: Update mingw problems.
39135         * doc/posix-functions/getpeername.texi: Update mingw problems.
39136         * doc/posix-functions/getsockname.texi: Update mingw problems.
39137         * doc/posix-functions/getsockopt.texi: Update mingw problems.
39138         * doc/posix-functions/ioctl.texi: Update mingw problems.
39139         * doc/posix-functions/listen.texi: Update mingw problems.
39140         * doc/posix-functions/recv.texi: Update mingw problems.
39141         * doc/posix-functions/recvfrom.texi: Update mingw problems.
39142         * doc/posix-functions/select.texi: Update mingw problems.
39143         * doc/posix-functions/send.texi: Update mingw problems.
39144         * doc/posix-functions/sendto.texi: Update mingw problems.
39145         * doc/posix-functions/setsockopt.texi: Update mingw problems.
39146         * doc/posix-functions/socket.texi: Update mingw problems.
39147
39148 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
39149             Bruno Haible  <bruno@clisp.org>
39150
39151         * lib/sys_select.in.h: Include sys/time.h.
39152         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
39153         * modules/sys_select: Depend on sys_time.
39154         * tests/test-sys_select.c: Test that sys/select.h defines struct
39155         timeval fully.
39156
39157 2008-09-29  Bruno Haible  <bruno@clisp.org>
39158
39159         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
39160         * lib/sys_select.in.h: Likewise.
39161
39162 2008-09-29  Bruno Haible  <bruno@clisp.org>
39163
39164         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
39165
39166 2008-09-29  Bruno Haible  <bruno@clisp.org>
39167
39168         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
39169         Set LIBSOCKET instead of augmenting LIBS.
39170         * modules/sockets (Link): New section.
39171         * modules/sockets-tests (test_sockets_LDADD): New variable.
39172         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
39173         * modules/poll-tests (test_poll_LDADD): New variable.
39174         * NEWS: Document the change.
39175
39176 2008-09-29  Bruno Haible  <bruno@clisp.org>
39177
39178         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
39179         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
39180         ARPA_INET_H directly.
39181         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39182
39183 2008-09-28  Bruno Haible  <bruno@clisp.org>
39184
39185         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
39186         from gl_HEADER_SYS_SOCKET.
39187         (gl_HEADER_SYS_SOCKET): Invoke it.
39188         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39189
39190 2008-09-28  Bruno Haible  <bruno@clisp.org>
39191
39192         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
39193         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
39194         Needed on OSF/1 4.0.
39195
39196 2008-09-28  Bruno Haible  <bruno@clisp.org>
39197
39198         Override open more carefully.
39199         * lib/open.c (orig_open): New function.
39200         (rpl_open): Use orig_open instead of open.
39201         * lib/fcntl.in.h: Add special invocation convention.
39202         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
39203         (gl_FUNC_OPEN): Invoke it.
39204
39205         Override freopen more carefully.
39206         * lib/freopen.c (orig_freopen): New function.
39207         (rpl_freopen): Use orig_freopen instead of freopen.
39208         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
39209         (gl_FUNC_FREOPEN): Invoke it.
39210
39211         Override fopen more carefully.
39212         * lib/fopen.c (orig_fopen): New function.
39213         (rpl_fopen): Use orig_fopen instead of fopen.
39214         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
39215         (gl_FUNC_FOPEN): Invoke it.
39216         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
39217
39218 2008-09-28  Bruno Haible  <bruno@clisp.org>
39219
39220         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
39221         SIGPIPE.
39222
39223 2008-09-28  Bruno Haible  <bruno@clisp.org>
39224
39225         * tests/test-sigaction.c (handler, main): Disable the check whether
39226         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
39227         glibc systems with LinuxThreads.
39228
39229 2008-09-28  Bruno Haible  <bruno@clisp.org>
39230
39231         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
39232
39233         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
39234         with AIX xlc.
39235         * lib/fcntl.in.h (open): Likewise.
39236         Reported by Rainer Tammer <tammer@tammer.net>.
39237
39238 2008-09-28  Bruno Haible  <bruno@clisp.org>
39239
39240         * modules/posix_spawnp-tests: New file.
39241         * tests/test-posix_spawn.c: New file.
39242         * tests/test-posix_spawn.in.sh: New file.
39243
39244         New module 'posix_spawnp'.
39245         * modules/posix_spawnp: New file.
39246         * lib/spawnp.c: New file, from GNU libc with modifications.
39247         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39248
39249         New module 'posix_spawn'.
39250         * modules/posix_spawn: New file.
39251         * lib/spawn.c: New file, from GNU libc with modifications.
39252         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39253
39254         New module 'posix_spawnattr_destroy'.
39255         * modules/posix_spawnattr_destroy: New file.
39256         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39257         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39258         module.
39259
39260         New module 'posix_spawnattr_setsigmask'.
39261         * modules/posix_spawnattr_setsigmask: New file.
39262         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39263         modifications.
39264         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39265         new module.
39266
39267         New module 'posix_spawnattr_getsigmask'.
39268         * modules/posix_spawnattr_getsigmask: New file.
39269         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39270         modifications.
39271         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39272         new module.
39273
39274         New module 'posix_spawnattr_setsigdefault'.
39275         * modules/posix_spawnattr_setsigdefault: New file.
39276         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39277         modifications.
39278         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39279         new module.
39280
39281         New module 'posix_spawnattr_getsigdefault'.
39282         * modules/posix_spawnattr_getsigdefault: New file.
39283         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39284         modifications.
39285         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39286         new module.
39287
39288         New module 'posix_spawnattr_setschedpolicy'.
39289         * modules/posix_spawnattr_setschedpolicy: New file.
39290         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39291         modifications.
39292         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39293         new module.
39294
39295         New module 'posix_spawnattr_getschedpolicy'.
39296         * modules/posix_spawnattr_getschedpolicy: New file.
39297         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39298         modifications.
39299         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39300         new module.
39301
39302         New module 'posix_spawnattr_setschedparam'.
39303         * modules/posix_spawnattr_setschedparam: New file.
39304         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39305         modifications.
39306         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39307         new module.
39308
39309         New module 'posix_spawnattr_getschedparam'.
39310         * modules/posix_spawnattr_getschedparam: New file.
39311         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39312         modifications.
39313         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39314         new module.
39315
39316         New module 'posix_spawnattr_setpgroup'.
39317         * modules/posix_spawnattr_setpgroup: New file.
39318         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39319         modifications.
39320         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39321         module.
39322
39323         New module 'posix_spawnattr_getpgroup'.
39324         * modules/posix_spawnattr_getpgroup: New file.
39325         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39326         modifications.
39327         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39328         module.
39329
39330         New module 'posix_spawnattr_setflags'.
39331         * modules/posix_spawnattr_setflags: New file.
39332         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39333         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39334         module.
39335
39336         New module 'posix_spawnattr_getflags'.
39337         * modules/posix_spawnattr_getflags: New file.
39338         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39339         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39340         module.
39341
39342         New module 'posix_spawnattr_init'.
39343         * modules/posix_spawnattr_init: New file.
39344         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39345         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39346         module.
39347
39348         New module 'posix_spawn_file_actions_destroy'.
39349         * modules/posix_spawn_file_actions_destroy: New file.
39350         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39351         modifications.
39352         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39353         the new module.
39354
39355         New module 'posix_spawn_file_actions_addopen'.
39356         * modules/posix_spawn_file_actions_addopen: New file.
39357         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39358         modifications.
39359         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39360         the new module.
39361
39362         New module 'posix_spawn_file_actions_adddup2'.
39363         * modules/posix_spawn_file_actions_adddup2: New file.
39364         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39365         modifications.
39366         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39367         the new module.
39368
39369         New module 'posix_spawn_file_actions_addclose'.
39370         * modules/posix_spawn_file_actions_addclose: New file.
39371         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39372         modifications.
39373         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39374         the new module.
39375
39376         New module 'posix_spawn_file_actions_init'.
39377         * modules/posix_spawn_file_actions_init: New file.
39378         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39379         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39380         new module.
39381
39382         New module 'posix_spawn-internal'.
39383         * modules/posix_spawn-internal: New file.
39384         * lib/spawn_int.h: New file, from GNU libc with modifications.
39385         * lib/spawni.c: New file, from GNU libc with modifications.
39386         * m4/posix_spawn.m4: New file.
39387
39388         New module 'spawn'.
39389         * modules/spawn: New file.
39390         * lib/spawn.in.h: New file, from GNU libc with modifications.
39391         * m4/spawn_h.m4: New file.
39392         * doc/posix-headers/spawn.texi: Mention the new module.
39393
39394 2008-09-28  Bruno Haible  <bruno@clisp.org>
39395
39396         * modules/sched-tests: New file.
39397         * tests/test-sched.c: New file.
39398
39399         New module 'sched'.
39400         * modules/sched: New file.
39401         * lib/sched.in.h: New file.
39402         * m4/sched_h.m4: New file.
39403         * doc/posix-headers/sched.texi: Mention the new module.
39404
39405 2008-09-27  Eric Blake  <ebb9@byu.net>
39406
39407         Fix previous patch, and tweak references to $0.
39408         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39409         (func_version, func_gnulib_dir): Don't call this program
39410         gnulib-tool.
39411         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39412         with using $0 in function.
39413         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39414         (func_fatal_error): Reuse the name the user invoked us with.
39415
39416 2008-09-27  Bruno Haible  <bruno@clisp.org>
39417
39418         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39419         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39420         (gl_ICONV_H): Not here.
39421         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39422         instead of assigning ICONV_H directly.
39423
39424         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39426         WCHAR_H directly.
39427
39428 2008-09-27  Bruno Haible  <bruno@clisp.org>
39429
39430         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39431         * modules/arpa_inet (Depends-on): Add link-warning.
39432         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39433         * modules/unistd (Makefile.am): Likewise.
39434
39435 2008-09-26  Bruno Haible  <bruno@clisp.org>
39436
39437         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39438         variables.
39439         (func_version): Essentially copied from gnulib-tool.
39440         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39441         func_readlink): Copied from gnulib-tool.
39442
39443 2008-09-26  Bruno Haible  <bruno@clisp.org>
39444
39445         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39446         invoking git-version-gen.
39447
39448 2008-09-26  Bruno Haible  <bruno@clisp.org>
39449
39450         * posix-modules: Update to directory names changed on 2008-01-19.
39451         Remove commas in output before splitting into words. No more need to
39452         avoid 'ftruncate' since 2007-02-19.
39453
39454 2008-09-26  Bruno Haible  <bruno@clisp.org>
39455
39456         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39457
39458 2008-09-26  Bruno Haible  <bruno@clisp.org>
39459
39460         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39461         * modules/fwriteerror (Depends-on): Add errno.
39462
39463 2008-09-26  Bruno Haible  <bruno@clisp.org>
39464
39465         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39466         * tests/test-vc-list-files-cvs.sh: Likewise.
39467
39468 2008-09-26  Bruno Haible  <bruno@clisp.org>
39469
39470         * doc/posix-headers/sys_resource.texi: Reorder items.
39471
39472 2008-09-26  Jim Meyering  <meyering@redhat.com>
39473
39474         fts: tweak inode comparison function
39475         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39476         inode numbers, as documented.
39477
39478         fts: sort dirent entries on inode number before traversing
39479         This avoids a quadratic, seek-related performance penalty when
39480         operating on a directory containing many entries (measurable at 10k;
39481         3.5 hours at 2 million entries with a cold cache) on certain types
39482         of file systems, including ext3 and ext4, but not tmpfs.
39483         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39484         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39485         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39486         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39487         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39488         (fts_build): Set the stat.st_ino member from D_INO.
39489         If it is likely to be useful, sort dirent entries on inode number.
39490
39491         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39492         and the struct statfs.f_type member.
39493         * modules/fts (Depends-on): Add d-ino.
39494
39495 2008-09-26  Bruno Haible  <bruno@clisp.org>
39496
39497         * modules/sigpipe-die (Depends-on): Add sigpipe.
39498
39499         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39500         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39501         and GNULIB_STDIO_H_SIGPIPE are set.
39502         * lib/stdio-write.c: New file.
39503         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39504         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39505         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39506         REPLACE_STDIO_WRITE_FUNCS.
39507         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39508         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39509         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39510         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39511         * modules/stdio (Files): Add lib/stdio-write.c.
39512         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39513         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39514         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39515         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39516         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39517         REPLACE_FPRINTF_POSIX.
39518         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39519         REPLACE_PRINTF_POSIX.
39520         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39521         REPLACE_VFPRINTF_POSIX.
39522         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39523         REPLACE_VPRINTF_POSIX.
39524         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39525         SIGPIPE issue.
39526         * doc/posix-functions/fputc.texi: Likewise.
39527         * doc/posix-functions/fputs.texi: Likewise.
39528         * doc/posix-functions/fwrite.texi: Likewise.
39529         * doc/posix-functions/printf.texi: Likewise.
39530         * doc/posix-functions/putc.texi: Likewise.
39531         * doc/posix-functions/putchar.texi: Likewise.
39532         * doc/posix-functions/puts.texi: Likewise.
39533         * doc/posix-functions/vfprintf.texi: Likewise.
39534         * doc/posix-functions/vprintf.texi: Likewise.
39535
39536         * modules/safe-write (Depends-on): Add write.
39537
39538         * modules/sigpipe-tests: New file.
39539         * tests/test-sigpipe.c: New file.
39540         * tests/test-sigpipe.sh: New file.
39541
39542         * modules/write: New file.
39543         * lib/unistd.in.h: Include <sys/types.h>.
39544         (write): New declaration.
39545         * lib/write.c: New file.
39546         * m4/write.m4: New file.
39547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39548         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39549         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39550         GNULIB_WRITE, REPLACE_WRITE.
39551         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39552         and the SIGPIPE issue.
39553
39554         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39555         (raise): New declaration.
39556         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39557         (ext_signal): New function.
39558         (rpl_raise): New function.
39559         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39560         GNULIB_SIGNAL_H_SIGPIPE.
39561         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39562         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39563
39564         * modules/sigpipe: New file.
39565         * m4/sigpipe.m4: New file.
39566
39567 2008-09-25  Derek Price  <derek@ximbiot.com>
39568             Bruno Haible  <bruno@clisp.org>
39569
39570         * gnulib-tool (func_import): Report all license incompatibilities, not
39571         just the first one.
39572
39573 2008-09-25  Bruno Haible  <bruno@clisp.org>
39574
39575         * gnulib-tool (func_import): When computing the edits, consider not
39576         only the Makefile.ams that exist but also those that will be generated.
39577
39578 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39579
39580         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39581         fixes gnulib-tool --test warning about duplicate dependency.
39582
39583 2008-09-25  Bruno Haible  <bruno@clisp.org>
39584
39585         * gnulib-tool: Don't ask the user to perform edits in the generated
39586         Makefile.ams.
39587         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39588         apply to the Makefile.am being generated.
39589         (func_emit_tests_Makefile_am): Execute edits that apply to the
39590         Makefile.am being generated.
39591         (func_import): Setup list of Makefile.am edits before emitting the
39592         Makefile.ams, not at the end.
39593         (func_create_testdir): Update.
39594         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39595
39596 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39597
39598         * gnulib-tool (func_import): Store the --tests-base option in the
39599         comment in gnulib-cache.m4.
39600
39601 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39602
39603         * NEWS: Document increased portability that sys_select now provides.
39604
39605         * lib/sys_select.in.h: Install select wrapper.
39606         * lib/sys_socket.in.h: Use more descriptive name when there is no
39607         select wrapper.
39608         * lib/winsock-select.c: New.
39609         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39610         Require gl_HEADER_SYS_SOCKET.
39611         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39612         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39613         * tests/test-sys_select.c: Add functional tests.
39614
39615 2008-09-24  Eric Blake  <ebb9@byu.net>
39616
39617         open, fopen: close fd leak in last patch
39618         * lib/open.c (rpl_open): Close fd before returning error.
39619         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39620         * doc/posix-functions/open.texi (open): Document that Irix also
39621         has the bug.
39622         * doc/posix-functions/fopen.texi (fopen): Likewise.
39623         Reported by Paolo Bonzini.
39624
39625 2008-09-24  Bruno Haible  <bruno@clisp.org>
39626
39627         Ensure that a filename ending in a slash cannot be used to access a
39628         non-directory.
39629         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39630         to check whether it's really a directory.
39631         * lib/fopen.c: Include fcntl.h, unistd.h.
39632         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39633         and fdopen().
39634         * modules/fopen (Depends-on): Add unistd.
39635         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39636         * tests/test-fopen.c (main): Likewise.
39637         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39638         * doc/posix-functions/fopen.texi: Likewise.
39639         Reported by Eric Blake.
39640
39641 2008-09-23  Eric Blake  <ebb9@byu.net>
39642
39643         c-stack: avoid compiler optimizations when provoking overflow
39644         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39645         recursion harder to optimize, to ensure a stack overflow occurs.
39646         * tests/test-c-stack.c (recurse): Likewise.
39647         Borrowed from libsigsegv.
39648
39649         c-stack: work around Irix sigaltstack bug
39650         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39651         whether sigaltstack uses wrong end of stack_t (copied in part from
39652         libsigsegv).
39653         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39654         Irix bug, without requiring an over-allocation.
39655         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39656         bug.
39657
39658         fopen: document mingw bug on directories
39659         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39660         not allowing a stream visiting a directory, even though reading
39661         from such a stream is not portable.
39662
39663 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39664
39665         * lib/poll.c: Rewrite.
39666         * modules/poll: Depend on alloca.
39667
39668 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39669
39670         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39671         instead define prototypes for a full set of wrappers.  Ensure
39672         that Cygwin does not use the compatibility code, which is only
39673         for MinGW.
39674         * lib/winsock.c: New.
39675         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39676         * modules/sys_socket: Add lib/winsock.c.
39677
39678         * modules/poll-tests: Add errno and perror.
39679         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39680
39681 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39682
39683         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39684
39685 2008-09-23  Bruno Haible  <bruno@clisp.org>
39686
39687         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39688         * doc/glibc-functions/*: Likewise.
39689
39690 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39691
39692         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39693         success.
39694
39695 2008-09-22  Eric Blake  <ebb9@byu.net>
39696             Bruno Haible  <bruno@clisp.org>
39697
39698         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39699         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39700         supply %A but mishandle pseudo-NaN.
39701         Reported by Simon Josefsson.
39702
39703 2008-09-21  Bruno Haible  <bruno@clisp.org>
39704
39705         * tests/test-lock.c (main): Tweak skip message.
39706         * tests/test-tls.c (main): Likewise.
39707
39708 2008-09-21  Bruno Haible  <bruno@clisp.org>
39709
39710         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39711         whether 'struct sigaction' has sa_sigaction here...
39712         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39713         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39714
39715 2008-09-21  Bruno Haible  <bruno@clisp.org>
39716
39717         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39718         section.
39719         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39720         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39721         the new section.
39722         (Support for obsolete systems lacking POSIX:2001): New section.
39723         (String handling <string.h>): Move strdup to the new section.
39724         Suggested by Simon Josefsson and Paolo Bonzini.
39725
39726 2008-09-21  Bruno Haible  <bruno@clisp.org>
39727
39728         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39729         exponents in %e and %g results on 'long double'. Needed for mingw's
39730         improved *printf functions.
39731         * tests/test-vasprintf-posix.c (test_function): Likewise.
39732         * tests/test-snprintf-posix.h (test_function): Likewise.
39733         * tests/test-sprintf-posix.h (test_function): Likewise.
39734         Reported by Eric Blake.
39735
39736 2008-09-21  Bruno Haible  <bruno@clisp.org>
39737
39738         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39739         * tests/test-sprintf-posix.h (test_function): Likewise.
39740
39741 2008-09-21  Bruno Haible  <bruno@clisp.org>
39742
39743         * modules/getpass (Depends-on): Add strdup-posix.
39744
39745         New module 'strdup-posix'.
39746         * modules/strdup-posix: New file.
39747         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39748         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39750         REPLACE_STRDUP.
39751         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39752         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39753         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39754         strdup-posix.
39755
39756         * modules/strdup (Depends-on): Remove malloc-posix.
39757
39758 2008-09-20  Bruno Haible  <bruno@clisp.org>
39759
39760         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39761         Wildenhues.
39762
39763 2008-09-20  Bruno Haible  <bruno@clisp.org>
39764
39765         Ensure that wint_t gets defined on IRIX 5.3.
39766         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39767         * lib/wctype.in.h (wint_t): Likewise.
39768         (__wctype_wint_t): Remove type.
39769         (isw*): Use wint_t instead of __wctype_wint_t.
39770         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39771         * modules/wchar (Files): Add m4/wint_t.m4.
39772         (Makefile.am): Substitute HAVE_WINT_T.
39773         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39774         * tests/test-wctype.c: Check that wint_t is defined.
39775         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39776         * doc/posix-headers/wctype.texi: Likewise.
39777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39778
39779 2008-09-18  Bruno Haible  <bruno@clisp.org>
39780
39781         * gnulib-tool (func_exit): Update comment.
39782
39783 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39784
39785         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39786         assumes strdup exists and does not depend on strdup to return
39787         ENOMEM on out of memory conditions.
39788
39789 2008-09-18  Bruno Haible  <bruno@clisp.org>
39790
39791         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39792         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39793         digits for the exponent.
39794
39795 2008-09-18  Jim Meyering  <meyering@redhat.com>
39796             Bruno Haible  <bruno@clisp.org>
39797
39798         * lib/vasnprintf.c (decimal_point_char): Define also if
39799         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39800
39801 2008-09-16  Bruno Haible  <bruno@clisp.org>
39802         and Eric Blake  <ebb9@byu.net>
39803
39804         vasnprintf: support Irix 5.3
39805         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39806         that mishandle long double infinity.
39807         Reported by Tom G. Christensen.
39808
39809 2008-09-16  Bruno Haible  <bruno@clisp.org>
39810
39811         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39812         Solaris 9.
39813         * doc/glibc-functions/alphasort.texi: Likewise.
39814         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39815
39816 2008-09-16  Jim Meyering  <meyering@redhat.com>
39817
39818         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39819         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39820         a umask modification leak out of a subshell.  Otherwise, the
39821         opensolaris /bin/sh would be accepted and thus cause unwarranted
39822         failures in the coreutils test suite.
39823
39824 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39825
39826         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39827         to succeed.
39828
39829 2008-09-16  Jim Meyering  <meyering@redhat.com>
39830
39831         avoid spurious test failure when library is built without ACL support
39832         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39833         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39834         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39835         * tests/test-copy-acl.sh: Likewise.
39836
39837 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39838
39839         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39840         based on character occurrence counts.
39841
39842 2008-09-15  Eric Blake  <ebb9@byu.net>
39843
39844         tests: avoid some compiler warnings
39845         * tests/test-memchr.c (main): Pass NULL indirectly.
39846         * tests/test-closein.c (main): Avoid unused variable.
39847
39848 2008-09-15  Bruno Haible  <bruno@clisp.org>
39849
39850         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39851         are missing on OpenBSD 4.0 individually.
39852         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39853
39854 2008-09-15  Bruno Haible  <bruno@clisp.org>
39855
39856         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39857         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39858         * doc/posix-functions/perror.texi: Likewise.
39859         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39860         is missing.
39861         Reported by Eric Blake.
39862
39863         * lib/errno.in.h: Use replacement values >= 2000.
39864         Reported by Eric Blake.
39865
39866 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39867
39868         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39869         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39870         limit.
39871         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39872         compareseq was aborted.
39873
39874 2008-09-14  Bruno Haible  <bruno@clisp.org>
39875
39876         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39877         yvec_edit_count.
39878         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39879         (fstrcmp_bounded): Simplify result computation accordingly.
39880
39881 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39882
39883         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39884         (fstrcmp): Define in terms of fstrcmp_bounded.
39885         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39886         lower_bound argument.
39887         Return quickly if the result is certainly < lower_bound.
39888         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39889
39890 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39891
39892         * lib/diffseq.h (EARLY_ABORT): New macro.
39893         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39894         evaluates to true.
39895
39896 2008-09-14  Bruno Haible  <bruno@clisp.org>
39897
39898         * modules/perror-tests: New file.
39899         * tests/test-perror.sh: New file.
39900         * tests/test-perror.c: New file.
39901
39902         New module 'perror'.
39903         * lib/stdio.in.h (perror): New declaration.
39904         * lib/perror.c: New file.
39905         * m4/perror.m4: New file.
39906         * modules/perror: New file.
39907         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39908         * doc/posix-functions/perror.texi: Mention the perror module.
39909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39910         REPLACE_PERROR.
39911         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39912         REPLACE_PERROR.
39913
39914 2008-09-14  Bruno Haible  <bruno@clisp.org>
39915
39916         * modules/stdio (Makefile.am): Reorder to match the order in
39917         lib/stdio.in.h.
39918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39919
39920 2008-09-13  Bruno Haible  <bruno@clisp.org>
39921
39922         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39923
39924 2008-09-13  Bruno Haible  <bruno@clisp.org>
39925
39926         Extend strerror to cover the added errno values.
39927         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39928         (rpl_strerror): Provide error messages for the added errno values and
39929         for the WSA* values.
39930         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39931         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39932         strerror.
39933         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39934         * modules/strerror (Depends-on): Add errno.
39935         * doc/posix-functions/strerror.texi: Document the change.
39936         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39937         and EOVERFLOW.
39938
39939 2008-09-13  Bruno Haible  <bruno@clisp.org>
39940
39941         * modules/EOVERFLOW: Remove file.
39942         * m4/eoverflow.m4: Remove file.
39943         * modules/EOVERFLOW-tests: Remove file.
39944         * tests/test-EOVERFLOW.c: Remove file.
39945         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39946         * modules/ftell (Depends-on): Likewise.
39947         * modules/getdelim (Depends-on): Likewise.
39948         * modules/getugroups (Depends-on): Likewise.
39949         * modules/poll (Depends-on): Likewise.
39950         * modules/snprintf (Depends-on): Likewise.
39951         * modules/sprintf-posix (Depends-on): Likewise.
39952         * modules/vasnprintf (Depends-on): Likewise.
39953         * modules/vasprintf (Depends-on): Likewise.
39954         * modules/vfprintf-posix (Depends-on): Likewise.
39955         * modules/vsnprintf (Depends-on): Likewise.
39956         * modules/vsprintf-posix (Depends-on): Likewise.
39957         * modules/xvasprintf (Depends-on): Likewise.
39958         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39959         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39960         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39961         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39962         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39963         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39964         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39965         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39966         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39967         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39968         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39969         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39970         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39971         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39972         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39973         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39974         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39975         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39976         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39977         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39978         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39979         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39980         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39981         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39982         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39983         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39984         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39985         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39986         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39987         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39988         * MODULES.html.sh: Remove EOVERFLOW.
39989         * NEWS: Mention the change.
39990
39991 2008-09-13  Bruno Haible  <bruno@clisp.org>
39992
39993         * modules/errno-tests: New file.
39994         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39995
39996         * lib/errno.in.h: New file.
39997         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39998         * modules/errno: New file.
39999         * doc/posix-headers/errno.texi: Update documentation.
40000         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
40001
40002 2008-09-13  Bruno Haible  <bruno@clisp.org>
40003
40004         * tests/test-poll.c: Use #if for native Windows, rather than testing
40005         __MSVCRT__.
40006
40007 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40008             Bruno Haible  <bruno@clisp.org>
40009
40010         * lib/glob.c: Don't include <pwd.h> on native Windows.
40011         (WINDOWS32): New macro.
40012         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
40013
40014 2008-09-13  Bruno Haible  <bruno@clisp.org>
40015
40016         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
40017         (ETIMEDOUT): Remove macro.
40018         (glthread_cond_timedwait_multithreaded): New declaration.
40019         (glthread_cond_timedwait): Use it.
40020         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
40021         (glthread_cond_timedwait_multithreaded): New function.
40022
40023 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40024
40025         * modules/poll-tests: Do not check for io.h.
40026         * tests/test-poll.c: Check for __MSVCRT__ instead.
40027
40028 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40029
40030         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
40031         * modules/poll-tests: Add inet_pton, stdbool, sockets.
40032         * tests/test-poll.c: Use them.  Use _pipe on Windows.
40033
40034 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40035
40036         * modules/poll-tests: New.
40037         * tests/test-poll.c: New.
40038
40039 2008-09-12  Eric Blake  <ebb9@byu.net>
40040
40041         frexp: test for NetBSD failure on -0.0
40042         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
40043         not all, bugs from NetBSD 3.0 have been fixed.
40044         * doc/posix-functions/frexp.texi (frexp): Document bug.
40045         Reported by Thomas Klausner.
40046
40047         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
40048         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
40049         literal -0.0.
40050         Reported by Jonathan C. Patschke <jp@centtech.com>.
40051
40052 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40053
40054         * lib/glthread/cond.h: Use dummy implementation also if
40055         USE_WIN32_THREADS.
40056
40057 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40058
40059         * modules/fnmatch-posix (License): Change to LGPLv2+.
40060         * modules/fnmatch-gnu (License): Likewise.
40061
40062 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40063
40064         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
40065
40066 2008-09-11  Jim Meyering  <meyering@redhat.com>
40067
40068         * users.txt: Add gtk-vnc.
40069
40070 2008-09-08  Simon Josefsson  <simon@josefsson.org>
40071
40072         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
40073         rotate amounts.
40074
40075         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
40076         required for 16-bit and 8-bit rotates.
40077         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
40078         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
40079         UINT8_MAX instead of hard-coded constants.
40080         Suggested by Paul Eggert.
40081
40082 2008-09-07  Bruno Haible  <bruno@clisp.org>
40083
40084         * tests/test-striconveh.c (main): Check behaviour when converting from
40085         UTF-7.
40086
40087         Make striconveh work better with stateful encodings.
40088         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
40089         that iconv does not increment the inptr when returning -1/EINVAL.
40090
40091 2008-09-07  Bruno Haible  <bruno@clisp.org>
40092
40093         * build-aux/config.rpath: Update according to libtool-2.2.6.
40094         * build-aux/config.libpath: Likewise.
40095
40096 2008-09-06  Bruno Haible  <bruno@clisp.org>
40097
40098         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
40099         * lib/freadptr.c (freadptr): Likewise.
40100         * lib/freadseek.c (freadptrinc): Likewise.
40101         Reported by Simon Josefsson.
40102
40103 2008-09-06  Bruno Haible  <bruno@clisp.org>
40104
40105         * modules/freadptr (License): Change to LGPLv2+.
40106         * modules/freadseek (License): Likewise.
40107         Suggested by Eric Blake.
40108
40109         * modules/memchr2 (License): Change to LGPLv2+.
40110         Approved by Eric Blake.
40111
40112 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40113             Bruno Haible  <bruno@clisp.org>
40114
40115         Make gnulib-tool work with native 'sed' on AIX.
40116         * gnulib-tool (sed_noop): New variable.
40117         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
40118         func_add_or_update, func_create_testdir): Use it to initialize sed
40119         script variables.
40120         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40121
40122 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
40123             Bruno Haible  <bruno@clisp.org>
40124
40125         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
40126         also works after #include directives.
40127
40128 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
40129
40130         getdate.y: reject an out-of-range timezone value
40131         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
40132         the range [-24...+24].  When specified with only one or two digits,
40133         * tests/test-getdate.c: Tests for the fix.
40134         * doc/getdate.texi: Document this change.
40135
40136 2008-09-03  Bruno Haible  <bruno@clisp.org>
40137
40138         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
40139
40140 2008-09-02  Simon Josefsson  <simon@josefsson.org>
40141
40142         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
40143         <bruce.korb@gmail.com> with ideas from Ben Pfaff
40144         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
40145         Blake <ebb9@byu.net>.
40146
40147         * tests/test-bitrotate.c: Add more test vectors.
40148
40149 2008-09-02  Eric Blake  <ebb9@byu.net>
40150
40151         vasnprintf-posix: handle large precision via %.*d
40152         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
40153         when handling it ourselves.
40154         * tests/test-vasnprintf-posix.c (test_function): Add test.
40155         * tests/test-snprintf-posix.h (test_function): Likewise.
40156         * tests/test-sprintf-posix.h (test_function): Likewise.
40157         * tests/test-vasprintf-posix.c (test_function): Likewise.
40158         Reported by Alain Guibert.
40159
40160 2008-09-01  Eric Blake  <ebb9@byu.net>
40161
40162         c-stack: make configure-time check more robust
40163         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
40164         successful sigaction call.
40165         Reported by Tom G. Christensen.
40166
40167 2008-09-01  Bruno Haible  <bruno@clisp.org>
40168
40169         New module 'findprog-lgpl'.
40170         * modules/findprog-lgpl: New file.
40171         * lib/findprog-lgpl.c: New file.
40172         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
40173         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
40174         to decide whether to use strdup or xstrdup, concatenated_filename or
40175         xconcatenated_filename.
40176
40177 2008-09-01  Bruno Haible  <bruno@clisp.org>
40178
40179         Split module 'concat-filename' into 'concat-filename' (LGPL) and
40180         'xconcat-filename' (GPL).
40181         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
40182         (License): Change to LGPLv2+.
40183         * modules/xconcat-filename: New file.
40184         * lib/concat-filename.h (concatenated_filename): Change specification.
40185         (xconcatenated_filename): New declaration.
40186         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
40187         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
40188         memory situations.
40189         * lib/xconcat-filename.c: New file.
40190         * NEWS: Mention the change.
40191         * lib/findprog.c: Include concat-filename.h, not filename.h.
40192         (find_in_path): Use xconcatenated_filename instead of
40193         concatenated_filename.
40194         * lib/javacomp.c: Include concat-filename.h, not filename.h.
40195         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40196         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40197         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40198         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
40199         instead of concatenated_filename.
40200         * lib/javaexec.c: Include concat-filename.h, not filename.h.
40201         (execute_java_class): Use xconcatenated_filename instead of
40202         concatenated_filename.
40203         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
40204         * modules/javacomp (Depends-on): Likewise.
40205         * modules/javaexec (Depends-on): Likewise.
40206
40207 2008-09-01  Bruno Haible  <bruno@clisp.org>
40208
40209         Split module 'filename' into 'filename' and 'concat-filename'.
40210         * modules/filename: Keep only lib/filename.h.
40211         (License): Change to LGPLv2+.
40212         * modules/concat-filename: New file, extracted from modules/filename.
40213         * lib/filename.h (concatenated_filename): Remove declaration.
40214         * lib/concat-filename.h: New file, extracted from lib/filename.h.
40215         * lib/concat-filename.c: Include concat-filename.h.
40216         * NEWS: Mention the change.
40217
40218 2008-09-01  Simon Josefsson  <simon@josefsson.org>
40219
40220         * lib/bitrotate.h (rotl8, rotr8): Add.
40221
40222         * modules/bitrotate (configure.ac): Need
40223         AC_REQUIRE([AC_C_INLINE]).
40224         (Description): Mention stdint.h.  Reported by Bruno Haible
40225         <bruno@clisp.org>.
40226
40227         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
40228         Paolo Bonzini <bonzini@gnu.org>.
40229
40230 2008-08-31  Bruno Haible  <bruno@clisp.org>
40231
40232         Assume Solaris specific bi-arch conventions on Solaris systems.
40233         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
40234         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
40235         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
40236         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
40237         like acl_libdirstem.
40238         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
40239         acl_libdirstem.
40240         * NEWS: Mention the change.
40241         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40242
40243 2008-08-31  Jim Meyering  <meyering@redhat.com>
40244
40245         * lib/strftime.h: Add comments describing the two added arguments.
40246
40247         remove duplicate #include directives
40248         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40249         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40250
40251 2008-08-31  Bruno Haible  <bruno@clisp.org>
40252
40253         New module 'sigpipe-die'.
40254         * modules/sigpipe-die: New file.
40255         * lib/sigpipe-die.h: New file.
40256         * lib/sigpipe-die.c: New file.
40257         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40258
40259 2008-08-31  Bruno Haible  <bruno@clisp.org>
40260
40261         Don't override previously installed signal handlers.
40262         * lib/fatal-signal.c (saved_sigactions): New variable.
40263         (uninstall_handlers): Reset the signal to the saved handler, not
40264         to SIG_DFL (except when ignored).
40265         (install_handlers): Save the previous handlers.
40266
40267 2008-08-30  Bruno Haible  <bruno@clisp.org>
40268
40269         * gnulib-tool (func_reset_sigpipe): New function.
40270         (func_get_automake_snippet, func_modules_transitive_closure,
40271         func_import): Invoke it before a join command that reads from stdin,
40272         to avoid "echo: write error: Broken pipe" error messages on stderr.
40273         Reported by Sam Steingold <sds@gnu.org>.
40274
40275 2008-08-30  Bruno Haible  <bruno@clisp.org>
40276
40277         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40278         Code copied from m4/open.m4.
40279         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40280         access and the filename ends in a slash. Code copied from lib/open.c.
40281         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40282         * tests/test-fopen.c (main): Check against bug with trailing slash.
40283
40284 2008-08-29  Bruno Haible  <bruno@clisp.org>
40285
40286         Avoid some "gcc -pedantic" warnings.
40287         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40288         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40289         * lib/dirent.in.h: Likewise.
40290         * lib/fcntl.in.h: Likewise.
40291         * lib/float.in.h: Likewise.
40292         * lib/iconv.in.h: Likewise.
40293         * lib/inttypes.in.h: Likewise.
40294         * lib/locale.in.h: Likewise.
40295         * lib/math.in.h: Likewise.
40296         * lib/netinet_in.in.h: Likewise.
40297         * lib/search.in.h: Likewise.
40298         * lib/signal.in.h: Likewise.
40299         * lib/stdarg.in.h: Likewise.
40300         * lib/stdint.in.h: Likewise.
40301         * lib/stdio.in.h: Likewise.
40302         * lib/stdlib.in.h: Likewise.
40303         * lib/string.in.h: Likewise.
40304         * lib/strings.in.h: Likewise.
40305         * lib/sys_select.in.h: Likewise.
40306         * lib/sys_socket.in.h: Likewise.
40307         * lib/sys_stat.in.h: Likewise.
40308         * lib/sys_time.in.h: Likewise.
40309         * lib/sysexits.in.h: Likewise.
40310         * lib/time.in.h: Likewise.
40311         * lib/unistd.in.h: Likewise.
40312         * lib/wchar.in.h: Likewise.
40313         * lib/wctype.in.h: Likewise.
40314         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40315         * modules/fchdir (Makefile.am): Likewise.
40316         * modules/fcntl (Makefile.am): Likewise.
40317         * modules/float (Makefile.am): Likewise.
40318         * modules/iconv_open (Makefile.am): Likewise.
40319         * modules/inttypes (Makefile.am): Likewise.
40320         * modules/locale (Makefile.am): Likewise.
40321         * modules/math (Makefile.am): Likewise.
40322         * modules/netinet_in (Makefile.am): Likewise.
40323         * modules/search (Makefile.am): Likewise.
40324         * modules/signal (Makefile.am): Likewise.
40325         * modules/stdarg (Makefile.am): Likewise.
40326         * modules/stdint (Makefile.am): Likewise.
40327         * modules/stdio (Makefile.am): Likewise.
40328         * modules/stdlib (Makefile.am): Likewise.
40329         * modules/string (Makefile.am): Likewise.
40330         * modules/strings (Makefile.am): Likewise.
40331         * modules/sys_select (Makefile.am): Likewise.
40332         * modules/sys_socket (Makefile.am): Likewise.
40333         * modules/sys_stat (Makefile.am): Likewise.
40334         * modules/sys_time (Makefile.am): Likewise.
40335         * modules/sysexits (Makefile.am): Likewise.
40336         * modules/time (Makefile.am): Likewise.
40337         * modules/unistd (Makefile.am): Likewise.
40338         * modules/wchar (Makefile.am): Likewise.
40339         * modules/wctype (Makefile.am): Likewise.
40340         Reported by Reuben Thomas <rrt@sc3d.org>.
40341
40342 2008-08-29  Bruno Haible  <bruno@clisp.org>
40343
40344         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40345         any more.
40346
40347 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40348
40349         * MODULES.html.sh (Misc): Add bitrotate.
40350
40351         * modules/bitrotate: New file.
40352
40353         * lib/bitrotate.h: New file.
40354
40355         * modules/bitrotate-tests: New file.
40356
40357         * tests/test-bitrotate.c: New file.
40358
40359         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40360         on the bitrotate module.
40361
40362         * lib/arctwo.c: Use new bitrotate module.
40363
40364 2008-08-29  Jim Meyering  <meyering@redhat.com>
40365
40366         bootstrap: merge changes from coreutils
40367         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40368         of copied files.  Remove a kludge, now that this is fixed.
40369         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40370         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40371         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40372
40373 2008-08-29  Bruno Haible  <bruno@clisp.org>
40374
40375         * MODULES.html.sh: Remove --cvs-urls option.
40376
40377 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40378
40379         maint.mk: adjust to file name change
40380         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40381
40382 2008-08-28  Jim Meyering  <meyering@redhat.com>
40383
40384         * modules/getndelim2 (License): Relicense to LGPLv2+.
40385         Approved by Richard Stallman for the version of 1995, and by
40386         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40387
40388 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40389
40390         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40391         dummy if one is not available.  Do not touch them if
40392         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40393         (getc_maybe_unlocked): New.
40394         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40395
40396 2008-08-26  Eric Blake  <ebb9@byu.net>
40397
40398         doc/INSTALL: resync from autoconf
40399         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40400         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40401         moving...
40402         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40403         * INSTALL: Regenerate.
40404         * INSTALL.ISO: New file.
40405         * INSTALL.UTF-8: Likewise.
40406
40407 2008-08-26  Jim Meyering  <meyering@redhat.com>
40408
40409         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40410         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40411         these definitions conditional, so that they may be overridden, too.
40412
40413 2008-08-26  Bruno Haible  <bruno@clisp.org>
40414
40415         Generate INSTALL file variants with prettier quotes.
40416         * doc/Makefile (INSTALL_PRELUDE): New macro.
40417         (INSTALL): Use it.
40418         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40419
40420 2008-08-26  Bruno Haible  <bruno@clisp.org>
40421
40422         Run makeinfo in an English locale.
40423         * doc/Makefile (MAKEINFO): New variable.
40424
40425 2008-08-26  Bruno Haible  <bruno@clisp.org>
40426
40427         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40428         Suggested by Eric Blake.
40429
40430 2008-08-25  Bruno Haible  <bruno@clisp.org>
40431
40432         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40433
40434 2008-08-25  Eric Blake  <ebb9@byu.net>
40435
40436         c-stack: test that stack overflow can be caught
40437         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40438         that platform allows handling stack overflow; at least OS/2 EMX
40439         has sigaltstack, but crashes before transferring control to
40440         handler on stack overflow.
40441         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40442         check for HAVE_STACK_OVERFLOW_HANDLING.
40443         Reported by Elbert Pol.
40444
40445 2008-08-25  Bruno Haible  <bruno@clisp.org>
40446
40447         * doc/posix-functions/strftime.texi: Fix description of strftime
40448         module.
40449
40450 2008-08-24  Bruno Haible  <bruno@clisp.org>
40451
40452         * tests/uniwidth/test-uc_width2.c: New file.
40453         * tests/uniwidth/test-uc_width2.sh: New file.
40454         * modules/uniwidth/width-tests (Files): Add the new files.
40455         (TESTS): Add uniwidth/test-uc_width2.sh.
40456         (TESTS_ENVIRONMENT): New variable.
40457         (check_PROGRAMS): Add test-uc_width2.
40458         (test_uc_width2_SOURCES): New variable.
40459
40460         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40461         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40462         not 0x00AB.
40463         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40464
40465 2008-08-22  Eric Blake  <ebb9@byu.net>
40466
40467         test-lock, test-tls: mention why a test is skipped
40468         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40469         skipped.
40470         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40471
40472         count-one-bits: relax license
40473         * modules/count-one-bits (License): Relicense to LGPLv2+.
40474         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40475
40476 2008-08-22  Andreas Schwab  <schwab@suse.de>
40477
40478         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40479         Remove spurious space in assignment.
40480
40481 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40482
40483         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40484         Paul Eggert <eggert@CS.UCLA.EDU>.
40485
40486 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40487
40488         * modules/gettext: Add m4/threadlib.m4.
40489
40490 2008-08-19  Eric Blake  <ebb9@byu.net>
40491
40492         test-c-stack: fix compilation failure on FreeBSD 5.0
40493         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40494         headers before <sys/resource.h>.
40495         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40496         the bug.
40497         Reported by Nelson H. F. Beebe.
40498
40499         strverscmp: migrate from "strverscmp.h" to <string.h>
40500         * modules/string (Makefile.am): Add new hooks.
40501         * modules/strverscmp (Files): Remove strverscmp.h.
40502         (Depends-on): Add string.
40503         (configure.ac): Add indicator.
40504         (Include): Mention new header.
40505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40506         defaults.
40507         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40508         results.
40509         * lib/strverscmp.h: Delete.
40510         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40511         * tests/test-strverscmp.c (includes): Adjust client.
40512         * lib/check-version.c (includes): Likewise.
40513         * NEWS: Document the change.
40514
40515         strverscmp: add unit test
40516         * modules/strverscmp-tests: New file.
40517         * tests/test-strverscmp.c: Likewise.
40518
40519 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40520
40521         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40522         regarding Windows crypto stuff, from Mono.
40523
40524 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40525
40526         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40527         if present, for intel RND.  Return error on failures.
40528
40529 2008-08-18  Ben Pfaff  <blp@gnu.org>
40530
40531         gitlog-to-changelog: give better diagnostic for failed pipe-open
40532         * build-aux/gitlog-to-changelog: Improve error message: suggest
40533         that the version of Git may be too old.
40534
40535 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40536
40537         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40538         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40539
40540 2008-08-18  Bruno Haible  <bruno@clisp.org>
40541
40542         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40543         pthread_in_use().
40544
40545 2008-08-18  Bruno Haible  <bruno@clisp.org>
40546
40547         * lib/glthread/threadlib.c: Include <pthread.h>.
40548
40549 2008-08-18  Bruno Haible  <bruno@clisp.org>
40550
40551         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40552         glthread_recursive_lock_* macros.
40553         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40554         Fix syntax error.
40555
40556 2008-08-18  Bruno Haible  <bruno@clisp.org>
40557
40558         * lib/glthread/thread.c: Avoid forcing a context switch right after
40559         thread creation.
40560
40561 2008-08-17  Bruno Haible  <bruno@clisp.org>
40562
40563         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40564         * lib/glthread/thread.h: Provide Win32 specific implementation.
40565         * modules/thread (Files): Add lib/glthread/thread.c.
40566         (Depends-on): Add lock.
40567         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40568
40569 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40570
40571         New module 'yield'.
40572         * modules/yield: New file.
40573         * lib/glthread/yield.h: New file.
40574         * m4/yield.m4: New file.
40575         * MODULES.html.sh (Multithreading): Add yield.
40576
40577 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40578
40579         New module 'thread'.
40580         * modules/thread: New file.
40581         * lib/glthread/thread.h: New file.
40582         * m4/thread.m4: New file.
40583         * MODULES.html.sh (Multithreading): Add thread.
40584
40585 2008-08-17  Bruno Haible  <bruno@clisp.org>
40586
40587         * lib/glthread/lock.h: Include <stdlib.h> always.
40588         * lib/glthread/tls.h: Likewise.
40589         * lib/glthread/cond.h: Likewise.
40590
40591 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40592
40593         New module 'cond'.
40594         * modules/cond: New file.
40595         * lib/glthread/cond.h: New file.
40596         * lib/glthread/cond.c: New file.
40597         * m4/cond.m4: New file.
40598         * MODULES.html.sh (Multithreading): Add cond.
40599
40600 2008-08-16  Eric Blake  <ebb9@byu.net>
40601
40602         c-stack: fix regression on Irix 5.3 from 2008-06-21
40603         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40604         sa_sigaction...
40605         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40606         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40607         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40608         * modules/signal (Makefile.am): Use the value.
40609         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40610         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40611         * doc/posix-headers/signal.texi (signal.h): Document this
40612         portability issue.
40613         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40614         Reported by Tom G. Christensen.
40615
40616 2008-08-17  Bruno Haible  <bruno@clisp.org>
40617
40618         New module 'threadlib'.
40619         * modules/threadlib: New file.
40620         * lib/glthread/threadlib.c: New file, extracted from
40621         lib/glthread/lock.c.
40622         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40623         functions.
40624         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40625         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40626         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40627         macros.
40628         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40629         (gl_DISABLE_THREADS): Remove macro.
40630         * modules/lock (Files): Remove build-aux/config.rpath.
40631         (Depends-on): Remove havelib. Add threadlib.
40632         (configure.ac-early): Remove section.
40633         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40634         * modules/tls (Depends-on): Remove lock. Add threadlib.
40635         (Link): New section, copied from threadlib.
40636         * MODULES.html.sh (Multithreading): Add threadlib.
40637
40638 2008-08-14  Bruno Haible  <bruno@clisp.org>
40639
40640         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40641         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40642         glthread_rwlock_unlock, glthread_rwlock_destroy,
40643         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40644         glthread_recursive_lock_destroy): Define as macros always.
40645         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40646         glthread_lock_lock.
40647         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40648         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40649         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40650         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40651         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40652         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40653         (glthread_recursive_lock_lock_func): Renamed from
40654         glthread_recursive_lock_lock.
40655         (glthread_recursive_lock_unlock_func): Renamed from
40656         glthread_recursive_lock_unlock.
40657         (glthread_recursive_lock_destroy_func): Renamed from
40658         glthread_recursive_lock_destroy.
40659
40660 2008-08-14  Bruno Haible  <bruno@clisp.org>
40661
40662         * lib/glthread/lock.h: Renamed from lib/lock.h.
40663         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40664         * lib/glthread/tls.h: Renamed from lib/tls.h.
40665         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40666         * lib/fstrcmp.c: Update includes.
40667         * lib/strsignal.c: Update includes.
40668         * modules/lock (Files, Makefile.am): Update.
40669         (Include): Change to "glthread/lock.h".
40670         * modules/tls (Files, Makefile.am): Update.
40671         (Include): Change to "glthread/tls.h".
40672         * tests/test-lock.c: Update includes.
40673         * tests/test-tls.c: Update includes.
40674         * NEWS: Mention the renamed header files.
40675
40676 2008-08-11  Jim Meyering  <meyering@redhat.com>
40677
40678         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40679
40680 2008-08-11  Eric Blake  <ebb9@byu.net>
40681
40682         test-c-stack: avoid C99-ism
40683         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40684         before statement.
40685         Reported by Alain Guibert.
40686
40687 2008-08-10  Jim Meyering  <meyering@redhat.com>
40688
40689         ensure that return value of uinttostr et al are not ignored
40690         * lib/inttostr.h (__GNUC_PREREQ): Define.
40691         (__attribute_warn_unused_result__): Define.
40692         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40693
40694 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40695
40696         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40697         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40698
40699 2008-08-07  Jim Meyering  <meyering@redhat.com>
40700
40701         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40702
40703         * modules/mkstemp (License): Relicense under LGPLv2+.
40704         * modules/tempname (License): Likewise.
40705
40706 2008-08-06  Bruno Haible  <bruno@clisp.org>
40707
40708         * lib/poll.c (poll): Further micro-optimization.
40709
40710 2008-08-06  Jim Meyering  <meyering@redhat.com>
40711
40712         inet_pton.c: use locale-independent tolower
40713         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40714         (inet_pton6): Use c_tolower rather than tolower.
40715         * modules/inet_pton (Depends-on): Add c-ctype.
40716
40717 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40718
40719         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40720         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40721
40722 2008-08-06  Jim Meyering  <meyering@redhat.com>
40723
40724         * modules/inet_pton (License): Relicense under LGPLv2+.
40725
40726 2008-08-03  Bruno Haible  <bruno@clisp.org>
40727
40728         Additional non-aborting API for lock and tls.
40729         * lib/lock.h: Include <errno.h>.
40730         (glthread_lock_init): New macro/function.
40731         (gl_lock_init): Define as wrapper around glthread_lock_init.
40732         (glthread_lock_lock): New macro/function.
40733         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40734         (glthread_lock_unlock): New macro/function.
40735         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40736         (glthread_lock_destroy): New macro/function.
40737         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40738         (glthread_rwlock_init): New macro/function.
40739         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40740         (glthread_rwlock_rdlock): New macro/function.
40741         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40742         (glthread_rwlock_wrlock): New macro/function.
40743         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40744         (glthread_rwlock_unlock): New macro/function.
40745         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40746         (glthread_rwlock_destroy): New macro/function.
40747         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40748         (glthread_recursive_lock_init): New macro/function.
40749         (gl_recursive_lock_init): Define as wrapper around
40750         glthread_recursive_lock_init.
40751         (glthread_recursive_lock_lock): New macro/function.
40752         (gl_recursive_lock_lock): Define as wrapper around
40753         glthread_recursive_lock_lock.
40754         (glthread_recursive_lock_unlock): New macro/function.
40755         (gl_recursive_lock_unlock): Define as wrapper around
40756         glthread_recursive_lock_unlock.
40757         (glthread_recursive_lock_destroy): New macro/function.
40758         (gl_recursive_lock_destroy): Define as wrapper around
40759         glthread_recursive_lock_destroy.
40760         (glthread_once): New macro/function.
40761         (gl_once): Define as wrapper around glthread_once.
40762         Update function declarations.
40763         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40764         glthread_rwlock_init. Return error code.
40765         (glthread_rwlock_rdlock_multithreaded): Renamed from
40766         glthread_rwlock_rdlock. Return error code.
40767         (glthread_rwlock_wrlock_multithreaded): Renamed from
40768         glthread_rwlock_wrlock. Return error code.
40769         (glthread_rwlock_unlock_multithreaded): Renamed from
40770         glthread_rwlock_unlock. Return error code.
40771         (glthread_rwlock_destroy_multithreaded): Renamed from
40772         glthread_rwlock_destroy. Return error code.
40773         (glthread_recursive_lock_init_multithreaded): Renamed from
40774         glthread_recursive_lock_init. Return error code.
40775         (glthread_recursive_lock_lock_multithreaded): Renamed from
40776         glthread_recursive_lock_lock. Return error code.
40777         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40778         glthread_recursive_lock_unlock. Return error code.
40779         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40780         glthread_recursive_lock_destroy. Return error code.
40781         (glthread_once_call): Make static.
40782         (glthread_once_multithreaded): Renamed from glthread_once.
40783         * lib/tls.h: Include <errno.h>.
40784         (glthread_tls_key_init): New macro/function.
40785         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40786         (glthread_tls_set): New macro/function.
40787         (gl_tls_set): Define as wrapper around glthread_tls_set.
40788         (glthread_tls_key_destroy): New macro/function.
40789         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40790         Update function declarations.
40791         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40792         glthread_tls_get.
40793         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40794
40795 2008-08-04  Eric Blake  <ebb9@byu.net>
40796
40797         gnumakefile: use space, not TAB, outside of targets
40798         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40799
40800 2008-08-02  Jim Meyering  <meyering@redhat.com>
40801
40802         getdate.y: avoid locale-dependent date parsing failure
40803         In Turkish locales, getdate would fail to recognize keywords
40804         containing a lowercase "i".  The solution is not to rely on
40805         locale-sensitive case-conversion.
40806         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40807         (lookup_word): Use c_toupper in place of toupper.
40808         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40809         Reported by Vefa Bicakci <bicave@superonline.com> in
40810         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40811         * modules/getdate (Depends-on): Add c-ctype.
40812
40813 2008-08-02  Bruno Haible  <bruno@clisp.org>
40814
40815         * gnulib-tool (func_import): When updating or creating a .gitignore
40816         file, prepend each added line with a slash, and ignore leading slashes
40817         from the existing lines.
40818         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40819
40820 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40821
40822         Portability fix for GNU make 3.79.1.
40823         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40824         versions do not understand.
40825
40826 2008-08-01  Bruno Haible  <bruno@clisp.org>
40827
40828         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40829         * tests/test-isnanf.h (zero): New variable.
40830         (main): Avoid literal -0.0f.
40831         * tests/test-isnand.h (zero): New variable.
40832         (main): Avoid literal -0.0.
40833         * tests/test-isnanl.h (zero): New variable.
40834         (main): Avoid literal -0.0L.
40835         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40836         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40837         -0.0, -0.0L.
40838         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40839         (test_signbitd): Avoid literal -0.0.
40840         (test_signbitl): Avoid literal -0.0L.
40841         * tests/test-ceilf1.c (zero): New variable.
40842         (main): Avoid literal -0.0f.
40843         * tests/test-ceill.c (zero): New variable.
40844         (main): Avoid literal -0.0L.
40845         * tests/test-floorf1.c (zero): New variable.
40846         (main): Avoid literal -0.0f.
40847         * tests/test-floorl.c (zero): New variable.
40848         (main): Avoid literal -0.0L.
40849         * tests/test-roundf1.c (zero): New variable.
40850         (main): Avoid literal -0.0f.
40851         * tests/test-round1.c (zero): New variable.
40852         (main): Avoid literal -0.0.
40853         * tests/test-roundl.c (zero): New variable.
40854         (main): Avoid literal -0.0L.
40855         * tests/test-truncf1.c (zero): New variable.
40856         (main): Avoid literal -0.0f.
40857         * tests/test-trunc1.c (zero): New variable.
40858         (main): Avoid literal -0.0.
40859         * tests/test-truncl.c (zero): New variable.
40860         (main): Avoid literal -0.0L.
40861         * tests/test-frexp.c (zero): New variable.
40862         (main): Avoid literal -0.0.
40863         * tests/test-frexpl.c (zero): New variable.
40864         (main): Avoid literal -0.0L.
40865         * tests/test-ldexpl.c (zero): New variable.
40866         (main): Avoid literal -0.0L.
40867         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40868         (zerod, zerol): New variables.
40869         (test_function): Avoid literals -0.0, -0.0L.
40870         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40871         (zerod, zerol): New variables.
40872         (test_function): Avoid literals -0.0, -0.0L.
40873         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40874         (zerod, zerol): New variables.
40875         (test_function): Avoid literals -0.0, -0.0L.
40876         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40877         (zerod, zerol): New variables.
40878         (test_function): Avoid literals -0.0, -0.0L.
40879         * tests/test-strtod.c (zero): New variable.
40880         (main): Avoid literal -0.0.
40881         Reported by Jonathan C. Patschke <jp@centtech.com>.
40882
40883 2008-07-31  Jim Meyering  <meyering@redhat.com>
40884
40885         sha256.h: correct definition of SHA224_DIGEST_SIZE
40886         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40887         Reported by Paulie Pena IV <paulie4@gmail.com>.
40888         Define as 224 / 8, rather than as a literal.
40889         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40890         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40891         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40892
40893 2008-07-31  Bruno Haible  <bruno@clisp.org>
40894
40895         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40896         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40897         Reported by Jonathan Patschke <jp@centtech.com>.
40898
40899 2008-07-31  Bruno Haible  <bruno@clisp.org>
40900
40901         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40902         Reported by Paolo Bonzini <bonzini@gnu.org>.
40903
40904 2008-07-30  Eric Blake  <ebb9@byu.net>
40905
40906         test-strtod: allow compilation without -lm
40907         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40908         Reported by Dennis Clarke <blastwave@gmail.com>.
40909
40910 2008-07-28  Jim Meyering  <meyering@redhat.com>
40911
40912         bootstrap: work also when there are no .po files in po/
40913         * build-aux/bootstrap (update_po_files): Complete the change
40914         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40915
40916 2008-07-27  Jim Meyering  <meyering@redhat.com>
40917
40918         * users.txt: Add zile.
40919
40920 2008-07-26  Ben Pfaff  <blp@gnu.org>
40921
40922         Add missing dependencies on new m4/exponent[fdl].m4 files.
40923         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40924         * modules/isnand-nolibm: Add m4/exponentd.m4.
40925         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40926         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40927         m4/isnan[fdl].m4, because the macros actually used moved.
40928         Reported by Jim Meyering.
40929
40930 2008-07-14  Ben Pfaff  <blp@gnu.org>
40931
40932         Add isinf module.
40933         * lib/isinf.c: New file.
40934         * lib/math.in.h: Define isinf macro if we have decided to replace
40935         it.
40936         * m4/isinf.m4: New file.
40937         * m4/math_h.m4: Initialize and substitute variables for isinf
40938         module.
40939         * modules/isinf: New file.
40940         * modules/isinf-tests: New file.
40941         * modules/math: Add substitutions for new module.
40942         * tests/test-isinf.c: New file.
40943         * doc/posix-functions/isinf.texi: Mention new module.
40944         * MODULES.html.sh: Mention new module.
40945
40946 2008-07-14  Ben Pfaff  <blp@gnu.org>
40947
40948         Factor out some macros for use by additional modules.
40949         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40950         exponentf.m4.
40951         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40952         exponentd.m4.
40953         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40954         file exponentl.m4.
40955         * m4/exponentf.m4: New file.
40956         * m4/exponentd.m4: New file.
40957         * m4/exponentl.m4: New file.
40958         * modules/isnanf: Use new file m4/exponentf.m4.
40959         * modules/isnand: Use new file m4/exponentd.m4.
40960         * modules/isnanl: Use new file m4/exponentl.m4.
40961
40962 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40963
40964         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40965         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40966         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40967         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40968
40969         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40970         readlink on platforms without PATH_MAX.
40971
40972 2008-07-21  Eric Blake  <ebb9@byu.net>
40973
40974         Warn, not fail, on stale version.
40975         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40976
40977         Don't allow installation with stale devel version number.
40978         * top/GNUmakefile (_is-install-target): New macro.
40979         (_curr-ver): Forbid installation with stale version number.
40980
40981 2008-07-20  Bruno Haible  <bruno@clisp.org>
40982
40983         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40984         TESTS_ENVIRONMENT.
40985         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40986
40987 2008-07-20  Bruno Haible  <bruno@clisp.org>
40988
40989         * lib/c-stack.h (c_stack_action): Add documentation.
40990         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40991
40992 2008-07-20  Bruno Haible  <bruno@clisp.org>
40993
40994         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40995         * modules/readlink (License): Likewise.
40996
40997 2008-07-17  Eric Blake  <ebb9@byu.net>
40998
40999         * modules/c-stack (Link): Fix typo.
41000
41001         Make c-stack use libsigsegv, when available.
41002         * modules/c-stack (Depends-on): Add libsigsegv.
41003         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
41004         needed.
41005         * lib/c-stack.c (SIGSTKSZ): Define fallback.
41006         (segv_handler, overflow_handler, c_stack_action)
41007         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
41008         implementation when libsigsegv is available, but only when using
41009         the library is necessary.
41010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
41011         comment, explaining why XSI check fails on Linux.
41012         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
41013         * tests/test-c-stack2.sh: Tweak skip message.
41014         * NEWS: Document new link-time requirements.
41015
41016 2008-07-16  Eric Blake  <ebb9@byu.net>
41017
41018         c-stack: Expose false positives when not using libsigsegv.
41019         * modules/c-stack-tests (Files): Expand test.
41020         * tests/test-c-stack.c (main): Add means to conditionally trigger
41021         non-overflow SIGSEGV.
41022         * tests/test-c-stack2.sh: New file.
41023
41024 2008-07-14  Bruno Haible  <bruno@clisp.org>
41025
41026         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
41027         Reported by Eric Blake.
41028
41029 2008-07-14  Sam Steingold  <sds@gnu.org>
41030             Bruno Haible  <bruno@clisp.org>
41031
41032         New module libsigsegv.
41033         * modules/libsigsegv: New file.
41034         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
41035         modifications.
41036         * MODULES.html.sh (Signal handling): New section.
41037
41038 2008-07-14  Bruno Haible  <bruno@clisp.org>
41039
41040         * modules/unictype/ctype-* (Description): Add the word "function".
41041         Improves the resulting doc in MODULES.html.
41042
41043 2008-07-12  Ben Pfaff  <blp@gnu.org>
41044
41045         Add longlong module.
41046         * modules/longlong: New file.
41047
41048 2008-07-12  Bruno Haible  <bruno@clisp.org>
41049
41050         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
41051         to empty.
41052
41053 2008-07-10  Ben Pfaff  <blp@gnu.org>
41054
41055         Add isnan module.
41056         * doc/posix-functions/isnan.texi: Mention new module.
41057         * lib/math.in.h: Define isnan macro if we have decided to replace
41058         it.
41059         * m4/isnan.m4: New file.
41060         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
41061         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
41062         also.
41063         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
41064         redundancy.
41065         * m4/math_h.m4: Initialize and substitute variables for isnan
41066         module.
41067         * modules/isnan: New file.
41068         * modules/isnan-tests: New file.
41069         * modules/math: Add substitutions for new module.
41070         * tests/test-isnan.c: New file.
41071         * MODULES.html.sh: Mention new module.
41072
41073 2008-07-10  Ben Pfaff  <blp@gnu.org>
41074
41075         Add isnanf module.
41076         * lib/isnanf.m4: New file.
41077         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
41078         (gl_HAVE_ISNANF_IN_LIBM): New macro.
41079         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
41080         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
41081         * modules/isnanf: New file.
41082         * modules/isnanf-tests: New file.
41083         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
41084         files.
41085         * tests/test-isnanf-nolibm.c: factored most of its contents into
41086         new file tests/test-isnanf.h.
41087         * tests/test-isnanf.h: New file.
41088         * tests/test-isnanf.c: New file.
41089         * MODULES.html.sh: Mention new module.
41090         * doc/glibc-functions/isnanf.texi: Mention new module.
41091
41092 2008-07-10  Ben Pfaff  <blp@gnu.org>
41093
41094         Add isnand module.
41095         * lib/isnand.h: New file.
41096         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
41097         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
41098         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
41099         functionality also.
41100         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
41101         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
41102         (gl_HAVE_ISNAND_IN_LIBM): New macro.
41103         * modules/isnand: New file.
41104         * modules/isnand-tests: New file.
41105         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
41106         files.
41107         * tests/test-isnand-nolibm.c: factored most of its contents into
41108         new file tests/test-isnand.h.
41109         * tests/test-isnand.h: New file.
41110         * tests/test-isnand.c: New file.
41111         * MODULES.html.sh: Mention new module.
41112
41113 2008-07-10  Ben Pfaff  <blp@gnu.org>
41114
41115         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
41116         * lib/isnand.h: Rename lib/isnand-nolibm.h.
41117         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
41118         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
41119         * modules/isnanf-nolibm: Update references to renamed files.
41120         * modules/isnand-nolibm: Likewise.
41121         * modules/isnanf-nolibm-tests: Likewise.
41122         * modules/isnand-nolibm-tests: Likewise.
41123         * lib/frexp.c: Likewise.
41124         * lib/isfinite.c: Likewise.
41125         * lib/signbitd.c: Likewise.
41126         * lib/signbitf.c: Likewise.
41127         * lib/vasnprintf.c: Likewise.
41128         * tests/test-ceilf1.c: Likewise.
41129         * tests/test-ceilf2.c: Likewise.
41130         * tests/test-floorf1.c: Likewise.
41131         * tests/test-floorf2.c: Likewise.
41132         * tests/test-frexp.c: Likewise.
41133         * tests/test-round1.c: Likewise.
41134         * tests/test-round2.c: Likewise.
41135         * tests/test-roundf1.c: Likewise.
41136         * tests/test-strtod.c: Likewise.
41137         * tests/test-trunc1.c: Likewise.
41138         * tests/test-trunc2.c: Likewise.
41139         * tests/test-truncf1.c: Likewise.
41140         * tests/test-truncf2.c: Likewise.
41141         * NEWS: Mention the renamed header files.
41142
41143 2008-07-11  Jim Meyering  <meyering@redhat.com>
41144
41145         vc-list-files: make the last-resort awk code more portable
41146         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
41147         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
41148         does not support it.
41149
41150 2008-07-10  Eric Blake  <ebb9@byu.net>
41151
41152         Work with tar's bootstrap.
41153         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
41154         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
41155         an m4 comment.
41156
41157 2008-07-09  Jim Meyering  <meyering@redhat.com>
41158
41159         posix-shell.m4: fix typo that made this test malfunction
41160         * m4/posix-shell.m4: Remove capitalization in variable name.
41161
41162 2008-07-08  Bruno Haible  <bruno@clisp.org>
41163
41164         * m4/onceonly.m4: Update comments.
41165         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41166
41167 2008-07-04  Jim Meyering  <meyering@redhat.com>
41168
41169         * users.txt: Add vc-dwim.
41170         (bison, coreutils): Use the gitweb URL.
41171
41172 2008-07-03  Jim Meyering  <meyering@redhat.com>
41173
41174         * users.txt: Add libffcall.  From Sam Steingold.
41175
41176 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
41177
41178         getdate.y: do not ignore TZ with relative day, month or year offset
41179         * lib/getdate.y (get_date): Move the tz-handling block to follow the
41180         relative-date-handling, since otherwise, the latter would clobber the
41181         sole output (an updated Start value) of the tz-handling block.
41182         * tests/test-getdate.c: Tests for the fix
41183
41184 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41185
41186         Recognize 'foo_LIBRARIES += libgnu.a'.
41187         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
41188         makefile snippet has already specified an installation location,
41189         also using '+='.
41190
41191 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
41192
41193         getdate.y: factor out common actions
41194         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
41195         Use them in place of open-coded actions.
41196
41197 2008-07-01  Simon Josefsson  <simon@josefsson.org>
41198
41199         Add self-test for getdate module.
41200         * modules/getdate-tests: New file.
41201         * tests/test-getdate.c: New file.
41202
41203 2008-06-29  Bruno Haible  <bruno@clisp.org>
41204
41205         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
41206         .gitignore.
41207         Reported by Sylvain Beucler <beuc@beuc.net>.
41208
41209 2008-06-29  Bruno Haible  <bruno@clisp.org>
41210
41211         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
41212         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
41213
41214 2008-06-29  Bruno Haible  <bruno@clisp.org>
41215
41216         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
41217         EXTRA_DIST.
41218         Reported by Sylvain Beucler <beuc@beuc.net>.
41219
41220 2008-06-26  Jim Meyering  <meyering@redhat.com>
41221
41222         make several modules depend on the "open" module
41223         This provides slightly increased consistency when opening-for-write
41224         the name of a non-directory spelled with a trailing slash.
41225         * modules/chdir-safer: Likewise.
41226         * modules/chown: Likewise.
41227         * modules/clean-temp: Likewise.
41228         * modules/copy-file: Likewise.
41229         * modules/fchdir: Likewise.
41230         * modules/fcntl-safer: Likewise.
41231         * modules/pipe: Likewise.
41232         * modules/utime: Likewise.
41233         Prompted by Eric Blake and Bruno Haible.
41234
41235 2008-06-24  Andreas Schwab  <schwab@suse.de>
41236
41237         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
41238         literals can be used as initializers for global variables.
41239
41240 2008-06-23  Eric Blake  <ebb9@byu.net>
41241
41242         Make gnulib-cache.m4 easier to diff.
41243         * gnulib-tool (func_import): Allow newlines when reading cached
41244         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41245
41246 2008-06-23  Bruno Haible  <bruno@clisp.org>
41247
41248         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41249         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41250         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41251         m4/signalblocking.m4.
41252         (gl_PREREQ_SIGACTION): Don't invoke it.
41253         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41254         gl_PREREQ_SIG_HANDLER_H.
41255         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41256         Don't check for sigaction here.
41257
41258 2008-06-23  Bruno Haible  <bruno@clisp.org>
41259
41260         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41261         (install_handlers): Don't set the SA_RESETHAND flag.
41262
41263 2008-06-23  Bruno Haible  <bruno@clisp.org>
41264
41265         * m4/sigaction.m4: Comment fixes.
41266         * lib/signal.in.h: Likewise.
41267
41268 2008-06-23  Eric Blake  <ebb9@byu.net>
41269
41270         Fix typo.
41271         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41272
41273         Avoid SA_ namespace.
41274         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41275         Reported by Ralf Wildenhues.
41276
41277         Avoid test failure due to SA_RESTORER.
41278         * tests/test-sigaction.c (SA_MASK): New macro.
41279         (main): Avoid failing due to extension flags being set.
41280         Reported by Jim Meyering.
41281
41282         Revert use of sig-handler.h in sigprocmask.c.
41283         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41284         it requires the existence of struct sigaction.
41285         * lib/sigprocmask.c (handler_t): Restore typedef.
41286         (rpl_signal, old_handlers): Use local type.
41287
41288 2008-06-22  Bruno Haible  <bruno@clisp.org>
41289
41290         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41291         conditionally.
41292         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41293
41294 2008-06-22  Bruno Haible  <bruno@clisp.org>
41295
41296         * doc/posix-functions/siginterrupt.texi: Move note.
41297
41298         * lib/signal.in.h (SA_RESTART): New macro.
41299         * lib/sigaction.c: Update comment.
41300
41301         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41302
41303         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41304         (gl_PREREQ_SIGPROCMASK): Invoke it.
41305         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41306
41307         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41308
41309         * lib/sigprocmask.c: Update a comment.
41310
41311 2008-06-21  Eric Blake  <ebb9@byu.net>
41312
41313         Use sigaction module rather than signal().
41314         * modules/c-stack (Depends-on): Add sigaction.
41315         * modules/fatal-signal (Depends-on): Likewise.
41316         * modules/nanosleep (Depends-on): Likewise.
41317         * modules/sigprocmask (Files): Add sig-handler.h.
41318         * modules/sigaction (Files): Likewise.
41319         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41320         Eggert.
41321         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41322         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41323         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41324         (init_fatal_signals): Likewise.
41325         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41326         (siginterrupt): Delete fallback.
41327         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41328         instead.
41329         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41330         siginterrupt.
41331
41332         New module sigaction, for mingw.
41333         * modules/sigaction: New module...
41334         * modules/sigaction-tests: ...and its test.
41335         * m4/sigaction.m4: New file.
41336         * lib/sigaction.c: Likewise.
41337         * tests/test-sigaction.c: Likewise.
41338         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41339         * modules/signal (Makefile.am): Likewise.
41340         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41341         needed.
41342         * doc/posix-headers/signal.texi (signal.h): Mention provided
41343         types.
41344         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41345         that sigaction is preferable.
41346         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41347         module.
41348         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41349         sigaction.
41350
41351         Improve robustness of sigprocmask by overriding signal.
41352         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41353         is in use.
41354         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41355         (SIGKILL, SIGSTOP): Provide fallbacks.
41356         (rpl_signal): Implement.
41357         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41358         signal can be called inside handlers.
41359
41360         Fix nanosleep module on mingw.
41361         * modules/nanosleep (Depends-on): Add sys_select.
41362         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41363
41364         Fix licensing of sigprocmask.
41365         * modules/raise (License): Relicense as LGPL.
41366
41367 2008-06-21  Bruno Haible  <bruno@clisp.org>
41368
41369         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41370         result if it contains question marks.
41371         Reported by Michael Geng <linux@michaelgeng.de>.
41372
41373 2008-06-19  Bruno Haible  <bruno@clisp.org>
41374
41375         Fix CVS-ism.
41376         * doc/gnulib.texi: Include updated-stamp.texi.
41377         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41378         (updated-stamp.texi): New rule.
41379         (gnulib.info): Depend on it.
41380         * doc/.gitignore: Add updated-stamp.texi.
41381         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41382
41383 2008-06-19  Bruno Haible  <bruno@clisp.org>
41384
41385         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41386         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41387
41388 2008-06-19  Eric Blake  <ebb9@byu.net>
41389
41390         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41391         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41392         Reported by Stepan Kasal.
41393
41394 2008-06-18  Bruno Haible  <bruno@clisp.org>
41395
41396         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41397         Reported by Eric Blake.
41398
41399 2008-06-18  Eric Blake  <ebb9@byu.net>
41400
41401         Work around cygwin 1.5.25 strsignal bug.
41402         * tests/test-strsignal.c: Allow for const char *.
41403         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41404
41405 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41406
41407         * users.txt: Update URL to article and add author/date
41408         information.
41409
41410 2008-06-17  Bruno Haible  <bruno@clisp.org>
41411
41412         New macro gl_DISABLE_THREADS.
41413         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41414         if the user did not pass --enable-threads or --disable-threads option.
41415         (gl_DISABLE_THREADS): New macro.
41416         Reported by Eric Blake <ebb9@byu.net>.
41417
41418 2008-06-17  Bruno Haible  <bruno@clisp.org>
41419
41420         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41421         when the macro ignores it.
41422         Based on a patch by Eric Blake <ebb9@byu.net>.
41423
41424 2008-06-17  Bruno Haible  <bruno@clisp.org>
41425
41426         * modules/tls (License): Change to LGPLv2+.
41427         Reported by Eric Blake.
41428
41429 2008-06-17  Eric Blake  <ebb9@byu.net>
41430
41431         Simplify c-stack prerequisites.
41432         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41433         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41434         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41435         check.
41436         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41437         <sys/resource.h>.
41438
41439         Move c-stack test into testsuite.
41440         * modules/c-stack-tests: New file.
41441         * lib/c-stack.c [DEBUG]: Move test program...
41442         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41443         fail test if sigaltstack is lacking.
41444         * tests/test-c-stack.sh: New driver file.
41445
41446 2008-06-16  Eric Blake  <ebb9@byu.net>
41447
41448         Use raise module consistently.
41449         * modules/fatal-signal (Depends-on): Add raise.
41450         * modules/sigprocmask (Depends-on): Likewise.
41451         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41452         * lib/sigprocmask.c (sigprocmask): Likewise.
41453         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41454         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41455
41456         Fix compliance bug in sigpending.
41457         * lib/sigprocmask.c (sigpending): Return pending array via
41458         parameter, not return value.
41459
41460 2008-06-14  Eric Blake  <ebb9@byu.net>
41461
41462         Improve obstack-printf test code.
41463         * tests/test-obstack-printf.c (test_function): Fix comment, and
41464         simplify usage of obstack_* in macros.  Add a test for coverage.
41465         Reported by Bruno Haible.
41466
41467 2008-06-14  Bruno Haible  <bruno@clisp.org>
41468
41469         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41470         array size as a constant, not as a const variable.
41471         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41472         AC_USE_SYSTEM_EXTENSIONS.
41473         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41474         Test whether the obstack_printf function actually exists.
41475         * modules/obstack-printf (Depends-on): Add extensions.
41476         (Include): Remove obstack.h.
41477         * modules/obstack-printf-posix (Depends-on): Add extensions.
41478         (Include): Remove obstack.h.
41479
41480 2008-06-13  Eric Blake  <ebb9@byu.net>
41481
41482         Add obstack-printf and obstack-printf-posix modules.
41483         * modules/obstack-printf: New file.
41484         * modules/obstack-printf-posix: Likewise.
41485         * MODULES.html.sh (Misc): Mention them.
41486         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41487         Likewise.
41488         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41489         Likewise.
41490         * modules/stdio (Makefile.am): Accomodate new modules.
41491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41492         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41493         Declare.
41494         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41495         functions.
41496         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41497         (gl_REPLACE_OBSTACK_PRINTF): New macros
41498         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41499         * tests/test-obstack-printf.c: New file.
41500         * modules/obstack-printf-tests: Likewise.
41501         * modules/obstack-printf-posix-tests: Likewise.
41502
41503 2008-06-11  Bruno Haible  <bruno@clisp.org>
41504
41505         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41506         * lib/open.c: Include errno.h.
41507         (open): Fail when attempting to write to a file that has a trailing
41508         slash.
41509         * tests/test-open.c (main): Test against trailing slash bug.
41510         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41511
41512 2008-06-10  Bruno Haible  <bruno@clisp.org>
41513
41514         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41515         for $? to work inside the trap command, with various /bin/sh-s.
41516         * tests/test-vc-list-files-cvs.sh: Likewise.
41517
41518 2008-06-10  Bruno Haible  <bruno@clisp.org>
41519
41520         * lib/acl-internal.h: Don't include gettext.h here.
41521         * lib/set-mode-acl.c: Include gettext.h here.
41522         * lib/copy-acl.c: Likewise.
41523
41524 2008-06-10  Bruno Haible  <bruno@clisp.org>
41525
41526         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41527         * lib/wait-process.c (wait_subprocess): Likewise.
41528         * lib/execute.h (execute): Add termsigp argument.
41529         * lib/execute.c (execute): Likewise.
41530         * lib/csharpcomp.c (compile_csharp_using_pnet,
41531         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41532         * lib/csharpexec.c (execute_csharp_using_pnet,
41533         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41534         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41535         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41536         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41537         is_jikes_present): Update.
41538         * lib/javaexec.c (execute_java_class): Update.
41539         * lib/javaversion.c (execute_and_read_line): Update.
41540         * NEWS: Document the changes.
41541         Reported by Eric Blake.
41542
41543 2008-06-10  Eric Blake  <ebb9@byu.net>
41544
41545         Add missing include.
41546         * tests/test-strstr.c (includes): Add <signal.h>.
41547         * tests/test-strcasestr.c (includes): Likewise.
41548         * tests/test-memmem.c (includes): Likewise.
41549
41550 2008-06-10  Bruno Haible  <bruno@clisp.org>
41551
41552         * lib/wait-process.c (wait_subprocess): Add an assertion.
41553
41554 2008-06-10  Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41557
41558 2008-06-10  Bruno Haible  <bruno@clisp.org>
41559
41560         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41561         using alarm().
41562         * tests/test-strcasestr.c (main): Likewise.
41563         * tests/test-strstr.c (main): Likewise.
41564
41565 2008-06-09  Bruno Haible  <bruno@clisp.org>
41566
41567         Work around the Solaris 10 ACE ACLs ABI change.
41568         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41569         declare if ACL_NO_TRIVIAL is present.
41570         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41571         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41572         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41573         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41574         define if ACL_NO_TRIVIAL is present.
41575         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41576         and use the current ABI.
41577         (file_has_acl): Use same #if condition as elsewhere.
41578         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41579         in use, and use the current ABI.
41580         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41581         Reported by Jim Meyering.
41582
41583 2008-06-09  Eric Blake  <ebb9@byu.net>
41584
41585         Work around environments that (stupidly) ignore SIGALRM.
41586         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41587         before using alarm().
41588         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41589         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41590         Reported by Ian Beckwith <ianb@erislabs.net>.
41591
41592         Produce autobuild blurb earlier in log.
41593         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41594
41595 2008-06-09  Jim Meyering  <meyering@redhat.com>
41596         and OndÅ™ej Vašík  <ovasik@redhat.com>
41597
41598         utimens.c: correct kernel bug work-around
41599         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41600         failure, not success, and the kernel bug we're trying to work
41601         around affects not just the utimensat call, but also the fallback
41602         futimens call.
41603         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41604         not success.
41605         [HAVE_FUTIMENS]: Use the same work-around, here.
41606
41607 2008-06-09  Jim Meyering  <meyering@redhat.com>
41608
41609         add more guards around definition of ACE_-related code
41610         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41611         ALLOW and ACE_OWNER are also defined.
41612
41613 2008-06-08  Bruno Haible  <bruno@clisp.org>
41614
41615         * lib/acl-internal.h: Add me as co-author.
41616         * lib/file-has-acl.c: Likewise.
41617         * lib/set-mode-acl.c: Likewise.
41618         * lib/copy-acl.c: Likewise.
41619
41620 2008-06-08  Bruno Haible  <bruno@clisp.org>
41621
41622         Add support for AIX ACLs.
41623         * lib/acl-internal.h (acl_nontrivial): New declaration.
41624         * lib/file-has-acl.c (acl_nontrivial): New function.
41625         (file_has_acl): Add implementation using AIX 4 ACL API.
41626         * lib/set-mode-acl.c (qset_acl): Likewise.
41627         * lib/copy-acl.c (qcopy_acl): Likewise.
41628
41629 2008-06-08  Bruno Haible  <bruno@clisp.org>
41630
41631         Add support for HP-UX ACLs.
41632         * lib/acl-internal.h (acl_nontrivial): New declaration.
41633         * lib/file-has-acl.c (acl_nontrivial): New function.
41634         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41635         * lib/set-mode-acl.c (qset_acl): Likewise.
41636         * lib/copy-acl.c (qcopy_acl): Likewise.
41637
41638 2008-06-08  Bruno Haible  <bruno@clisp.org>
41639
41640         Add support for Cygwin ACLs.
41641         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41642         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41643         the chmod_or_fchmod call.
41644         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41645
41646 2008-06-08  Bruno Haible  <bruno@clisp.org>
41647
41648         Fix bug with setuid modes in Solaris 10+ code.
41649         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41650         succeeded, when the mode contains some special bits.
41651
41652 2008-06-08  Bruno Haible  <bruno@clisp.org>
41653
41654         Add support for Solaris 7..10 ACLs.
41655         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41656         declarations.
41657         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41658         functions.
41659         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41660         * lib/set-mode-acl.c (qset_acl): Likewise.
41661         * lib/copy-acl.c (qcopy_acl): Likewise.
41662
41663 2008-06-08  Bruno Haible  <bruno@clisp.org>
41664
41665         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41666         declaration.
41667         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41668         (acl_access_nontrivial): Remove MacOS X case.
41669         (file_has_acl): Use acl_extended_nontrivial.
41670         * lib/copy-acl.c (qcopy_acl): Likewise.
41671
41672 2008-06-08  Bruno Haible  <bruno@clisp.org>
41673
41674         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41675
41676 2008-06-08  Jim Meyering  <meyering@redhat.com>
41677
41678         * modules/acl (Maintainer): Add Bruno Haible.
41679
41680 2008-06-07  Bruno Haible  <bruno@clisp.org>
41681
41682         Improve support for Tru64 ACLs.
41683         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41684         ACL on OSF/1.
41685
41686 2008-06-07  Bruno Haible  <bruno@clisp.org>
41687
41688         Add support for MacOS X ACLs.
41689         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41690         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41691         * lib/set-mode-acl.c (qset_acl): Likewise.
41692         * lib/copy-acl.c (qcopy_acl): Likewise.
41693
41694 2008-06-07  Bruno Haible  <bruno@clisp.org>
41695
41696         Fix memory leak introduced on 2008-05-22.
41697         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41698         use.
41699
41700 2008-06-07  Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41703         to construct an empty ACL.
41704
41705 2008-06-07  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41708         precisely.
41709         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41710
41711 2008-06-07  Bruno Haible  <bruno@clisp.org>
41712
41713         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41714         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41715
41716 2008-06-07  Bruno Haible  <bruno@clisp.org>
41717
41718         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41719         regardless of POSIX.
41720         * doc/posix-functions/_longjmp.texi: Likewise.
41721         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41722         SystemV platform in this case.
41723
41724 2008-06-06  Eric Blake  <ebb9@byu.net>
41725
41726         Document abort() bugs.
41727         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41728
41729         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41730         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41731         sigsetjmp.
41732         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41733         siglongjmp, but only as a macro.
41734         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41735         is obsolete.
41736         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41737
41738         Tweak documentation to cover cygwin argz bugs.
41739         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41740         argz bug fix; no code change needed since no cygwin releases
41741         occurred between the last fix and the bug being tested.
41742         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41743         module and recently fixed cygwin bugs.
41744         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41745         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41746         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41747         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41748         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41749         Likewise.
41750         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41751         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41752         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41753         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41754         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41755         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41756         Likewise.
41757
41758         Avoid gcc warning on cygwin.
41759         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41760         !ACL_NO_TRIVIAL]: Avoid unused variable.
41761
41762 2008-06-05  Eric Blake  <ebb9@byu.net>
41763
41764         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41765         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41766         git-version-gen fails to come up with a version.
41767         Reported by Simon Josefsson.
41768
41769 2008-06-05  Jim Meyering  <meyering@redhat.com>
41770             Paul Eggert  <eggert@cs.ucla.edu>
41771
41772         utimens.c: work around a probable Linux kernel bug
41773         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41774         appears to be a kernel bug that causes utimensat to return 280
41775         instead of 0, indicating success.
41776
41777 2008-06-04  Bruno Haible  <bruno@clisp.org>
41778
41779         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41780         2008-06-01 commit.
41781
41782 2008-06-04  Bruno Haible  <bruno@clisp.org>
41783
41784         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41785         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41786         (file_has_acl): Use it. Save errno afterwards.
41787         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41788
41789 2008-06-03  Bruno Haible  <bruno@clisp.org>
41790
41791         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41792         draft code. Simplify #ifs.
41793         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41794         Put Solaris code after POSIX-draft code. Fix comments regarding
41795         Solaris 10, HP-UX. Mention Cygwin.
41796         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41797
41798 2008-06-03  Eric Blake  <ebb9@byu.net>
41799
41800         Provide fallback for older kernels.
41801         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41802         Provide runtime fallback if kernel lacks support.
41803         Reported by Mike Frysinger.
41804
41805 2008-06-02  Bruno Haible  <bruno@clisp.org>
41806
41807         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41808         it exists.
41809
41810 2008-06-02  Bruno Haible  <bruno@clisp.org>
41811
41812         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41813         * lib/copy-acl.c (qcopy_acl): Update comment.
41814
41815 2008-06-02  Bruno Haible  <bruno@clisp.org>
41816
41817         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41818         like ACL APIs.
41819
41820 2008-06-02  Bruno Haible  <bruno@clisp.org>
41821
41822         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41823         * tests/test-set-mode-acl.sh: Likewise.
41824         * tests/test-copy-acl.sh: Likewise.
41825         * tests/test-copy-file.sh: Likewise.
41826
41827 2008-06-02  Bruno Haible  <bruno@clisp.org>
41828
41829         * tests/test-file-has-acl.sh: Remove unused code.
41830
41831 2008-06-01  Bruno Haible  <bruno@clisp.org>
41832
41833         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41834         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41835         messages.
41836         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41837
41838 2008-06-01  Bruno Haible  <bruno@clisp.org>
41839
41840         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41841         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41842         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41843         APIs.
41844         * modules/acl-tests (configure.ac): Remove tests now contained in
41845         m4/acl.m4.
41846
41847 2008-06-02  Jim Meyering  <meyering@redhat.com>
41848
41849         announce-gen: use a better key-server host name
41850         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41851         it may be more consistently reliable.  Suggested by Werner Koch
41852         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41853
41854 2008-06-01  Bruno Haible  <bruno@clisp.org>
41855
41856         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41857         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41858
41859 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41860
41861         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41862
41863 2008-06-01  Bruno Haible  <bruno@clisp.org>
41864
41865         New ACL tests.
41866         * tests/test-file-has-acl.sh: New file.
41867         * tests/test-file-has-acl.c: New file.
41868         * tests/test-set-mode-acl.sh: New file.
41869         * tests/test-set-mode-acl.c: New file.
41870         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41871         * tests/test-copy-acl.c: New file.
41872         * modules/acl-tests: New file, based on modules/copy-file-tests.
41873         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41874         (Depends-on): Add acl-tests.
41875         (configure.ac): Remove checks.
41876         (Makefile.am): Don't create test-sameacls program here any more.
41877
41878 2008-06-01  Bruno Haible  <bruno@clisp.org>
41879
41880         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41881         * tests/test-sameacls.c: Include progname.h.
41882         (main): Invoke set_program_name. Portability fixes for MacOS X,
41883         Solaris, HP-UX.
41884
41885 2008-06-01  Bruno Haible  <bruno@clisp.org>
41886
41887         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41888         function.
41889         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41890
41891 2008-06-01  Bruno Haible  <bruno@clisp.org>
41892
41893         * modules/rpmatch (Depends-on): Add strdup.
41894
41895 2008-06-01  Bruno Haible  <bruno@clisp.org>
41896
41897         * lib/pipe.c: Include unistd-safer.h.
41898         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41899         * modules/pipe (Depends-on): Add unistd-safer.
41900
41901 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41902
41903         * modules/autobuild (configure.ac): Call AB_INIT.
41904
41905 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41906
41907         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41908         Suggested by Bruno Haible <bruno@clisp.org>.
41909
41910 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41911
41912         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41913         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41914         <bruno@clisp.org>.
41915
41916 2008-05-29  Eric Blake  <ebb9@byu.net>
41917
41918         Prefer new POSIX 200x interfaces over futimesat.
41919         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41920         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41921         when available.
41922         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41923
41924 2008-05-28  Bruno Haible  <bruno@clisp.org>
41925
41926         * modules/stpcpy (License): Change to LGPLv2+.
41927         Requested by David Lutterkort <dlutter@redhat.com>.
41928
41929 2008-05-27  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41932         current mingw.
41933         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41934
41935 2008-05-27  Bruno Haible  <bruno@clisp.org>
41936
41937         * modules/iconv_open (Link): New section, from module 'iconv'.
41938         * modules/striconv (Link): Likewise.
41939         * modules/striconveh (Link): Likewise.
41940         * modules/xstriconv (Link): Likewise.
41941         * modules/unicodeio (Link): Likewise.
41942         * modules/propername (Link): Likewise.
41943         Reported by Jim Meyering.
41944
41945 2008-05-26  Jim Meyering  <meyering@redhat.com>
41946
41947         sha256: do not artificially restrict buffer length to be < 2^32
41948         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41949         uint32_t to size_t.
41950         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41951         to match.
41952
41953         avoid unaligned access errors, e.g., on sparc
41954         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41955         direct access through a possibly-unaligned uint64* pointer.
41956         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41957         direct access through a possibly-unaligned uint32* pointer.
41958         Prompted by this patch from Tom "spot" Callaway:
41959         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41960
41961         sha512.c: fix typo in comment
41962         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41963
41964 2008-05-25  Bruno Haible  <bruno@clisp.org>
41965
41966         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41967         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41968         (Makefile.am): Update lib_SOURCES.
41969
41970 2008-05-25  Bruno Haible  <bruno@clisp.org>
41971
41972         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41973
41974 2008-05-25  Jim Meyering  <meyering@redhat.com>
41975
41976         useless-if-before-free: freed expr may have white-space differences
41977         * build-aux/useless-if-before-free: Recognize cases in which the
41978         freed expression differs from the tested one in embedded white
41979         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41980         $1 was used, so we can't make any regexp shy.  Improved tests now
41981         detect this.
41982
41983         useless-if-before-free: accept white space in the expression.
41984         * build-aux/useless-if-before-free: For now, any white space
41985         in the expression must be identical in the free argument.
41986
41987         useless-if-before-free: efficiency tweak
41988         * build-aux/useless-if-before-free: Make the expression-matching
41989         regexp "shy".
41990         Make the *outer* regexp shy, not the expr-matching one.
41991
41992         update code-in-comment to accept cast of free arg
41993         * build-aux/useless-if-before-free: Update regexp.
41994
41995 2008-05-25  Bruno Haible  <bruno@clisp.org>
41996
41997         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41998         * modules/copy-file-tests (Files, Makefile.am): Update.
41999         * tests/test-copy-file.c (func_test_copy): Update.
42000
42001 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
42002
42003         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
42004
42005 2008-05-23  Bruno Haible  <bruno@clisp.org>
42006
42007         Improve support for ACLs on OSF/1.
42008         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
42009         Remove fallback for unknown flavors of ACLs.
42010
42011 2008-05-22  Bruno Haible  <bruno@clisp.org>
42012
42013         Add support for ACLs on OSF/1.
42014         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
42015         replacements.
42016         (acl_free_text): New macro fallback.
42017         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
42018         acl_free.
42019         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
42020         acl_free_text function. Require AC_C_INLINE.
42021
42022 2008-05-22  Bruno Haible  <bruno@clisp.org>
42023
42024         Make copy_acl work on MacOS X 10.5.
42025         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
42026         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
42027         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
42028         If MODE_INSIDE_ACL, don't assume that every system has the same text
42029         representation for ACLs as FreeBSD.
42030         * lib/copy-acl.c (copy_acl): Add support for platforms with
42031         !MODE_INSIDE_ACL.
42032         * lib/file-has-acl.c (file_has_acl): Likewise.
42033         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
42034         FreeBSD, MacOS X, or IRIX, respectively.
42035
42036 2008-05-22  Bruno Haible  <bruno@clisp.org>
42037
42038         * lib/acl.h: Don't include <sys/acl.h>.
42039         (GETACLCNT): Move fallback to lib/acl-internal.h.
42040         * lib/acl-internal.h: Include <sys/acl.h> here.
42041         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
42042
42043 2008-05-22  Bruno Haible  <bruno@clisp.org>
42044
42045         Split off copy_acl function to separate file.
42046         * lib/copy-acl.c: New file, extracted from lib/acl.c.
42047         * lib/acl.c (copy_acl): Moved function to separate file.
42048         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
42049         * modules/acl (Files): Add lib/copy-acl.c.
42050         (Makefiles.am): Augment lib_SOURCES.
42051
42052 2008-05-22  Bruno Haible  <bruno@clisp.org>
42053
42054         * modules/copy-file-tests: New file.
42055         * tests/test-copy-file.sh: New file.
42056         * tests/test-copy-file.c: New file.
42057         * tests/test-copy-file-sameacls.c: New file.
42058
42059 2008-05-22  Eric Blake  <ebb9@byu.net>
42060
42061         Avoid gcc warning.
42062         * tests/test-memcmp.c (main): Pass NULL indirectly.
42063
42064 2008-05-21  Bruno Haible  <bruno@clisp.org>
42065
42066         Add reference doc about ACLs.
42067         * doc/acl-resources.txt: New file.
42068         * doc/acl-cygwin.txt: New file.
42069
42070 2008-05-21  Bruno Haible  <bruno@clisp.org>
42071
42072         Avoid one more warning from gcc.
42073         * lib/vasnprintf.c (IF_LINT): Update comments.
42074         (VASNPRINTF): Use it also for the 'prefix' array initializer.
42075
42076 2008-05-21  Jim Meyering  <meyering@redhat.com>
42077
42078         avoid a warning from gcc
42079         * lib/vasnprintf.c (IF_LINT): Define.
42080         (scale10_round_decimal_long_double):
42081         Use it to avoid a "may be used uninitialized" warning.
42082         (scale10_round_decimal_double): Likewise.
42083
42084 2008-05-21  Simon Josefsson  <simon@josefsson.org>
42085
42086         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
42087         declared.
42088
42089 2008-05-20  Bruno Haible  <bruno@clisp.org>
42090
42091         * tests/test-memcmp.c (main): Test also the sign of the result. Test
42092         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
42093
42094 2008-05-20  Simon Josefsson  <simon@josefsson.org>
42095
42096         * modules/memcmp-tests: New file.
42097         * tests/test-memcmp.c: New file.
42098
42099 2008-05-19  Bruno Haible  <bruno@clisp.org>
42100
42101         * modules/propername (Notice, configure.ac): Put quoted "..." into
42102         --keyword option.
42103         * lib/propername.h: Update comments accordingly.
42104         Reported by Eric Blake.
42105
42106 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
42107
42108         * modules/getpass-gnu (Depends-on): Add fseeko.
42109
42110 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42111
42112         * modules/base64-tests: New file.
42113
42114 2008-05-19  Bo Borgerson <gigabo@gmail.com>
42115
42116         * lib/base64.c (base64_decode_ctx): If a decode context structure
42117         was passed in use it to ignore newlines.  If a context structure
42118         was _not_ passed in, continue to treat newlines as garbage (this
42119         is the historical behavior).  Formerly base64_decode.
42120         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42121         takes a decode context structure.
42122         * lib/base64.h (base64_decode): Macro for four-argument calls.
42123         (base64_decode_alloc): Likewise.
42124         * lib/base64.c (base64_decode_ctx): If a decode context structure
42125         was passed in use it to ignore newlines.  If a context structure
42126         was _not_ passed in, continue to treat newlines as garbage (this
42127         is the historical behavior).  Formerly base64_decode.
42128         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42129         takes a decode context structure.
42130         * lib/base64.h (base64_decode): Macro for four-argument calls.
42131         (base64_decode_alloc): Likewise.
42132
42133 2008-05-19  Jim Meyering  <meyering@redhat.com>
42134
42135         avoid a warning from gcc
42136         * lib/trim.c (IF_LINT): Define.
42137         (trim2): Use it to avoid a "may be used uninitialized" warning.
42138
42139         Fix doc typo.
42140         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
42141
42142 2008-05-19  Bruno Haible  <bruno@clisp.org>
42143
42144         * doc/glibc-functions/getpass.texi: Document limits of other
42145         implementations.
42146
42147 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42148             Bruno Haible <bruno@clisp.org>
42149
42150         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
42151
42152 2008-05-18  Bruno Haible  <bruno@clisp.org>
42153
42154         * modules/propername: New file, from GNU gettext.
42155         * lib/propername.h: New file, from GNU gettext.
42156         * lib/propername.c: New file, from GNU gettext.
42157         * MODULES.html.sh (Internationalization functions): Add propername.
42158
42159 2008-05-16  Jim Meyering  <meyering@redhat.com>
42160             Bruno Haible  <bruno@clisp.org>
42161
42162         Avoid some warnings from "gcc -Wshadow".
42163         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
42164
42165 2008-05-15  Eric Blake  <ebb9@byu.net>
42166
42167         Extend previous patch to cygwin 1.7.0.
42168         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
42169         fast implementation in cygwin >= 1.7.0.
42170         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42171         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42172
42173 2008-05-15  Bruno Haible  <bruno@clisp.org>
42174
42175         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
42176         implementation in glibc >= 2.9.
42177         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42178         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42179
42180 2008-05-15  Bruno Haible  <bruno@clisp.org>
42181
42182         * MODULES.html.sh (Internationalization functions): Remove linebreak.
42183         (Unicode string functions): Add unilbrk/*.
42184         Reported by Karl Berry.
42185
42186 2008-05-15  Eric Blake  <ebb9@byu.net>
42187
42188         Fix violation of <stdbool.h> replacement in regex.
42189         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
42190         * lib/regexec.c (re_search_internal): Likewise.
42191         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
42192
42193 2008-05-15  Jim Meyering  <meyering@redhat.com>
42194
42195         avoid distracting test output when git or cvs is not found
42196         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
42197         * tests/test-vc-list-files-git.sh: Likewise.
42198
42199 2008-05-15  Eric Blake  <ebb9@byu.net>
42200
42201         Glibc finally accepted the memmem speedup code, bugzilla #5514.
42202         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
42203         glibc version.
42204         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42205         * doc/posix-functions/strstr.texi (strstr): Likewise.
42206         * lib/str-two-way.h (MAX): Sychronize with glibc.
42207
42208 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
42209
42210         * lib/regcomp.c (optimize_utf8): Add a note on why we test
42211         opr.ctx_type.
42212         (calc_first): Initialize constraint field.
42213         (duplicate_node_closure): Use it instead of special casing ANCHORS.
42214         Fix grammar.
42215         (duplicate_node): Merge constraint field for all node types.
42216         (calc_eclosure_iter): Look at constraint field for all node types.
42217         * lib/regex_internal.c (create_cd_newstate): Don't look at
42218         opr.ctx_type.
42219
42220 2008-05-14  Bruno Haible  <bruno@clisp.org>
42221
42222         Help GCC to do better code generation.
42223         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
42224         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42225         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
42226         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
42227         Declare with attribute 'malloc' if supported.
42228
42229 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
42230
42231         use "echo STR|wc -c" rather than unportable "expr length STR"
42232         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
42233         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
42234
42235 2008-05-14  Jim Meyering  <meyering@redhat.com>
42236
42237         use dd ibs=$n count=1 ... rather than less-portable head -c$n
42238         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
42239         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
42240         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42241         via Collin Lasse.
42242
42243 2008-05-14  Eric Blake  <ebb9@byu.net>
42244
42245         Avoid quadratic growth in gl_LIBSOURCES.
42246         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42247         Suggested by Bruno Haible.
42248
42249         Test xmemdup0.
42250         * modules/xmemdup0-tests: New file.
42251         * tests/test-xmemdup0.c: Likewise.
42252
42253 2008-05-13  Eric Blake  <ebb9@byu.net>
42254
42255         Split xmemdup0 into its own module.
42256         * modules/xmemdup0: New file.
42257         * lib/xmemdup0.h: Likewise.
42258         * lib/xmemdup0.c: Likewise.
42259         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42260         * lib/xalloc.h (xmemdup0): Remove.
42261         * lib/xmalloc.c (xmemdup0): Likewise.
42262
42263 2008-05-13  Eric Blake  <ebb9@byu.net>
42264             Bruno Haible  <bruno@clisp.org>
42265
42266         Reduce number of forks required during autoconf.
42267         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42268         and gl_LIBSOURCES_DIR.
42269         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42270         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42271         m4_syscmd per file.
42272         <m4_foreach_w>: Move...
42273         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42274
42275 2008-05-13  Eric Blake  <ebb9@byu.net>
42276
42277         * gnulib-tool: Fix various comment typos.
42278
42279 2008-05-12  Bruno Haible  <bruno@clisp.org>
42280
42281         Tailor the linebreaking algorithm.
42282         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42283
42284 2008-05-12  Bruno Haible  <bruno@clisp.org>
42285
42286         Update to Unicode 5.0.0.
42287         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42288         LBP_JV, LBP_JT. Redistribute values.
42289         (unilbrk_table): Change size.
42290         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42291         Unicode TR#14 rev. 22.
42292         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42293         LBP_JV, LBP_JT. Redistribute values.
42294         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42295         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42296         Update.
42297         * lib/unilbrk/lbrkprop1.h: Regenerated.
42298         * lib/unilbrk/lbrkprop2.h: Regenerated.
42299         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42300         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42301         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42302         Likewise.
42303         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42304         Likewise.
42305         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42306         result.
42307         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42308         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42309         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42310         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42311         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42312         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42313
42314 2008-05-11  Bruno Haible  <bruno@clisp.org>
42315
42316         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42317
42318 2008-05-11  Bruno Haible  <bruno@clisp.org>
42319
42320         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42321         * modules/unilbrk/gen-lbrk: New file.
42322
42323 2008-05-11  Bruno Haible  <bruno@clisp.org>
42324
42325         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42326         * m4/sha512.m4 (gl_SHA512): Likewise.
42327
42328 2008-05-11  Jim Meyering  <meyering@redhat.com>
42329
42330         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42331         * modules/crypto/sha256: New file.
42332         * modules/crypto/sha512: Likewise.
42333         * lib/sha256.c: Likewise.
42334         * lib/sha256.h: Likewise.
42335         * lib/sha512.c: Likewise.
42336         * lib/sha512.h: Likewise.
42337         * lib/u64.h: Likewise.
42338         * m4/sha256.m4: Likewise.
42339         * m4/sha512.m4: Likewise.
42340         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42341
42342 2008-05-10  Bruno Haible  <bruno@clisp.org>
42343
42344         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42345         (Input/Output <stdio.h>): Add xprintf.
42346         (Signal handling <signal.h>): Add strsignal.
42347         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42348         (Core language properties): Add func.
42349         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42350         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42351         strings.
42352         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42353         (Input/output): New section.
42354         (File system functions): Add openat-die, stat-macros.
42355         (Networking functions): Add sockets.
42356         (Unicode string functions): Add unictype/*.
42357         (Support for building libraries and executables): Add gperf.
42358         (Support for building documentation): Add agpl-3.0.
42359         (Misc): Add nocrash.
42360
42361 2008-05-10  Bruno Haible  <bruno@clisp.org>
42362
42363         * modules/unictype/gen-ctype: New file.
42364
42365 2008-05-10  Jim Meyering  <meyering@redhat.com>
42366
42367         Make chdir-safer.c more efficient on a system with no symlinks.
42368         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42369         also if ELOOP is zero.  Suggested by Bruno Haible.
42370
42371         Make chdir-safer.c slightly safer.
42372         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42373         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42374
42375         Avoid compile failure on systems without ELOOP (like mingw).
42376         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42377         Reported by Bruno Haible.
42378
42379 2008-05-10  Bruno Haible  <bruno@clisp.org>
42380
42381         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42382         (is_utf8_encoding): Use a case-insensitive comparison.
42383         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42384         streq.
42385
42386 2008-05-10  Bruno Haible  <bruno@clisp.org>
42387
42388         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42389         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42390         * lib/unilbrk/ulc-common.h (iconv_string_length,
42391         iconv_string_keeping_offsets): Remove declarations.
42392         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42393         Don't include <iconv.h>, streq.h, xsize.h.
42394         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42395         conversion.
42396         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42397         <iconv.h>, streq.h, xsize.h.
42398         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42399         conversion.
42400         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42401         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42402         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42403         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42404
42405 2008-05-10  Bruno Haible  <bruno@clisp.org>
42406
42407         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42408         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42409
42410         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42411         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42412
42413         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42414         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42415
42416         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42417         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42418
42419         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42420         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42421
42422         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42423         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42424
42425         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42426         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42427
42428         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42429         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42430
42431 2008-05-10  Bruno Haible  <bruno@clisp.org>
42432
42433         Split up 'linebreak' module.
42434         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42435         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42436         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42437         modifications.
42438         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42439         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42440         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42441         lib/linebreak.c.
42442         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42443         lib/linebreak.c.
42444         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42445         lib/linebreak.c.
42446         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42447         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42448         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42449         lib/linebreak.c.
42450         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42451         lib/linebreak.c.
42452         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42453         lib/linebreak.c.
42454         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42455         lib/linebreak.c.
42456         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42457         lib/linebreak.c.
42458         * modules/unilbrk/base: New file.
42459         * modules/unilbrk/tables: New file.
42460         * modules/unilbrk/u8-possible-linebreaks: New file.
42461         * modules/unilbrk/u16-possible-linebreaks: New file.
42462         * modules/unilbrk/u32-possible-linebreaks: New file.
42463         * modules/unilbrk/ulc-common: New file.
42464         * modules/unilbrk/ulc-possible-linebreaks: New file.
42465         * modules/unilbrk/u8-width-linebreaks: New file.
42466         * modules/unilbrk/u16-width-linebreaks: New file.
42467         * modules/unilbrk/u32-width-linebreaks: New file.
42468         * modules/unilbrk/ulc-width-linebreaks: New file.
42469         * lib/linebreak.h: Remove file.
42470         * lib/linebreak.c: Remove file.
42471         * m4/linebreak.m4: Remove file.
42472         * modules/linebreak: Remove file.
42473         * NEWS: Mention the changes.
42474
42475 2008-05-09  Eric Blake  <ebb9@byu.net>
42476
42477         Add xmemdup0.
42478         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42479         implementation.
42480         * lib/xmalloc.c (xmemdup0): New C implementation.
42481
42482 2008-05-08  Bruno Haible  <bruno@clisp.org>
42483
42484         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42485
42486 2008-05-07  Eric Blake  <ebb9@byu.net>
42487
42488         Support cross-compilation of <wctype.h>.
42489         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42490         AC_CACHE_CHECK.
42491
42492 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42493
42494         * build-aux/vc-list-files: Add support for bzr.
42495
42496 2008-05-03  Jim Meyering  <meyering@redhat.com>
42497
42498         avoid failed assertion with tight malloc
42499         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42500
42501 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42502
42503         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42504         are needed from arpa/inet.h.
42505         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42506         Reported by Bruno Haible.
42507
42508 2008-05-02  Jim Meyering  <meyering@redhat.com>
42509
42510         avoid compilation error on FreeBSD 6
42511         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42512
42513 2008-05-01  Jim Meyering  <meyering@redhat.com>
42514
42515         useless-if-before-free: correct --help's exit status description
42516         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42517         for one or more matches, etc.  Reported by Bruno Haible.
42518
42519         vc-list-files: make the stand-alone gnulib test work
42520         * modules/vc-list-files-tests (configure.ac):
42521         Define and AC_SUBST abs_aux_dir.
42522         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42523         $(abs_top_srcdir) to each script and having each of them
42524         duplicate the work of setting PATH, set PATH here, using
42525         the new variable, abs_aux_dir instead.
42526         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42527         * tests/test-vc-list-files-git.sh: Likewise.
42528         Reported by Bruno Haible.
42529
42530 2008-05-01  Bruno Haible  <bruno@clisp.org>
42531
42532         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42533         reallocation. Rename 'done' to 'found_delimiter'.
42534
42535 2008-05-01  Jim Meyering  <meyering@redhat.com>
42536
42537         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42538         * build-aux/vc-list-files: Use `...`, not $(...).
42539
42540 2008-04-30  Jim Meyering  <meyering@redhat.com>
42541
42542         add tests for vc-list-files
42543         * modules/vc-list-files-tests: New module.
42544         * tests/test-vc-list-files-cvs.sh: New file.
42545         * tests/test-vc-list-files-git.sh: New file.
42546
42547         avoid a warning from gcc
42548         * lib/getndelim2.c (IF_LINT): Define.
42549         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42550
42551         vc-list-files: work properly with build-aux/cvsu, too
42552         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42553         to all cvs-based clauses.
42554
42555         vc-list-files: work properly in the CVS+awk case, too
42556         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42557
42558         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42559         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42560         take more than one file argument, so .  Add quotes, just in case $dir
42561         ever contains a shell meta-character.  Prompted by Soren Hansen in
42562         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42563
42564 2008-04-29  Eric Blake  <ebb9@byu.net>
42565
42566         Optimize getndelim2 to use block operations when possible.
42567         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42568         freadseek, and memchr2.
42569         * lib/getndelim2.c (getndelim2): Use them for block reads.
42570
42571 2008-04-29  Bruno Haible  <bruno@clisp.org>
42572
42573         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42574         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42575         * modules/inet_ntop (Depends-on): Add extensions.
42576         * modules/inet_pton (Depends-on): Likewise.
42577         Reported by Simon Josefsson.
42578
42579 2008-04-29  Jim Meyering  <meyering@redhat.com>
42580
42581         When the is more than one match in a block, match all of them.
42582         * build-aux/useless-if-before-free: Iterate through each block
42583         until there are no more matches.
42584
42585         Fix broken useless-if-before-free script.
42586         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42587         the expression to match cast of argument to free-like function.
42588
42589 2008-04-29  Eric Blake  <ebb9@byu.net>
42590
42591         Use new header.
42592         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42593
42594 2008-04-29  Jim Meyering  <meyering@redhat.com>
42595
42596         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42597         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42598         by gnulib to exist and to declare e.g., inet_ntop.
42599         Don't include "inet_ntop.h", now removed.
42600
42601         * m4/arpa_inet_h.m4: Remove trailing blanks.
42602
42603 2008-04-29  Eric Blake  <ebb9@byu.net>
42604
42605         Silence valgrind on safe reads beyond potential array bounds.
42606         * lib/rawmemchr.valgrind: New file.
42607         * lib/strchrnul.valgrind: Likewise.
42608         * modules/rawmemchr (Files): Distribute new file.
42609         * modules/strchrnul (Files): Likewise.
42610         Suggested by Bruno Haible.
42611
42612 2008-04-29  Bruno Haible  <bruno@clisp.org>
42613
42614         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42615         (inet_ntop, inet_pton): Change portability warning's wording.
42616         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42617         Invoke gl_CHECK_NEXT_HEADERS.
42618         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42619         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42620         set ARPA_INET_H.
42621         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42622         * modules/arpa_inet (Description): No longer only for systems that
42623         lack it.
42624         (Depends-on): Add include_next.
42625         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42626         HAVE_ARPA_INET_H.
42627
42628 2008-04-29  Jim Meyering  <meyering@redhat.com>
42629
42630         * modules/mkdir (License): Re-license as LGPLv2+.
42631
42632 2008-04-29  Bruno Haible  <bruno@clisp.org>
42633
42634         * modules/rawmemchr (Maintainer): Set to Eric.
42635         * modules/strchrnul (Maintainer): Likewise.
42636
42637 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42638
42639         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42640         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42641
42642         * modules/arpa_inet (arpa/inet.h): Use them.
42643
42644 2008-04-28  Eric Blake  <ebb9@byu.net>
42645
42646         Test getndelim2.
42647         * modules/getndelim2-tests: New file.
42648         * tests/test-getndelim2.c: Likewise.
42649         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42650         stream.
42651         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42652
42653         * MODULES.html.sh: Document new module.
42654
42655 2008-04-20  Bruno Haible  <bruno@clisp.org>
42656
42657         * lib/c-stack.c (die): Use raise.
42658         * modules/c-stack (Depends-on): Add raise.
42659
42660 2008-04-28  Bruno Haible  <bruno@clisp.org>
42661
42662         Expect rpmatch to be declared.
42663         * lib/yesno.c (rpmatch): Remove declaration.
42664
42665         Declare rpmatch.
42666         * lib/stdlib.in.h (rpmatch): New declaration.
42667         * lib/rpmatch.c: Include <stdlib.h> first.
42668         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42669         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42670         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42671         HAVE_RPMATCH.
42672         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42673         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42674         (Include): Set to <stdlib.h>.
42675         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42676         HAVE_RPMATCH.
42677         * NEWS: Document the change.
42678
42679 2008-04-28  Bruno Haible  <bruno@clisp.org>
42680
42681         Change rpmatch to use nl_langinfo when appropriate.
42682         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42683         (N_): New macro.
42684         (localized_pattern): New function/macro.
42685         (try): Remove match, nomatch arguments. Copy the pattern into safe
42686         memory before caching it.
42687         (rpmatch): Use localized_pattern. Add translator comments.
42688         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42689         Suggested by Eric Blake.
42690         * modules/rpmatch (Depends-on): Add stdbool.
42691
42692 2008-04-28  Eric Blake  <ebb9@byu.net>
42693
42694         Add rawmemchr module, matching glibc.
42695         * modules/string (Makefile.am): New indicator.
42696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42697         * lib/string.in.h (rawmemchr): Declare when appropriate.
42698         * modules/rawmemchr: New file.
42699         * m4/rawmemchr.m4: Likewise.
42700         * lib/rawmemchr.c: Likewise.
42701         * modules/rawmemchr-tests: Likewise.
42702         * tests/test-rawmemchr.c: Likewise.
42703         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42704         module.
42705         * modules/strchrnul (Depends-on): Add rawmemchr.
42706         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42707
42708         Whitespace cleanup.
42709         * tests/test-strchrnul.c: Reindent.
42710         * lib/strchrnul.c: Likewise.
42711
42712         Optimize and test strchrnul.
42713         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42714         * modules/strchrnul-tests: New file.
42715         * tests/test-strchrnul.c: Likewise.
42716
42717         Remove intprops dependency.
42718         * modules/memchr (Depends-on): Remove intprops.
42719         * modules/memrchr (Depends-on): Likewise.
42720         * modules/memchr2 (Depends-on): Likewise.
42721         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42722         * lib/memrchr.c (__memrchr): Likewise.
42723         * lib/memrchr2.c (memchr2): Likewise.
42724         Reported by Simon Josefsson.
42725
42726 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42727
42728         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42729         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42730
42731 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42732
42733         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42734
42735         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42736
42737         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42738
42739         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42740         declarations.
42741         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42742
42743         * m4/inet_pton.m4: Don't check for header files.
42744
42745         * m4/inet_ntop.m4: Don't check for header files.
42746
42747 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42748
42749         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42750         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42751         trigger for cygwin).
42752         Reported by Bruno Haible  <bruno@clisp.org>.
42753
42754 2008-04-28  Bruno Haible  <bruno@clisp.org>
42755
42756         * doc/posix-functions/strdup.texi: Mention mingw problem.
42757
42758 2008-04-27  Bruno Haible  <bruno@clisp.org>
42759
42760         * modules/stat-time-tests (Depends-on): Add sleep.
42761         * tests/test-stat-time.c (force_unlink): New function.
42762         (cleanup): Use it.
42763         (test_mtime): Remove the ctime related tests.
42764         (test_ctime): New function, containing the ctime related tests.
42765         (main): Call test_ctime, except on native Windows platforms.
42766
42767 2008-04-27  Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/rpmatch.c (rpmatch): Add some comments.
42770         Reported by James Youngman <jay@gnu.org>.
42771
42772 2008-04-27  Bruno Haible  <bruno@clisp.org>
42773
42774         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42775         quiet NaNs.
42776
42777 2008-04-27  Bruno Haible  <bruno@clisp.org>
42778
42779         Make test-yesno.sh work on mingw.
42780         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42781         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42782         (main): Set stdin to binary mode.
42783         * modules/yesno-tests (Depends-on): Add binary-io.
42784
42785 2008-04-27  Bruno Haible  <bruno@clisp.org>
42786
42787         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42788         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42789         argument that lie outside the IEEE 854 domain.
42790         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42791         (gl_ISFINITE): Use it.
42792         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42793
42794 2008-04-27  Bruno Haible  <bruno@clisp.org>
42795
42796         Allow local renaming in config.h.
42797         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42798
42799 2008-04-27  Bruno Haible  <bruno@clisp.org>
42800
42801         * lib/memchr.c (__memchr): Change type of 'i'.
42802         * lib/memchr2.c (memchr2): Likewise.
42803
42804 2008-04-26  Eric Blake  <ebb9@byu.net>
42805         and Bruno Haible  <bruno@clisp.org>
42806
42807         Optimize and test memrchr.
42808         * modules/memrchr (Depends-on): Add intprops.
42809         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42810         * modules/memrchr-tests: New file.
42811         * tests/test-memrchr.c: New file.
42812
42813 2008-04-26  Bruno Haible  <bruno@clisp.org>
42814
42815         Add tentative support for DragonFly BSD.
42816         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42817         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42818         fp.
42819         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42820         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42821         * lib/fpurge.c (fpurge): Likewise.
42822         * lib/freadable.c (freaadable): Likewise.
42823         * lib/freadahead.c (freadahead): Likewise.
42824         * lib/freading.c (freading): Likewise.
42825         * lib/freadptr.c (freadptr): Likewise.
42826         * lib/freadseek.c (freadptrinc): Likewise.
42827         * lib/fseeko.c (fseeko): Likewise.
42828         * lib/fseterr.c (fseterr): Likewise.
42829         * lib/fwritable.c (fwritable): Likewise.
42830         * lib/fwriting.c (fwriting): Likewise.
42831
42832 2008-04-26  Bruno Haible  <bruno@clisp.org>
42833
42834         * lib/stdio-impl.h: New file.
42835         * lib/fbufmode.c: Include stdio-impl.h.
42836         (fbufmode): Use fp_, remove redundant #defines.
42837         * lib/fflush.c: Include stdio-impl.h.
42838         (clear_ungetc_buffer): Remove redundant #defines.
42839         * lib/fpurge.c: Include stdio-impl.h.
42840         (fpurge): Remove redundant #defines.
42841         * lib/freadable.c: Include stdio-impl.h.
42842         (freadable): Remove redundant #defines.
42843         * lib/freadahead.c: Include stdio-impl.h.
42844         (freadahead): Remove redundant #defines.
42845         * lib/freading.c: Include stdio-impl.h.
42846         (freading): Remove redundant #defines.
42847         * lib/freadptr.c: Include stdio-impl.h.
42848         (freadptr): Remove redundant #defines.
42849         * lib/freadseek.c: Include stdio-impl.h.
42850         (freadptrinc): Remove redundant #defines.
42851         * lib/fseeko.c: Include stdio-impl.h.
42852         (rpl_fseeko): Remove redundant #defines.
42853         * lib/fseterr.c: Include stdio-impl.h.
42854         (fseterr): Remove redundant #defines.
42855         * lib/fwritable.c: Include stdio-impl.h.
42856         (fwritable: Remove redundant #defines.
42857         * lib/fwriting.c: Include stdio-impl.h.
42858         (fwriting): Remove redundant #defines.
42859         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42860         * modules/fflush (Files): Likewise.
42861         * modules/fpurge (Files): Likewise.
42862         * modules/freadable (Files): Likewise.
42863         * modules/freadahead (Files): Likewise.
42864         * modules/freading (Files): Likewise.
42865         * modules/freadptr (Files): Likewise.
42866         * modules/freadseek (Files): Likewise.
42867         * modules/fseeko (Files): Likewise.
42868         * modules/fseterr (Files): Likewise.
42869         * modules/fwritable (Files): Likewise.
42870         * modules/fwriting (Files): Likewise.
42871
42872 2008-04-26  Bruno Haible  <bruno@clisp.org>
42873
42874         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42875         restore_seek_optimization, update_fpos_cache): New functions, extracted
42876         from rpl_fflush.
42877         (rpl_fflush): Use them.
42878         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42879         (gl_REPLACE_FFLUSH): Use it.
42880
42881 2008-04-26  Bruno Haible  <bruno@clisp.org>
42882
42883         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42884         on Solaris.
42885         * tests/test-xstrtoimax.sh: Likewise.
42886         * tests/test-xstrtoumax.sh: Likewise.
42887         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42888
42889 2008-04-26  Bruno Haible  <bruno@clisp.org>
42890
42891         * modules/memchr-tests: New file.
42892         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42893
42894 2008-04-26  Eric Blake  <ebb9@byu.net>
42895             Bruno Haible  <bruno@clisp.org>
42896
42897         * lib/memchr.c: Include intprops.h.
42898         (__memchr): Optimize parallel detection of matching bytes. Rename local
42899         variables. Add explanatory comments.
42900
42901 2008-04-26  Bruno Haible  <bruno@clisp.org>
42902
42903         Fix module 'memchr', broken since 2000-10-28.
42904         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42905
42906 2008-04-26  Bruno Haible  <bruno@clisp.org>
42907
42908         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42909         comments.
42910
42911 2008-04-25  Eric Blake  <ebb9@byu.net>
42912
42913         Use native fstatat on cygwin 1.7.0.
42914         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42915         first.
42916
42917 2008-04-23  Eric Blake  <ebb9@byu.net>
42918
42919         Improve memchr2 performance.
42920         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42921         NUL bytes.
42922         * modules/memchr2 (Depends-on): Use intprops.h.
42923
42924 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42925
42926         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42927         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42928         <blp@cs.stanford.edu>.
42929
42930 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42931
42932         * lib/arpa_inet.in.h: New file.
42933
42934         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42935         (Makefile.am): Sed in substitute header file.
42936
42937         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42938         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42939
42940         * modules/inet_ntop (configure.ac): Use
42941         gl_ARPA_INET_MODULE_INDICATOR.
42942
42943         * modules/inet_pton (configure.ac): Use
42944         gl_ARPA_INET_MODULE_INDICATOR.
42945
42946 2008-04-22  Jim Meyering  <meyering@redhat.com>
42947
42948         * modules/verify (License): Re-license as LGPLv2+.
42949
42950 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42951
42952         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42953         parameter to void* as per POSIX standard (MinGW uses char*).
42954
42955 2008-04-21  Bruno Haible  <bruno@clisp.org>
42956
42957         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42958         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42959         Define to replacements if REPLACE_ISWCNTRL is 1.
42960         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42961         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42962         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42963         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42964         what it fixes.
42965         * doc/posix-functions/iswalpha.texi: Likewise.
42966         * doc/posix-functions/iswblank.texi: Likewise.
42967         * doc/posix-functions/iswcntrl.texi: Likewise.
42968         * doc/posix-functions/iswdigit.texi: Likewise.
42969         * doc/posix-functions/iswgraph.texi: Likewise.
42970         * doc/posix-functions/iswlower.texi: Likewise.
42971         * doc/posix-functions/iswprint.texi: Likewise.
42972         * doc/posix-functions/iswpunct.texi: Likewise.
42973         * doc/posix-functions/iswspace.texi: Likewise.
42974         * doc/posix-functions/iswupper.texi: Likewise.
42975         * doc/posix-functions/iswxdigit.texi: Likewise.
42976         Reported by Alain Guibert.
42977
42978 2008-04-21  Bruno Haible  <bruno@clisp.org>
42979
42980         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42981         Patch by Alain Guibert.
42982
42983 2008-04-21  Bruno Haible  <bruno@clisp.org>
42984
42985         Fix test failures on mingw.
42986         * tests/test-xstrtol.c (print_no_progname): New function.
42987         (main): Install it in error_print_progname hook.
42988         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42989         * tests/test-xstrtoimax.sh: Likewise.
42990         * tests/test-xstrtoumax.sh: Likewise.
42991
42992 2008-04-21  Bruno Haible  <bruno@clisp.org>
42993
42994         Fix test failure on mingw.
42995         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42996
42997 2008-04-21  Bruno Haible  <bruno@clisp.org>
42998
42999         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
43000         Actually assign a value.
43001
43002 2008-04-20  Bruno Haible  <bruno@clisp.org>
43003
43004         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
43005         take 2.
43006         * lib/canonicalize.c (canonicalize_file_name): Elide if the
43007         'canonicalize-lgpl' module is also used.
43008         * lib/canonicalize-lgpl.c: Undo last change.
43009         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
43010
43011 2008-04-20  Bruno Haible  <bruno@clisp.org>
43012
43013         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
43014         config.h. Provide _mkdir based fallback for mingw.
43015         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
43016         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
43017         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
43018         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
43019         rather than defining mkdir in config.h.
43020         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
43021         (gl_SYS_STAT_H_DEFAULTS): New macro.
43022         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
43023         HAVE_IO_H any more.
43024         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
43025         HAVE_DECL_MKDIR and HAVE_IO_H.
43026
43027 2008-04-20  Bruno Haible  <bruno@clisp.org>
43028
43029         * lib/isapipe.c: Port to native Windows platforms.
43030
43031 2008-04-20  Bruno Haible  <bruno@clisp.org>
43032
43033         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
43034
43035 2008-04-21  Eric Blake  <ebb9@byu.net>
43036
43037         Work around preprocessors that don't handle UINTMAX_MAX.
43038         * lib/memchr2.c (memchr2): Avoid embedded #if.
43039         Reported by Alain Guibert, fix suggested by Bruno Haible.
43040
43041 2008-04-21  Simon Josefsson  <simon@josefsson.org>
43042
43043         * doc/posix-functions/strftime.texi (strftime): Explain better
43044         Windows incompatibility.  Suggested by Micah Cowan
43045         <micah@cowan.name>.
43046
43047 2008-04-20  Bruno Haible  <bruno@clisp.org>
43048
43049         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
43050         unistr/u8-mblen.
43051
43052 2008-04-20  Bruno Haible  <bruno@clisp.org>
43053
43054         Fix test failure on platforms with non-GNU iconv.
43055         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
43056         (U_TO_U8): Use it, rather than u16_to_u8.
43057         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
43058         units at the end of the input string.
43059         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
43060
43061 2008-04-20  Bruno Haible  <bruno@clisp.org>
43062
43063         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
43064         when the resulting length is 0.
43065         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
43066
43067 2008-04-20  Bruno Haible  <bruno@clisp.org>
43068
43069         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
43070         works.
43071         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
43072
43073 2008-04-20  Bruno Haible  <bruno@clisp.org>
43074
43075         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
43076         * modules/tsearch-tests (configure.ac): Test for initstate function.
43077
43078 2008-04-20  Bruno Haible  <bruno@clisp.org>
43079
43080         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
43081         for nlink_t if missing.
43082         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
43083
43084 2008-04-19  Bruno Haible  <bruno@clisp.org>
43085
43086         Work around snprintf bug on Linux libc5.
43087         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
43088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43089         gl_SNPRINTF_SIZE1.
43090         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43091         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
43092         that test failed.
43093         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43094         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
43095         * modules/snprintf (Files): Add m4/printf.m4.
43096         * modules/vsnprintf (Files): Likewise.
43097         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
43098         * doc/posix-functions/vsnprintf.texi: Likewise.
43099
43100 2008-04-19  Bruno Haible  <bruno@clisp.org>
43101
43102         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
43103         from 0.0058 to less than 10^-7.
43104
43105 2008-04-19  Bruno Haible  <bruno@clisp.org>
43106
43107         Fix rounding when a precision is given.
43108         * lib/vasnprintf.c (is_borderline): New function.
43109         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
43110         9...9x.
43111         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
43112         %e, %g.
43113         * tests/test-vasprintf-posix.c (test_function): Likewise.
43114         * tests/test-snprintf-posix.h (test_function): Likewise.
43115         * tests/test-sprintf-posix.h (test_function): Likewise.
43116         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
43117         * tests/test-printf-posix.h (test_function): Likewise.
43118         * tests/test-printf-posix.output: Update.
43119         Reported by John Darrington <john@darrington.wattle.id.au> via
43120         Ben Pfaff <blp@cs.stanford.edu>.
43121
43122 2008-04-18  Simon Josefsson  <simon@josefsson.org>
43123
43124         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
43125         Suggested by Bruno Haible <bruno@clisp.org>.
43126
43127 2008-04-17  Bruno Haible  <bruno@clisp.org>
43128
43129         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
43130         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
43131         implementation.
43132         Patch by Bruce Merry <bmerry@gmail.com>.
43133
43134 2008-04-17  Simon Josefsson  <simon@josefsson.org>
43135
43136         * doc/posix-functions/strftime.texi (strftime): Mention that %e
43137         doesn't work under Windows.
43138
43139 2008-04-16  Bruno Haible  <bruno@clisp.org>
43140
43141         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
43142         New macros.
43143         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
43144         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
43145         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
43146         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
43147         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
43148         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
43149         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
43150         macros.
43151         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
43152         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
43153         Northern Sotho, Uighur.
43154
43155 2008-04-16  Bruno Haible  <bruno@clisp.org>
43156
43157         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
43158         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
43159         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
43160         Reported by Daniel Bergström <daniel@octocode.com>.
43161
43162 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
43163             Bruno Haible  <bruno@clisp.org>
43164
43165         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
43166         function.
43167         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
43168         New functions, mostly extracted from gl_locale_name_default.
43169         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
43170
43171 2008-04-16  Eric Blake  <ebb9@byu.net>
43172
43173         Adjust strtod detection to catch glibc 2.7 bug.
43174         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
43175         Reported by John Gatewood Ham.
43176
43177 2008-04-16  Bruno Haible  <bruno@clisp.org>
43178
43179         Add tentative support for Linux libc5.
43180         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
43181         * lib/fpurge.c (fpurge): Likewise.
43182         * lib/freadable.c (freadable): Likewise.
43183         * lib/freadahead.c (freadahead): Likewise.
43184         * lib/freading.c (freading): Likewise.
43185         * lib/freadptr.c (freadptr): Likewise.
43186         * lib/freadseek.c (freadptrinc): Likewise.
43187         * lib/fseeko.c (rpl_fseeko): Likewise.
43188         * lib/fseterr.c (fseterr): Likewise.
43189         * lib/fwritable.c (fwritable): Likewise.
43190         * lib/fwriting.c (fwriting): Likewise.
43191         Reported by Alain Guibert <alguibert+bts@free.fr>.
43192
43193 2008-04-15  Bruno Haible  <bruno@clisp.org>
43194
43195         * modules/mathl (configure.ac): Define module indicator.
43196
43197 2008-04-15  Bruno Haible  <bruno@clisp.org>
43198
43199         * lib/logl.c (logl): Remove unused variables.
43200
43201 2008-04-15  Bruno Haible  <bruno@clisp.org>
43202
43203         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
43204         fails.
43205
43206 2008-04-15  Bruno Haible  <bruno@clisp.org>
43207
43208         * lib/trim.c (trim2): Fix argument of isspace() macro.
43209
43210 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
43211
43212         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
43213         to 0.
43214         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
43215
43216 2008-04-14  Bruno Haible  <bruno@clisp.org>
43217
43218         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
43219         AC_LANG_PROGRAM argument.
43220         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
43221         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
43222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43223         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43224         * m4/math_h.m4 (gl_MATH_H): Likewise.
43225         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43226         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43227         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43228         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
43229         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43230         * m4/regex.m4 (gl_REGEX): Likewise.
43231         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
43232         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
43233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43234         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
43235         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43236         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43237         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43238         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43239
43240 2008-04-14  Jim Meyering  <meyering@redhat.com>
43241
43242         test-strtod: fix typos: s/abs/fabs/
43243         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43244
43245 2008-04-13  Bruno Haible  <bruno@clisp.org>
43246
43247         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43248         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43249         module is also used and while not building the reloc-wrapper.
43250
43251 2008-04-13  Bruno Haible  <bruno@clisp.org>
43252
43253         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43254
43255 2008-04-13  Bruno Haible  <bruno@clisp.org>
43256
43257         Fix AIX compilation failure introduced on 2008-04-02.
43258         * tests/test-frexp.c (exp): Undefine before redefining.
43259         * tests/test-frexpl.c (exp): Likewise.
43260
43261 2008-04-13  Bruno Haible  <bruno@clisp.org>
43262
43263         Work around a HP-UX stdio bug.
43264         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43265         * tests/test-ftello.c (main): Likewise.
43266         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43267         * doc/posix-functions/ftello.texi: Likewise.
43268
43269 2008-04-13  Bruno Haible  <bruno@clisp.org>
43270
43271         Make test-signbit pass on HP-UX/hppa.
43272         * tests/test-signbit.c (minus_zerol): New variable.
43273         (test_signbitl): Use it.
43274
43275 2008-04-13  Bruno Haible  <bruno@clisp.org>
43276
43277         Make truncl work on OSF/1 4.0.
43278         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43279         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43280         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43282         HAVE_DECL_TRUNCL.
43283         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43284         HAVE_DECL_TRUNCL.
43285         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43286
43287 2008-04-13  Bruno Haible  <bruno@clisp.org>
43288
43289         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43290
43291 2008-04-13  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43294         expression, so as to avoid HP-UX 11 cc compiler bug.
43295
43296 2008-04-13  Bruno Haible  <bruno@clisp.org>
43297
43298         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43299
43300 2008-04-13  Bruno Haible  <bruno@clisp.org>
43301
43302         * lib/git-merge-changelog.c: Remove empty declaration outside of
43303         functions.
43304
43305 2008-04-13  Bruno Haible  <bruno@clisp.org>
43306
43307         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43308
43309 2008-04-13  Bruno Haible  <bruno@clisp.org>
43310
43311         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43312         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43313         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43314         also if it exists but lacks definitions of the SHUT_* macros.
43315         * modules/sys_socket (Description): Update.
43316         Reported by Elbert Pol <e.pol@chello.nl>.
43317
43318 2008-04-13  Bruno Haible  <bruno@clisp.org>
43319
43320         * lib/localcharset.c (OS2): Don't redefine if already defined.
43321         Reported by Elbert Pol <e.pol@chello.nl>.
43322
43323 2008-04-13  Bruno Haible  <bruno@clisp.org>
43324
43325         * lib/binary-io.h [__EMX__]: Include <io.h>.
43326         Reported by Elbert Pol <e.pol@chello.nl>.
43327
43328 2008-04-12  Bruno Haible  <bruno@clisp.org>
43329
43330         * lib/fpucw.h: Enable the definitions also for x86_64.
43331         Needed for NetBSD/x86_64.
43332         Reported by Thomas Klausner <tk@giga.or.at>.
43333
43334 2008-04-12  Bruno Haible  <bruno@clisp.org>
43335
43336         * tests/test-strtod.c: Include isnand.h.
43337         (main): Use isnand instead of isnan.
43338         Reported by Jim Meyering.
43339
43340 2008-04-12  Bruno Haible  <bruno@clisp.org>
43341
43342         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43343         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43344
43345 2008-04-12  Jim Meyering  <meyering@redhat.com>
43346
43347         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43348
43349 2008-04-12  Bruno Haible  <bruno@clisp.org>
43350
43351         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43352         Reported by Elbert Pol <e.pol@chello.nl>.
43353
43354 2008-04-12  Eric Blake  <ebb9@byu.net>
43355
43356         Work around Solaris 10 math.h bug.
43357         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43358         (gl_MATH_H_DEFAULTS): Set up default.
43359         * modules/math (Makefile.am): Replace new indicators.
43360         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43361         * tests/test-math.c (main): Test this.
43362         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43363         * doc/posix-headers/math.texi (math.h): Mention bug.
43364         Reported by Nelson H. F. Beebe and Jim Meyering.
43365
43366 2008-04-11  Bruno Haible  <bruno@clisp.org>
43367
43368         Adapt to future versions of Apple GCC.
43369         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43370         Reported by Peter O'Gorman <peter@pogma.com>.
43371
43372 2008-04-11  Bruno Haible  <bruno@clisp.org>
43373
43374         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43375
43376 2008-04-11  Bruno Haible  <bruno@clisp.org>
43377
43378         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43379
43380         * modules/getaddrinfo-tests (Makefile.am): Define
43381         test_getaddrinfo_LDADD.
43382
43383 2008-04-11  Bruno Haible  <bruno@clisp.org>
43384
43385         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43386         (init): Fix syntax error.
43387         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43388         is declared.
43389
43390 2008-04-11  Bruno Haible  <bruno@clisp.org>
43391
43392         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43393         * modules/glob (Depends-on): Add stdbool.
43394
43395 2008-04-11  Bruno Haible  <bruno@clisp.org>
43396
43397         * lib/trim.c: Include <string.h>.
43398
43399 2008-04-11  Eric Blake  <ebb9@byu.net>
43400
43401         Avoid compile failure on OS/2.
43402         * lib/regex_internal.h (internal_function): Disable optimization
43403         on OS/2 (__EMX__), where it caused compiler error.
43404         Reported by Elbert Pol.
43405
43406 2008-04-11  Bruno Haible  <bruno@clisp.org>
43407
43408         Flush the standard error stream before aborting. Needed on mingw.
43409         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43410         * tests/test-array_list.c (ASSERT): Likewise.
43411         * tests/test-array_oset.c (ASSERT): Likewise.
43412         * tests/test-avltree_list.c (ASSERT): Likewise.
43413         * tests/test-avltree_oset.c (ASSERT): Likewise.
43414         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43415         * tests/test-binary-io.c (ASSERT): Likewise.
43416         * tests/test-byteswap.c (ASSERT): Likewise.
43417         * tests/test-c-ctype.c (ASSERT): Likewise.
43418         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43419         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43420         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43421         * tests/test-c-strstr.c (ASSERT): Likewise.
43422         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43423         * tests/test-canonicalize.c (ASSERT): Likewise.
43424         * tests/test-carray_list.c (ASSERT): Likewise.
43425         * tests/test-ceilf1.c (ASSERT): Likewise.
43426         * tests/test-ceilf2.c (ASSERT): Likewise.
43427         * tests/test-ceill.c (ASSERT): Likewise.
43428         * tests/test-count-one-bits.c (ASSERT): Likewise.
43429         * tests/test-fbufmode.c (ASSERT): Likewise.
43430         * tests/test-fflush2.c (ASSERT): Likewise.
43431         * tests/test-floorf1.c (ASSERT): Likewise.
43432         * tests/test-floorf2.c (ASSERT): Likewise.
43433         * tests/test-floorl.c (ASSERT): Likewise.
43434         * tests/test-fopen.c (ASSERT): Likewise.
43435         * tests/test-fpending.c (ASSERT): Likewise.
43436         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43437         * tests/test-fpurge.c (ASSERT): Likewise.
43438         * tests/test-freadable.c (ASSERT): Likewise.
43439         * tests/test-freadahead.c (ASSERT): Likewise.
43440         * tests/test-freading.c (ASSERT): Likewise.
43441         * tests/test-freadptr.c (ASSERT): Likewise.
43442         * tests/test-freadptr2.c (ASSERT): Likewise.
43443         * tests/test-freadseek.c (ASSERT): Likewise.
43444         * tests/test-freopen.c (ASSERT): Likewise.
43445         * tests/test-frexp.c (ASSERT): Likewise.
43446         * tests/test-frexpl.c (ASSERT): Likewise.
43447         * tests/test-fseek.c (ASSERT): Likewise.
43448         * tests/test-fseeko.c (ASSERT): Likewise.
43449         * tests/test-fstrcmp.c (ASSERT): Likewise.
43450         * tests/test-ftell.c (ASSERT): Likewise.
43451         * tests/test-ftello.c (ASSERT): Likewise.
43452         * tests/test-func.c (ASSERT): Likewise.
43453         * tests/test-fwritable.c (ASSERT): Likewise.
43454         * tests/test-fwriting.c (ASSERT): Likewise.
43455         * tests/test-getdelim.c (ASSERT): Likewise.
43456         * tests/test-getline.c (ASSERT): Likewise.
43457         * tests/test-i-ring.c (ASSERT): Likewise.
43458         * tests/test-iconv-utf.c (ASSERT): Likewise.
43459         * tests/test-iconv.c (ASSERT): Likewise.
43460         * tests/test-isfinite.c (ASSERT): Likewise.
43461         * tests/test-isnand.c (ASSERT): Likewise.
43462         * tests/test-isnanf.c (ASSERT): Likewise.
43463         * tests/test-isnanl.h (ASSERT): Likewise.
43464         * tests/test-ldexpl.c (ASSERT): Likewise.
43465         * tests/test-linked_list.c (ASSERT): Likewise.
43466         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43467         * tests/test-localename.c (ASSERT): Likewise.
43468         * tests/test-lseek.c (ASSERT): Likewise.
43469         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43470         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43471         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43472         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43473         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43474         * tests/test-mbschr.c (ASSERT): Likewise.
43475         * tests/test-mbscspn.c (ASSERT): Likewise.
43476         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43477         * tests/test-mbspbrk.c (ASSERT): Likewise.
43478         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43479         * tests/test-mbsrchr.c (ASSERT): Likewise.
43480         * tests/test-mbsspn.c (ASSERT): Likewise.
43481         * tests/test-mbsstr1.c (ASSERT): Likewise.
43482         * tests/test-mbsstr2.c (ASSERT): Likewise.
43483         * tests/test-mbsstr3.c (ASSERT): Likewise.
43484         * tests/test-memchr2.c (ASSERT): Likewise.
43485         * tests/test-memmem.c (ASSERT): Likewise.
43486         * tests/test-open.c (ASSERT): Likewise.
43487         * tests/test-printf-frexp.c (ASSERT): Likewise.
43488         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43489         * tests/test-printf-posix.c (ASSERT): Likewise.
43490         * tests/test-quotearg.c (ASSERT): Likewise.
43491         * tests/test-rbtree_list.c (ASSERT): Likewise.
43492         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43493         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43494         * tests/test-round1.c (ASSERT): Likewise.
43495         * tests/test-roundf1.c (ASSERT): Likewise.
43496         * tests/test-roundl.c (ASSERT): Likewise.
43497         * tests/test-signbit.c (ASSERT): Likewise.
43498         * tests/test-sleep.c (ASSERT): Likewise.
43499         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43500         * tests/test-snprintf.c (ASSERT): Likewise.
43501         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43502         * tests/test-stat-time.c (ASSERT): Likewise.
43503         * tests/test-strcasestr.c (ASSERT): Likewise.
43504         * tests/test-strerror.c (ASSERT): Likewise.
43505         * tests/test-striconv.c (ASSERT): Likewise.
43506         * tests/test-striconveh.c (ASSERT): Likewise.
43507         * tests/test-striconveha.c (ASSERT): Likewise.
43508         * tests/test-strsignal.c (ASSERT): Likewise.
43509         * tests/test-strstr.c (ASSERT): Likewise.
43510         * tests/test-strtod.c (ASSERT): Likewise.
43511         * tests/test-trunc1.c (ASSERT): Likewise.
43512         * tests/test-trunc2.c (ASSERT): Likewise.
43513         * tests/test-truncf1.c (ASSERT): Likewise.
43514         * tests/test-truncf2.c (ASSERT): Likewise.
43515         * tests/test-truncl.c (ASSERT): Likewise.
43516         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43517         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43518         * tests/test-vasnprintf.c (ASSERT): Likewise.
43519         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43520         * tests/test-vasprintf.c (ASSERT): Likewise.
43521         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43522         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43523         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43524         * tests/test-vsnprintf.c (ASSERT): Likewise.
43525         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43526         * tests/test-wcwidth.c (ASSERT): Likewise.
43527         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43528         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43529         * tests/test-xvasprintf.c (ASSERT): Likewise.
43530         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43531         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43532         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43533         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43534         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43535         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43536         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43537         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43538         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43539         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43540         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43541         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43542         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43543         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43544         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43545         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43546         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43547         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43548         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43549         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43550         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43551         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43552         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43553         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43554         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43555         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43556         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43557         * tests/unictype/test-combining.c (ASSERT): Likewise.
43558         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43559         * tests/unictype/test-digit.c (ASSERT): Likewise.
43560         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43561         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43562         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43563         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43564         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43565         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43566         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43567         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43568         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43569         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43570         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43571         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43572         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43573         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43574         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43575         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43576         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43577         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43578         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43579         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43580         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43581         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43582         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43583         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43584         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43585         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43586         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43587         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43588         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43589         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43590         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43591         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43592         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43593         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43594         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43595         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43596         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43597         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43598         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43599         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43600         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43601         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43602         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43603         Reported by Eric Blake.
43604
43605 2008-04-11  Bruno Haible  <bruno@clisp.org>
43606
43607         * lib/wchar.in.h: Tweak comment.
43608
43609 2008-04-11  Bruno Haible  <bruno@clisp.org>
43610
43611         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43612         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43613         gl_COMMON.
43614         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43615
43616 2008-04-11  Bruno Haible  <bruno@clisp.org>
43617
43618         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43619
43620 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43621
43622         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43623         of attempting to use non-existing /dev/*random.  Based on patch
43624         from Adam Strzelecki <ono@java.pl> in
43625         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43626
43627 2008-04-08  Bruno Haible  <bruno@clisp.org>
43628
43629         Add tentative support for emx+gcc.
43630         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43631         * lib/fpurge.c (fpurge): Likewise.
43632         * lib/freadable.c (freadable): Likewise.
43633         * lib/freadahead.c (freadahead): Likewise.
43634         * lib/freading.c (freading): Likewise.
43635         * lib/freadptr.c (freadptr): Likewise.
43636         * lib/freadseek.c (freadptrinc): Likewise.
43637         * lib/fseeko.c (rpl_fseeko): Likewise.
43638         * lib/fseterr.c (fseterr): Likewise.
43639         * lib/fwritable.c (fwritable): Likewise.
43640         * lib/fwriting.c (fwriting): Likewise.
43641         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43642
43643 2008-04-09  Eric Blake  <ebb9@byu.net>
43644
43645         Avoid some autoconf warnings.
43646         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43647         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43648         * m4/afs.m4 (gl_AFS): Likewise.
43649         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43650         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43651         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43652         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43653         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43654         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43655         (AC_CHECK_DECLS_ONCE): Likewise.
43656         Rename file...
43657         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43658         gnulib-tool requires autoconf 2.59 or better.
43659         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43660
43661 2008-04-08  Eric Blake  <ebb9@byu.net>
43662
43663         Use 'git describe --match' if present (added in git 1.5.5).
43664         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43665         if possible.
43666
43667 2008-04-08  Bruno Haible  <bruno@clisp.org>
43668
43669         Add tentative support for OpenServer.
43670         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43671         _ptr, _cnt.
43672         * lib/fpurge.c (fpurge): Likewise.
43673         * lib/freadable.c (freadable): Likewise.
43674         * lib/freadahead.c (freadahead): Likewise.
43675         * lib/freading.c (freading): Likewise.
43676         * lib/freadptr.c (freadptr): Likewise.
43677         * lib/freadseek.c (freadptrinc): Likewise.
43678         * lib/fseeko.c (rpl_fseeko): Likewise.
43679         * lib/fseterr.c (fseterr): Likewise.
43680         * lib/fwritable.c (fwritable): Likewise.
43681         * lib/fwriting.c (fwriting): Likewise.
43682         Reported by Roger Cornelius <rac@tenzing.org> and
43683         Brian K. White <brian@aljex.com>.
43684
43685 2008-04-06  Jim Meyering  <meyering@redhat.com>
43686
43687         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43688
43689 2008-04-06  Bruno Haible  <bruno@clisp.org>
43690
43691         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43692         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43693         * tests/test-printf-posix.sh: Likewise.
43694         * tests/test-vfprintf-posix.sh: Likewise.
43695         * tests/test-vprintf-posix.sh: Likewise.
43696         * tests/test-xprintf-posix.sh: Likewise.
43697
43698 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43699
43700         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43701         hide error from 'ls', needed on OS/2.
43702         Report by Elbert Pol <elbert.pol@gmail.com>.
43703
43704 2008-04-04  Eric Blake  <ebb9@byu.net>
43705
43706         Make test-fseeko.c failures meaningful.
43707         * tests/test-fseeko.c: Print line number on failure.
43708         * tests/test-fseek.c: Likewise.
43709         Reported by Nelson H. F. Beebe.
43710
43711         Improve strtod bug detection check.
43712         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43713         required for Solaris 10.
43714         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43715
43716 2008-04-04  Bruno Haible  <bruno@clisp.org>
43717
43718         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43719         by m4/setenv.m4.
43720
43721 2008-04-03  Eric Blake  <ebb9@byu.net>
43722
43723         Ensure sane .version contents.
43724         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43725         version string.
43726         * build-aux/git-version-gen: Improve documentation.
43727
43728         Make GNU make output nicer.
43729         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43730         MAKECMDGOALS to enforce message for all command line targets.  Set
43731         srcdir for use in maint.mk.
43732
43733         Another maintainer tweak.
43734         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43735         a target that regenerates version.
43736
43737 2008-04-03  Jim Meyering  <meyering@redhat.com>
43738
43739         vc-list-files: don't cause coreutils "make po-check" failure
43740         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43741
43742 2008-04-03  Eric Blake  <ebb9@byu.net>
43743
43744         Allow VPATH usage of vc-list-files.
43745         * build-aux/vc-list-files (scriptversion): Add timestamp.
43746         (options): Add --help, --version, -C.
43747         (CVS): Support installed cvsu.
43748
43749 2008-04-02  Bruno Haible  <bruno@clisp.org>
43750
43751         Avoid some "statement with no effect" warnings from gcc.
43752         * tests/test-wctype.c (main): Explicitly ignore unused values.
43753         Reported by Jim Meyering.
43754
43755 2008-04-02  Jim Meyering  <meyering@redhat.com>
43756
43757         Avoid some warnings from "gcc -Wshadow".
43758         * tests/test-frexp.c (exp): Define to a different identifier.
43759         * tests/test-frexpl.c (exp): Likewise.
43760
43761 2008-04-03  Jim Meyering  <meyering@redhat.com>
43762
43763         bootstrap: remove dangling *.[ch] symlinks from lib
43764         * build-aux/bootstrap [dangling symlink removal]: Move find's
43765         -depth option to precede all others, to avoid a warning.
43766         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43767
43768 2008-04-02  Bruno Haible  <bruno@clisp.org>
43769
43770         Avoid some warnings from "gcc -Wshadow".
43771         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43772         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43773         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43774         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43775         Reported by Jim Meyering.
43776
43777 2008-04-01  Bruno Haible  <bruno@clisp.org>
43778
43779         Fix test to work on IRIX 6.5 with cc.
43780         * tests/test-math.c (numeric_equal): New function.
43781         (main): Use it.
43782
43783 2008-04-01  Bruno Haible  <bruno@clisp.org>
43784
43785         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43786
43787 2008-04-01  Bruno Haible  <bruno@clisp.org>
43788
43789         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43790         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43791         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43792         (Depends-on): Remove math.
43793
43794         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43795         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43796         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43797         (Depends-on): Remove math.
43798
43799         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43800         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43801         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43802         (Depends-on): Remove math.
43803         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43804         (Depends-on): Remove math.
43805
43806         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43807         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43808         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43809         (Depends-on): Remove math.
43810         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43811         (Depends-on): Remove math.
43812
43813         * tests/test-round1.c: Include nan.h.
43814         (main): Use NaNd instead of NAN.
43815         * modules/round-tests (Files): Add tests/nan.h.
43816
43817         * tests/test-trunc1.c: Include nan.h.
43818         (main): Use NaNd instead of NAN.
43819         * modules/trunc-tests (Files): Add tests/nan.h.
43820
43821         * tests/test-roundf1.c: Include nan.h.
43822         (main): Use NaNf instead of NAN.
43823         * modules/roundf-tests (Files): Add tests/nan.h.
43824
43825         * tests/test-truncf1.c: Include nan.h.
43826         (main): Use NaNf instead of NAN.
43827         * modules/truncf-tests (Files): Add tests/nan.h.
43828
43829         * tests/test-ceilf1.c: Include nan.h.
43830         (main): Use NaNf instead of NAN.
43831         * modules/ceilf-tests (Files): Add tests/nan.h.
43832
43833         * tests/test-floorf1.c: Include nan.h.
43834         (main): Use NaNf instead of NAN.
43835         * modules/floorf-tests (Files): Add tests/nan.h.
43836
43837         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43838         (main): Use NaNf instead of NAN.
43839         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43840
43841         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43842         (main): Use NaNd instead of NAN.
43843         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43844
43845         * tests/test-frexp.c: Include nan.h.
43846         (main): Use NaNd instead of NAN.
43847         * modules/frexp-tests (Files): Add tests/nan.h.
43848
43849         * lib/isnan.c: Don't include <math.h>.
43850         (FUNC): Don't use NAN macro.
43851         * modules/isnand-nolibm (Depends-on): Remove math.
43852         * modules/isnanf-nolibm (Depends-on): Remove math.
43853         * modules/isnanl (Depends-on): Remove math.
43854         * modules/isnanl-nolibm (Depends-on): Remove math.
43855
43856         * tests/nan.h: New file.
43857
43858 2008-04-01  Eric Blake  <ebb9@byu.net>
43859
43860         Fix typos.
43861         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43862         values to be the right type.
43863
43864         For now, cater to gnulib strtod inaccuracies.
43865         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43866         fractional results.  While not as nice from a QoI perspective, it
43867         is a quicker patch than correctly implementing decimal to binary
43868         rounding.
43869
43870 2008-03-31  Eric Blake  <ebb9@byu.net>
43871
43872         Guarantee a definition of NAN.
43873         * lib/math.in.h (NAN): Define if missing.
43874         * tests/test-math.c (main): Test it.
43875         * doc/posix-headers/math.texi (math.h): Document this.
43876         * lib/isnan.c (rpl_isnand): Use it.
43877         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43878         * tests/test-floorf1.c (NaN): Likewise.
43879         * tests/test-frexp.c (NaN): Likewise.
43880         * tests/test-isnand.c (NaN): Likewise.
43881         * tests/test-isnanf.c (NaN): Likewise.
43882         * tests/test-round1.c (NaN): Likewise.
43883         * tests/test-roundf1.c (NaN): Likewise.
43884         * tests/test-snprintf-posix.h (NaN): Likewise.
43885         * tests/test-sprintf-posix.h (NaN): Likewise.
43886         * tests/test-trunc1.c (NaN): Likewise.
43887         * tests/test-truncf1.c (NaN): Likewise.
43888         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43889         * tests/test-vasprintf-posix.c (NaN): Likewise.
43890         * modules/isnand-nolibm (Depends-on): Add math.
43891         * modules/isnanf-nolibm (Depends-on): Likewise.
43892         * modules/isnanl (Depends-on): Likewise.
43893         * modules/isnanl-nolibm (Depends-on): Likewise.
43894         * modules/snprintf-posix-tests (Depends-on): Likewise.
43895         * modules/sprintf-posix-tests (Depends-on): Likewise.
43896         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43897         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43898         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43899         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43900
43901 2008-03-31  Bruno Haible  <bruno@clisp.org>
43902
43903         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43904         * doc/posix-functions/strtod.texi: Likewise.
43905
43906 2008-03-31  Bruno Haible  <bruno@clisp.org>
43907
43908         * tests/test-strtod.c (main): Don't use C99 syntax.
43909
43910 2008-03-31  Bruno Haible  <bruno@clisp.org>
43911
43912         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43913         Reported by Eric Blake.
43914
43915 2008-03-31  Jim Meyering  <meyering@redhat.com>
43916
43917         Don't compare actual signbit return values.
43918         * tests/test-strtod.c (main): Rather, compare only their
43919         zero/non-zero nature.
43920
43921 2008-03-31  Eric Blake  <ebb9@byu.net>
43922
43923         More strtod documentation.
43924         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43925         failures as distinct bugs.
43926
43927 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43928
43929         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43930         Problem reported by Erik Benada in
43931         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43932
43933 2008-03-30  Bruno Haible  <bruno@clisp.org>
43934
43935         * tests/test-strtod.c: Add comments about which assertion fails on which
43936         platform.
43937         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43938
43939 2008-03-30  Eric Blake  <ebb9@byu.net>
43940
43941         Test signbit behavior on zeros.
43942         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43943         (test_signbitd, test_signbitl): Likewise.
43944
43945         More strtod touchups.
43946         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43947         sign of negative underflow, for now.  Use .5, not .1.
43948         * doc/posix-functions/strtod.texi (strtod): Mention these
43949         limitations.
43950         Reported by Jim Meyering.
43951
43952 2008-03-30  Bruno Haible  <bruno@clisp.org>
43953
43954         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43955         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43956
43957 2008-03-30  Bruno Haible  <bruno@clisp.org>
43958
43959         Avoid failure when attempting to return empty iconv results on some
43960         platforms.
43961         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43962         allocation, don't report ENOMEM when the resulting string is empty.
43963
43964 2008-03-30  Bruno Haible  <bruno@clisp.org>
43965
43966         Fix buffer overrun.
43967         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43968         Don't consider the width for tmp_length. Check count against tmp_length
43969         before doing the padding. Ensure enough allocation during padding.
43970
43971 2008-03-30  Eric Blake  <ebb9@byu.net>
43972
43973         strtod touchups.
43974         * lib/strtod.c (strtod): Avoid compiler warnings.
43975         Reported by Jim Meyering.
43976
43977 2008-03-30  Bruno Haible  <bruno@clisp.org>
43978
43979         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43980         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43981         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43982         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43983         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43984         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43985         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43986         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43987
43988         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43989         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43990         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43991         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43992         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43993         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43994         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43995         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43996
43997         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43998         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43999         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
44000         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
44001         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
44002         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
44003         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
44004         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
44005
44006         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
44007         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
44008
44009         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
44010         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
44011
44012         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
44013         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
44014
44015         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
44016         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
44017         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
44018
44019         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
44020         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
44021         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
44022
44023         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
44024         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
44025         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
44026
44027         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
44028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
44029         * modules/vasprintf (Depends-on): Add EOVERFLOW.
44030
44031         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
44032         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
44033         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
44034         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
44035         (Depends-on): Add EOVERFLOW.
44036         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
44037         (Depends-on): Add EOVERFLOW.
44038         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44039         (Depends-on): Add EOVERFLOW.
44040         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44041         (Depends-on): Add EOVERFLOW.
44042         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44043         (Depends-on): Add EOVERFLOW.
44044         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44045         (Depends-on): Add EOVERFLOW.
44046         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44047         (Depends-on): Add EOVERFLOW.
44048         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44049         (Depends-on): Add EOVERFLOW.
44050
44051         * lib/sprintf.c (EOVERFLOW): Remove fallback.
44052         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
44053         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
44054
44055         * lib/snprintf.c (EOVERFLOW): Remove fallback.
44056         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
44057         * modules/snprintf (Depends-on): Add EOVERFLOW.
44058
44059         * lib/poll.c (EOVERFLOW): Remove fallback.
44060         * modules/poll (Depends-on): Add EOVERFLOW.
44061
44062         * lib/getugroups.c (EOVERFLOW): Remove fallback.
44063         * modules/getugroups (Depends-on): Add EOVERFLOW.
44064
44065         * lib/getdelim.c (EOVERFLOW): Remove fallback.
44066         * modules/getdelim (Depends-on): Add EOVERFLOW.
44067
44068         * lib/ftell.c (EOVERFLOW): Remove fallback.
44069         * modules/ftell (Depends-on): Add EOVERFLOW.
44070
44071         * lib/fprintf.c (EOVERFLOW): Remove fallback.
44072         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
44073         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
44074
44075         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
44076
44077         * modules/EOVERFLOW-tests: New file.
44078         * tests/test-EOVERFLOW.c: New file.
44079
44080         * modules/EOVERFLOW: New file.
44081         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
44082
44083 2008-03-30  Bruno Haible  <bruno@clisp.org>
44084
44085         Fix bug introduced on 2007-06-10.
44086         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
44087         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
44088
44089 2008-03-30  Bruno Haible  <bruno@clisp.org>
44090
44091         Improve freadseek's efficiency after ungetc.
44092         * lib/freadseek.c: Include freadahead.h.
44093         (freadptrinc): New function, extracted from freadseek.
44094         (freadseek): Use it in a loop. Use freadahead to determine the number
44095         of loop iterations.
44096         * modules/freadseek (Depends-on): Add freadahead.
44097         (configure.ac): Require AC_C_INLINE.
44098
44099 2008-03-30  Bruno Haible  <bruno@clisp.org>
44100
44101         * lib/freadseek.c (freadseek): Don't ignore the return value of
44102         freadptr.
44103
44104 2008-03-29  Eric Blake  <ebb9@byu.net>
44105
44106         Add hex float support.
44107         * modules/strtod (Depends-on): Add c-ctype.
44108         (Link): Mention POW_LIB.
44109         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
44110         whitespace between 'e' and exponent.
44111         * tests/test-strtod.c (main): Enable hex float tests.
44112         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
44113         now provides.
44114
44115         Document various strtod bugs, with some fixes.
44116         * doc/posix-functions/strtod.texi (strtod): Document bugs with
44117         "-0x", "inf", "nan", and hex constants.
44118         * doc/posix-functions/atof.texi (atof): Likewise.
44119         * modules/stdlib (Makefile.am): Support strtod.
44120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44121         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
44122         detect additional strtod bugs.
44123         * lib/stdlib.in.h (rpl_strtod): Add declarations.
44124         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
44125         bool where appropriate.  Parse 'inf' and 'nan'.
44126         * tests/test-strtod.c: New file.
44127         * modules/strtod (Depends-on): Add stdbool, stdlib.
44128         (configure.ac): Turn on module indicator.
44129         * modules/strtod-tests: New module.
44130
44131 2008-03-29  Eric Blake  <ebb9@byu.net>
44132
44133         Fix ftell on mingw.
44134         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
44135         * modules/ftell-tests (Depends-on): Add binary-io.
44136         * modules/ftello-tests (Depends-on): Likewise.
44137         * tests/test-ftell.c (main): Enhance test to cover behavior after
44138         ungetc.  Enforce binary mode.
44139         * tests/test-ftello.c (main): Likewise.
44140
44141         Pass test-freadseek on cygwin.
44142         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
44143         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
44144         ungetc buffer.
44145
44146         * tests/test-fflush2.c (main): Fix typo.
44147
44148 2008-03-29  Bruno Haible  <bruno@clisp.org>
44149
44150         * tests/test-fflush2.c (main): Temporarily disable the contents of
44151         this test.
44152         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
44153         Reported by Eric Blake.
44154
44155 2008-03-28  Simon Josefsson  <simon@josefsson.org>
44156
44157         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
44158         (GC_SHA224_DIGEST_SIZE): Add.
44159
44160         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
44161         (gc_hash_digest_length): Likewise.
44162         (gc_hash_buffer): Likewise.
44163
44164 2008-03-25  Bruno Haible  <bruno@clisp.org>
44165
44166         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
44167         detail which gettext release to use.
44168         Reported by Simon Josefsson.
44169
44170 2008-03-26  Jim Meyering  <meyering@redhat.com>
44171
44172         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
44173         * modules/gnumakefile (clean-GNUmakefile): Also, use
44174         test ... && ... || : syntax rather than if-then ... fi.
44175
44176         gnumakefile: Don't double-quote-expand $(VPATH) value.
44177         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
44178
44179 2008-03-24  Eric Blake  <ebb9@byu.net>
44180
44181         Alter GNUmakefile to install into top directory.
44182         * modules/maintainer-makefile: Split, and add dependency...
44183         * modules/gnumakefile: to this new module.
44184         * build-aux/GNUmakefile: Move...
44185         * top/GNUmakefile: ...here.
44186         * build-aux/maint.mk: Move...
44187         * top/maint.mk: ...here.
44188         * MODULES.html.sh (Support for maintaining...): Document new
44189         module.
44190
44191 2008-03-23  Bruno Haible  <bruno@clisp.org>
44192
44193         * gnulib-tool: New options --vc-files, --no-vc-files.
44194         (func_usage): Document them.
44195         (vc_files): New variable.
44196         (func_import): Consider vc_files.
44197         (func_create_testdir): Set vc_files to empty.
44198         Suggested by Jim Meyering and Karl Berry.
44199
44200 2008-03-23  Bruno Haible  <bruno@clisp.org>
44201
44202         Fix regex compilation error on HP-UX 11.
44203         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
44204         * modules/regex (Files): Add m4/mbstate_t.m4.
44205         Reported by Ton Voon <ton.voon@altinity.com>.
44206
44207 2008-03-23  Bruno Haible  <bruno@clisp.org>
44208
44209         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
44210
44211 2008-03-23  Eric Blake  <ebb9@byu.net>
44212             Bruno Haible  <bruno@clisp.org>
44213
44214         Install files from top/ in the destination directory.
44215         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44216         augmentation also for the files from top/.
44217         (func_import, func_create_testdir): Rewrite file names:
44218         top/filename -> filename.
44219
44220 2008-03-23  Bruno Haible  <bruno@clisp.org>
44221
44222         Tweak "gnulib --version" output.
44223         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
44224
44225 2008-03-23  Bruno Haible  <bruno@clisp.org>
44226
44227         Tweak "gnulib --version" output.
44228         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
44229         rather than contents of ChangeLog, when possible.
44230
44231 2008-03-21  Eric Blake  <ebb9@byu.net>
44232
44233         More --version tweaks.
44234         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
44235         date of last ChangeLog entry.
44236
44237 2008-03-21  Jim Meyering  <meyering@redhat.com>
44238
44239         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
44240
44241 2008-03-20  Eric Blake  <ebb9@byu.net>
44242
44243         VPATH fix.
44244         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44245
44246 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44247
44248         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44249         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44250
44251 2008-03-20  Eric Blake  <ebb9@byu.net>
44252
44253         Sync GNUmakefile with coreutils.
44254         * build-aux/GNUmakefile (have-Makefile): Rename...
44255         (_have-Makefile): ...to this, for namespace consideration.
44256         (GNUmakefile.cfg): Include, if present.
44257         (_autoreconf): Define a default.
44258         (_is-dist-target): New rule for rebuilds to pick up intra-release
44259         version.
44260         (maint-cfg.mk): Rename...
44261         (cfg.mk): ...to this.
44262
44263 2008-03-18  Jim Meyering  <meyering@redhat.com>
44264
44265         New script and module: mktempd
44266         * MODULES.html.sh (maint+release support): Add mktempd.
44267         * build-aux/mktempd: New file.
44268         * modules/mktempd: New file.
44269
44270 2008-03-15  Jim Meyering  <meyering@redhat.com>
44271
44272         Undo last change.
44273         * lib/sha1.c, lib/md5.c: 63 != ~63.
44274         Reported by Andreas Schwab.
44275
44276         sha1.c, md5.c: Hoist a redundant expression.
44277         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44278         "ctx->buflen" only once, before calling *_process_block.
44279         * lib/md5.c (md5_process_bytes): Likewise.
44280
44281 2008-03-14  Eric Blake  <ebb9@byu.net>
44282
44283         Bump copyright year in files generated by gnulib-tool.
44284         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44285         gnulib-tool, rather than hard-coding it.
44286
44287         Fix 'gnulib-tool --version' output to work with git.
44288         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44289         (startup): ...here.
44290         (func_version): Use it to invoke git-version-gen, rather than
44291         relying on CVS keyword expansion.  Modernize wording.
44292         (cvsdatestamp, last_checkin_date, version): Kill unused
44293         variables.
44294
44295 2008-03-12  Jim Meyering  <meyering@redhat.com>
44296
44297         Recognize optional cast of the argument to free.
44298         * build-aux/useless-if-before-free: Update regexps.
44299
44300         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44301
44302 2008-03-11  Bruno Haible  <bruno@clisp.org>
44303
44304         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44305         by a single package.
44306         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44307         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44308         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44309         Reported by Sam Steingold <sds@gnu.org>.
44310
44311 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44312
44313         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44314         repositories.
44315
44316 2008-03-11  Bruno Haible  <bruno@clisp.org>
44317
44318         Avoid conflicts between local macro definitions.
44319         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44320         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44321
44322 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44323             Bruno Haible  <bruno@clisp.org>
44324
44325         Make va_copy work with some version of xlc on AIX 5.1.
44326         * lib/stdarg.in.h: New file.
44327         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44328         On AIX, use a <stdarg.h> file substitute.
44329         * modules/stdarg (Files): Add lib/stdarg.in.h.
44330         (Depends-on): Add include_next.
44331         (Makefile.am): Build a stdarg.h substitute if requested.
44332         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44333
44334 2008-03-10  Bruno Haible  <bruno@clisp.org>
44335
44336         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44337         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44338         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44339
44340 2008-03-10  Bruno Haible  <bruno@clisp.org>
44341
44342         * modules/stdlib (Depends-on): Add include_next, remove
44343         absolute-header.
44344
44345 2008-03-09  Bruno Haible  <bruno@clisp.org>
44346
44347         * lib/freadahead.h (freadahead): Document more precisely.
44348         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44349         the sum of both buffer sizes.
44350         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44351         * NEWS: Document the change.
44352
44353 2008-03-09  Bruno Haible  <bruno@clisp.org>
44354
44355         Extend freadptr to return also the buffer size.
44356         * lib/freadptr.h (freadptr): Add sizep argument.
44357         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44358         (freadptr): Add sizep argument. Determine buffer size like freadahead
44359         does.
44360         * tests/test-freadptr.c: Don't include freadahead.h.
44361         (main): Adapt for new calling convention of freadptr.
44362         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44363         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44364         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44365         tests/test-freadptr2.sh.
44366         (Depends): Remove freadahead.
44367         (TESTS): Add test-freadptr2.sh.
44368         (check_PROGRAMS): Add test-freadptr2.
44369
44370 2008-03-09  Bruno Haible  <bruno@clisp.org>
44371
44372         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44373         Report and solution by Simon Josefsson.
44374
44375 2008-03-06  Bruno Haible  <bruno@clisp.org>
44376
44377         Make fflush after ungetc work on BSD platforms.
44378         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44379         * tests/test-fflush2.c: New file.
44380         * tests/test-fflush2.sh: New file.
44381         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44382         tests/test-fflush2.c.
44383         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44384         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44385
44386 2008-03-06  Eric Blake  <ebb9@byu.net>
44387
44388         Likewise for ftello.
44389         * modules/ftello (Dependencies): Add extensions.
44390         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44391
44392 2008-03-06  Bruno Haible  <bruno@clisp.org>
44393
44394         * modules/fseeko (Dependencies): Add extensions.
44395         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44396         Needed on glibc systems.
44397
44398 2008-03-06  Bruno Haible  <bruno@clisp.org>
44399
44400         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44401         email address.
44402         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44403
44404 2008-03-06  Bruno Haible  <bruno@clisp.org>
44405
44406         * users.txt: Add libgnupdf.
44407
44408 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44409
44410         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44411         (Header File Substitutes, Function Substitutes,
44412         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44413         (Build robot for gnulib): Fix typo.
44414
44415 2008-03-06  Bruno Haible  <bruno@clisp.org>
44416
44417         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44418         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44419
44420 2008-03-06  Bruno Haible  <bruno@clisp.org>
44421
44422         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44423         * doc/gnulib.texi: Include it.
44424
44425 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44426
44427         * modules/func (License): Change license to unlimited; there was
44428         no LGPL parts in the module anyway.
44429
44430 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44431
44432         * modules/__func__: Renamed to modules/func.
44433         * modules/__func__-tests: Renamed to modules/func-tests.
44434         * tests/test-__func__.c: Renamed to tests/test-func.c.
44435         * m4/__func__.m4: Renamed to m4/func.m4.
44436         * doc/gnulib.texi (__func__): Section renamed to func.
44437         Suggested by Eric Blake <ebb9@byu.net>.
44438
44439 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44440
44441         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44442         about __func__.  Make example self-contained.  Suggested by Eric
44443         Blake <ebb9@byu.net>.
44444
44445         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44446         Suggested by Eric Blake <ebb9@byu.net>.
44447
44448 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44449
44450         * modules/__func__: New file.
44451         * modules/__func__-tests: New file.
44452         * tests/test-__func__.c: New file.
44453         * m4/__func__.m4: New file.
44454         * doc/gnulib.texi (__func__): Document __func__ module.
44455
44456 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44457
44458         * modules/byteswap (License): Re-license as LGPLv2+.
44459
44460 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44461
44462         * doc/Makefile: Add pdf target.
44463
44464 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44465
44466         * modules/inline (License): Use 'unlimited', since there are only
44467         *.m4 files in this module.
44468
44469 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44470             Bruno Haible  <bruno@clisp.org>
44471
44472         Add support for HP C 7.1 on OpenVMS 8.3.
44473         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44474
44475 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44476
44477         Update VMS specifics.
44478         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44479
44480 2008-03-02  Jim Meyering  <meyering@redhat.com>
44481
44482         Remove the last dependency on the "free" module.
44483         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44484         Reported by Bob Proulx.
44485
44486         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44487
44488         Remove useless "if" tests before free.  Deprecate "free" module.
44489         * doc/posix-functions/free.texi: Mention that this
44490         module is no longer useful.
44491         * modules/free (Notice): Say this module is obsolete.
44492         * modules/readutmp (Depends-on): Remove free.
44493         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44494         * lib/putenv.c (putenv): Likewise.
44495         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44496         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44497         * tests/test-c-strcasestr.c (main): Likewise.
44498         * tests/test-c-strstr.c (main): Likewise.
44499         * tests/test-mbscasestr1.c (main): Likewise.
44500         * tests/test-mbscasestr2.c (main): Likewise.
44501         * tests/test-mbsstr1.c (main): Likewise.
44502         * tests/test-mbsstr2.c (main): Likewise.
44503         * tests/test-memmem.c (main): Likewise.
44504         * tests/test-strcasestr.c (main): Likewise.
44505         * tests/test-striconv.c (main): Likewise.
44506         * tests/test-striconveh.c (main): Likewise.
44507         * tests/test-striconveha.c (main): Likewise.
44508         * tests/test-strstr.c (main): Likewise.
44509
44510         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44511
44512         bootstrap: sync from coreutils again
44513         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44514
44515 2008-03-01  Jim Meyering  <meyering@redhat.com>
44516
44517         bootstrap: sync from coreutils
44518         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44519         also when the target doesn't exist.
44520
44521 2008-03-01  Eric Blake  <ebb9@byu.net>
44522
44523         Fix bugs in last patch.
44524         * lib/memchr2.c (memchr2): Fix typo.
44525         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44526         extension.
44527         Reported by Bruce Korb.
44528
44529         New module 'memchr2'.
44530         * modules/memchr2: New file.
44531         * modules/memchr2-tests: Likewise.
44532         * lib/memchr2.h: Likewise.
44533         * lib/memchr2.c: Likewise, based on memchr.c.
44534         * tests/test-memchr2.c: New test.
44535         * MODULES.html.sh (String handling): Add memchr2.
44536
44537 2008-02-29  Bruno Haible  <bruno@clisp.org>
44538
44539         * modules/freadseek-tests: New file.
44540         * tests/test-freadseek.sh: New file.
44541         * tests/test-freadseek.c: New file.
44542
44543         New module 'freadseek'.
44544         * modules/freadseek: New file.
44545         * lib/freadseek.h: New file.
44546         * lib/freadseek.c: New file.
44547         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44548
44549 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44550
44551         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44552         wydawca.
44553
44554         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44555         program_invocation_name and program_invocation_short_name are
44556         present.
44557
44558 2008-02-28  Bruno Haible  <bruno@clisp.org>
44559
44560         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44561         * tests/test-freadptr.sh: Also test non-seekable stdin.
44562
44563 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44564
44565         * build-aux/bootstrap (source_base, m4_base)
44566         (doc_base, tests_base): New variables.
44567         (gnulib_tool_options): Do not hardcode base directories, use
44568         the above variables instead.
44569
44570 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44571
44572         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44573
44574 2008-02-28  Bruno Haible  <bruno@clisp.org>
44575
44576         * modules/freadptr-tests: New file.
44577         * tests/test-freadptr.sh: New file.
44578         * tests/test-freadptr.c: New file.
44579
44580         New module 'freadptr'.
44581         * modules/freadptr: New file.
44582         * lib/freadptr.h: New file.
44583         * lib/freadptr.c: New file.
44584         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44585
44586 2008-02-26  Karl Berry  <karl@freefriends.org>
44587
44588         Sync from Libtool:
44589         * libltdl/argz.c (argz_add, argz_count): New functions.
44590         * libltdl/argz.in.h: Declare them.
44591         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44592
44593 2008-02-22  Bruno Haible  <bruno@clisp.org>
44594
44595         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44596         is a pointer type.  Needed for HP-UX 10.
44597         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44598         * doc/posix-functions/gmtime_r.texi: Likewise.
44599         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44600
44601 2008-02-24  Bruno Haible  <bruno@clisp.org>
44602
44603         * modules/environ-tests: New file.
44604         * tests/test-environ.c: New file.
44605
44606         New module 'environ'.
44607         * modules/environ: New file.
44608         * lib/unistd.in.h (environ): New declaration.
44609         * m4/environ.m4: New file.
44610         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44611         after use.
44612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44613         HAVE_DECL_ENVIRON.
44614         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44615         HAVE_DECL_ENVIRON.
44616         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44617         wrong claim that 'environ' is missing on some systems.
44618         * modules/execute (Depends-on): Add environ.
44619         * lib/execute.c (environ): Remove fallback declaration.
44620         * modules/pipe (Depends-on): Add environ.
44621         * lib/pipe.c (environ): Remove fallback declaration.
44622         * modules/setenv (Depends-on): Add environ.
44623         * lib/setenv.c (environ): Remove fallback declaration.
44624         * modules/unsetenv (Depends-on): Add environ.
44625         * lib/unsetenv.c (environ): Remove fallback declaration.
44626         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44627         m4/environ.m4.
44628         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44629         (gl_PREREQ_UNSETENV): Likewise.
44630
44631 2008-02-24  Bruno Haible  <bruno@clisp.org>
44632
44633         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44634
44635 2008-02-20  Bob Proulx  <bob@proulx.com>
44636
44637         Enable use of older two part flavor 'git describe'.
44638         * build-aux/git-version-gen: If using the older two part flavor of
44639         git version then recreate the third part now present in the
44640         newer three part flavor of git describe.
44641
44642 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44643
44644         * lib/fts.c (fts_build): Typo correction to comment.
44645
44646 2008-02-17  Bruno Haible  <bruno@clisp.org>
44647
44648         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44649         generating no-op conflicts.
44650
44651 2008-02-17  Bruno Haible  <bruno@clisp.org>
44652
44653         Speed up by 10%.
44654         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44655         result_entries, rather than an index-based loop.
44656
44657 2008-02-17  Bruno Haible  <bruno@clisp.org>
44658
44659         Speed up by 25%.
44660         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44661         'hashcode_cached'.
44662         (entry_create): New function.
44663         (entry_hashcode): Use the cached hashcode if possible.
44664         (read_changelog_file, try_split_merged_entry): Use entry_create.
44665
44666 2008-02-17  Bruno Haible  <bruno@clisp.org>
44667
44668         Speed up from O(n^2) to O(n) for long ChangeLog files.
44669         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44670         (read_changelog_file): Change implementation of entries_reversed list
44671         to rbtreehash.
44672         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44673
44674 2008-02-17  Bruno Haible  <bruno@clisp.org>
44675
44676         New option --split-merged-entry.
44677         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44678         (find_paragraph_end, try_split_merged_entry): New functions.
44679         (long_options): Add option --split-merged-entry.
44680         (usage): Document option --split-merged-entry.
44681         (main): Implement option --split-merged-entry.
44682         Reported by Eric Blake.
44683
44684 2008-02-17  Bruno Haible  <bruno@clisp.org>
44685
44686         * lib/git-merge-changelog.c: Include c-strstr.h.
44687         (main): Support the "git pull --rebase" situation.
44688         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44689         Reported by Eric Blake.
44690
44691 2008-02-16  Eric Blake  <ebb9@byu.net>
44692
44693         Avoid doubling \ in common case of "c-maybe" quoting style.
44694         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44695         eliding outer quotes.
44696         * lib/quotearg.h: Document this.
44697         * tests/test-quotearg.c (result_strings, inputs, results_g)
44698         (flag_results, locale_results): Test it by adding a new string to
44699         each test group.
44700         (compare_strings): Test new string.
44701
44702 2008-02-13  Eric Blake  <ebb9@byu.net>
44703
44704         Avoid trigraph quoting in default output.
44705         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44706         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44707         unless explicitly requested.
44708         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44709
44710 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44711
44712         Don't rely on signed integer overflowing to negative value.
44713         * lib/getugroups.c (getugroups): Include <limits.h>.
44714         Instead, compare against INT_MAX, and increment only if the test passes.
44715
44716 2008-02-13  Jim Meyering  <meyering@redhat.com>
44717         and Eric Blake  <ebb9@byu.net>
44718
44719         Avoid shadowing warning and compile errors on Linux.
44720         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44721         forwarding macros on Linux.
44722         (dcgettext): Define a stub, for Linux.
44723         (results_g, main): Avoid warnings.
44724
44725 2008-02-12  Eric Blake  <ebb9@byu.net>
44726
44727         Silence warning in last patch.
44728         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44729
44730         Quotearg part 4: add tests, fix c-maybe colon quoting.
44731         * lib/quotearg.h: Improve documentation.
44732         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44733         escapes when adding outer quotes.  When quoting trigraphs, use
44734         valid C notation.  When quoting NUL, omit extra characters if next
44735         character is not digit.  Alter prototype.
44736         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44737         callers.
44738         * modules/quotearg-tests: New module.
44739         * tests/test-quotearg.c: New test.
44740
44741 2008-02-07  Eric Blake  <ebb9@byu.net>
44742
44743         Quotearg part 3: add flag to control outer quote elision.
44744         * lib/quotearg.h (c_maybe_quoting_style): New style.
44745         (enum quoting_flags): Better documentation of flags.
44746         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44747         c-maybe style.
44748         (quotearg_buffer_restyled): Handle new flag to elide outer
44749         quotes.
44750
44751         Quotearg part 2: add flag that can control NUL elision.
44752         * lib/quotearg.h (set_quoting_flags): New prototype.
44753         * lib/quotearg.c (struct quoting_options): Add flag field.
44754         (set_quoting_flags): New function.
44755         (quotearg_buffer_restyled): Add flags parameter.
44756         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44757         (quotearg_n_options): Set the flag, since length cannot be
44758         returned.
44759         (quoting_options_from_style): Default flags correctly.
44760
44761         Quotearg part 1: more wrappers, restore quotearg_char state.
44762         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44763         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44764         (quotearg_colon_mem): New wrappers.
44765         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44766         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44767         functions.
44768         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44769         (quotearg_colon_mem): New functions.
44770
44771 2008-02-11  Bruno Haible  <bruno@clisp.org>
44772
44773         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44774         library in the current directory: it does not work with parallel make.
44775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44776
44777 2008-02-11  Bruno Haible  <bruno@clisp.org>
44778
44779         * .gitattributes: New file.
44780
44781 2008-02-11  Jim Meyering  <meyering@redhat.com>
44782
44783         useless-if-before-free: Fix reversed exit values.
44784         * build-aux/useless-if-before-free: Use correct values
44785         for EXIT_MATCH and EXIT_NO_MATCH.
44786
44787         * build-aux/useless-if-before-free: Close stdout carefully.
44788
44789 2008-02-10  Bruno Haible  <bruno@clisp.org>
44790
44791         New module 'git-merge-changelog'.
44792         * modules/git-merge-changelog: New file.
44793         * lib/git-merge-changelog.c: New file.
44794
44795 2008-02-10  Jim Meyering  <meyering@redhat.com>
44796
44797         useless-if-before-free: New option: --list (-l).
44798
44799         useless-if-before-free: Don't exit immediately upon open failure.
44800         * build-aux/useless-if-before-free: Exit 2 for errors.
44801         Upon failure to open a file, don't exit immediately.
44802         Rather, just warn and continue with any remaining files.
44803
44804 2008-02-10  Bruno Haible  <bruno@clisp.org>
44805
44806         New abstract list operation 'node_set_value'.
44807         * lib/gl_list.h (gl_list_node_set_value): New function.
44808         (struct gl_list_implementation): New field node_set_value.
44809         * lib/gl_list.c (gl_list_node_set_value): New function.
44810         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44811         (gl_array_list_implementation): Update.
44812         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44813         (gl_carray_list_implementation): Update.
44814         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44815         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44816         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44817         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44818         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44819         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44820         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44821         Update.
44822         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44823         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44824         (gl_sublist_list_implementation): Update.
44825
44826 2008-02-10  Bruno Haible  <bruno@clisp.org>
44827
44828         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44829         Needed when ELEMENT is #defined to 'some_type *'.
44830
44831 2008-02-10  Jim Meyering  <meyering@redhat.com>
44832
44833         New script and module: useless-if-before-free
44834         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44835         * build-aux/useless-if-before-free: New file.
44836         * modules/useless-if-before-free: New file.
44837
44838         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44839
44840         xstrtol_error: Fix typo.
44841         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44842         s/exit_failure/exit_status/.
44843
44844 2008-02-09  Jim Meyering  <meyering@redhat.com>
44845
44846         New script and module: gitlog-to-changelog
44847         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44848         * modules/gitlog-to-changelog: New file.
44849         * build-aux/gitlog-to-changelog: New file.
44850
44851 2008-02-08  Jim Meyering  <meyering@redhat.com>
44852
44853         Avoid two "parameter unused" warnings.
44854         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44855         Mark "st" as used.
44856
44857         Use "git COMMAND", not "git-COMMAND".
44858         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44859         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44860         * build-aux/git-version-gen: Use "git status", not "git-status".
44861
44862 2008-02-07  Bruno Haible  <bruno@clisp.org>
44863
44864         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44865         Avoids a crash on Windows Vista.
44866         Reported by Adam Strzelecki <ono@java.pl> via
44867         Simon Josefsson <simon@josefsson.org>.
44868
44869 2008-02-06  Bruno Haible  <bruno@clisp.org>
44870
44871         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44872         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44873         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44875         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44876         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44877         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44878         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44879         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44880         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44881         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44882         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44883         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44884         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44885         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44886         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44887         left-adjust flag.
44888         * tests/test-snprintf-posix.h (test_function): Likewise.
44889         * tests/test-sprintf-posix.h (test_function): Likewise.
44890         * tests/test-vasprintf-posix.c (test_function): Likewise.
44891         * doc/posix-functions/fprintf.texi: Update.
44892         * doc/posix-functions/printf.texi: Update.
44893         * doc/posix-functions/snprintf.texi: Update.
44894         * doc/posix-functions/sprintf.texi: Update.
44895         * doc/posix-functions/vfprintf.texi: Update.
44896         * doc/posix-functions/vprintf.texi: Update.
44897         * doc/posix-functions/vsnprintf.texi: Update.
44898         * doc/posix-functions/vsprintf.texi: Update.
44899         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44900
44901 2008-02-06  Bruno Haible  <bruno@clisp.org>
44902
44903         Fix bug introduced on 2008-01-26.
44904         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44905
44906 2008-02-06  Bruno Haible  <bruno@clisp.org>
44907
44908         Fix bug introduced on 2007-06-10.
44909         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44910         !NEED_PRINTF_FLAG_ZERO.
44911
44912 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44913
44914         getloadavg: use libperfstat on AIX5
44915         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44916
44917 2008-02-03  Bruno Haible  <bruno@clisp.org>
44918
44919         * lib/diffseq.h: Add comments about required #includes.
44920         Reported by Michael Biggs <gnulib@doubleplum.net>.
44921
44922 2008-02-01  Bruno Haible  <bruno@clisp.org>
44923
44924         * users.txt: Add gnuit.
44925
44926 2008-01-31  Bruno Haible  <bruno@clisp.org>
44927
44928         * lib/md4.c (set_uint32): Mark as inline.
44929         * lib/md5.c (set_uint32): Likewise.
44930         * lib/sha1.c (set_uint32): Likewise.
44931         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44932         * m4/md5.m4 (gl_MD5): Likewise.
44933         * m4/sha1.m4 (gl_SHA1): Likewise.
44934
44935 2008-01-31  Jim Meyering  <meyering@redhat.com>
44936
44937         Use "sizeof VAR", rather than a literal "4".
44938         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44939         * lib/md4.c (md4_read_ctx): Likewise.
44940         * lib/sha1.c (sha1_read_ctx): Likewise.
44941
44942 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44943
44944         * tests/test-sha1.c: New file, based on test-md5.c.
44945
44946         * modules/crypto/sha1-tests: New file.
44947
44948 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44949
44950         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44951
44952 2008-01-31  Jim Meyering  <meyering@redhat.com>
44953
44954         Prefer "sizeof v" over the equivalent "4".
44955         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44956         * lib/md5.c (set_uint32): Likewise.
44957         * lib/sha1.c (set_uint32): Likewise.
44958
44959 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44960
44961         * lib/sha1.c (set_uint32): Mark function as static.
44962
44963 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44964
44965         md2: clarify comments to say that alignment is not required.
44966         * lib/md2.h: Remove warning about alignment in comment.
44967         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44968         never been required.
44969
44970 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44971
44972         md4: adapt alignment constraint fix from sha1.
44973         * lib/md4.c (set_uint32): New function, from sha1.c
44974         (md4_read_ctx): Use it.
44975         (md4_finish_ctx): Doc fix.
44976         * lib/md4.h: Doc fix.
44977
44978 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44979
44980         md5: adapt alignment constraint fix from sha1.
44981         * lib/md5.c (set_uint32): New function, from sha1.c
44982         (md5_read_ctx): Use it.
44983         (md5_finish_ctx): Doc fix.
44984         * lib/md5.h: Doc fix.
44985
44986 2008-01-30  Peter Palfrader  <weasel@debian.org>
44987
44988         sha1: remove the result buffer alignment constraint
44989         * lib/sha1.c (set_uint32): New function.
44990         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44991         constraint.
44992         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44993         * lib/sha1.h: Likewise.
44994
44995 2008-01-30  Andreas Schwab  <schwab@suse.de>
44996             Bruno Haible  <bruno@clisp.org>
44997
44998         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44999         correct definition of LDBL_MIN_EXP.
45000
45001 2008-01-30  Karl Berry  <karl@gnu.org>
45002
45003         * config/srclist-update: try to preserve x bit on updates.
45004         * config/srclistvars.sh: update for karl.
45005
45006 2008-01-29  Jim Meyering  <meyering@redhat.com>
45007
45008         vasnprintf.c: Avoid warning about unused label
45009         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
45010         "overflow" label definition and associated code with the
45011         same cpp condition that guards the sole use of that label.
45012
45013 2008-01-26  Bruno Haible  <bruno@clisp.org>
45014
45015         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
45016         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
45017         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
45018         * lib/isnanl-nolibm.h (isnanl): Likewise.
45019         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45020
45021 2008-01-26  Bruno Haible  <bruno@clisp.org>
45022
45023         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
45024         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
45025
45026 2008-01-26  Bruno Haible  <bruno@clisp.org>
45027
45028         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
45029         GCC >= 4.0 built-in.
45030         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
45031
45032 2008-01-26  Bruno Haible  <bruno@clisp.org>
45033
45034         Rename isnan, applicable to 'double' only, to isnand.
45035         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
45036         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
45037         (configure.ac): Update.
45038         (Include): Replace "isnan.h" with "isnand.h".
45039         * m4/isnand.m4: Renamed from m4/isnan.m4.
45040         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
45041         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
45042         instead of isnan.c.
45043         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
45044         instead of HAVE_ISNAN_IN_LIBC.
45045         (isnand): Renamed from isnan.
45046         * lib/isnand.c: New file.
45047         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
45048         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
45049         (Makefile.am): Update.
45050         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
45051         Include isnand.h instead of isnan.h.
45052         (main): Test isnand instead of isnan.
45053         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
45054         isnan-nolibm.
45055         * modules/frexp (Depends-on): Likewise.
45056         * modules/frexp-tests (Depends-on): Likewise.
45057         * modules/frexp-nolibm (Depends-on): Likewise.
45058         * modules/frexp-nolibm-tests (Depends-on): Likewise.
45059         * modules/isfinite (Depends-on): Likewise.
45060         * modules/round-tests (Depends-on): Likewise.
45061         * modules/signbit (Depends-on): Likewise.
45062         * modules/signbit-tests (Depends-on): Likewise.
45063         * modules/snprintf-posix (Depends-on): Likewise.
45064         * modules/sprintf-posix (Depends-on): Likewise.
45065         * modules/trunc-tests (Depends-on): Likewise.
45066         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45067         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45068         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45069         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45070         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45071         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45072         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45073         * modules/vasnprintf-posix (Depends-on): Likewise.
45074         * modules/vasprintf-posix (Depends-on): Likewise.
45075         * modules/vfprintf-posix (Depends-on): Likewise.
45076         * modules/vsnprintf-posix (Depends-on): Likewise.
45077         * modules/vsprintf-posix (Depends-on): Likewise.
45078         * lib/frexp.c: Include isnand.h instead of isnan.h.
45079         (ISNAN): Set to isnand instead of isnan.
45080         * lib/isfinite.c: Include isnand.h instead of isnan.h.
45081         (gl_isfinited): Use isnand instead of isnan.
45082         * lib/signbitd.c: Include isnand.h instead of isnan.h.
45083         (gl_signbitd): Use isnand instead of isnan.
45084         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
45085         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
45086         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
45087         (main): Use isnand instead of isnan.
45088         * tests/test-round1.c: Include isnand.h.
45089         (main): Use isnand instead of isnan.
45090         * tests/test-round2.c: Include isnand.h instead of isnan.h.
45091         (ISNAN): Set to isnand instead of isnan.
45092         * tests/test-trunc1.c: Include isnand.h.
45093         (main): Use isnand instead of isnan.
45094         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
45095         (equal): Use isnand instead of isnan.
45096         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
45097         isnand-nolibm.
45098         * NEWS: Mention the change.
45099
45100 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45101             Bruno Haible  <bruno@clisp.org>
45102
45103         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
45104         the GCC builtins for signbits are present and set
45105         REPLACE_SIGNBIT_USING_GCC if so.
45106         * lib/math.in.h (signbit): Define using GCC builtins if
45107         REPLACE_SIGNBIT_USING_GCC is set.
45108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
45109         REPLACE_SIGNBIT_USING_GCC.
45110         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
45111
45112 2008-01-25  Jim Meyering  <meyering@redhat.com>
45113
45114         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
45115         * lib/poll.c: Include <config.h>, not "config.h".
45116         * tests/test-getaddrinfo.c: Likewise.
45117
45118 2008-01-25  Simon Josefsson  <simon@josefsson.org>
45119
45120         * modules/sockets-tests: New file.
45121
45122 2008-01-24  Simon Josefsson  <simon@josefsson.org>
45123
45124         * modules/sockets: New module, can be used to call WSA_Startup and
45125         WSA_Cleanup when needed.
45126
45127         * lib/sockets.h, lib/sockets.c: New files.
45128
45129         * m4/sockets.m4: New file.
45130
45131         * tests/test-sockets.c: New file.
45132
45133 2008-01-19  Bruno Haible  <bruno@clisp.org>
45134
45135         * doc/posix-headers: Renamed from doc/headers.
45136         * doc/posix-functions: Renamed from doc/functions.
45137         * doc/gnulib.texi: Update.
45138
45139 2008-01-19  Bruno Haible  <bruno@clisp.org>
45140
45141         * doc/glibc-functions/strcasestr.texi: Include contents of
45142         doc/functions/strcasestr.texi, fixing the list of platforms.
45143         * doc/functions/strcasestr.texi: Remove file.
45144
45145 2008-01-19  Bruno Haible  <bruno@clisp.org>
45146
45147         * doc/glibc-functions/memmem.texi: Include contents of
45148         doc/functions/memmem.texi.
45149         * doc/functions/memmem.texi: Remove file.
45150
45151 2008-01-18  Bruno Haible  <bruno@clisp.org>
45152
45153         * doc/glibc-functions/*.texi: New files.
45154         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
45155         to use the new files.
45156
45157 2008-01-17  Bruno Haible  <bruno@clisp.org>
45158
45159         * tests/test-gethostname.c (main): Fix printf statement.
45160
45161 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45162
45163         * modules/gethostname-tests: New file.
45164
45165         * tests/test-gethostname.c: New file.
45166
45167 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45168
45169         * lib/gethostname.c: Include string.h unconditionally, strncpy is
45170         used by the UNAME case.  Reported by Bruno Haible
45171         <bruno@clisp.org>.
45172
45173 2008-01-17  Eric Blake  <ebb9@byu.net>
45174
45175         Convert c-strcasestr to be more efficient.
45176         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
45177         (Depends-on): Add c-strcase, remove malloca, strnlen.
45178         * tests/test-c-strcasestr.c (main): Enhance test.
45179         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
45180
45181 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45182
45183         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
45184         Use it in creating po/Makevars.
45185
45186 2008-01-15  Simon Josefsson  <simon@josefsson.org>
45187
45188         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
45189         Applications that requires it should initialize libgcrypt
45190         manually.
45191
45192 2008-01-16  Simon Josefsson  <simon@josefsson.org>
45193
45194         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
45195
45196 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
45197
45198         Fix problem with getdate on mingw32 reported by Simon Josefsson
45199         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
45200         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
45201         tzname", when deciding whether to declare tzname.
45202         * lib/strftime.c (tzname): Likewise.
45203
45204 2008-01-15  Bruno Haible  <bruno@clisp.org>
45205
45206         Work around a MacOS X 10.5 bug in frexpl().
45207         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
45208         * doc/functions/frexpl.texi: Document the bug.
45209         Reported by Elias Pipping <pipping@gentoo.org>.
45210
45211 2008-01-14  Eric Blake  <ebb9@byu.net>
45212
45213         Touch up previous patch.
45214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
45215         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
45216
45217         Convert strcasestr module to use Two-Way algorithm.
45218         * modules/strcasestr-simple: New module, based on the old
45219         strcasestr, but with Two-Way rather than KMP.
45220         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
45221         * lib/string.in.h (rpl_strcasestr): Declare.
45222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
45223         performance.
45224         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
45225         * modules/string (Makefile.am): Support strcasestr.
45226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45227         * modules/strcasestr-tests (Depends-on): Check for alarm.
45228         * tests/test-strcasestr.c: Augment test.
45229         * lib/str-two-way.h: Clean up stray macro.
45230         * NEWS: Document new module.
45231         * MODULES.html.sh (string handling): Likewise.
45232         * doc/functions/strcasestr.texi: New file.
45233         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
45234         here, since it is not a POSIX function.
45235
45236 2008-01-14  Colin Watson  <cjwatson@debian.org>
45237             Bruno Haible  <bruno@clisp.org>
45238
45239         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45240         works fine; if not, set REPLACE_STRSIGNAL.
45241         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45243         REPLACE_STRSIGNAL.
45244         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45245         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45246         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45247
45248 2008-01-14  Bruno Haible  <bruno@clisp.org>
45249
45250         * modules/strsignal (Include): Change to <string.h>.
45251
45252 2008-01-14  Colin Watson  <cjwatson@debian.org>
45253
45254         * modules/argp (Notice): Add a notice recommending to change
45255         XGETTEXT_OPTIONS.
45256         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45257
45258 2008-01-13  Colin Watson  <cjwatson@debian.org>
45259
45260         * modules/strsignal-tests: New file.
45261         * tests/test-strsignal.c: New file.
45262
45263         * lib/strsignal.c: New file, from glibc with modifications.
45264         * lib/siglist.h: New file, from glibc with modifications.
45265         * lib/string.in.h (strsignal): New declaration.
45266         * m4/strsignal.m4: New file.
45267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45268         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45269         * modules/strsignal: New file.
45270         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45271         HAVE_DECL_STRSIGNAL.
45272
45273 2008-01-13  Bruno Haible  <bruno@clisp.org>
45274
45275         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45276         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45277         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45278         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45279
45280 2008-01-13  Bruno Haible  <bruno@clisp.org>
45281
45282         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45283         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45284         * lib/argp.h (__attribute__): Likewise.
45285         * lib/c-stack.c (__attribute__): Likewise.
45286         * lib/error.h (__attribute__): Likewise.
45287         * lib/fts.c (__attribute__): Likewise.
45288         * lib/openat.h (__attribute__): Likewise.
45289         * lib/stdio.in.h (__attribute__): Likewise.
45290         * lib/string.in.h (__attribute__): Likewise.
45291         * lib/utimens.c (__attribute__): Likewise.
45292         * lib/vasnprintf.h (__attribute__): Likewise.
45293         * lib/xalloc.h (__attribute__): Likewise.
45294         * lib/xprintf.h (__attribute__): Likewise.
45295         * lib/xstrtol.h (__attribute__): Likewise.
45296         * lib/xvasprintf.h (__attribute__): Likewise.
45297
45298 2008-01-12  Bruno Haible  <bruno@clisp.org>
45299
45300         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45301         * doc/glibc-headers/a.out.texi: New file.
45302         * doc/glibc-headers/aliases.texi: New file.
45303         * doc/glibc-headers/alloca.texi: New file.
45304         * doc/glibc-headers/ar.texi: New file.
45305         * doc/glibc-headers/argp.texi: New file.
45306         * doc/glibc-headers/argz.texi: New file.
45307         * doc/glibc-headers/byteswap.texi: New file.
45308         * doc/glibc-headers/crypt.texi: New file.
45309         * doc/glibc-headers/endian.texi: New file.
45310         * doc/glibc-headers/envz.texi: New file.
45311         * doc/glibc-headers/err.texi: New file.
45312         * doc/glibc-headers/error.texi: New file.
45313         * doc/glibc-headers/execinfo.texi: New file.
45314         * doc/glibc-headers/fpu_control.texi: New file.
45315         * doc/glibc-headers/fstab.texi: New file.
45316         * doc/glibc-headers/fts.texi: New file.
45317         * doc/glibc-headers/getopt.texi: New file.
45318         * doc/glibc-headers/ieee754.texi: New file.
45319         * doc/glibc-headers/ifaddrs.texi: New file.
45320         * doc/glibc-headers/libintl.texi: New file.
45321         * doc/glibc-headers/mcheck.texi: New file.
45322         * doc/glibc-headers/mntent.texi: New file.
45323         * doc/glibc-headers/obstack.texi: New file.
45324         * doc/glibc-headers/paths.texi: New file.
45325         * doc/glibc-headers/printf.texi: New file.
45326         * doc/glibc-headers/pty.texi: New file.
45327         * doc/glibc-headers/resolv.texi: New file.
45328         * doc/glibc-headers/shadow.texi: New file.
45329         * doc/glibc-headers/sysexits.texi: New file.
45330         * doc/glibc-headers/ttyent.texi: New file.
45331
45332 2008-01-12  Jim Meyering  <meyering@redhat.com>
45333
45334         announce-gen: emit Gnulib's git-based version string.
45335         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45336         New option --gnulib-version=V, where V is expected to be
45337         the output of running git describe in the gnulib directory.
45338         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45339         not useful, and plan to stop publishing an xdelta file with each
45340         coreutils release.
45341
45342         * build-aux/announce-gen: Also check for lzma-compressed files.
45343
45344 2008-01-11  Bruno Haible  <bruno@clisp.org>
45345
45346         * tests/test-memmem.c (main): Increase maximum allowed time.
45347         * tests/test-strstr.c (main): Likewise.
45348
45349 2008-01-11  Bruno Haible  <bruno@clisp.org>
45350
45351         * doc/functions/memmem.texi: Add more precisions about platforms.
45352         * doc/functions/strstr.texi: Likewise.
45353
45354 2008-01-10  Eric Blake  <ebb9@byu.net>
45355
45356         * m4/strstr.m4: Delete cruft from copy-n-paste.
45357         Reported by Bruno Haible.
45358
45359 2008-01-10  Bruno Haible  <bruno@clisp.org>
45360
45361         Make c-strstr rely on strstr.
45362         * lib/c-strstr.c: Don't include str-kmp.h.
45363         (c_strstr): Define in terms of strstr.
45364         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45365         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45366
45367 2008-01-10  Bruno Haible  <bruno@clisp.org>
45368
45369         * doc/gnulib.texi (String Functions in C Locale): New section.
45370         * doc/c-ctype.texi: New file.
45371         * doc/c-strcase.texi: New file.
45372         * doc/c-strcaseeq.texi: New file.
45373         * doc/c-strcasestr.texi: New file.
45374         * doc/c-strstr.texi: New file.
45375         * doc/c-strtod.texi: New file.
45376         * doc/c-strtold.texi: New file.
45377
45378 2008-01-10  Eric Blake  <ebb9@byu.net>
45379
45380         * lib/relocatable.h: Fix a comment.
45381
45382 2008-01-10  Eric Blake  <ebb9@byu.net>
45383
45384         Share two-way algorithm.
45385         * lib/str-two-way.h: New file, merged from...
45386         * lib/memmem.c: ...here...
45387         * lib/strstr.c: ...and here.
45388         * modules/memmem (Files): Use it.
45389         * modules/strstr (Files): Likewise.
45390
45391         Avoid quadratic strstr implementations.
45392         * lib/strstr.c: New file.
45393         * m4/strstr.m4: Likewise.
45394         * modules/strstr: Likewise.
45395         * modules/strstr-tests: Likewise.
45396         * tests/test-strstr.c: Likewise.
45397         * lib/string.in.h (rpl_strstr): Declare.
45398         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45400         * modules/string (Makefile.am): Likewise.
45401         * MODULES.html.sh (string handling): Mention new module.
45402         * doc/functions/strstr.texi (strstr): Document the bug.
45403
45404 2008-01-10  Bruno Haible  <bruno@clisp.org>
45405
45406         * lib/relocatable.h (relocate): State whether result is freshly
45407         allocated or not.
45408         * lib/relocatable.c (relocate): Return a freshly allocated string
45409         instead of a pointer to a privately held string.
45410         Reported by Sylvain Beucler <beuc@gnu.org>.
45411
45412 2008-01-10  Colin Watson  <cjwatson@debian.org>
45413
45414         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45415         s/S_ISNLK/S_ISLNK/.
45416
45417 2008-01-09  Bruno Haible  <bruno@clisp.org>
45418
45419         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45420         and other files.
45421         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45422         if it's only a guess.
45423         * modules/memmem: Simplify by depending on memmem-simple.
45424
45425 2008-01-09  Bruno Haible  <bruno@clisp.org>
45426
45427         Work around OpenBSD 4.0 tdelete() bug.
45428         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45429         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45430         macros and don't redefine the enum values.
45431         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45432         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45433         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45434
45435 2008-01-09  Bruno Haible  <bruno@clisp.org>
45436
45437         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45438         (main): Don't perform the tests if setlocale did not install a UTF-8
45439         locale. Needed on OpenBSD 4.0.
45440         * modules/wcwidth-tests (Depends-on): Add localcharset.
45441
45442 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45443
45444         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45445         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45446         * NEWS: announce this.
45447         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45448
45449 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45450         and Eric Blake  <ebb9@byu.net>
45451
45452         Add memmem-simple module.
45453         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45454         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45455         * modules/memmem-simple: New file.
45456         * modules/memmem (Description): Tweak.
45457         * MODULES.html.sh (string handling): Mention new module.
45458         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45459         addressed by memmem-simple.
45460         * NEWS: Document the difference.
45461
45462 2008-01-09  Eric Blake  <ebb9@byu.net>
45463
45464         Give gcc some memmem optimization hints.
45465         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45466         (strcasestr): Declare as pure.
45467         * modules/memmem (Maintainer): Claim my implementation.
45468
45469 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45470
45471         Support AIX 6.1 and higher.
45472         * build-aux/config.libpath: Likewise.
45473         * build-aux/config.rpath: Likewise.
45474
45475 2008-01-08  Jim Meyering  <meyering@redhat.com>
45476             Bruno Haible  <bruno@clisp.org>
45477
45478         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45479         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45480         Reported by Peter Fales in
45481         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45482
45483 2008-01-08  Bruno Haible  <bruno@clisp.org>
45484
45485         * modules/unictype/category-of (Depends-on): Add
45486         unictype/category-none.
45487         * modules/unictype/category-and-tests (Depends-on): Add
45488         unictype/category-{L,N,Lu,Nd}.
45489         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45490         * modules/unictype/category-or-tests (Depends-on): Add
45491         unictype/category-{L,N}.
45492         * modules/unictype/category-name-tests (Depends-on): Add
45493         unictype/category-{Z,Nl}.
45494         Reported by Simon Josefsson.
45495
45496 2008-01-08  Bruno Haible  <bruno@clisp.org>
45497
45498         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45499         convention better.
45500         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45501         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45502         Reported by Peter Miller <millerp@canb.auug.org.au>.
45503
45504 2008-01-08  Eric Blake  <ebb9@byu.net>
45505
45506         Rewrite memmem to guarantee linear complexity without malloc.
45507         * lib/memmem.c (memmem): Use Two-Way rather than
45508         Knuth-Morris-Pratt, to allow O(1) space usage.
45509         (critical_factorization, two_way_short_needle)
45510         (two_way_long_needle): New functions.
45511         (knuth_morris_pratt): Delete.
45512         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45513         Add stdint.
45514         * tests/test-memmem.c (main): Add tests for periodic needle and
45515         sublinear performance.
45516         * doc/functions/memmem.texi (memmem): Document other deficiencies
45517         in cygwin and older glibc.
45518
45519 2008-01-08  Bruno Haible  <bruno@clisp.org>
45520
45521         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45522         augmentation.
45523
45524 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45525
45526         Add a configure time option: --disable-acl.
45527         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45528         AC_ARG_ENABLE(acl).
45529
45530 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45531
45532         * tests/test-localename.c: Don't include obsolete "setenv.h".
45533
45534         * modules/localename-tests (Depends-on): Need unsetenv.
45535
45536 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45537
45538         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45539
45540 2008-01-06  Colin Watson  <cjwatson@debian.org>
45541
45542         * users.txt: Add man-db.
45543
45544 2008-01-07  Bruno Haible  <bruno@clisp.org>
45545
45546         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45547         previous section name.
45548
45549 2008-01-07  Bruno Haible  <bruno@clisp.org>
45550
45551         * lib/progname.c (set_program_name): Don't strip off a leading
45552         "lt-" prefix outside a .libs directory.
45553         Suggested by Paul Eggert.
45554
45555 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45556             Bruno Haible  <bruno@clisp.org>
45557
45558         Improve memory cleanup in 'relocatable' module.
45559         * lib/relocatable.h (compute_curr_prefix): Change return type to
45560         'char *'.
45561         * lib/relocatable.c (compute_curr_prefix): Change return type to
45562         'char *'. Free curr_installdir after use.
45563         (relocate): Free curr_prefix_better after use.
45564         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45565
45566 2008-01-01  Bruno Haible  <bruno@clisp.org>
45567
45568         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45569         failure on older glibc systems.
45570         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45571
45572 2008-01-05  Eric Blake  <ebb9@byu.net>
45573
45574         Avoid quadratic system memmem.
45575         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45576         Reported by Ralf Wildenhues.
45577
45578         Fix memmem test for mingw.
45579         * modules/memmem-tests (configure.ac): Check for alarm.
45580         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45581         it.
45582         * doc/functions/memmem.texi: New file.
45583         * doc/gnulib.texi (Function Substitutes): Add memmem.
45584         Reported by Bruno Haible.
45585
45586 2008-01-04  Bruno Haible  <bruno@clisp.org>
45587
45588         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45589         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45590         gl_HEADER_STRING_H_DEFAULTS.
45591
45592 2008-01-04  Eric Blake  <ebb9@byu.net>
45593
45594         Shorten duration of memmem test.
45595         * tests/test-memmem.c (main): Use alarm to declare failure if test
45596         is taking too long.
45597         Reported by Ralf Wildenhues.
45598
45599 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45600
45601         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45602         string, needed by strerror.
45603
45604 2008-01-03  Colin Watson  <cjwatson@debian.org>
45605             Bruno Haible  <bruno@clisp.org>
45606
45607         * doc/gnulib-tool.texi (Localization): New section.
45608
45609 2008-01-02  Bruno Haible  <bruno@clisp.org>
45610
45611         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45612         variables to 'unsigned char *' type.
45613         Reported by Paul Eggert.
45614
45615 2008-01-02  Jim Meyering  <jim@meyering.net>
45616
45617         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45618
45619 2007-12-31  Jim Meyering  <jim@meyering.net>
45620
45621         Avoid use of private FTS type name.
45622         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45623
45624 2007-12-30  Karl Berry  <karl@gnu.org>
45625
45626         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45627         work around defect in Texinfo and/or the standalone Info browser.
45628
45629 2007-12-30  Bruno Haible  <bruno@clisp.org>
45630
45631         Unify 5 copies of the KMP code.
45632         * lib/str-kmp.h: New file.
45633         * lib/c-strcasestr.c: Include str-kmp.h.
45634         (knuth_morris_pratt): Remove function.
45635         (c_strcasestr): Update.
45636         * lib/c-strstr.c: Include str-kmp.h.
45637         (knuth_morris_pratt): Remove function.
45638         (c_strcasestr): Update.
45639         * lib/mbscasestr.c: Include str-kmp.h.
45640         (knuth_morris_pratt_unibyte): Remove function.
45641         * lib/mbsstr.c: Include str-kmp.h.
45642         (knuth_morris_pratt_unibyte): Remove function.
45643         * lib/strcasestr.c: Include str-kmp.h.
45644         (knuth_morris_pratt): Remove function.
45645         (strcasestr): Update.
45646         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45647         * modules/c-strstr (Files): Likewise.
45648         * modules/mbscasestr (Files): Likewise.
45649         * modules/mbsstr (Files): Likewise.
45650         * modules/strcasestr (Files): Likewise.
45651         Suggested by Paul Eggert.
45652
45653 2007-12-30  Bruno Haible  <bruno@clisp.org>
45654
45655         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45656         defined.
45657
45658 2007-12-30  Bruno Haible  <bruno@clisp.org>
45659
45660         * lib/xmalloca.h: Include xalloc.h.
45661         (xnmalloca): New macro.
45662
45663 2007-12-30  Bruno Haible  <bruno@clisp.org>
45664
45665         * lib/malloca.h (nmalloca): New macro.
45666         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45667         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45668         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45669         knuth_morris_pratt_multibyte): Likewise.
45670         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45671         knuth_morris_pratt_multibyte): Likewise.
45672         * lib/memmem.c (knuth_morris_pratt): Likewise.
45673         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45674
45675 2007-12-25  Bruno Haible  <bruno@clisp.org>
45676
45677         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45678         * lib/glob.c: Don't include openat.h.
45679         (link_exists2_p): Add back the code that deals with the
45680         !GLOB_ALTDIRFUNC case.
45681         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45682         let it do the filename concatenation.
45683         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45684         * modules/glob (Depends-on): Remove openat.
45685
45686 2007-12-31  Bruno Haible  <bruno@clisp.org>
45687
45688         * modules/dirfd (License): Change to LGPLv2+.
45689         Approved by Jim Meyering.
45690
45691 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45692
45693         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45694         when multiplying M by sizeof (size_t).
45695
45696 2007-12-10  Martin Lambers  <marlam@marlam.de>
45697
45698         Override getpagesize on mingw.
45699         * lib/getpagesize.c: New file.
45700         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45701         * modules/getpagesize (Files): Add lib/getpagesize.c.
45702         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45704         REPLACE_GETPAGESIZE.
45705         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45706
45707 2007-12-25  Bruno Haible  <bruno@clisp.org>
45708
45709         * modules/localcharset (Notice): New field.
45710         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45711         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45712
45713 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45714             Bruno Haible  <bruno@clisp.org>
45715
45716         Avoid using the syntax symbol() in formatted documentation.
45717         * MODULES.html.sh (func_module): When replacing symbol() with a
45718         hyperlink, remove the parentheses. Show an error if some remain.
45719         Recognize and render the '...' syntax.
45720         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45721         Rework. Add paragraph about GCC's inlining.
45722         * doc/alloca.texi: Likewise.
45723         * doc/error.texi: Remove parentheses from symbol reference.
45724         * doc/gnulib-intro.texi: Likewise.
45725         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45726         * modules/fnmatch (Description): Reword to say "the ... function".
45727         * modules/full-read (Description): Likewise.
45728         * modules/full-write (Description): Likewise.
45729         * modules/safe-read (Description): Likewise.
45730         * modules/safe-write (Description): Likewise.
45731         * modules/strchrnul (Description): Likewise.
45732         * modules/trim (Description): Likewise.
45733         * modules/error (Description): Remove parentheses from symbol
45734         references.
45735         * modules/verror (Description): Likewise.
45736         Reported by Karl Berry.
45737
45738 2007-12-25  Bruno Haible  <bruno@clisp.org>
45739
45740         Fixup after 2007-10-16 commit.
45741         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45742
45743 2007-12-24  Bruno Haible  <bruno@clisp.org>
45744
45745         Make --enable-relocatable work with DESTDIR.
45746         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45747         to compute installdir from destprog.
45748         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45749         also set the RELOC_DESTDIR variable.
45750         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45751
45752 2007-12-24  Bruno Haible  <bruno@clisp.org>
45753
45754         Fix link error due to xalloc_die().
45755         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45756         of xreadlink.
45757         * lib/relocwrapper.c: Update comments.
45758         * build-aux/install-reloc: Remove xreadlink.c from file list.
45759         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45760         xreadlink.c.
45761         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45762
45763 2007-12-24  Bruno Haible  <bruno@clisp.org>
45764
45765         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45766         * lib/setenv.h: Remove file.
45767         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45768         lib/setenv.h.
45769         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45770         (Depends-on): Add stdlib.
45771         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45772         gl_FUNC_UNSETENV.
45773         (Include): Replace setenv.h with <stdlib.h>.
45774         * modules/unsetenv: New file.
45775         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45776         * lib/unsetenv.c: Include <stdlib.h> first.
45777         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45778         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45779         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45780         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45781         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45782         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45784         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45785         * doc/functions/unsetenv.texi: Update.
45786         * modules/xsetenv (Depends-on): Add unsetenv.
45787         * modules/getdate (Depends-on): Likewise.
45788         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45789         * lib/xsetenv.c: Don't include setenv.h.
45790         * lib/getdate.y: Likewise.
45791         * lib/relocwrapper.c: Likewise.
45792         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45793         (Depends-on): Add stdlib.
45794         * NEWS: Mention the changes.
45795         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45796
45797 2007-12-23  Bruno Haible  <bruno@clisp.org>
45798
45799         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45800         indentation.
45801
45802 2007-12-23  Bruno Haible  <bruno@clisp.org>
45803
45804         * lib/c-strcasestr.c: Add more comments.
45805         * lib/c-strstr.c: Likewise.
45806         * lib/mbscasestr.c: Likewise.
45807         * lib/mbsstr.c: Likewise.
45808         * lib/strcasestr.c: Likewise.
45809         * lib/memmem.c: Likewise.
45810
45811 2007-12-23  Bruno Haible  <bruno@clisp.org>
45812
45813         * tests/test-memmem.c: Include <string.h> first.
45814
45815 2007-12-22  Bruno Haible  <bruno@clisp.org>
45816
45817         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45818         the contents of $testsbase.
45819         Reported by Ralf Wildenhues.
45820
45821 2007-12-22  Bruno Haible  <bruno@clisp.org>
45822
45823         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45824         two variables local_ldadd_before, local_ldadd_last.
45825
45826 2007-12-20  Eric Blake  <ebb9@byu.net>
45827
45828         Work around circular library issue when cross-compiling.
45829         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45830         that progname.o does not need to pull in rpl_memcmp.
45831
45832 2007-12-19  Eric Blake  <ebb9@byu.net>
45833
45834         Fix memmem to avoid O(n^2) worst-case complexity.
45835         * lib/memmem.c (knuth_morris_pratt): New function.
45836         (memmem): Use it if first few naive iterations fail.
45837         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45838         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45839         * modules/memchr (License): Likewise.
45840         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45841         malloca.
45842         * tests/test-memmem.c: Rewrite, borrowing ideas from
45843         test-mbsstr1.c; the old version wouldn't even compile!
45844         * modules/memmem-tests: New file.
45845         * lib/string.in.h (rpl_memmem): Add declaration.
45846         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45848         REPLACE_MEMMEM.
45849
45850 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45851
45852         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45853         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45854         before any system include files, and undef after them all.  This
45855         should fix a problem on VMS reported by John E. Malmberg in
45856         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45857
45858 2007-12-17  Eric Blake  <ebb9@byu.net>
45859
45860         Revert addition of verify, for BSD/OS.
45861         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45862         can't handle large files, for the sake of obsolete platforms.
45863         * modules/fseeko (Depends-on): Remove verify.
45864         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45865         * doc/functions/ftello.texi (ftello): Likewise.
45866         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45867         Reported by Larry Jones.
45868
45869 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45870
45871         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45872         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45873
45874 2007-12-17  Jim Meyering  <meyering@redhat.com>
45875
45876         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45877         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45878         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45879         * modules/getcwd (Depends-on): Add openat.
45880         Reported by Petr Salinger.
45881
45882 2007-12-17  Bruno Haible  <bruno@clisp.org>
45883
45884         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45885         avoid a segmentation fault of the configure test on x86_64 systems.
45886
45887 2007-12-15  Jim Meyering  <meyering@redhat.com>
45888
45889         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45890
45891 2007-12-13  Eric Blake  <ebb9@byu.net>
45892
45893         Another fseek test.
45894         * tests/test-fseek.c (main): Also test ungetc handling.
45895         * tests/test-fseeko.c (main): Likewise.
45896         * modules/fseeko (Depends-on): Add verify.
45897         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45898         large.
45899         Reported by Larry Jones.
45900
45901         Fix fseeko on mingw.
45902         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45903         seek.
45904
45905         Beef up fseek tests.
45906         * tests/test-fseek.c (main): Also test eof handling.
45907         * tests/test-fseeko.c (main): Likewise.
45908         Reported by Larry Jones.
45909
45910 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45911
45912         Fix fseeko on BSD-based platforms.
45913         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45914         successful seek.
45915
45916 2007-12-12  Eric Blake  <ebb9@byu.net>
45917
45918         Allow circular dependency of separate libtests.a
45919         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45920         when use_libtests.
45921
45922 2007-12-11  Eric Blake  <ebb9@byu.net>
45923
45924         Fix bug with -0.0L in previous patch.
45925         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45926         * tests/test-isnan.c (main): Also test on zeroes.
45927         * tests/test-isnanf.c (main): Likewise.
45928         * tests/test-isnanl.h (main): Likewise.
45929
45930         Detect pseudo-denormals on x86 even when cross-compiling.
45931         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45932         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45933         invalid bit patterns that happen to satisfy ==.
45934
45935         Avoid link failures with separate libtests.a.
45936         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45937         last, to satisfy circular dependencies.
45938
45939 2007-12-11  Eric Blake  <ebb9@byu.net>
45940         and Bruno Haible  <bruno@clisp.org>
45941
45942         Fix OpenBSD 4.0 <float.h> handling of long double.
45943         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45944         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45945         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45946
45947 2007-12-11  Jim Meyering  <meyering@redhat.com>
45948
45949         * users.txt: Add libvirt.
45950
45951         Support versions of autoconf prior to 2.59c.
45952         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45953         if it is not already defined.
45954
45955 2007-12-09  Bruno Haible  <bruno@clisp.org>
45956
45957         Let 'gnulib-tool --import' collect sources needed for the tests in
45958         tests/ rather than in lib/.
45959         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45960         argument. If true, add rules to generate libtests.a, and put libtests.a
45961         into $(LDADD). Consider source files in subdirectories and set
45962         uses_subdirs.
45963         (func_emit_initmacro_start, func_emit_initmacro_end,
45964         func_emit_initmacro_done): Pass all arguments explicitly.
45965         (func_import): Determine two module lists main_modules,
45966         testsrelated_modules. Determine use_libtests. Determine two variables
45967         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45968         instead of just sed_transform_lib_file. Determine two variables
45969         main_files and testsrelated_files. Compute 'files' as the union of
45970         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45971         func_add_or_update. In the generated gnulib-comp.m4, collect the
45972         object files for tests/ in different variables than those for lib/.
45973         Substitute LIBTESTS_LIBDEPS.
45974         (func_create_testdir): Combine the uses_subdirs results from
45975         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45976
45977 2007-12-09  Bruno Haible  <bruno@clisp.org>
45978
45979         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45980         the build-aux directory.
45981
45982 2007-12-09  Bruno Haible  <bruno@clisp.org>
45983
45984         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45985         introduced on 2006-09-09.
45986
45987 2007-12-07  Jim Meyering  <meyering@redhat.com>
45988
45989         Let these macros work also with autoconf-2.59.
45990         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45991         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45992         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45993
45994 2007-12-06  Jim Meyering  <meyering@redhat.com>
45995
45996         Avoid a configure-time syntax error in gl_FUNC_ACL.
45997         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45998         function in each branch, before testing the cache variable.
45999
46000 2007-12-04  Eric Blake  <ebb9@byu.net>
46001
46002         Make scripts executable.
46003         * build-aux/config.guess: Add execute permissions.
46004         * build-aux/config.sub: Likewise.
46005         * build-aux/gendocs.sh: Likewise.
46006
46007         Fix frexp on mingw.
46008         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
46009         cross-compiling.
46010         * doc/functions/frexp.texi (frexp): Document the bug.
46011
46012         Make cygwin fseeko check more reliable.
46013         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
46014         version numbers, rather than unrelated feature check.
46015         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
46016         * doc/functions/ftello.texi (ftello): Likewise.
46017         Reported by Bruno Haible.
46018
46019         * m4/strerror.m4: Bump version number.
46020
46021 2007-12-03  Bruno Haible  <bruno@clisp.org>
46022
46023         * doc/functions/mprotect.texi: Mention the mingw problem.
46024
46025 2007-12-03  Eric Blake  <ebb9@byu.net>
46026
46027         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
46028         REPLACE_STRERROR is initialized before this macro.
46029
46030 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46031
46032         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
46033         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
46034         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
46035         put -lsec in even for programs other than 'ls'.  This fixes a problem
46036         for gettext reported by Bruno Haible in
46037         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
46038         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
46039         Add support for Solaris 10.  This isn't efficient, but should get the
46040         job done for now.
46041
46042 2007-12-03  James Youngman  <jay@gnu.org>
46043
46044         * doc/regexprops-generic.texi: change "an close-group" to "a
46045         close-group" and "illegal" to "not allowed".
46046
46047 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46048
46049         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
46050         pr_byname.h. Needed for the rare case when the maintainer has done
46051         "make maintainer-clean" in the source directory and then attempts a
46052         build outside the source directory.
46053         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
46054         scripts_byname.h.
46055
46056 2007-12-02  Martin Lambers <marlam@marlam.de>
46057             Bruno Haible  <bruno@clisp.org>
46058
46059         * lib/getpagesize.h: Remove file.
46060         * lib/unistd.in.h: Include declaration of getpagesize here.
46061         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
46062         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
46063         HAVE_SYS_PARAM_H.
46064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
46065         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46066         * modules/getpagesize (Files): Remove lib/getpagesize.h.
46067         (Depends-on): Add unistd.
46068         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46069         (Include): Use <unistd.h> instead of getpagesize.h.
46070         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
46071         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46072         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
46073         gl_GETPAGESIZE invocation, already handled by module dependency.
46074         * lib/pagealign_alloc.c: Don't include getpagesize.h.
46075
46076 2007-12-02  Bruno Haible  <bruno@clisp.org>
46077
46078         * modules/strings-tests: New file.
46079         * tests/test-strings.c: New file.
46080
46081         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
46082         * lib/strings.in.h: New file.
46083         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
46084         * m4/strings_h.m4: New file.
46085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
46086         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
46087         * modules/strings: New file.
46088         * modules/string (Makefile.am): Update.
46089         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
46090         Reported by Karl Berry.
46091
46092 2007-12-01  Eric Blake  <ebb9@byu.net>
46093
46094         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
46095         accomodate fix in cygwin 1.5.25.
46096
46097 2007-12-01  Jim Meyering  <meyering@redhat.com>
46098
46099         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
46100         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
46101         that would inhibit utf8-optimization of a regexp containing line-
46102         or buffer-anchors, e.g., `^', `$'.
46103
46104 2007-11-30  Bruno Haible  <bruno@clisp.org>
46105
46106         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
46107         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
46108         glthread_recursive_lock_init.
46109         * lib/lock.c (glthread_recursive_lock_init)
46110         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
46111         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46112
46113 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
46114
46115         New function qset_acl, like set_acl but with syscall semantics.
46116         * lib/acl.h (qset_acl): New decl.
46117         * lib/acl.c (qset_acl): New function.
46118         (set_acl): Use new function.  Use more-consistent diagnostics.
46119
46120 2007-11-28  Jim Meyering  <meyering@redhat.com>
46121
46122         * modules/physmem (License): Change from GPL to LGPLv2+.
46123
46124 2007-11-26  Bruno Haible  <bruno@clisp.org>
46125
46126         * lib/vasnprintf.c (decode_long_double): Don't abort if the
46127         'long double' type has excess precision.
46128         Reported by Jim Meyering in
46129         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
46130
46131 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46132
46133         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
46134         Sync from <http://gnu.org/licenses>.
46135         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
46136         with license text from same location.
46137         * doc/maintain.texi, doc/standards.texi:  Sync from
46138         <http://savannah.gnu.org/projects/gnustandards>.
46139
46140 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
46141         and Jim Meyering  <meyering@redhat.com>
46142
46143         Adjust getdate' grammar to accept a slightly more regular language.
46144         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
46145         Before, the former was rejected.
46146         * lib/getdate.y (digits_to_date_time): New function, factored
46147         out of ...
46148         (number): ...here.  Just call digits_to_date_time.
46149         (hybrid): New non-terminal to handle an <unsigned number,
46150         signed relative offset> sequence consistently.
46151
46152 2007-11-18  Jim Meyering  <meyering@redhat.com>
46153
46154         Pull my changes from coreutils:
46155         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
46156         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
46157         use of $gnulib_tool_option_extras, so that it's separated from the
46158         preceding argument.
46159
46160         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
46161         * build-aux/bootstrap (cp_mark_as_generated): Create any required
46162         parent destination directories before copying a file into place.
46163
46164 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46165
46166         bootstrap: work also with 4-argument variant of AC_INIT
46167         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
46168
46169 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46170
46171         Port test-getaddrinfo to Solaris.
46172         Problem reported by Bruno Haible in
46173         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
46174         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
46175         explanation of setting 'hints'.
46176         Don't reject an implementation merely because it returns EAI_SERVICE.
46177         (EAI_SERVICE): Define to 0 if not defined.
46178
46179 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46180
46181         The license of gnu-make and posix-shell is now "GPLed build tool".
46182         * modules/gnu-make (License): Likewise.
46183         * modules/posix-shell (License): Likewise.
46184
46185         New module posix-shell, for determining a POSIX shell
46186         or perhaps something that is close enough to a POSIX shell.
46187         * m4/posix-shell.m4: New file.
46188         * modules/posix-shell: New file.
46189
46190         * MODULES.html.sh: Mention new module.
46191
46192         New module gnu-make, for determining whether we're using GNU Make.
46193         * m4/gnu-make.m4: New file.
46194         * modules/gnu-make: New file.
46195         * MODULES.html.sh: Mention new module.
46196
46197 2007-11-14  Jim Meyering  <meyering@redhat.com>
46198
46199         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
46200         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
46201         use this macro to create a function _definition_.
46202         Remove useless "#undef ARGMATCH_DIE".
46203
46204 2007-11-14  Bruno Haible  <bruno@clisp.org>
46205
46206         * lib/config.charset: Update for OpenBSD 4.1.
46207         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
46208
46209 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
46210
46211         Document 64-bit #if problems in stdint.texi.
46212         * doc/headers/stdint.texi (stdint.h): Mention problems with
46213         64-bit-#if, and how to work around them.
46214
46215         Don't insist on 'long long int' support in the preprocessor.  It
46216         breaks too many things.  For example, PRIdMAX still uses a 'long
46217         long int' format with the latest Sun compiler, even though
46218         HAVE_LONG_LONG_INT isn't defined due to that compiler's
46219         preprocessor problem.  This causes the latest coreutils to dump
46220         core on Solaris 10 sparc with the Sun C compiler.
46221         Instead, fix the 2007-10-16 problem in a different way, by evaluating
46222         the troublesome expressions at configure-time, not at #if-time.
46223         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
46224         preprocessor.
46225         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
46226         compile-time C checks, done at 'configure'-time.
46227         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
46228         * modules/inttypes (Makefile): Substitute the new symbols that
46229         gl_INTTYPES_H now generates.
46230         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
46231
46232 2007-11-12  Bruno Haible  <bruno@clisp.org>
46233
46234         Tests for Unicode character classification functions.
46235
46236         * modules/unictype/bidicategory-byname-tests: New file.
46237         * modules/unictype/bidicategory-name-tests: New file.
46238         * modules/unictype/bidicategory-of-tests: New file.
46239         * modules/unictype/bidicategory-test-tests: New file.
46240         * modules/unictype/block-list-tests: New file.
46241         * modules/unictype/block-of-tests: New file.
46242         * modules/unictype/block-test-tests: New file.
46243         * modules/unictype/category-C-tests: New file.
46244         * modules/unictype/category-Cc-tests: New file.
46245         * modules/unictype/category-Cf-tests: New file.
46246         * modules/unictype/category-Cn-tests: New file.
46247         * modules/unictype/category-Co-tests: New file.
46248         * modules/unictype/category-Cs-tests: New file.
46249         * modules/unictype/category-L-tests: New file.
46250         * modules/unictype/category-Ll-tests: New file.
46251         * modules/unictype/category-Lm-tests: New file.
46252         * modules/unictype/category-Lo-tests: New file.
46253         * modules/unictype/category-Lt-tests: New file.
46254         * modules/unictype/category-Lu-tests: New file.
46255         * modules/unictype/category-M-tests: New file.
46256         * modules/unictype/category-Mc-tests: New file.
46257         * modules/unictype/category-Me-tests: New file.
46258         * modules/unictype/category-Mn-tests: New file.
46259         * modules/unictype/category-N-tests: New file.
46260         * modules/unictype/category-Nd-tests: New file.
46261         * modules/unictype/category-Nl-tests: New file.
46262         * modules/unictype/category-No-tests: New file.
46263         * modules/unictype/category-P-tests: New file.
46264         * modules/unictype/category-Pc-tests: New file.
46265         * modules/unictype/category-Pd-tests: New file.
46266         * modules/unictype/category-Pe-tests: New file.
46267         * modules/unictype/category-Pf-tests: New file.
46268         * modules/unictype/category-Pi-tests: New file.
46269         * modules/unictype/category-Po-tests: New file.
46270         * modules/unictype/category-Ps-tests: New file.
46271         * modules/unictype/category-S-tests: New file.
46272         * modules/unictype/category-Sc-tests: New file.
46273         * modules/unictype/category-Sk-tests: New file.
46274         * modules/unictype/category-Sm-tests: New file.
46275         * modules/unictype/category-So-tests: New file.
46276         * modules/unictype/category-Z-tests: New file.
46277         * modules/unictype/category-Zl-tests: New file.
46278         * modules/unictype/category-Zp-tests: New file.
46279         * modules/unictype/category-Zs-tests: New file.
46280         * modules/unictype/category-and-not-tests: New file.
46281         * modules/unictype/category-and-tests: New file.
46282         * modules/unictype/category-byname-tests: New file.
46283         * modules/unictype/category-name-tests: New file.
46284         * modules/unictype/category-none-tests: New file.
46285         * modules/unictype/category-of-tests: New file.
46286         * modules/unictype/category-or-tests: New file.
46287         * modules/unictype/category-test-withtable-tests: New file.
46288         * modules/unictype/combining-class-tests: New file.
46289         * modules/unictype/ctype-alnum-tests: New file.
46290         * modules/unictype/ctype-alpha-tests: New file.
46291         * modules/unictype/ctype-blank-tests: New file.
46292         * modules/unictype/ctype-cntrl-tests: New file.
46293         * modules/unictype/ctype-digit-tests: New file.
46294         * modules/unictype/ctype-graph-tests: New file.
46295         * modules/unictype/ctype-lower-tests: New file.
46296         * modules/unictype/ctype-print-tests: New file.
46297         * modules/unictype/ctype-punct-tests: New file.
46298         * modules/unictype/ctype-space-tests: New file.
46299         * modules/unictype/ctype-upper-tests: New file.
46300         * modules/unictype/ctype-xdigit-tests: New file.
46301         * modules/unictype/decimal-digit-tests: New file.
46302         * modules/unictype/digit-tests: New file.
46303         * modules/unictype/mirror-tests: New file.
46304         * modules/unictype/numeric-tests: New file.
46305         * modules/unictype/property-alphabetic-tests: New file.
46306         * modules/unictype/property-ascii-hex-digit-tests: New file.
46307         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46308         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46309         * modules/unictype/property-bidi-block-separator-tests: New file.
46310         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46311         * modules/unictype/property-bidi-common-separator-tests: New file.
46312         * modules/unictype/property-bidi-control-tests: New file.
46313         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46314         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46315         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46316         * modules/unictype/property-bidi-european-digit-tests: New file.
46317         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46318         * modules/unictype/property-bidi-left-to-right-tests: New file.
46319         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46320         * modules/unictype/property-bidi-other-neutral-tests: New file.
46321         * modules/unictype/property-bidi-pdf-tests: New file.
46322         * modules/unictype/property-bidi-segment-separator-tests: New file.
46323         * modules/unictype/property-bidi-whitespace-tests: New file.
46324         * modules/unictype/property-byname-tests: New file.
46325         * modules/unictype/property-combining-tests: New file.
46326         * modules/unictype/property-composite-tests: New file.
46327         * modules/unictype/property-currency-symbol-tests: New file.
46328         * modules/unictype/property-dash-tests: New file.
46329         * modules/unictype/property-decimal-digit-tests: New file.
46330         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46331         * modules/unictype/property-deprecated-tests: New file.
46332         * modules/unictype/property-diacritic-tests: New file.
46333         * modules/unictype/property-extender-tests: New file.
46334         * modules/unictype/property-format-control-tests: New file.
46335         * modules/unictype/property-grapheme-base-tests: New file.
46336         * modules/unictype/property-grapheme-extend-tests: New file.
46337         * modules/unictype/property-grapheme-link-tests: New file.
46338         * modules/unictype/property-hex-digit-tests: New file.
46339         * modules/unictype/property-hyphen-tests: New file.
46340         * modules/unictype/property-id-continue-tests: New file.
46341         * modules/unictype/property-id-start-tests: New file.
46342         * modules/unictype/property-ideographic-tests: New file.
46343         * modules/unictype/property-ids-binary-operator-tests: New file.
46344         * modules/unictype/property-ids-trinary-operator-tests: New file.
46345         * modules/unictype/property-ignorable-control-tests: New file.
46346         * modules/unictype/property-iso-control-tests: New file.
46347         * modules/unictype/property-join-control-tests: New file.
46348         * modules/unictype/property-left-of-pair-tests: New file.
46349         * modules/unictype/property-line-separator-tests: New file.
46350         * modules/unictype/property-logical-order-exception-tests: New file.
46351         * modules/unictype/property-lowercase-tests: New file.
46352         * modules/unictype/property-math-tests: New file.
46353         * modules/unictype/property-non-break-tests: New file.
46354         * modules/unictype/property-not-a-character-tests: New file.
46355         * modules/unictype/property-numeric-tests: New file.
46356         * modules/unictype/property-other-alphabetic-tests: New file.
46357         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46358         * modules/unictype/property-other-grapheme-extend-tests: New file.
46359         * modules/unictype/property-other-id-continue-tests: New file.
46360         * modules/unictype/property-other-id-start-tests: New file.
46361         * modules/unictype/property-other-lowercase-tests: New file.
46362         * modules/unictype/property-other-math-tests: New file.
46363         * modules/unictype/property-other-uppercase-tests: New file.
46364         * modules/unictype/property-paired-punctuation-tests: New file.
46365         * modules/unictype/property-paragraph-separator-tests: New file.
46366         * modules/unictype/property-pattern-syntax-tests: New file.
46367         * modules/unictype/property-pattern-white-space-tests: New file.
46368         * modules/unictype/property-private-use-tests: New file.
46369         * modules/unictype/property-punctuation-tests: New file.
46370         * modules/unictype/property-quotation-mark-tests: New file.
46371         * modules/unictype/property-radical-tests: New file.
46372         * modules/unictype/property-sentence-terminal-tests: New file.
46373         * modules/unictype/property-soft-dotted-tests: New file.
46374         * modules/unictype/property-space-tests: New file.
46375         * modules/unictype/property-terminal-punctuation-tests: New file.
46376         * modules/unictype/property-test-tests: New file.
46377         * modules/unictype/property-titlecase-tests: New file.
46378         * modules/unictype/property-unassigned-code-value-tests: New file.
46379         * modules/unictype/property-unified-ideograph-tests: New file.
46380         * modules/unictype/property-uppercase-tests: New file.
46381         * modules/unictype/property-variation-selector-tests: New file.
46382         * modules/unictype/property-white-space-tests: New file.
46383         * modules/unictype/property-xid-continue-tests: New file.
46384         * modules/unictype/property-xid-start-tests: New file.
46385         * modules/unictype/property-zero-width-tests: New file.
46386         * modules/unictype/scripts-tests: New file.
46387         * modules/unictype/syntax-c-ident-tests: New file.
46388         * modules/unictype/syntax-c-whitespace-tests: New file.
46389         * modules/unictype/syntax-java-ident-tests: New file.
46390         * modules/unictype/syntax-java-whitespace-tests: New file.
46391         * tests/unictype/test-bidi_byname.c: New file.
46392         * tests/unictype/test-bidi_name.c: New file.
46393         * tests/unictype/test-bidi_of.c: New file.
46394         * tests/unictype/test-bidi_test.c: New file.
46395         * tests/unictype/test-block_list.c: New file.
46396         * tests/unictype/test-block_of.c: New file.
46397         * tests/unictype/test-block_test.c: New file.
46398         * tests/unictype/test-categ_and.c: New file.
46399         * tests/unictype/test-categ_and_not.c: New file.
46400         * tests/unictype/test-categ_byname.c: New file.
46401         * tests/unictype/test-categ_name.c: New file.
46402         * tests/unictype/test-categ_none.c: New file.
46403         * tests/unictype/test-categ_of.c: New file.
46404         * tests/unictype/test-categ_or.c: New file.
46405         * tests/unictype/test-categ_test_withtable.c: New file.
46406         * tests/unictype/test-combining.c: New file.
46407         * tests/unictype/test-decdigit.c: New file.
46408         * tests/unictype/test-digit.c: New file.
46409         * tests/unictype/test-mirror.c: New file.
46410         * tests/unictype/test-numeric.c: New file.
46411         * tests/unictype/test-pr_byname.c: New file.
46412         * tests/unictype/test-pr_test.c: New file.
46413         * tests/unictype/test-predicate-part1.h: New file.
46414         * tests/unictype/test-predicate-part2.h: New file.
46415         * tests/unictype/test-scripts.c: New file.
46416         * tests/unictype/test-sy_c_ident.c: New file.
46417         * tests/unictype/test-sy_java_ident.c: New file.
46418
46419         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46420         for Unicode 5.0.0.
46421         * tests/unictype/test-categ_Cc.c: Likewise.
46422         * tests/unictype/test-categ_Cf.c: Likewise.
46423         * tests/unictype/test-categ_Cn.c: Likewise.
46424         * tests/unictype/test-categ_Co.c: Likewise.
46425         * tests/unictype/test-categ_Cs.c: Likewise.
46426         * tests/unictype/test-categ_L.c: Likewise.
46427         * tests/unictype/test-categ_Ll.c: Likewise.
46428         * tests/unictype/test-categ_Lm.c: Likewise.
46429         * tests/unictype/test-categ_Lo.c: Likewise.
46430         * tests/unictype/test-categ_Lt.c: Likewise.
46431         * tests/unictype/test-categ_Lu.c: Likewise.
46432         * tests/unictype/test-categ_M.c: Likewise.
46433         * tests/unictype/test-categ_Mc.c: Likewise.
46434         * tests/unictype/test-categ_Me.c: Likewise.
46435         * tests/unictype/test-categ_Mn.c: Likewise.
46436         * tests/unictype/test-categ_N.c: Likewise.
46437         * tests/unictype/test-categ_Nd.c: Likewise.
46438         * tests/unictype/test-categ_Nl.c: Likewise.
46439         * tests/unictype/test-categ_No.c: Likewise.
46440         * tests/unictype/test-categ_P.c: Likewise.
46441         * tests/unictype/test-categ_Pc.c: Likewise.
46442         * tests/unictype/test-categ_Pd.c: Likewise.
46443         * tests/unictype/test-categ_Pe.c: Likewise.
46444         * tests/unictype/test-categ_Pf.c: Likewise.
46445         * tests/unictype/test-categ_Pi.c: Likewise.
46446         * tests/unictype/test-categ_Po.c: Likewise.
46447         * tests/unictype/test-categ_Ps.c: Likewise.
46448         * tests/unictype/test-categ_S.c: Likewise.
46449         * tests/unictype/test-categ_Sc.c: Likewise.
46450         * tests/unictype/test-categ_Sk.c: Likewise.
46451         * tests/unictype/test-categ_Sm.c: Likewise.
46452         * tests/unictype/test-categ_So.c: Likewise.
46453         * tests/unictype/test-categ_Z.c: Likewise.
46454         * tests/unictype/test-categ_Zl.c: Likewise.
46455         * tests/unictype/test-categ_Zp.c: Likewise.
46456         * tests/unictype/test-categ_Zs.c: Likewise.
46457         * tests/unictype/test-ctype_alnum.c: Likewise.
46458         * tests/unictype/test-ctype_alpha.c: Likewise.
46459         * tests/unictype/test-ctype_blank.c: Likewise.
46460         * tests/unictype/test-ctype_cntrl.c: Likewise.
46461         * tests/unictype/test-ctype_digit.c: Likewise.
46462         * tests/unictype/test-ctype_graph.c: Likewise.
46463         * tests/unictype/test-ctype_lower.c: Likewise.
46464         * tests/unictype/test-ctype_print.c: Likewise.
46465         * tests/unictype/test-ctype_punct.c: Likewise.
46466         * tests/unictype/test-ctype_space.c: Likewise.
46467         * tests/unictype/test-ctype_upper.c: Likewise.
46468         * tests/unictype/test-ctype_xdigit.c: Likewise.
46469         * tests/unictype/test-decdigit.h: Likewise.
46470         * tests/unictype/test-digit.h: Likewise.
46471         * tests/unictype/test-numeric.h: Likewise.
46472         * tests/unictype/test-pr_alphabetic.c: Likewise.
46473         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46474         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46475         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46476         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46477         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46478         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46479         * tests/unictype/test-pr_bidi_control.c: Likewise.
46480         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46481         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46482         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46483         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46484         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46485         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46486         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46487         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46488         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46489         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46490         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46491         * tests/unictype/test-pr_combining.c: Likewise.
46492         * tests/unictype/test-pr_composite.c: Likewise.
46493         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46494         * tests/unictype/test-pr_dash.c: Likewise.
46495         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46496         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46497         * tests/unictype/test-pr_deprecated.c: Likewise.
46498         * tests/unictype/test-pr_diacritic.c: Likewise.
46499         * tests/unictype/test-pr_extender.c: Likewise.
46500         * tests/unictype/test-pr_format_control.c: Likewise.
46501         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46502         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46503         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46504         * tests/unictype/test-pr_hex_digit.c: Likewise.
46505         * tests/unictype/test-pr_hyphen.c: Likewise.
46506         * tests/unictype/test-pr_id_continue.c: Likewise.
46507         * tests/unictype/test-pr_id_start.c: Likewise.
46508         * tests/unictype/test-pr_ideographic.c: Likewise.
46509         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46510         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46511         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46512         * tests/unictype/test-pr_iso_control.c: Likewise.
46513         * tests/unictype/test-pr_join_control.c: Likewise.
46514         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46515         * tests/unictype/test-pr_line_separator.c: Likewise.
46516         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46517         * tests/unictype/test-pr_lowercase.c: Likewise.
46518         * tests/unictype/test-pr_math.c: Likewise.
46519         * tests/unictype/test-pr_non_break.c: Likewise.
46520         * tests/unictype/test-pr_not_a_character.c: Likewise.
46521         * tests/unictype/test-pr_numeric.c: Likewise.
46522         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46523         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46524         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46525         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46526         * tests/unictype/test-pr_other_id_start.c: Likewise.
46527         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46528         * tests/unictype/test-pr_other_math.c: Likewise.
46529         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46530         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46531         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46532         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46533         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46534         * tests/unictype/test-pr_private_use.c: Likewise.
46535         * tests/unictype/test-pr_punctuation.c: Likewise.
46536         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46537         * tests/unictype/test-pr_radical.c: Likewise.
46538         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46539         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46540         * tests/unictype/test-pr_space.c: Likewise.
46541         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46542         * tests/unictype/test-pr_titlecase.c: Likewise.
46543         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46544         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46545         * tests/unictype/test-pr_uppercase.c: Likewise.
46546         * tests/unictype/test-pr_variation_selector.c: Likewise.
46547         * tests/unictype/test-pr_white_space.c: Likewise.
46548         * tests/unictype/test-pr_xid_continue.c: Likewise.
46549         * tests/unictype/test-pr_xid_start.c: Likewise.
46550         * tests/unictype/test-pr_zero_width.c: Likewise.
46551         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46552         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46553
46554 2007-11-12  Bruno Haible  <bruno@clisp.org>
46555
46556         Unicode character classification functions.
46557         * lib/unictype.h: New file.
46558         * modules/unictype/base: New file.
46559         * modules/unictype/category-L: New file.
46560         * modules/unictype/category-Lu: New file.
46561         * modules/unictype/category-Ll: New file.
46562         * modules/unictype/category-Lt: New file.
46563         * modules/unictype/category-Lm: New file.
46564         * modules/unictype/category-Lo: New file.
46565         * modules/unictype/category-M: New file.
46566         * modules/unictype/category-Mn: New file.
46567         * modules/unictype/category-Mc: New file.
46568         * modules/unictype/category-Me: New file.
46569         * modules/unictype/category-N: New file.
46570         * modules/unictype/category-Nd: New file.
46571         * modules/unictype/category-Nl: New file.
46572         * modules/unictype/category-No: New file.
46573         * modules/unictype/category-P: New file.
46574         * modules/unictype/category-Pc: New file.
46575         * modules/unictype/category-Pd: New file.
46576         * modules/unictype/category-Ps: New file.
46577         * modules/unictype/category-Pe: New file.
46578         * modules/unictype/category-Pi: New file.
46579         * modules/unictype/category-Pf: New file.
46580         * modules/unictype/category-Po: New file.
46581         * modules/unictype/category-S: New file.
46582         * modules/unictype/category-Sm: New file.
46583         * modules/unictype/category-Sc: New file.
46584         * modules/unictype/category-Sk: New file.
46585         * modules/unictype/category-So: New file.
46586         * modules/unictype/category-Z: New file.
46587         * modules/unictype/category-Zs: New file.
46588         * modules/unictype/category-Zl: New file.
46589         * modules/unictype/category-Zp: New file.
46590         * modules/unictype/category-C: New file.
46591         * modules/unictype/category-Cc: New file.
46592         * modules/unictype/category-Cf: New file.
46593         * modules/unictype/category-Cs: New file.
46594         * modules/unictype/category-Co: New file.
46595         * modules/unictype/category-Cn: New file.
46596         * modules/unictype/category-or: New file.
46597         * modules/unictype/category-of: New file.
46598         * modules/unictype/category-test: New file.
46599         * modules/unictype/category-test-withtable: New file.
46600         * modules/unictype/category-byname: New file.
46601         * modules/unictype/category-none: New file.
46602         * modules/unictype/category-and: New file.
46603         * modules/unictype/category-and-not: New file.
46604         * modules/unictype/category-name: New file.
46605         * modules/unictype/combining-class: New file.
46606         * modules/unictype/category-all: New file.
46607         * modules/unictype/bidicategory-all: New file.
46608         * modules/unictype/bidicategory-byname: New file.
46609         * modules/unictype/bidicategory-name: New file.
46610         * modules/unictype/bidicategory-of: New file.
46611         * modules/unictype/bidicategory-test: New file.
46612         * modules/unictype/decimal-digit: New file.
46613         * modules/unictype/digit: New file.
46614         * modules/unictype/numeric: New file.
46615         * modules/unictype/mirror: New file.
46616         * modules/unictype/property-white-space: New file.
46617         * modules/unictype/property-alphabetic: New file.
46618         * modules/unictype/property-other-alphabetic: New file.
46619         * modules/unictype/property-not-a-character: New file.
46620         * modules/unictype/property-default-ignorable-code-point: New file.
46621         * modules/unictype/property-other-default-ignorable-code-point: New
46622         file.
46623         * modules/unictype/property-deprecated: New file.
46624         * modules/unictype/property-logical-order-exception: New file.
46625         * modules/unictype/property-variation-selector: New file.
46626         * modules/unictype/property-private-use: New file.
46627         * modules/unictype/property-unassigned-code-value: New file.
46628         * modules/unictype/property-uppercase: New file.
46629         * modules/unictype/property-other-uppercase: New file.
46630         * modules/unictype/property-lowercase: New file.
46631         * modules/unictype/property-other-lowercase: New file.
46632         * modules/unictype/property-titlecase: New file.
46633         * modules/unictype/property-soft-dotted: New file.
46634         * modules/unictype/property-id-start: New file.
46635         * modules/unictype/property-other-id-start: New file.
46636         * modules/unictype/property-id-continue: New file.
46637         * modules/unictype/property-other-id-continue: New file.
46638         * modules/unictype/property-xid-start: New file.
46639         * modules/unictype/property-xid-continue: New file.
46640         * modules/unictype/property-pattern-white-space: New file.
46641         * modules/unictype/property-pattern-syntax: New file.
46642         * modules/unictype/property-join-control: New file.
46643         * modules/unictype/property-grapheme-base: New file.
46644         * modules/unictype/property-grapheme-extend: New file.
46645         * modules/unictype/property-other-grapheme-extend: New file.
46646         * modules/unictype/property-grapheme-link: New file.
46647         * modules/unictype/property-bidi-control: New file.
46648         * modules/unictype/property-bidi-left-to-right: New file.
46649         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46650         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46651         * modules/unictype/property-bidi-european-digit: New file.
46652         * modules/unictype/property-bidi-eur-num-separator: New file.
46653         * modules/unictype/property-bidi-eur-num-terminator: New file.
46654         * modules/unictype/property-bidi-arabic-digit: New file.
46655         * modules/unictype/property-bidi-common-separator: New file.
46656         * modules/unictype/property-bidi-block-separator: New file.
46657         * modules/unictype/property-bidi-segment-separator: New file.
46658         * modules/unictype/property-bidi-whitespace: New file.
46659         * modules/unictype/property-bidi-non-spacing-mark: New file.
46660         * modules/unictype/property-bidi-boundary-neutral: New file.
46661         * modules/unictype/property-bidi-pdf: New file.
46662         * modules/unictype/property-bidi-embedding-or-override: New file.
46663         * modules/unictype/property-bidi-other-neutral: New file.
46664         * modules/unictype/property-hex-digit: New file.
46665         * modules/unictype/property-ascii-hex-digit: New file.
46666         * modules/unictype/property-ideographic: New file.
46667         * modules/unictype/property-unified-ideograph: New file.
46668         * modules/unictype/property-radical: New file.
46669         * modules/unictype/property-ids-binary-operator: New file.
46670         * modules/unictype/property-ids-trinary-operator: New file.
46671         * modules/unictype/property-zero-width: New file.
46672         * modules/unictype/property-space: New file.
46673         * modules/unictype/property-non-break: New file.
46674         * modules/unictype/property-iso-control: New file.
46675         * modules/unictype/property-format-control: New file.
46676         * modules/unictype/property-dash: New file.
46677         * modules/unictype/property-hyphen: New file.
46678         * modules/unictype/property-punctuation: New file.
46679         * modules/unictype/property-line-separator: New file.
46680         * modules/unictype/property-paragraph-separator: New file.
46681         * modules/unictype/property-quotation-mark: New file.
46682         * modules/unictype/property-sentence-terminal: New file.
46683         * modules/unictype/property-terminal-punctuation: New file.
46684         * modules/unictype/property-currency-symbol: New file.
46685         * modules/unictype/property-math: New file.
46686         * modules/unictype/property-other-math: New file.
46687         * modules/unictype/property-paired-punctuation: New file.
46688         * modules/unictype/property-left-of-pair: New file.
46689         * modules/unictype/property-combining: New file.
46690         * modules/unictype/property-composite: New file.
46691         * modules/unictype/property-decimal-digit: New file.
46692         * modules/unictype/property-numeric: New file.
46693         * modules/unictype/property-diacritic: New file.
46694         * modules/unictype/property-extender: New file.
46695         * modules/unictype/property-ignorable-control: New file.
46696         * modules/unictype/property-test: New file.
46697         * modules/unictype/property-byname: New file.
46698         * modules/unictype/property-all: New file.
46699         * modules/unictype/scripts: New file.
46700         * modules/unictype/scripts-all: New file.
46701         * modules/unictype/block-of: New file.
46702         * modules/unictype/block-test: New file.
46703         * modules/unictype/block-list: New file.
46704         * modules/unictype/block-all: New file.
46705         * modules/unictype/syntax-c-whitespace: New file.
46706         * modules/unictype/syntax-java-whitespace: New file.
46707         * modules/unictype/syntax-c-ident: New file.
46708         * modules/unictype/syntax-java-ident: New file.
46709         * modules/unictype/ctype-alnum: New file.
46710         * modules/unictype/ctype-alpha: New file.
46711         * modules/unictype/ctype-cntrl: New file.
46712         * modules/unictype/ctype-digit: New file.
46713         * modules/unictype/ctype-graph: New file.
46714         * modules/unictype/ctype-lower: New file.
46715         * modules/unictype/ctype-print: New file.
46716         * modules/unictype/ctype-punct: New file.
46717         * modules/unictype/ctype-space: New file.
46718         * modules/unictype/ctype-upper: New file.
46719         * modules/unictype/ctype-xdigit: New file.
46720         * modules/unictype/ctype-blank: New file.
46721         * lib/unictype/bidi_byname.c: New file.
46722         * lib/unictype/bidi_name.c: New file.
46723         * lib/unictype/bidi_of.c: New file.
46724         * lib/unictype/bidi_test.c: New file.
46725         * lib/unictype/bitmap.h: New file.
46726         * lib/unictype/block_test.c: New file.
46727         * lib/unictype/blocks.c: New file.
46728         * lib/unictype/categ_C.c: New file.
46729         * lib/unictype/categ_Cc.c: New file.
46730         * lib/unictype/categ_Cf.c: New file.
46731         * lib/unictype/categ_Cn.c: New file.
46732         * lib/unictype/categ_Co.c: New file.
46733         * lib/unictype/categ_Cs.c: New file.
46734         * lib/unictype/categ_L.c: New file.
46735         * lib/unictype/categ_Ll.c: New file.
46736         * lib/unictype/categ_Lm.c: New file.
46737         * lib/unictype/categ_Lo.c: New file.
46738         * lib/unictype/categ_Lt.c: New file.
46739         * lib/unictype/categ_Lu.c: New file.
46740         * lib/unictype/categ_M.c: New file.
46741         * lib/unictype/categ_Mc.c: New file.
46742         * lib/unictype/categ_Me.c: New file.
46743         * lib/unictype/categ_Mn.c: New file.
46744         * lib/unictype/categ_N.c: New file.
46745         * lib/unictype/categ_Nd.c: New file.
46746         * lib/unictype/categ_Nl.c: New file.
46747         * lib/unictype/categ_No.c: New file.
46748         * lib/unictype/categ_P.c: New file.
46749         * lib/unictype/categ_Pc.c: New file.
46750         * lib/unictype/categ_Pd.c: New file.
46751         * lib/unictype/categ_Pe.c: New file.
46752         * lib/unictype/categ_Pf.c: New file.
46753         * lib/unictype/categ_Pi.c: New file.
46754         * lib/unictype/categ_Po.c: New file.
46755         * lib/unictype/categ_Ps.c: New file.
46756         * lib/unictype/categ_S.c: New file.
46757         * lib/unictype/categ_Sc.c: New file.
46758         * lib/unictype/categ_Sk.c: New file.
46759         * lib/unictype/categ_Sm.c: New file.
46760         * lib/unictype/categ_So.c: New file.
46761         * lib/unictype/categ_Z.c: New file.
46762         * lib/unictype/categ_Zl.c: New file.
46763         * lib/unictype/categ_Zp.c: New file.
46764         * lib/unictype/categ_Zs.c: New file.
46765         * lib/unictype/categ_and.c: New file.
46766         * lib/unictype/categ_and_not.c: New file.
46767         * lib/unictype/categ_byname.c: New file.
46768         * lib/unictype/categ_name.c: New file.
46769         * lib/unictype/categ_none.c: New file.
46770         * lib/unictype/categ_of.c: New file.
46771         * lib/unictype/categ_or.c: New file.
46772         * lib/unictype/categ_test.c: New file.
46773         * lib/unictype/combining.c: New file.
46774         * lib/unictype/ctype_alnum.c: New file.
46775         * lib/unictype/ctype_alpha.c: New file.
46776         * lib/unictype/ctype_blank.c: New file.
46777         * lib/unictype/ctype_cntrl.c: New file.
46778         * lib/unictype/ctype_digit.c: New file.
46779         * lib/unictype/ctype_graph.c: New file.
46780         * lib/unictype/ctype_lower.c: New file.
46781         * lib/unictype/ctype_print.c: New file.
46782         * lib/unictype/ctype_punct.c: New file.
46783         * lib/unictype/ctype_space.c: New file.
46784         * lib/unictype/ctype_upper.c: New file.
46785         * lib/unictype/ctype_xdigit.c: New file.
46786         * lib/unictype/decdigit.c: New file.
46787         * lib/unictype/digit.c: New file.
46788         * lib/unictype/identsyntaxmap.h: New file.
46789         * lib/unictype/mirror.c: New file.
46790         * lib/unictype/numeric.c: New file.
46791         * lib/unictype/pr_alphabetic.c: New file.
46792         * lib/unictype/pr_ascii_hex_digit.c: New file.
46793         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46794         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46795         * lib/unictype/pr_bidi_block_separator.c: New file.
46796         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46797         * lib/unictype/pr_bidi_common_separator.c: New file.
46798         * lib/unictype/pr_bidi_control.c: New file.
46799         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46800         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46801         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46802         * lib/unictype/pr_bidi_european_digit.c: New file.
46803         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46804         * lib/unictype/pr_bidi_left_to_right.c: New file.
46805         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46806         * lib/unictype/pr_bidi_other_neutral.c: New file.
46807         * lib/unictype/pr_bidi_pdf.c: New file.
46808         * lib/unictype/pr_bidi_segment_separator.c: New file.
46809         * lib/unictype/pr_bidi_whitespace.c: New file.
46810         * lib/unictype/pr_byname.c: New file.
46811         * lib/unictype/pr_byname.gperf: New file.
46812         * lib/unictype/pr_combining.c: New file.
46813         * lib/unictype/pr_composite.c: New file.
46814         * lib/unictype/pr_currency_symbol.c: New file.
46815         * lib/unictype/pr_dash.c: New file.
46816         * lib/unictype/pr_decimal_digit.c: New file.
46817         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46818         * lib/unictype/pr_deprecated.c: New file.
46819         * lib/unictype/pr_diacritic.c: New file.
46820         * lib/unictype/pr_extender.c: New file.
46821         * lib/unictype/pr_format_control.c: New file.
46822         * lib/unictype/pr_grapheme_base.c: New file.
46823         * lib/unictype/pr_grapheme_extend.c: New file.
46824         * lib/unictype/pr_grapheme_link.c: New file.
46825         * lib/unictype/pr_hex_digit.c: New file.
46826         * lib/unictype/pr_hyphen.c: New file.
46827         * lib/unictype/pr_id_continue.c: New file.
46828         * lib/unictype/pr_id_start.c: New file.
46829         * lib/unictype/pr_ideographic.c: New file.
46830         * lib/unictype/pr_ids_binary_operator.c: New file.
46831         * lib/unictype/pr_ids_trinary_operator.c: New file.
46832         * lib/unictype/pr_ignorable_control.c: New file.
46833         * lib/unictype/pr_iso_control.c: New file.
46834         * lib/unictype/pr_join_control.c: New file.
46835         * lib/unictype/pr_left_of_pair.c: New file.
46836         * lib/unictype/pr_line_separator.c: New file.
46837         * lib/unictype/pr_logical_order_exception.c: New file.
46838         * lib/unictype/pr_lowercase.c: New file.
46839         * lib/unictype/pr_math.c: New file.
46840         * lib/unictype/pr_non_break.c: New file.
46841         * lib/unictype/pr_not_a_character.c: New file.
46842         * lib/unictype/pr_numeric.c: New file.
46843         * lib/unictype/pr_other_alphabetic.c: New file.
46844         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46845         * lib/unictype/pr_other_grapheme_extend.c: New file.
46846         * lib/unictype/pr_other_id_continue.c: New file.
46847         * lib/unictype/pr_other_id_start.c: New file.
46848         * lib/unictype/pr_other_lowercase.c: New file.
46849         * lib/unictype/pr_other_math.c: New file.
46850         * lib/unictype/pr_other_uppercase.c: New file.
46851         * lib/unictype/pr_paired_punctuation.c: New file.
46852         * lib/unictype/pr_paragraph_separator.c: New file.
46853         * lib/unictype/pr_pattern_syntax.c: New file.
46854         * lib/unictype/pr_pattern_white_space.c: New file.
46855         * lib/unictype/pr_private_use.c: New file.
46856         * lib/unictype/pr_punctuation.c: New file.
46857         * lib/unictype/pr_quotation_mark.c: New file.
46858         * lib/unictype/pr_radical.c: New file.
46859         * lib/unictype/pr_sentence_terminal.c: New file.
46860         * lib/unictype/pr_soft_dotted.c: New file.
46861         * lib/unictype/pr_space.c: New file.
46862         * lib/unictype/pr_terminal_punctuation.c: New file.
46863         * lib/unictype/pr_test.c: New file.
46864         * lib/unictype/pr_titlecase.c: New file.
46865         * lib/unictype/pr_unassigned_code_value.c: New file.
46866         * lib/unictype/pr_unified_ideograph.c: New file.
46867         * lib/unictype/pr_uppercase.c: New file.
46868         * lib/unictype/pr_variation_selector.c: New file.
46869         * lib/unictype/pr_white_space.c: New file.
46870         * lib/unictype/pr_xid_continue.c: New file.
46871         * lib/unictype/pr_xid_start.c: New file.
46872         * lib/unictype/pr_zero_width.c: New file.
46873         * lib/unictype/scripts.c: New file.
46874         * lib/unictype/sy_c_ident.c: New file.
46875         * lib/unictype/sy_c_whitespace.c: New file.
46876         * lib/unictype/sy_java_ident.c: New file.
46877         * lib/unictype/sy_java_whitespace.c: New file.
46878
46879         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46880         Unicode 5.0.0.
46881         * lib/unictype/blocks.h: Likewise.
46882         * lib/unictype/categ_C.h: Likewise.
46883         * lib/unictype/categ_Cc.h: Likewise.
46884         * lib/unictype/categ_Cf.h: Likewise.
46885         * lib/unictype/categ_Cn.h: Likewise.
46886         * lib/unictype/categ_Co.h: Likewise.
46887         * lib/unictype/categ_Cs.h: Likewise.
46888         * lib/unictype/categ_L.h: Likewise.
46889         * lib/unictype/categ_Ll.h: Likewise.
46890         * lib/unictype/categ_Lm.h: Likewise.
46891         * lib/unictype/categ_Lo.h: Likewise.
46892         * lib/unictype/categ_Lt.h: Likewise.
46893         * lib/unictype/categ_Lu.h: Likewise.
46894         * lib/unictype/categ_M.h: Likewise.
46895         * lib/unictype/categ_Mc.h: Likewise.
46896         * lib/unictype/categ_Me.h: Likewise.
46897         * lib/unictype/categ_Mn.h: Likewise.
46898         * lib/unictype/categ_N.h: Likewise.
46899         * lib/unictype/categ_Nd.h: Likewise.
46900         * lib/unictype/categ_Nl.h: Likewise.
46901         * lib/unictype/categ_No.h: Likewise.
46902         * lib/unictype/categ_P.h: Likewise.
46903         * lib/unictype/categ_Pc.h: Likewise.
46904         * lib/unictype/categ_Pd.h: Likewise.
46905         * lib/unictype/categ_Pe.h: Likewise.
46906         * lib/unictype/categ_Pf.h: Likewise.
46907         * lib/unictype/categ_Pi.h: Likewise.
46908         * lib/unictype/categ_Po.h: Likewise.
46909         * lib/unictype/categ_Ps.h: Likewise.
46910         * lib/unictype/categ_S.h: Likewise.
46911         * lib/unictype/categ_Sc.h: Likewise.
46912         * lib/unictype/categ_Sk.h: Likewise.
46913         * lib/unictype/categ_Sm.h: Likewise.
46914         * lib/unictype/categ_So.h: Likewise.
46915         * lib/unictype/categ_Z.h: Likewise.
46916         * lib/unictype/categ_Zl.h: Likewise.
46917         * lib/unictype/categ_Zp.h: Likewise.
46918         * lib/unictype/categ_Zs.h: Likewise.
46919         * lib/unictype/categ_of.h: Likewise.
46920         * lib/unictype/combining.h: Likewise.
46921         * lib/unictype/ctype_alnum.h: Likewise.
46922         * lib/unictype/ctype_alpha.h: Likewise.
46923         * lib/unictype/ctype_blank.h: Likewise.
46924         * lib/unictype/ctype_cntrl.h: Likewise.
46925         * lib/unictype/ctype_digit.h: Likewise.
46926         * lib/unictype/ctype_graph.h: Likewise.
46927         * lib/unictype/ctype_lower.h: Likewise.
46928         * lib/unictype/ctype_print.h: Likewise.
46929         * lib/unictype/ctype_punct.h: Likewise.
46930         * lib/unictype/ctype_space.h: Likewise.
46931         * lib/unictype/ctype_upper.h: Likewise.
46932         * lib/unictype/ctype_xdigit.h: Likewise.
46933         * lib/unictype/decdigit.h: Likewise.
46934         * lib/unictype/digit.h: Likewise.
46935         * lib/unictype/mirror.h: Likewise.
46936         * lib/unictype/numeric.h: Likewise.
46937         * lib/unictype/pr_alphabetic.h: Likewise.
46938         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46939         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46940         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46941         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46942         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46943         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46944         * lib/unictype/pr_bidi_control.h: Likewise.
46945         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46946         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46947         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46948         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46949         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46950         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46951         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46952         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46953         * lib/unictype/pr_bidi_pdf.h: Likewise.
46954         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46955         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46956         * lib/unictype/pr_combining.h: Likewise.
46957         * lib/unictype/pr_composite.h: Likewise.
46958         * lib/unictype/pr_currency_symbol.h: Likewise.
46959         * lib/unictype/pr_dash.h: Likewise.
46960         * lib/unictype/pr_decimal_digit.h: Likewise.
46961         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46962         * lib/unictype/pr_deprecated.h: Likewise.
46963         * lib/unictype/pr_diacritic.h: Likewise.
46964         * lib/unictype/pr_extender.h: Likewise.
46965         * lib/unictype/pr_format_control.h: Likewise.
46966         * lib/unictype/pr_grapheme_base.h: Likewise.
46967         * lib/unictype/pr_grapheme_extend.h: Likewise.
46968         * lib/unictype/pr_grapheme_link.h: Likewise.
46969         * lib/unictype/pr_hex_digit.h: Likewise.
46970         * lib/unictype/pr_hyphen.h: Likewise.
46971         * lib/unictype/pr_id_continue.h: Likewise.
46972         * lib/unictype/pr_id_start.h: Likewise.
46973         * lib/unictype/pr_ideographic.h: Likewise.
46974         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46975         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46976         * lib/unictype/pr_ignorable_control.h: Likewise.
46977         * lib/unictype/pr_iso_control.h: Likewise.
46978         * lib/unictype/pr_join_control.h: Likewise.
46979         * lib/unictype/pr_left_of_pair.h: Likewise.
46980         * lib/unictype/pr_line_separator.h: Likewise.
46981         * lib/unictype/pr_logical_order_exception.h: Likewise.
46982         * lib/unictype/pr_lowercase.h: Likewise.
46983         * lib/unictype/pr_math.h: Likewise.
46984         * lib/unictype/pr_non_break.h: Likewise.
46985         * lib/unictype/pr_not_a_character.h: Likewise.
46986         * lib/unictype/pr_numeric.h: Likewise.
46987         * lib/unictype/pr_other_alphabetic.h: Likewise.
46988         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46989         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46990         * lib/unictype/pr_other_id_continue.h: Likewise.
46991         * lib/unictype/pr_other_id_start.h: Likewise.
46992         * lib/unictype/pr_other_lowercase.h: Likewise.
46993         * lib/unictype/pr_other_math.h: Likewise.
46994         * lib/unictype/pr_other_uppercase.h: Likewise.
46995         * lib/unictype/pr_paired_punctuation.h: Likewise.
46996         * lib/unictype/pr_paragraph_separator.h: Likewise.
46997         * lib/unictype/pr_pattern_syntax.h: Likewise.
46998         * lib/unictype/pr_pattern_white_space.h: Likewise.
46999         * lib/unictype/pr_private_use.h: Likewise.
47000         * lib/unictype/pr_punctuation.h: Likewise.
47001         * lib/unictype/pr_quotation_mark.h: Likewise.
47002         * lib/unictype/pr_radical.h: Likewise.
47003         * lib/unictype/pr_sentence_terminal.h: Likewise.
47004         * lib/unictype/pr_soft_dotted.h: Likewise.
47005         * lib/unictype/pr_space.h: Likewise.
47006         * lib/unictype/pr_terminal_punctuation.h: Likewise.
47007         * lib/unictype/pr_titlecase.h: Likewise.
47008         * lib/unictype/pr_unassigned_code_value.h: Likewise.
47009         * lib/unictype/pr_unified_ideograph.h: Likewise.
47010         * lib/unictype/pr_uppercase.h: Likewise.
47011         * lib/unictype/pr_variation_selector.h: Likewise.
47012         * lib/unictype/pr_white_space.h: Likewise.
47013         * lib/unictype/pr_xid_continue.h: Likewise.
47014         * lib/unictype/pr_xid_start.h: Likewise.
47015         * lib/unictype/pr_zero_width.h: Likewise.
47016         * lib/unictype/scripts.h: Likewise.
47017         * lib/unictype/scripts_byname.gperf: Likewise.
47018         * lib/unictype/sy_c_ident.h: Likewise.
47019         * lib/unictype/sy_c_whitespace.h: Likewise.
47020         * lib/unictype/sy_java_ident.h: Likewise.
47021         * lib/unictype/sy_java_whitespace.h: Likewise.
47022
47023         * lib/unictype/Makefile: New file.
47024         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
47025         glibc.
47026         * lib/unictype/3level.h: New file, copied from glibc.
47027         * lib/unictype/3levelbit.h: New file.
47028
47029 2007-11-11  Bruno Haible  <bruno@clisp.org>
47030
47031         * modules/gperf: New file.
47032         * modules/iconv_open (Depends-on): Add it.
47033         (Makefile.am): Remove the GPERF definition.
47034
47035 2007-11-11  Bruno Haible  <bruno@clisp.org>
47036
47037         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
47038         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
47039
47040 2007-11-11  Bruno Haible  <bruno@clisp.org>
47041
47042         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
47043         (usage): Remove function.
47044
47045 2007-11-11  Bruno Haible  <bruno@clisp.org>
47046
47047         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
47048         gl_FUNC_CEILF_LIBS.
47049         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
47050         gl_FUNC_CEIL_LIBS.
47051         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
47052         gl_FUNC_CEILL_LIBS.
47053         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
47054         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
47055         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
47056
47057 2007-11-11  Bruno Haible  <bruno@clisp.org>
47058
47059         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
47060         roundf were declared but do not exist on functions.
47061         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
47062         roundl were declared but do not exist on functions.
47063         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
47064         HAVE_FLOORL_AND_CEILL, respectively.
47065         Needed for Sun C on Solaris 10.
47066
47067 2007-11-11  Bruno Haible  <bruno@clisp.org>
47068
47069         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
47070         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
47071         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
47072         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
47073         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
47074         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
47075         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
47076         HAVE_DECL_ROUNDF.
47077         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
47078         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
47079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
47080         of HAVE_DECL_ROUND*.
47081         * modules/math (Makefile.am): Update.
47082
47083 2007-11-10  Bruno Haible  <bruno@clisp.org>
47084
47085         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
47086         ptrdiff_t as m4/intl.m4.
47087
47088 2007-11-10  Jim Meyering  <meyering@redhat.com>
47089
47090         Avoid link failure for the argmatch test.
47091         * tests/test-argmatch.c (usage): Define function to avoid a link
47092         failure: argmatch_die requires a usage function.
47093
47094 2007-11-09  Bruno Haible  <bruno@clisp.org>
47095
47096         * doc/functions/snprintf.texi: Mention BeOS deficiency.
47097         * doc/functions/vsnprintf.texi: Likewise.
47098         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
47099         with a size argument < 2.
47100
47101 2007-11-09  Bruno Haible  <bruno@clisp.org>
47102
47103         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
47104         buffer. Fixes an inefficiency introduced on 2007-11-03.
47105
47106 2007-11-09  Bruno Haible  <bruno@clisp.org>
47107
47108         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
47109         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
47110
47111 2007-11-08  Jim Meyering  <meyering@redhat.com>
47112
47113         Change cache variable name prefix "jm_" to "gl_" everywhere.
47114         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
47115         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
47116         * m4/uptime.m4: s/gl_/jm_/
47117
47118 2007-11-07  Bruno Haible  <bruno@clisp.org>
47119
47120         Update to GNU gettext 0.17.
47121         * m4/intl.m4: Update to GNU gettext 0.17.
47122         * m4/po.m4: Likewise.
47123         * modules/gettext (Files): Remove m4/ulonglong.m4.
47124         (configure.ac): Require gettext infrastructure from version 0.17.
47125
47126 2007-11-06  Bruno Haible  <bruno@clisp.org>
47127
47128         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
47129         symbolic values are not defined in a public header.
47130         * lib/freadable.c (freadable) [QNX]: Likewise.
47131         * lib/freadahead.c (freadahead) [QNX]: Likewise.
47132         * lib/freading.c (freading) [QNX]: Likewise.
47133         * lib/fseterr.c (fseterr) [QNX]: Likewise.
47134         * lib/fwritable.c (fwritable) [QNX]: Likewise.
47135         * lib/fwriting.c (fwriting) [QNX]: Likewise.
47136         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
47137         Reported by Alain Magloire.
47138
47139         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
47140
47141 2007-11-05  Bruno Haible  <bruno@clisp.org>
47142
47143         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
47144         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
47145         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
47146         Reported by Eric Blake.
47147
47148 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47149             Bruno Haible  <bruno@clisp.org>
47150
47151         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
47152         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
47153         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
47154         (malloc): Undefine also before including <stdlib.h>.
47155         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
47156         Needed on OSF/1 4.0.
47157
47158 2007-11-05  Jim Meyering  <meyering@redhat.com>
47159
47160         git-version-gen: sync from coreutils.
47161         * build-aux/git-version-gen: Add comments.
47162         Change the first '-' to '.' in the snapshot version string,
47163         e.g., 6.9-377-08144 -> 6.9.377-08144
47164         Remove first parameter.
47165         Don't declare a version "-dirty" merely because a time
47166         stamp has changed.
47167
47168 2007-11-04  Bruno Haible  <bruno@clisp.org>
47169
47170         * lib/lock.h: Protect all macro definitions containing an 'if'
47171         statement through a "do { ... } while (0)".
47172         * lib/tls.h: Likewise.
47173
47174 2007-11-04  Bruno Haible  <bruno@clisp.org>
47175
47176         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
47177
47178 2007-11-04  Bruno Haible  <bruno@clisp.org>
47179
47180         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
47181         * modules/fprintf-posix (Depends-on): Add nocrash.
47182         * modules/snprintf-posix (Depends-on): Likewise.
47183         * modules/sprintf-posix (Depends-on): Likewise.
47184         * modules/vasnprintf-posix (Depends-on): Likewise.
47185         * modules/vasprintf-posix (Depends-on): Likewise.
47186         * modules/vfprintf-posix (Depends-on): Likewise.
47187         * modules/vsnprintf-posix (Depends-on): Likewise.
47188         * modules/vsprintf-posix (Depends-on): Likewise.
47189         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47190         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47191         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47192         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47193         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47194         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47195         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47196
47197 2007-11-04  Bruno Haible  <bruno@clisp.org>
47198
47199         * modules/nocrash: New file.
47200         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
47201         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
47202
47203 2007-11-04  Bruno Haible  <bruno@clisp.org>
47204
47205         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
47206         precision handling.
47207         * tests/test-vasprintf-posix.c (test_function): Likewise.
47208         * tests/test-snprintf-posix.h (test_function): Likewise.
47209         * tests/test-sprintf-posix.h (test_function): Likewise.
47210
47211         Fix *printf behaviour for large precisions on mingw and BeOS.
47212         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
47213         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
47214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
47215         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47216         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47217         gl_PRINTF_PRECISION and test its result. Invoke
47218         gl_PREREQ_VASNPRINTF_PRECISION.
47219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47221         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47222         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47223         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47224         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47225         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47226         * doc/functions/fprintf.texi: Update.
47227         * doc/functions/printf.texi: Update.
47228         * doc/functions/snprintf.texi: Update.
47229         * doc/functions/sprintf.texi: Update.
47230         * doc/functions/vfprintf.texi: Update.
47231         * doc/functions/vprintf.texi: Update.
47232         * doc/functions/vsnprintf.texi: Update.
47233         * doc/functions/vsprintf.texi: Update.
47234
47235 2007-11-04  Bruno Haible  <bruno@clisp.org>
47236
47237         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
47238
47239 2007-11-04  Bruno Haible  <bruno@clisp.org>
47240
47241         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47242         Reported by Sylvain Beucler <beuc@gnu.org>.
47243
47244 2007-11-03  Bruno Haible  <bruno@clisp.org>
47245
47246         * tests/test-fprintf-posix2.sh: New file.
47247         * tests/test-fprintf-posix2.c: New file.
47248         * modules/fprintf-posix-tests (Files): Add them.
47249         (TESTS): Add test-fprintf-posix2.sh.
47250         (configure.ac): Check for getrlimit and setrlimit.
47251         (check_PROGRAMS): Add test-fprintf-posix2.
47252
47253         * tests/test-printf-posix2.sh: New file.
47254         * tests/test-printf-posix2.c: New file.
47255         * modules/printf-posix-tests (Files): Add them.
47256         (TESTS): Add test-printf-posix2.sh.
47257         (configure.ac): Check for getrlimit and setrlimit.
47258         (check_PROGRAMS): Add test-printf-posix2.
47259
47260         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47261         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47262         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47263         (decode_double): New function, copied from decode_long_double.
47264         (scale10_round_decimal_decoded): New function, extracted from
47265         scale10_round_decimal_long_double.
47266         (scale10_round_decimal_long_double): Use it.
47267         (scale10_round_decimal_double): New function.
47268         (floorlog10): New function.
47269         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47271         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47272         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47273         gl_PRINTF_ENOMEM and test its result. Invoke
47274         gl_PREREQ_VASNPRINTF_ENOMEM.
47275         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47276         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47277         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47278         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47279         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47280         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47281         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47282         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47283         * modules/snprintf-posix (Depends-on): Likewise.
47284         * modules/sprintf-posix (Depends-on): Likewise.
47285         * modules/vasnprintf-posix (Depends-on): Likewise.
47286         * modules/vasprintf-posix (Depends-on): Likewise.
47287         * modules/vfprintf-posix (Depends-on): Likewise.
47288         * modules/vsnprintf-posix (Depends-on): Likewise.
47289         * modules/vsprintf-posix (Depends-on): Likewise.
47290         * doc/functions/fprintf.texi: Update.
47291         * doc/functions/printf.texi: Update.
47292         * doc/functions/snprintf.texi: Update.
47293         * doc/functions/sprintf.texi: Update.
47294         * doc/functions/vfprintf.texi: Update.
47295         * doc/functions/vprintf.texi: Update.
47296         * doc/functions/vsnprintf.texi: Update.
47297         * doc/functions/vsprintf.texi: Update.
47298
47299 2007-11-03  Bruno Haible  <bruno@clisp.org>
47300
47301         * modules/frexp-nolibm-tests: New file.
47302
47303         * modules/frexp-nolibm: New file.
47304         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47305
47306 2007-11-03  Bruno Haible  <bruno@clisp.org>
47307
47308         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47309         value is C99 compliant.
47310         Needed for OSF/1 5.1.
47311
47312 2007-11-03  Bruno Haible  <bruno@clisp.org>
47313
47314         Fix out-of-memory handling of vasnprintf.
47315         * lib/printf-parse.c: Include <errno.h>.
47316         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47317         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47318         is already set.
47319
47320 2007-11-02  Eric Blake  <ebb9@byu.net>
47321
47322         Fix tests on cygwin.
47323         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47324
47325 2007-11-01  Bruno Haible  <bruno@clisp.org>
47326
47327         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47328         warning.
47329         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47330         needed for POSIX compatibility.
47331
47332 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47333
47334         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47335         for compatibility with GNU.
47336
47337 2007-11-01  Bruno Haible  <bruno@clisp.org>
47338
47339         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47340         (putenv): Renamed from rpl_putenv. Change argument type from
47341         'const char *' to 'char *'.
47342         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47343         of defining putenv in config.h, just set REPLACE_PUTENV.
47344         * modules/putenv (Depends-on): Add stdlib.
47345         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47346         (Include): Use <stdlib.h>.
47347         * lib/stdlib.in.h (putenv): New declaration.
47348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47349         REPLACE_PUTENV.
47350         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47351         REPLACE_PUTENV.
47352         Needed for MacOS X 10.5.0.
47353         Reported by Peter O'Gorman <peter@pogma.com>.
47354
47355 2007-11-01  Jim Meyering  <meyering@redhat.com>
47356
47357         Treat an empty date string exactly like "0".
47358         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47359         if the remaining date string (to be parsed) is empty, use "0".
47360         Reported by Mischa Molhoek and discussed in this thread:
47361         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47362
47363 2007-10-31  Bruno Haible  <bruno@clisp.org>
47364
47365         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47366         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47367         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47368         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47369         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47370         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47371
47372 2007-10-31  Bruno Haible  <bruno@clisp.org>
47373
47374         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47375         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47376         (AC_TYPE_LONG_LONG_INT): Use it.
47377         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47378         it as well.
47379         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47380         to m4/longlong.m4.
47381         * modules/stdint (Files): Remove m4/ulonglong.m4.
47382         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47383         m4/ulonglong.m4.
47384         * modules/strtoumax (Files): Likewise.
47385
47386 2007-10-30  Bruno Haible  <bruno@clisp.org>
47387
47388         * modules/xvasprintf-posix: New file.
47389         Suggested by Eric Blake.
47390
47391 2007-10-30  Bruno Haible  <bruno@clisp.org>
47392
47393         * modules/xprintf-posix-tests: New file.
47394         * tests/test-xprintf-posix.sh: New file.
47395         * tests/test-xprintf-posix.c: New file.
47396         * tests/test-xfprintf-posix.c: New file.
47397
47398         * modules/xprintf-posix: New file.
47399
47400 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47401
47402         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47403         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47404         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47405
47406 2007-10-29  Bruno Haible  <bruno@clisp.org>
47407
47408         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47409         contain the special marker '_cv_'.
47410         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47411         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47412         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47413         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47414         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47415         Reported by Ralf Wildenhues.
47416
47417 2007-10-29  Bruno Haible  <bruno@clisp.org>
47418
47419         * gnulib-tool (func_import): When --lgpl is not specified, set
47420         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47421         GPLv3.
47422         Reported by Simon Josefsson.
47423
47424 2007-10-28  Bruno Haible  <bruno@clisp.org>
47425
47426         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47427         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47428         HAVE_DECL_ISFINITE.
47429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47430         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47431         HAVE_DECL_ISFINITE.
47432
47433 2007-10-28  Bruno Haible  <bruno@clisp.org>
47434
47435         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47436         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47437
47438 2007-10-28  Bruno Haible  <bruno@clisp.org>
47439
47440         Fix link errors with Sun C 5.0 on Solaris 10.
47441         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47442         function is declared but not present in the compiler's libm.
47443         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47444         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47445         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47446         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47447         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47448         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47449         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47451         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47452         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47453         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47454         HAVE_DECL_FLOORL.
47455
47456 2007-10-28  Bruno Haible  <bruno@clisp.org>
47457
47458         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47459         gl_FUNC_FLOORL. Cache the result.
47460         (gl_FUNC_FLOORL): Use it.
47461         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47462         gl_FUNC_CEILL. Cache the result.
47463         (gl_FUNC_CEILL): Use it.
47464
47465         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47466         gl_FUNC_FLOOR. Cache the result.
47467         (gl_FUNC_FLOOR): Use it.
47468         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47469         gl_FUNC_CEIL. Cache the result.
47470         (gl_FUNC_CEIL): Use it.
47471
47472         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47473         gl_FUNC_FLOORF. Cache the result.
47474         (gl_FUNC_FLOORF): Use it.
47475         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47476         gl_FUNC_CEILF. Cache the result.
47477         (gl_FUNC_CEILF): Use it.
47478
47479 2007-10-28  Bruno Haible  <bruno@clisp.org>
47480
47481         * gnulib-tool: Allow specifying the LGPL version number through
47482         --lgpl=2 or --lgpl=3.
47483         (func_usage): Document --lgpl with argument.
47484         Handle --lgpl=... arguments.
47485         (func_import): Recognize also gl_LGPL calls with an argument. When
47486         --lgpl=2 is used and the module's license is just LGPL, report an
47487         error. Set sed_transform_lib_file according to the lgpl variable. In
47488         the generated files, use --lgpl or gl_LGPL invocations with argument,
47489         if necessary.
47490         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47491         an LGPv2+ license.
47492         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47493         gl_LGPL macro.
47494
47495 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47496             Bruno Haible  <bruno@clisp.org>
47497
47498         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47499         (u16_uctomb_aux): Likewise.
47500         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47501         !HAVE_INLINE.
47502         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47503
47504 2007-10-28  Bruno Haible  <bruno@clisp.org>
47505
47506         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47507         Invoke AM_GETTEXT_OPTION if it exists.
47508         * modules/vasprintf: Likewise.
47509         * modules/verror: Likewise.
47510         * modules/xprintf: Likewise.
47511         * modules/xvasprintf: Likewise.
47512
47513 2007-10-27  Ben Pfaff  <blp@gnu.org>
47514
47515         * lib/math.in.h: Define isfinite macro and prototypes for
47516         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47517         implementations.
47518         * m4/math_h.m4: New substitutions for isfinite module.
47519         * lib/isfinite.c: New file.
47520         * m4/isfinite.m4: New file.
47521         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47522         * modules/isfinite: New file.
47523         * modules/isfinite-tests: New file.
47524         * tests/tests-isfinite.c: New file.
47525         * doc/functions/isfinite.texi: Mention isfinite module.
47526         * MODULES.html.sh: Mention new module.
47527
47528 2007-10-27  Ben Pfaff  <blp@gnu.org>
47529
47530         Ralf Wildenhues reported that Tru64 4.0D declares the round
47531         functions but does not have definitions.
47532         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47533         cannot be found in any library, set the output variable to
47534         "missing" instead of "".
47535         * m4/round.m4: Also use our substitute if we cannot find round in
47536         any library, even if it is declared.
47537         * m4/roundf.m4: Likewise for roundf.
47538         * m4/roundl.m4: Likewise for roundl.
47539         * lib/math.in.h: Undefine roundf, round, roundl before defining
47540         their replacements, to allow for hypothetical systems where these
47541         may be defined as macros but not available in libraries.
47542
47543 2007-10-27  Bruno Haible  <bruno@clisp.org>
47544
47545         * doc/gnulib.texi: Invoke @firstparagraphindent.
47546         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47547         changes in gnulib.
47548         (Source changes): New section.
47549
47550 2007-10-26  Bruno Haible  <bruno@clisp.org>
47551
47552         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47553         borrowed from autoconf.
47554
47555 2007-10-26  Bruno Haible  <bruno@clisp.org>
47556
47557         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47558         strerror returned the empty string. Needed on HP-UX 11.00.
47559
47560 2007-10-24  Micah Cowan  <micah@cowan.name>
47561
47562         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47563         * build-aux/bootstrap: Remove support for now-unnecessary option,
47564         --cvs-user, and envvars CVS_USER, CVS_RSH.
47565
47566 2007-10-24  Jim Meyering  <meyering@redhat.com>
47567
47568         Avoid diagnostics from sha1sum when there is no cached checksum.
47569         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47570         if the po.s1 file hasn't been created yet.
47571
47572         * build-aux/bootstrap: Sync from coreutils:
47573         2007-10-24  Jim Meyering  <meyering@redhat.com>
47574         Get gnulib from the git repository, not from an obsolete cvs one.
47575         * build-aux/bootstrap: Suggestion from Micah Cowan.
47576         2007-10-04  Jim Meyering  <jim@meyering.net>
47577         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47578         (update_po_files): Work also when there are no .po files in po/.
47579
47580 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47581
47582         * README: Append ".git" to git and cg examples.
47583         Problem reported by Benoit Sigoure.
47584
47585 2007-10-23  Micah Cowan  <micah@cowan.name>
47586
47587         * users.txt: Add wget.
47588
47589 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47590
47591         Fix linking of some unistdio tests on FreeBSD.
47592         * modules/unistdio/u16-vsnprintf-tests
47593         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47594         * modules/unistdio/u16-vsprintf-tests
47595         (test_u16_vsnprintf1_LDADD): Likewise.
47596         * modules/unistdio/u32-vsnprintf-tests
47597         (test_u32_vsnprintf1_LDADD): Likewise.
47598         * modules/unistdio/u32-vsprintf-tests
47599         (test_u32_vsprintf1_LDADD): Likewise.
47600         * modules/unistdio/u8-vsnprintf-tests
47601         (test_u8_vsnprintf1_LDADD): Likewise.
47602         * modules/unistdio/u8-vsprintf-tests
47603         (test_u8_vsprintf1_LDADD): Likewise.
47604         * modules/unistdio/ulc-vsnprintf-tests
47605         (test_ulc_vsnprintf1_LDADD): Likewise.
47606         * modules/unistdio/ulc-vsprintf-tests
47607         (test_ulc_vsprintf1_LDADD): Likewise.
47608
47609         Fix linking of some uniconv tests on FreeBSD.
47610         * modules/uniconv/u16-conv-from-enc-tests
47611         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47612         * modules/uniconv/u16-conv-to-enc-tests
47613         (test_u16_conv_to_enc_LDADD): Likewise.
47614         * modules/uniconv/u16-strconv-from-enc-tests
47615         (test_u16_strconv_from_enc_LDADD): Likewise.
47616         * modules/uniconv/u16-strconv-to-enc-tests
47617         (test_u16_strconv_to_enc_LDADD): Likewise.
47618         * modules/uniconv/u32-conv-from-enc-tests
47619         (test_u32_conv_from_enc_LDADD): Likewise.
47620         * modules/uniconv/u32-conv-to-enc-tests
47621         (test_u32_conv_to_enc_LDADD): Likewise.
47622         * modules/uniconv/u32-strconv-from-enc-tests
47623         (test_u32_strconv_from_enc_LDADD): Likewise.
47624         * modules/uniconv/u32-strconv-to-enc-tests
47625         (test_u32_strconv_to_enc_LDADD): Likewise.
47626         * modules/uniconv/u8-conv-from-enc-tests
47627         (test_u8_conv_from_enc_LDADD): Likewise.
47628         * modules/uniconv/u8-conv-to-enc-tests
47629         (test_u8_conv_to_enc_LDADD): Likewise.
47630         * modules/uniconv/u8-strconv-from-enc-tests
47631         (test_u8_strconv_from_enc_LDADD): Likewise.
47632         * modules/uniconv/u8-strconv-to-enc-tests
47633         (test_u8_strconv_to_enc_LDADD): Likewise.
47634
47635 2007-10-22  Bruno Haible  <bruno@clisp.org>
47636
47637         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47638         size.
47639
47640 2007-10-22  Eric Blake  <ebb9@byu.net>
47641
47642         Tweak x*printf documentation.
47643         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47644         variable name and comments.
47645         Suggested by Bruno Haible.
47646
47647 2007-10-22  Bruno Haible  <bruno@clisp.org>
47648
47649         * lib/acl.c (copy_acl): Fix file name in comment.
47650
47651 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47652
47653         Fix Tru64 problem with stdbool.h.
47654         * lib/stdbool.in.h (false, true):
47655         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47656         Don't declare as an enum in this situation; it runs afoul of Tru64.
47657         Problem reported by Steven M. Schweda in
47658         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47659
47660 2007-10-22  Eric Blake  <ebb9@byu.net>
47661
47662         Also wrap vf?printf.
47663         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47664         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47665         (xvprintf, xvfprintf): New functions.
47666
47667 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47668
47669         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47670         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47671
47672         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47673         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47674
47675 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47676
47677         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47678         by Bruno Haible.
47679
47680 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47681
47682         * lib/getloadavg.c
47683         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47684         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47685
47686         * tests/test-i-ring.c: Work for C89.
47687
47688 2007-10-22  Bruno Haible  <bruno@clisp.org>
47689
47690         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47691         -1u, in preprocessor expression, so that we don't test for the bug
47692         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47694
47695 2007-10-22  Eric Blake  <ebb9@byu.net>
47696
47697         * tests/test-yesno.sh: Silence stderr during test.
47698
47699 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47700
47701         * modules/crypto/gc-camellia: New file.
47702
47703         * m4/gc-camellia.m4: New file.
47704
47705         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47706
47707         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47708
47709 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47710
47711         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47712         --help to stdout.  Reported by sms@antinode.org (Steven
47713         M. Schweda).
47714
47715 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47716
47717         * users.txt: Fix link to libksba.
47718
47719 2007-10-21  Ben Pfaff  <blp@gnu.org>
47720
47721         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47722         round.c roundf implementation that depends on floorf and ceilf to
47723         be tested unconditionally.
47724
47725 2007-10-21  Ben Pfaff  <blp@gnu.org>
47726
47727         * m4/check-libm-func.m4: Removed.
47728         * m4/check-math-lib.m4: New file.
47729         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47730         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47731         definition and lack of AC_LIBOBJ([roundf]).
47732         * m4/roundl.m4: Ditto, and similarly for roundl.
47733         * modules/round: Reference new m4 file.
47734         * modules/roundf: Ditto.
47735         * modules/roundl: Ditto.
47736         * tests/test-round2.c (main): Use ROUND instead of round.
47737         Bug report from Bruno Haible.
47738
47739 2007-10-21  Bruno Haible  <bruno@clisp.org>
47740
47741         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47742         context.
47743
47744 2007-10-21  Bruno Haible  <bruno@clisp.org>
47745
47746         * tests/test-wcwidth.c (main): Allow negative result for some control
47747         characters.
47748
47749         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47750         Needed on OSF/1 5.1.
47751
47752 2007-10-21  Bruno Haible  <bruno@clisp.org>
47753
47754         * tests/test-floorf1.c: Include isnanf.h.
47755         (main): Use isnanf() instead of isnan().
47756         * tests/test-ceilf1.c: Include isnanf.h.
47757         (main): Use isnanf() instead of isnan().
47758         * tests/test-truncf1.c: Include isnanf.h.
47759         (main): Use isnanf() instead of isnan().
47760         * tests/test-roundf1.c: Include isnanf.h.
47761         (main): Use isnanf() instead of isnan().
47762
47763 2007-10-21  Eric Blake  <ebb9@byu.net>
47764
47765         * users.txt: Update URL for m4.
47766
47767 2007-10-21  Bruno Haible  <bruno@clisp.org>
47768
47769         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47770
47771 2007-10-21  Bruno Haible  <bruno@clisp.org>
47772
47773         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47774         Git's management files if the CVS files are not present.
47775
47776 2007-10-20  Bruno Haible  <bruno@clisp.org>
47777
47778         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47779         gcc-3.4.x.
47780
47781 2007-10-20  Ben Pfaff  <blp@gnu.org>
47782
47783         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47784         implementations.
47785         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47786         * lib/round.c: New file.
47787         * lib/roundf.c: New file.
47788         * lib/roundl.c: New file.
47789         * m4/round.m4: New file.
47790         * m4/roundf.m4: New file.
47791         * m4/roundl.m4: New file.
47792         * m4/check-libm-func-m4: New file.
47793         * modules/math: Replace round, roundf, roundl related @VARS@ in
47794         math.in.h.
47795         * modules/round: New file.
47796         * modules/round-tests: New file.
47797         * modules/roundf: New file.
47798         * modules/roundf-tests: New file.
47799         * modules/roundl: New file.
47800         * modules/roundl-tests: New file.
47801         * tests/test-round1.c: New file.
47802         * tests/test-round2.c: New file.
47803         * tests/test-roundf1.c: New file.
47804         * tests/test-roundf2.c: New file.
47805         * tests/test-roundl.c: New file.
47806         * doc/functions/round.texi: Mention round module.
47807         * doc/functions/roundf.texi: Mention roundf module.
47808         * doc/functions/roundl.texi: Mention roundl module.
47809         * MODULES.html.sh: Mention new modules.
47810         Thanks to Bruno Haible for suggestions.
47811
47812 2007-10-20  Jim Meyering  <meyering@redhat.com>
47813
47814         * lib/xprintf.c: Include <config.h> unconditionally.
47815
47816         Change xprintf's license to GPL.
47817         * modules/xprintf (License): s/LGPL/GPL/, since this module
47818         depends on modules (exit and exitfail) which are GPL.
47819         Suggestion from Bruno Haible.
47820
47821         xprintf fixes.
47822         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47823         Use a clearer diagnostic.
47824         Patch from Bruno Haible.
47825
47826 2007-10-20  Bruno Haible  <bruno@clisp.org>
47827
47828         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47829         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47830         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47831
47832 2007-10-20  Bruno Haible  <bruno@clisp.org>
47833
47834         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47835         precision in the comparison result > x - 1 or similar.
47836         * tests/test-ceilf2.c (correct_result_p): Likewise.
47837         * tests/test-truncf2.c (correct_result_p): Likewise.
47838         * tests/test-trunc2.c (correct_result_p): Likewise.
47839         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47840
47841 2007-10-20  Bruno Haible  <bruno@clisp.org>
47842
47843         * modules/ceil: New file.
47844         * m4/ceil.m4: New file.
47845         * doc/functions/ceil.texi: Mention the 'ceil' module.
47846
47847 2007-10-20  Bruno Haible  <bruno@clisp.org>
47848
47849         * modules/floor: New file.
47850         * m4/floor.m4: New file.
47851         * doc/functions/floor.texi: Mention the 'floor' module.
47852
47853 2007-10-20  Bruno Haible  <bruno@clisp.org>
47854
47855         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47856         of %a.
47857         * modules/floorf-tests (Depends-on): Likewise.
47858         * modules/truncf-tests (Depends-on): Likewise.
47859         * modules/trunc-tests (Depends-on): Likewise.
47860         Reported by Ben Pfaff.
47861
47862 2007-10-19  Jim Meyering  <meyering@redhat.com>
47863
47864         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47865         Don't bother testing specific errno values.  Just test ferror.
47866
47867         New module: xprintf
47868         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47869
47870 2007-10-19  Bruno Haible  <bruno@clisp.org>
47871
47872         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47873         syntax.
47874         * modules/javaexec (Makefile.am): Likewise.
47875         * modules/relocatable-prog (Makefile.am): Likewise.
47876         Suggested by Jim Meyering.
47877
47878 2007-10-18  Bruno Haible  <bruno@clisp.org>
47879
47880         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47881         Reported by Jim Meyering.
47882
47883 2007-10-18  Eric Blake  <ebb9@byu.net>
47884
47885         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47886
47887 2007-10-18  Bruno Haible  <bruno@clisp.org>
47888
47889         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47890         the format string into writable memory. Needed in Fortify conditions.
47891
47892 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47893             Bruno Haible  <bruno@clisp.org>
47894
47895         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47896         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47897         * modules/trim (Depends-on): Add mbchar.
47898         (configure.ac): Add gl_FUNC_MBRTOWC.
47899         (Makefile.am): Augment lib_SOURCES.
47900
47901 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47902
47903         Modify glob.c to use fstatat and dirfd, to simplify it.
47904         Suggested by Eric Blake.
47905         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47906         Don't include <stdbool.h>; not used.
47907         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47908         (link_exists_p): Simplify implementation, since we can now assume
47909         dirfd and fstatat.
47910         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47911
47912 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47913
47914         * gnulib-tool (func_get_dependencies): Fix sed script to
47915         match only tests.
47916
47917 2007-10-17  Bruno Haible  <bruno@clisp.org>
47918
47919         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47920         allow locale names without encoding suffix.
47921         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47922         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47923
47924 2007-10-16  Bruno Haible  <bruno@clisp.org>
47925
47926         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47927         * lib/getgroups.c (getgroups): Likewise.
47928         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47929
47930 2007-10-16  Bruno Haible  <bruno@clisp.org>
47931
47932         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47933         * modules/malloc-posix (License): Likewise.
47934         * modules/realloc-posix (License): Likewise.
47935         * modules/calloc-posix (License): Likewise.
47936         * modules/intprops (License): Change from GPL to LGPL, with
47937         Paul Eggert's approval.
47938
47939 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47940
47941         Merge glibc changes into lib/glob.c.
47942
47943         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47944         2007-10-15 04:59:03 UTC.  Here are the changes:
47945
47946         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47947
47948         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47949
47950         * lib/glob.c: Add some branch prediction throughout.
47951
47952         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47953
47954         [BZ #5103]
47955         * lib/glob.c (glob): Recognize patterns starting \/.
47956
47957         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47958
47959         [BZ #3996]
47960         * lib/glob.c (attribute_hidden): Define if not defined.
47961         (glob): Unescape dirname, filename or username when needed and not
47962         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47963         is NULL.  Handle unescaped [ in pattern without closing ].
47964         Don't pass GLOB_CHECK down to recursive glob for directories.
47965         (__glob_pattern_type): New function.
47966         (__glob_pattern_p): Implement using __glob_pattern_type.
47967         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47968         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47969         Remove unreachable code.
47970
47971         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47972
47973         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47974         explain why there are no leaks.
47975
47976         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47977
47978         [BZ #3253]
47979         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47980         time, rather allocate increasingly bigger arrays of pointers, if
47981         possible with alloca, if too large with malloc.
47982
47983 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47984
47985         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47986         Problem reported by H.Merijn Brand in
47987         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47988         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47989         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47990
47991 2007-10-15  Bruno Haible  <bruno@clisp.org>
47992
47993         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47994         with explicit rpl_ prefix.
47995         * lib/fopen.c (fopen): Likewise.
47996         * lib/freopen.c (freopen): Likewise.
47997         * lib/iconv.c (iconv): Likewise.
47998         * lib/iconv_close.c (iconv_close): Likewise.
47999
48000 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48001
48002         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
48003
48004 2007-10-15  Bruno Haible  <bruno@clisp.org>
48005
48006         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
48007         <stddef.h> instead of <stdlib.h> since we only need NULL.
48008         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48009
48010 2007-10-15  Bruno Haible  <bruno@clisp.org>
48011
48012         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
48013         Replace paragraph talking about LIBOBJS.
48014         Reported by Colin Watson <cjwatson@debian.org>.
48015
48016 2007-10-15  Bruno Haible  <bruno@clisp.org>
48017
48018         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
48019         <stdlib.h> before using NULL.
48020
48021 2007-10-15  Simon Josefsson  <simon@josefsson.org>
48022
48023         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
48024         Reported by Albert Chin <china@thewrittenword.com>.
48025
48026 2007-10-14  Bruno Haible  <bruno@clisp.org>
48027
48028         * modules/iconv_open-utf-tests: New file.
48029         * tests/test-iconv-utf.c: New file.
48030
48031         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
48032         * modules/iconv_open-utf: New file.
48033         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
48034         (iconv, iconv_close): New declarations.
48035         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
48036         be defined.
48037         (iconv_open): Add special handling of conversion between UTF-8 and
48038         UTF-{16,32}{BE,LE}.
48039         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
48040         * lib/iconv_close.c: New file.
48041         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
48042         gl_FUNC_ICONV_OPEN.
48043         (gl_FUNC_ICONV_OPEN): Use it.
48044         (gl_FUNC_ICONV_OPEN_UTF): New macro.
48045         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
48046         and REPLACE_ICONV_UTF.
48047         * modules/iconv_open (Depends-on): Add c-strcase.
48048         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
48049         ICONV_CONST.
48050         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
48051
48052 2007-10-13  Albert Chin  <china@thewrittenword.com>
48053             Bruno Haible  <bruno@clisp.org>
48054
48055         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
48056         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
48057
48058 2007-10-13  Bruno Haible  <bruno@clisp.org>
48059
48060         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
48061         defined, use the ISO C99 inline semantics.
48062         * lib/argp.h (ARGP_EI): Likewise.
48063
48064 2007-10-13  Bruno Haible  <bruno@clisp.org>
48065
48066         Handle 'inline' change in gcc 4.3.0.
48067         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
48068         argp_fmtstream_write, argp_fmtstream_set_lmargin,
48069         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
48070         argp_fmtstream_point): Disable 'extern' declaration if the function
48071         definition is going to be provided inline.
48072         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
48073         semantics, not the ISO C99 inline semantics.
48074         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
48075         'extern' declaration if the function definition is going to be provided
48076         inline.
48077         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
48078         the GNU C inline semantics, not the ISO C99 inline semantics. With
48079         GCC 4.2, avoid a warning.
48080
48081 2007-10-13  Bruno Haible  <bruno@clisp.org>
48082
48083         * lib/freading.h (freading): Enable the use of __freading for
48084         glibc >= 2.7.
48085         * lib/freading.c (freading): Likewise.
48086
48087 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48088
48089         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
48090         "warning: C99 inline functions are not supported; using GNU89".
48091
48092 2007-10-12  Bruno Haible  <bruno@clisp.org>
48093
48094         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
48095         of 2.
48096         * tests/test-ceilf2.c: New file.
48097         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
48098
48099         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
48100         * modules/ceilf-tests: Update.
48101
48102 2007-10-12  Bruno Haible  <bruno@clisp.org>
48103
48104         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
48105         of 2.
48106         * tests/test-floorf2.c: New file.
48107         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
48108
48109         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
48110         * modules/floorf-tests: Update.
48111
48112 2007-10-12  Bruno Haible  <bruno@clisp.org>
48113
48114         * tests/test-trunc2.c: New file.
48115         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
48116
48117         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
48118         * modules/trunc-tests: Update.
48119
48120 2007-10-12  Bruno Haible  <bruno@clisp.org>
48121
48122         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
48123         of 2.
48124         * tests/test-truncf2.c: New file.
48125         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
48126
48127         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
48128         * modules/truncf-tests: Update.
48129
48130 2007-10-11  Eric Blake  <ebb9@byu.net>
48131
48132         Don't claim strerror is broken on Interix.
48133         * doc/functions/strerror.texi (strerror): Known broken systems are
48134         now Solaris 8, and not Interix.
48135         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
48136         Interix on cross-compile.
48137         Reported by Martin Koeppe in
48138         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
48139
48140 2007-10-11  Bruno Haible  <bruno@clisp.org>
48141
48142         * modules/i-ring-tests: New file.
48143         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
48144         instead of assert.
48145
48146 2007-10-11  Bruno Haible  <bruno@clisp.org>
48147
48148         * modules/filenamecat-tests: New file.
48149         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
48150         * lib/filenamecat.c: Remove test code.
48151
48152 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48153
48154         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
48155
48156         * lib/strerror.c: Include <string.h> always, to test interface,
48157         and to remove the need for the dummy.
48158         Include intprops.h to compute width instead of doing it ourselves
48159         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
48160         (strerror): Define it to return NULL if there's no system strerror.
48161         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
48162         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
48163         ancient pre-strerror Unix systems well any more.  Saying "unknown
48164         system error" is enough.
48165         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
48166         simpler strerror.c implementation.
48167         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
48168         Simplify the tests to reflect the simpler strerror implementation.
48169         * modules/strerror (Depends-on): Add intprops.
48170
48171 2007-10-09  Eric Blake  <ebb9@byu.net>
48172
48173         Silence test-fpending.
48174         * modules/fpending-tests (Files): Add wrapper script.
48175         * tests/test-fpending.sh: New file.
48176
48177 2007-10-09  Bruno Haible  <bruno@clisp.org>
48178
48179         * MODULES.html.sh (func_module): Don't create a hyperlink for
48180         function names like 'printf_frexp'.
48181         (Misc): Add crc, memxor.
48182         (Characteristics of floating types): New section.
48183         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
48184         isnanf-nolibm, signbit, trunc, truncf, truncl.
48185         (Enhancements for ISO C 99 functions): New subsection Input/output.
48186         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
48187         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
48188         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
48189         (Compatibility checks for POSIX:2001 functions): Add clock-time.
48190         (Enhancements for POSIX:2001 functions): Add chdir-long.
48191         (File system functions): Add areadlink, chdir-safer, read-file.
48192         Remove cycle-check.
48193         (File system as inode set): New section.
48194         (Date and time): Add gethrxtime.
48195         (Multithreading): Add openmp.
48196         (Internationalization functions): Add localename.
48197         (Unicode string functions): Add unistr/u*-mbsnlen.
48198         (Support for maintaining and releasing projects): Add git-version-gen.
48199         (Lone files): Remove directories.
48200
48201 2007-10-08  Ben Pfaff  <blp@gnu.org>
48202
48203         * lib/xmalloca.h: Fix typo in comment.
48204
48205 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48206
48207         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
48208         when avoiding problems with integer overflow.  Use a portable test
48209         instead.
48210
48211 2007-10-08  Simon Josefsson  <simon@josefsson.org>
48212
48213         * modules/dummy (License): Change to LGPLv2+.
48214         * modules/float (License): Likewise
48215         * modules/realloc (License): Likewise
48216         * modules/stdlib (License): Likewise
48217
48218 2007-10-07  Bruno Haible  <bruno@clisp.org>
48219
48220         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
48221         * floor.c (TWO_MANT_DIG): Likewise.
48222         * ceil.c (TWO_MANT_DIG): Likewise.
48223         Reported by Ben Pfaff.
48224
48225 2007-10-07  Bruno Haible  <bruno@clisp.org>
48226
48227         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
48228         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
48229         * lib/frexp.c (FUNC): Likewise.
48230         * lib/printf-frexp.h (printf_frexp): Likewise.
48231         * lib/printf-frexpl.h (printf_frexpl): Likewise.
48232         * lib/printf-frexp.c (FUNC): Likewise.
48233         Suggested by Jim Meyering.
48234
48235 2007-10-07  Jim Meyering  <meyering@redhat.com>
48236
48237         Make xnanosleep's integer overflow test more robust.
48238         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
48239         so that gcc-4.3.0 doesn't optimize away this test for overflow.
48240
48241 2007-10-07  Bruno Haible  <bruno@clisp.org>
48242
48243         * NEWS: Mention the license change.
48244
48245         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48246         abbreviations in the modules files.
48247
48248         Change copyright notice from GPLv2+ to GPLv3+.
48249         * README: Change copyright notice.
48250         * MODULES.html.sh: Likewise.
48251         * build-aux/bootstrap.conf: Likewise.
48252         * build-aux/config.libpath: Likewise.
48253         * build-aux/csharpcomp.sh.in: Likewise.
48254         * build-aux/csharpexec.sh.in: Likewise.
48255         * build-aux/install-reloc: Likewise.
48256         * build-aux/javacomp.sh.in: Likewise.
48257         * build-aux/javaexec.sh.in: Likewise.
48258         * build-aux/ldd.sh.in: Likewise.
48259         * build-aux/reloc-ldflags: Likewise.
48260         * build-aux/relocatable.sh.in: Likewise.
48261         * build-aux/x-to-1.in: Likewise.
48262         * check-module: Likewise.
48263         * config/srclistvars.sh: Likewise.
48264         * gnulib-tool: Likewise.
48265         * lib/acl-internal.h: Likewise.
48266         * lib/acl.c: Likewise.
48267         * lib/acl.h: Likewise.
48268         * lib/acl_entries.c: Likewise.
48269         * lib/areadlink-with-size.c: Likewise.
48270         * lib/areadlink.c: Likewise.
48271         * lib/areadlink.h: Likewise.
48272         * lib/argmatch.c: Likewise.
48273         * lib/argmatch.h: Likewise.
48274         * lib/argp-ba.c: Likewise.
48275         * lib/argp-eexst.c: Likewise.
48276         * lib/argp-fmtstream.c: Likewise.
48277         * lib/argp-fmtstream.h: Likewise.
48278         * lib/argp-fs-xinl.c: Likewise.
48279         * lib/argp-help.c: Likewise.
48280         * lib/argp-namefrob.h: Likewise.
48281         * lib/argp-parse.c: Likewise.
48282         * lib/argp-pin.c: Likewise.
48283         * lib/argp-pv.c: Likewise.
48284         * lib/argp-pvh.c: Likewise.
48285         * lib/argp-xinl.c: Likewise.
48286         * lib/argp.h: Likewise.
48287         * lib/at-func.c: Likewise.
48288         * lib/atanl.c: Likewise.
48289         * lib/backupfile.c: Likewise.
48290         * lib/backupfile.h: Likewise.
48291         * lib/basename.c: Likewise.
48292         * lib/binary-io.h: Likewise.
48293         * lib/byteswap.in.h: Likewise.
48294         * lib/c-stack.c: Likewise.
48295         * lib/c-stack.h: Likewise.
48296         * lib/c-strcasestr.c: Likewise.
48297         * lib/c-strcasestr.h: Likewise.
48298         * lib/c-strstr.c: Likewise.
48299         * lib/c-strstr.h: Likewise.
48300         * lib/c-strtod.c: Likewise.
48301         * lib/calloc.c: Likewise.
48302         * lib/canon-host.c: Likewise.
48303         * lib/canon-host.h: Likewise.
48304         * lib/canonicalize-lgpl.c: Likewise.
48305         * lib/canonicalize.c: Likewise.
48306         * lib/canonicalize.h: Likewise.
48307         * lib/ceil.c: Likewise.
48308         * lib/ceilf.c: Likewise.
48309         * lib/ceill.c: Likewise.
48310         * lib/chdir-long.c: Likewise.
48311         * lib/chdir-long.h: Likewise.
48312         * lib/chdir-safer.c: Likewise.
48313         * lib/chdir-safer.h: Likewise.
48314         * lib/chown.c: Likewise.
48315         * lib/classpath.c: Likewise.
48316         * lib/classpath.h: Likewise.
48317         * lib/clean-temp.c: Likewise.
48318         * lib/clean-temp.h: Likewise.
48319         * lib/cloexec.c: Likewise.
48320         * lib/close-stream.c: Likewise.
48321         * lib/closein.c: Likewise.
48322         * lib/closein.h: Likewise.
48323         * lib/closeout.c: Likewise.
48324         * lib/closeout.h: Likewise.
48325         * lib/concat-filename.c: Likewise.
48326         * lib/copy-file.c: Likewise.
48327         * lib/copy-file.h: Likewise.
48328         * lib/count-one-bits.h: Likewise.
48329         * lib/crc.c: Likewise.
48330         * lib/crc.h: Likewise.
48331         * lib/creat-safer.c: Likewise.
48332         * lib/csharpcomp.c: Likewise.
48333         * lib/csharpcomp.h: Likewise.
48334         * lib/csharpexec.c: Likewise.
48335         * lib/csharpexec.h: Likewise.
48336         * lib/cycle-check.c: Likewise.
48337         * lib/cycle-check.h: Likewise.
48338         * lib/diacrit.c: Likewise.
48339         * lib/diacrit.h: Likewise.
48340         * lib/diffseq.h: Likewise.
48341         * lib/dirchownmod.c: Likewise.
48342         * lib/dirent.in.h: Likewise.
48343         * lib/dirfd.c: Likewise.
48344         * lib/dirfd.h: Likewise.
48345         * lib/dirname.c: Likewise.
48346         * lib/dirname.h: Likewise.
48347         * lib/dummy.c: Likewise.
48348         * lib/dup-safer.c: Likewise.
48349         * lib/dup2.c: Likewise.
48350         * lib/eealloc.h: Likewise.
48351         * lib/error.c: Likewise.
48352         * lib/error.h: Likewise.
48353         * lib/euidaccess.c: Likewise.
48354         * lib/exclude.c: Likewise.
48355         * lib/exclude.h: Likewise.
48356         * lib/execute.c: Likewise.
48357         * lib/execute.h: Likewise.
48358         * lib/exitfail.c: Likewise.
48359         * lib/exitfail.h: Likewise.
48360         * lib/expl.c: Likewise.
48361         * lib/fatal-signal.c: Likewise.
48362         * lib/fatal-signal.h: Likewise.
48363         * lib/fbufmode.c: Likewise.
48364         * lib/fbufmode.h: Likewise.
48365         * lib/fchdir.c: Likewise.
48366         * lib/fchmodat.c: Likewise.
48367         * lib/fchownat.c: Likewise.
48368         * lib/fcntl--.h: Likewise.
48369         * lib/fcntl-safer.h: Likewise.
48370         * lib/fcntl.in.h: Likewise.
48371         * lib/fd-safer.c: Likewise.
48372         * lib/fflush.c: Likewise.
48373         * lib/file-has-acl.c: Likewise.
48374         * lib/file-set.c: Likewise.
48375         * lib/file-type.c: Likewise.
48376         * lib/file-type.h: Likewise.
48377         * lib/fileblocks.c: Likewise.
48378         * lib/filemode.c: Likewise.
48379         * lib/filemode.h: Likewise.
48380         * lib/filename.h: Likewise.
48381         * lib/filenamecat.c: Likewise.
48382         * lib/filenamecat.h: Likewise.
48383         * lib/findprog.c: Likewise.
48384         * lib/findprog.h: Likewise.
48385         * lib/float.in.h: Likewise.
48386         * lib/floor.c: Likewise.
48387         * lib/floorf.c: Likewise.
48388         * lib/floorl.c: Likewise.
48389         * lib/fopen-safer.c: Likewise.
48390         * lib/fopen.c: Likewise.
48391         * lib/fpending.c: Likewise.
48392         * lib/fpending.h: Likewise.
48393         * lib/fprintf.c: Likewise.
48394         * lib/fprintftime.h: Likewise.
48395         * lib/fpucw.h: Likewise.
48396         * lib/fpurge.c: Likewise.
48397         * lib/fpurge.h: Likewise.
48398         * lib/freadable.c: Likewise.
48399         * lib/freadable.h: Likewise.
48400         * lib/freadahead.c: Likewise.
48401         * lib/freadahead.h: Likewise.
48402         * lib/freading.c: Likewise.
48403         * lib/freading.h: Likewise.
48404         * lib/free.c: Likewise.
48405         * lib/freopen.c: Likewise.
48406         * lib/frexp.c: Likewise.
48407         * lib/frexpl.c: Likewise.
48408         * lib/fseek.c: Likewise.
48409         * lib/fseterr.c: Likewise.
48410         * lib/fseterr.h: Likewise.
48411         * lib/fstatat.c: Likewise.
48412         * lib/fstrcmp.c: Likewise.
48413         * lib/fstrcmp.h: Likewise.
48414         * lib/fsusage.c: Likewise.
48415         * lib/fsusage.h: Likewise.
48416         * lib/ftell.c: Likewise.
48417         * lib/ftello.c: Likewise.
48418         * lib/fts-cycle.c: Likewise.
48419         * lib/fts.c: Likewise.
48420         * lib/fts_.h: Likewise.
48421         * lib/full-read.c: Likewise.
48422         * lib/full-read.h: Likewise.
48423         * lib/full-write.c: Likewise.
48424         * lib/full-write.h: Likewise.
48425         * lib/fwritable.c: Likewise.
48426         * lib/fwritable.h: Likewise.
48427         * lib/fwriteerror.c: Likewise.
48428         * lib/fwriteerror.h: Likewise.
48429         * lib/fwriting.c: Likewise.
48430         * lib/fwriting.h: Likewise.
48431         * lib/gcd.c: Likewise.
48432         * lib/gcd.h: Likewise.
48433         * lib/getcwd.c: Likewise.
48434         * lib/getdate.h: Likewise.
48435         * lib/getdate.y: Likewise.
48436         * lib/getdomainname.c: Likewise.
48437         * lib/getdomainname.h: Likewise.
48438         * lib/getgroups.c: Likewise.
48439         * lib/gethostname.c: Likewise.
48440         * lib/gethrxtime.c: Likewise.
48441         * lib/gethrxtime.h: Likewise.
48442         * lib/getloadavg.c: Likewise.
48443         * lib/getndelim2.c: Likewise.
48444         * lib/getndelim2.h: Likewise.
48445         * lib/getnline.c: Likewise.
48446         * lib/getnline.h: Likewise.
48447         * lib/getopt.c: Likewise.
48448         * lib/getopt.in.h: Likewise.
48449         * lib/getopt1.c: Likewise.
48450         * lib/getopt_int.h: Likewise.
48451         * lib/getpagesize.h: Likewise.
48452         * lib/getsubopt.c: Likewise.
48453         * lib/gettime.c: Likewise.
48454         * lib/getugroups.c: Likewise.
48455         * lib/getugroups.h: Likewise.
48456         * lib/getusershell.c: Likewise.
48457         * lib/gl_anyavltree_list1.h: Likewise.
48458         * lib/gl_anyavltree_list2.h: Likewise.
48459         * lib/gl_anyhash_list1.h: Likewise.
48460         * lib/gl_anyhash_list2.h: Likewise.
48461         * lib/gl_anylinked_list1.h: Likewise.
48462         * lib/gl_anylinked_list2.h: Likewise.
48463         * lib/gl_anyrbtree_list1.h: Likewise.
48464         * lib/gl_anyrbtree_list2.h: Likewise.
48465         * lib/gl_anytree_list1.h: Likewise.
48466         * lib/gl_anytree_list2.h: Likewise.
48467         * lib/gl_anytree_oset.h: Likewise.
48468         * lib/gl_anytreehash_list1.h: Likewise.
48469         * lib/gl_anytreehash_list2.h: Likewise.
48470         * lib/gl_array_list.c: Likewise.
48471         * lib/gl_array_list.h: Likewise.
48472         * lib/gl_array_oset.c: Likewise.
48473         * lib/gl_array_oset.h: Likewise.
48474         * lib/gl_avltree_list.c: Likewise.
48475         * lib/gl_avltree_list.h: Likewise.
48476         * lib/gl_avltree_oset.c: Likewise.
48477         * lib/gl_avltree_oset.h: Likewise.
48478         * lib/gl_avltreehash_list.c: Likewise.
48479         * lib/gl_avltreehash_list.h: Likewise.
48480         * lib/gl_carray_list.c: Likewise.
48481         * lib/gl_carray_list.h: Likewise.
48482         * lib/gl_linked_list.c: Likewise.
48483         * lib/gl_linked_list.h: Likewise.
48484         * lib/gl_linkedhash_list.c: Likewise.
48485         * lib/gl_linkedhash_list.h: Likewise.
48486         * lib/gl_list.c: Likewise.
48487         * lib/gl_list.h: Likewise.
48488         * lib/gl_oset.c: Likewise.
48489         * lib/gl_oset.h: Likewise.
48490         * lib/gl_rbtree_list.c: Likewise.
48491         * lib/gl_rbtree_list.h: Likewise.
48492         * lib/gl_rbtree_oset.c: Likewise.
48493         * lib/gl_rbtree_oset.h: Likewise.
48494         * lib/gl_rbtreehash_list.c: Likewise.
48495         * lib/gl_rbtreehash_list.h: Likewise.
48496         * lib/gl_sublist.c: Likewise.
48497         * lib/gl_sublist.h: Likewise.
48498         * lib/group-member.c: Likewise.
48499         * lib/group-member.h: Likewise.
48500         * lib/hard-locale.c: Likewise.
48501         * lib/hard-locale.h: Likewise.
48502         * lib/hash-pjw.c: Likewise.
48503         * lib/hash-pjw.h: Likewise.
48504         * lib/hash-triple.c: Likewise.
48505         * lib/hash.c: Likewise.
48506         * lib/hash.h: Likewise.
48507         * lib/human.c: Likewise.
48508         * lib/human.h: Likewise.
48509         * lib/i-ring.c: Likewise.
48510         * lib/i-ring.h: Likewise.
48511         * lib/idcache.c: Likewise.
48512         * lib/imaxabs.c: Likewise.
48513         * lib/imaxdiv.c: Likewise.
48514         * lib/inet_pton.c: Likewise.
48515         * lib/inet_pton.h: Likewise.
48516         * lib/intprops.h: Likewise.
48517         * lib/inttostr.c: Likewise.
48518         * lib/inttostr.h: Likewise.
48519         * lib/inttypes.in.h: Likewise.
48520         * lib/isapipe.c: Likewise.
48521         * lib/isdir.c: Likewise.
48522         * lib/isnan.c: Likewise.
48523         * lib/isnan.h: Likewise.
48524         * lib/isnanf.c: Likewise.
48525         * lib/isnanf.h: Likewise.
48526         * lib/isnanl-nolibm.h: Likewise.
48527         * lib/isnanl.c: Likewise.
48528         * lib/isnanl.h: Likewise.
48529         * lib/javacomp.c: Likewise.
48530         * lib/javacomp.h: Likewise.
48531         * lib/javaexec.c: Likewise.
48532         * lib/javaexec.h: Likewise.
48533         * lib/javaversion.c: Likewise.
48534         * lib/javaversion.h: Likewise.
48535         * lib/javaversion.java: Likewise.
48536         * lib/lbrkprop.h: Likewise.
48537         * lib/lchmod.h: Likewise.
48538         * lib/lchown.c: Likewise.
48539         * lib/ldexpl.c: Likewise.
48540         * lib/linebreak.c: Likewise.
48541         * lib/linebreak.h: Likewise.
48542         * lib/linebuffer.c: Likewise.
48543         * lib/linebuffer.h: Likewise.
48544         * lib/locale.in.h: Likewise.
48545         * lib/logl.c: Likewise.
48546         * lib/long-options.c: Likewise.
48547         * lib/long-options.h: Likewise.
48548         * lib/lstat.c: Likewise.
48549         * lib/lstat.h: Likewise.
48550         * lib/math.in.h: Likewise.
48551         * lib/mbchar.c: Likewise.
48552         * lib/mbchar.h: Likewise.
48553         * lib/mbfile.h: Likewise.
48554         * lib/mbiter.h: Likewise.
48555         * lib/mbscasecmp.c: Likewise.
48556         * lib/mbscasestr.c: Likewise.
48557         * lib/mbschr.c: Likewise.
48558         * lib/mbscspn.c: Likewise.
48559         * lib/mbslen.c: Likewise.
48560         * lib/mbsncasecmp.c: Likewise.
48561         * lib/mbsnlen.c: Likewise.
48562         * lib/mbspbrk.c: Likewise.
48563         * lib/mbspcasecmp.c: Likewise.
48564         * lib/mbsrchr.c: Likewise.
48565         * lib/mbssep.c: Likewise.
48566         * lib/mbsspn.c: Likewise.
48567         * lib/mbsstr.c: Likewise.
48568         * lib/mbstok_r.c: Likewise.
48569         * lib/mbswidth.c: Likewise.
48570         * lib/mbswidth.h: Likewise.
48571         * lib/mbuiter.h: Likewise.
48572         * lib/memcasecmp.c: Likewise.
48573         * lib/memcasecmp.h: Likewise.
48574         * lib/memchr.c: Likewise.
48575         * lib/memcmp.c: Likewise.
48576         * lib/memcoll.c: Likewise.
48577         * lib/memcoll.h: Likewise.
48578         * lib/memcpy.c: Likewise.
48579         * lib/memrchr.c: Likewise.
48580         * lib/mkancesdirs.c: Likewise.
48581         * lib/mkdir-p.c: Likewise.
48582         * lib/mkdir-p.h: Likewise.
48583         * lib/mkdir.c: Likewise.
48584         * lib/mkdirat.c: Likewise.
48585         * lib/mkdtemp.c: Likewise.
48586         * lib/mkstemp-safer.c: Likewise.
48587         * lib/mkstemp.c: Likewise.
48588         * lib/modechange.c: Likewise.
48589         * lib/modechange.h: Likewise.
48590         * lib/mountlist.c: Likewise.
48591         * lib/mountlist.h: Likewise.
48592         * lib/mpsort.c: Likewise.
48593         * lib/nanosleep.c: Likewise.
48594         * lib/obstack.c: Likewise.
48595         * lib/obstack.h: Likewise.
48596         * lib/open-safer.c: Likewise.
48597         * lib/open.c: Likewise.
48598         * lib/openat-die.c: Likewise.
48599         * lib/openat-priv.h: Likewise.
48600         * lib/openat-proc.c: Likewise.
48601         * lib/openat.c: Likewise.
48602         * lib/openat.h: Likewise.
48603         * lib/pagealign_alloc.c: Likewise.
48604         * lib/pagealign_alloc.h: Likewise.
48605         * lib/physmem.c: Likewise.
48606         * lib/physmem.h: Likewise.
48607         * lib/pipe-safer.c: Likewise.
48608         * lib/pipe.c: Likewise.
48609         * lib/pipe.h: Likewise.
48610         * lib/posixtm.c: Likewise.
48611         * lib/posixtm.h: Likewise.
48612         * lib/posixver.c: Likewise.
48613         * lib/printf-frexp.c: Likewise.
48614         * lib/printf-frexp.h: Likewise.
48615         * lib/printf-frexpl.c: Likewise.
48616         * lib/printf-frexpl.h: Likewise.
48617         * lib/printf.c: Likewise.
48618         * lib/progname.c: Likewise.
48619         * lib/progname.h: Likewise.
48620         * lib/progreloc.c: Likewise.
48621         * lib/putenv.c: Likewise.
48622         * lib/quote.c: Likewise.
48623         * lib/quote.h: Likewise.
48624         * lib/quotearg.c: Likewise.
48625         * lib/quotearg.h: Likewise.
48626         * lib/raise.c: Likewise.
48627         * lib/readline.c: Likewise.
48628         * lib/readline.h: Likewise.
48629         * lib/readlink.c: Likewise.
48630         * lib/readtokens.c: Likewise.
48631         * lib/readtokens.h: Likewise.
48632         * lib/readtokens0.c: Likewise.
48633         * lib/readtokens0.h: Likewise.
48634         * lib/readutmp.c: Likewise.
48635         * lib/readutmp.h: Likewise.
48636         * lib/realloc.c: Likewise.
48637         * lib/relocwrapper.c: Likewise.
48638         * lib/rename-dest-slash.c: Likewise.
48639         * lib/rename.c: Likewise.
48640         * lib/rmdir.c: Likewise.
48641         * lib/rpmatch.c: Likewise.
48642         * lib/safe-read.c: Likewise.
48643         * lib/safe-read.h: Likewise.
48644         * lib/safe-write.c: Likewise.
48645         * lib/safe-write.h: Likewise.
48646         * lib/same-inode.h: Likewise.
48647         * lib/same.c: Likewise.
48648         * lib/same.h: Likewise.
48649         * lib/save-cwd.c: Likewise.
48650         * lib/save-cwd.h: Likewise.
48651         * lib/savedir.c: Likewise.
48652         * lib/savedir.h: Likewise.
48653         * lib/savewd.c: Likewise.
48654         * lib/savewd.h: Likewise.
48655         * lib/search.in.h: Likewise.
48656         * lib/setenv.c: Likewise.
48657         * lib/setenv.h: Likewise.
48658         * lib/settime.c: Likewise.
48659         * lib/sh-quote.c: Likewise.
48660         * lib/sh-quote.h: Likewise.
48661         * lib/sig2str.c: Likewise.
48662         * lib/sig2str.h: Likewise.
48663         * lib/signal.in.h: Likewise.
48664         * lib/signbitd.c: Likewise.
48665         * lib/signbitf.c: Likewise.
48666         * lib/signbitl.c: Likewise.
48667         * lib/sigprocmask.c: Likewise.
48668         * lib/sincosl.c: Likewise.
48669         * lib/sleep.c: Likewise.
48670         * lib/sprintf.c: Likewise.
48671         * lib/sqrtl.c: Likewise.
48672         * lib/stat-time.h: Likewise.
48673         * lib/stdio--.h: Likewise.
48674         * lib/stdio-safer.h: Likewise.
48675         * lib/stdlib--.h: Likewise.
48676         * lib/stdlib-safer.h: Likewise.
48677         * lib/stdlib.in.h: Likewise.
48678         * lib/stpcpy.c: Likewise.
48679         * lib/stpncpy.c: Likewise.
48680         * lib/strchrnul.c: Likewise.
48681         * lib/strcspn.c: Likewise.
48682         * lib/strerror.c: Likewise.
48683         * lib/strftime.c: Likewise.
48684         * lib/strftime.h: Likewise.
48685         * lib/striconveh.c: Likewise.
48686         * lib/striconveh.h: Likewise.
48687         * lib/striconveha.c: Likewise.
48688         * lib/striconveha.h: Likewise.
48689         * lib/stripslash.c: Likewise.
48690         * lib/strnlen1.c: Likewise.
48691         * lib/strnlen1.h: Likewise.
48692         * lib/strtod.c: Likewise.
48693         * lib/strtoimax.c: Likewise.
48694         * lib/strtok_r.c: Likewise.
48695         * lib/strtol.c: Likewise.
48696         * lib/strtoll.c: Likewise.
48697         * lib/strtoul.c: Likewise.
48698         * lib/strtoull.c: Likewise.
48699         * lib/sysexits.in.h: Likewise.
48700         * lib/tempname.c: Likewise.
48701         * lib/tempname.h: Likewise.
48702         * lib/timespec.h: Likewise.
48703         * lib/tls.c: Likewise.
48704         * lib/tls.h: Likewise.
48705         * lib/tmpdir.c: Likewise.
48706         * lib/tmpdir.h: Likewise.
48707         * lib/tmpfile-safer.c: Likewise.
48708         * lib/tmpfile.c: Likewise.
48709         * lib/trigl.c: Likewise.
48710         * lib/trigl.h: Likewise.
48711         * lib/trim.c: Likewise.
48712         * lib/trim.h: Likewise.
48713         * lib/trunc.c: Likewise.
48714         * lib/truncf.c: Likewise.
48715         * lib/truncl.c: Likewise.
48716         * lib/tsearch.c: Likewise.
48717         * lib/unicodeio.c: Likewise.
48718         * lib/unicodeio.h: Likewise.
48719         * lib/unistd--.h: Likewise.
48720         * lib/unistd-safer.h: Likewise.
48721         * lib/unistdio/ulc-fprintf.c: Likewise.
48722         * lib/unistdio/ulc-vfprintf.c: Likewise.
48723         * lib/unlinkdir.c: Likewise.
48724         * lib/unlinkdir.h: Likewise.
48725         * lib/unlocked-io.h: Likewise.
48726         * lib/unsetenv.c: Likewise.
48727         * lib/userspec.c: Likewise.
48728         * lib/utime.c: Likewise.
48729         * lib/utimecmp.c: Likewise.
48730         * lib/utimecmp.h: Likewise.
48731         * lib/utimens.c: Likewise.
48732         * lib/verify.h: Likewise.
48733         * lib/verror.c: Likewise.
48734         * lib/verror.h: Likewise.
48735         * lib/version-etc-fsf.c: Likewise.
48736         * lib/version-etc.c: Likewise.
48737         * lib/version-etc.h: Likewise.
48738         * lib/vfprintf.c: Likewise.
48739         * lib/vprintf.c: Likewise.
48740         * lib/vsprintf.c: Likewise.
48741         * lib/w32spawn.h: Likewise.
48742         * lib/wait-process.c: Likewise.
48743         * lib/wait-process.h: Likewise.
48744         * lib/wcwidth.c: Likewise.
48745         * lib/write-any-file.c: Likewise.
48746         * lib/xalloc-die.c: Likewise.
48747         * lib/xalloc.h: Likewise.
48748         * lib/xasprintf.c: Likewise.
48749         * lib/xgetcwd.c: Likewise.
48750         * lib/xgetcwd.h: Likewise.
48751         * lib/xgetdomainname.c: Likewise.
48752         * lib/xgetdomainname.h: Likewise.
48753         * lib/xgethostname.c: Likewise.
48754         * lib/xmalloc.c: Likewise.
48755         * lib/xmalloca.c: Likewise.
48756         * lib/xmalloca.h: Likewise.
48757         * lib/xmemcoll.c: Likewise.
48758         * lib/xnanosleep.c: Likewise.
48759         * lib/xreadlink.c: Likewise.
48760         * lib/xreadlink.h: Likewise.
48761         * lib/xsetenv.c: Likewise.
48762         * lib/xsetenv.h: Likewise.
48763         * lib/xstriconv.c: Likewise.
48764         * lib/xstriconv.h: Likewise.
48765         * lib/xstrndup.c: Likewise.
48766         * lib/xstrndup.h: Likewise.
48767         * lib/xstrtod.c: Likewise.
48768         * lib/xstrtod.h: Likewise.
48769         * lib/xstrtol-error.c: Likewise.
48770         * lib/xstrtol.c: Likewise.
48771         * lib/xstrtol.h: Likewise.
48772         * lib/xtime.h: Likewise.
48773         * lib/xvasprintf.c: Likewise.
48774         * lib/xvasprintf.h: Likewise.
48775         * lib/yesno.c: Likewise.
48776         * lib/yesno.h: Likewise.
48777         * posix-modules: Likewise.
48778         * tests/test-alloca-opt.c: Likewise.
48779         * tests/test-arcfour.c: Likewise.
48780         * tests/test-arctwo.c: Likewise.
48781         * tests/test-argmatch.c: Likewise.
48782         * tests/test-argp-2.sh: Likewise.
48783         * tests/test-argp.c: Likewise.
48784         * tests/test-arpa_inet.c: Likewise.
48785         * tests/test-array_list.c: Likewise.
48786         * tests/test-array_oset.c: Likewise.
48787         * tests/test-atexit.c: Likewise.
48788         * tests/test-avltree_list.c: Likewise.
48789         * tests/test-avltree_oset.c: Likewise.
48790         * tests/test-avltreehash_list.c: Likewise.
48791         * tests/test-base64.c: Likewise.
48792         * tests/test-binary-io.c: Likewise.
48793         * tests/test-byteswap.c: Likewise.
48794         * tests/test-c-ctype.c: Likewise.
48795         * tests/test-c-strcasecmp.c: Likewise.
48796         * tests/test-c-strcasestr.c: Likewise.
48797         * tests/test-c-strncasecmp.c: Likewise.
48798         * tests/test-c-strstr.c: Likewise.
48799         * tests/test-canonicalize-lgpl.c: Likewise.
48800         * tests/test-canonicalize.c: Likewise.
48801         * tests/test-carray_list.c: Likewise.
48802         * tests/test-ceilf.c: Likewise.
48803         * tests/test-ceill.c: Likewise.
48804         * tests/test-count-one-bits.c: Likewise.
48805         * tests/test-crc.c: Likewise.
48806         * tests/test-dirname.c: Likewise.
48807         * tests/test-fbufmode.c: Likewise.
48808         * tests/test-fcntl.c: Likewise.
48809         * tests/test-fflush.c: Likewise.
48810         * tests/test-floorf.c: Likewise.
48811         * tests/test-floorl.c: Likewise.
48812         * tests/test-fopen.c: Likewise.
48813         * tests/test-fprintf-posix.c: Likewise.
48814         * tests/test-fprintf-posix.h: Likewise.
48815         * tests/test-fpurge.c: Likewise.
48816         * tests/test-freadable.c: Likewise.
48817         * tests/test-freadahead.c: Likewise.
48818         * tests/test-freading.c: Likewise.
48819         * tests/test-freopen.c: Likewise.
48820         * tests/test-frexp.c: Likewise.
48821         * tests/test-frexpl.c: Likewise.
48822         * tests/test-fseek.c: Likewise.
48823         * tests/test-fseeko.c: Likewise.
48824         * tests/test-fseterr.c: Likewise.
48825         * tests/test-fstrcmp.c: Likewise.
48826         * tests/test-ftell.c: Likewise.
48827         * tests/test-ftello.c: Likewise.
48828         * tests/test-fwritable.c: Likewise.
48829         * tests/test-fwriting.c: Likewise.
48830         * tests/test-getaddrinfo.c: Likewise.
48831         * tests/test-getpass.c: Likewise.
48832         * tests/test-gettimeofday.c: Likewise.
48833         * tests/test-hmac-md5.c: Likewise.
48834         * tests/test-hmac-sha1.c: Likewise.
48835         * tests/test-iconv.c: Likewise.
48836         * tests/test-iconvme.c: Likewise.
48837         * tests/test-inttypes.c: Likewise.
48838         * tests/test-isnan.c: Likewise.
48839         * tests/test-isnanf.c: Likewise.
48840         * tests/test-isnanl-nolibm.c: Likewise.
48841         * tests/test-isnanl.c: Likewise.
48842         * tests/test-isnanl.h: Likewise.
48843         * tests/test-ldexpl.c: Likewise.
48844         * tests/test-linked_list.c: Likewise.
48845         * tests/test-linkedhash_list.c: Likewise.
48846         * tests/test-locale.c: Likewise.
48847         * tests/test-localename.c: Likewise.
48848         * tests/test-lock.c: Likewise.
48849         * tests/test-lseek.c: Likewise.
48850         * tests/test-malloca.c: Likewise.
48851         * tests/test-math.c: Likewise.
48852         * tests/test-mbscasecmp.c: Likewise.
48853         * tests/test-mbscasestr1.c: Likewise.
48854         * tests/test-mbscasestr2.c: Likewise.
48855         * tests/test-mbscasestr3.c: Likewise.
48856         * tests/test-mbscasestr4.c: Likewise.
48857         * tests/test-mbschr.c: Likewise.
48858         * tests/test-mbscspn.c: Likewise.
48859         * tests/test-mbsncasecmp.c: Likewise.
48860         * tests/test-mbspbrk.c: Likewise.
48861         * tests/test-mbspcasecmp.c: Likewise.
48862         * tests/test-mbsrchr.c: Likewise.
48863         * tests/test-mbsspn.c: Likewise.
48864         * tests/test-mbsstr1.c: Likewise.
48865         * tests/test-mbsstr2.c: Likewise.
48866         * tests/test-mbsstr3.c: Likewise.
48867         * tests/test-md5.c: Likewise.
48868         * tests/test-memmem.c: Likewise.
48869         * tests/test-netinet_in.c: Likewise.
48870         * tests/test-open.c: Likewise.
48871         * tests/test-printf-frexp.c: Likewise.
48872         * tests/test-printf-frexpl.c: Likewise.
48873         * tests/test-printf-posix.c: Likewise.
48874         * tests/test-printf-posix.h: Likewise.
48875         * tests/test-rbtree_list.c: Likewise.
48876         * tests/test-rbtree_oset.c: Likewise.
48877         * tests/test-rbtreehash_list.c: Likewise.
48878         * tests/test-read-file.c: Likewise.
48879         * tests/test-rijndael.c: Likewise.
48880         * tests/test-search.c: Likewise.
48881         * tests/test-signbit.c: Likewise.
48882         * tests/test-sleep.c: Likewise.
48883         * tests/test-snprintf-posix.c: Likewise.
48884         * tests/test-snprintf-posix.h: Likewise.
48885         * tests/test-snprintf.c: Likewise.
48886         * tests/test-sprintf-posix.c: Likewise.
48887         * tests/test-sprintf-posix.h: Likewise.
48888         * tests/test-stat-time.c: Likewise.
48889         * tests/test-stdbool.c: Likewise.
48890         * tests/test-stdint.c: Likewise.
48891         * tests/test-stdio.c: Likewise.
48892         * tests/test-stdlib.c: Likewise.
48893         * tests/test-stpncpy.c: Likewise.
48894         * tests/test-strcasestr.c: Likewise.
48895         * tests/test-striconv.c: Likewise.
48896         * tests/test-striconveh.c: Likewise.
48897         * tests/test-striconveha.c: Likewise.
48898         * tests/test-string.c: Likewise.
48899         * tests/test-sys_select.c: Likewise.
48900         * tests/test-sys_socket.c: Likewise.
48901         * tests/test-sys_stat.c: Likewise.
48902         * tests/test-sys_time.c: Likewise.
48903         * tests/test-sysexits.c: Likewise.
48904         * tests/test-time.c: Likewise.
48905         * tests/test-tls.c: Likewise.
48906         * tests/test-trunc.c: Likewise.
48907         * tests/test-truncf.c: Likewise.
48908         * tests/test-truncl.c: Likewise.
48909         * tests/test-unistd.c: Likewise.
48910         * tests/test-vasnprintf-posix.c: Likewise.
48911         * tests/test-vasnprintf-posix2.c: Likewise.
48912         * tests/test-vasnprintf.c: Likewise.
48913         * tests/test-vasprintf-posix.c: Likewise.
48914         * tests/test-vasprintf.c: Likewise.
48915         * tests/test-verify.c: Likewise.
48916         * tests/test-vfprintf-posix.c: Likewise.
48917         * tests/test-vprintf-posix.c: Likewise.
48918         * tests/test-vsnprintf-posix.c: Likewise.
48919         * tests/test-vsnprintf.c: Likewise.
48920         * tests/test-vsprintf-posix.c: Likewise.
48921         * tests/test-wchar.c: Likewise.
48922         * tests/test-wctype.c: Likewise.
48923         * tests/test-wcwidth.c: Likewise.
48924         * tests/test-xstrtol.c: Likewise.
48925         * tests/test-xvasprintf.c: Likewise.
48926         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48927         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48928         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48929         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48930         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48931         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48932         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48933         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48934         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48935         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48936         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48937         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48938         * tests/uniname/test-uninames.c: Likewise.
48939         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48940         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48941         * tests/unistdio/test-u16-printf1.h: Likewise.
48942         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48943         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48944         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48945         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48946         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48947         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48948         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48949         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48950         * tests/unistdio/test-u32-printf1.h: Likewise.
48951         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48952         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48953         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48954         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48955         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48956         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48957         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48958         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48959         * tests/unistdio/test-u8-printf1.h: Likewise.
48960         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48961         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48962         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48963         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48964         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48965         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48966         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48967         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48968         * tests/unistdio/test-ulc-printf1.h: Likewise.
48969         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48970         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48971         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48972         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48973         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48974         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48975         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48976         * tests/uniwidth/test-u16-width.c: Likewise.
48977         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48978         * tests/uniwidth/test-u32-width.c: Likewise.
48979         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48980         * tests/uniwidth/test-u8-width.c: Likewise.
48981         * tests/uniwidth/test-uc_width.c: Likewise.
48982         * config/srclist-update: Likewise.
48983         (fixlicense): Update to GPLv3+.
48984
48985         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48986         * tests/test-tsearch.c: Change copyright notice.
48987
48988         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48989         * lib/c-strcaseeq.h: Change copyright notice.
48990         * lib/streq.h: Likewise.
48991         * lib/uniconv.h: Likewise.
48992         * lib/uniconv/u-conv-from-enc.h: Likewise.
48993         * lib/uniconv/u-conv-to-enc.h: Likewise.
48994         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48995         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48996         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48997         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48998         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48999         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
49000         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
49001         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
49002         * lib/uniconv/u32-conv-from-enc.c: Likewise.
49003         * lib/uniconv/u32-conv-to-enc.c: Likewise.
49004         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
49005         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
49006         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
49007         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
49008         * lib/uniconv/u8-conv-from-enc.c: Likewise.
49009         * lib/uniconv/u8-conv-to-enc.c: Likewise.
49010         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
49011         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
49012         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
49013         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
49014         * lib/uniname.h: Likewise.
49015         * lib/uniname/uniname.c: Likewise.
49016         * lib/unistdio.h: Likewise.
49017         * lib/unistdio/u-asnprintf.h: Likewise.
49018         * lib/unistdio/u-asprintf.h: Likewise.
49019         * lib/unistdio/u-printf-args.c: Likewise.
49020         * lib/unistdio/u-printf-args.h: Likewise.
49021         * lib/unistdio/u-printf-parse.h: Likewise.
49022         * lib/unistdio/u-snprintf.h: Likewise.
49023         * lib/unistdio/u-sprintf.h: Likewise.
49024         * lib/unistdio/u-vasprintf.h: Likewise.
49025         * lib/unistdio/u-vsnprintf.h: Likewise.
49026         * lib/unistdio/u-vsprintf.h: Likewise.
49027         * lib/unistdio/u16-asnprintf.c: Likewise.
49028         * lib/unistdio/u16-asprintf.c: Likewise.
49029         * lib/unistdio/u16-printf-parse.c: Likewise.
49030         * lib/unistdio/u16-snprintf.c: Likewise.
49031         * lib/unistdio/u16-sprintf.c: Likewise.
49032         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
49033         * lib/unistdio/u16-u16-asprintf.c: Likewise.
49034         * lib/unistdio/u16-u16-snprintf.c: Likewise.
49035         * lib/unistdio/u16-u16-sprintf.c: Likewise.
49036         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
49037         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
49038         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
49039         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
49040         * lib/unistdio/u16-vasnprintf.c: Likewise.
49041         * lib/unistdio/u16-vasprintf.c: Likewise.
49042         * lib/unistdio/u16-vsnprintf.c: Likewise.
49043         * lib/unistdio/u16-vsprintf.c: Likewise.
49044         * lib/unistdio/u32-asnprintf.c: Likewise.
49045         * lib/unistdio/u32-asprintf.c: Likewise.
49046         * lib/unistdio/u32-printf-parse.c: Likewise.
49047         * lib/unistdio/u32-snprintf.c: Likewise.
49048         * lib/unistdio/u32-sprintf.c: Likewise.
49049         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
49050         * lib/unistdio/u32-u32-asprintf.c: Likewise.
49051         * lib/unistdio/u32-u32-snprintf.c: Likewise.
49052         * lib/unistdio/u32-u32-sprintf.c: Likewise.
49053         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
49054         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
49055         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
49056         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
49057         * lib/unistdio/u32-vasnprintf.c: Likewise.
49058         * lib/unistdio/u32-vasprintf.c: Likewise.
49059         * lib/unistdio/u32-vsnprintf.c: Likewise.
49060         * lib/unistdio/u32-vsprintf.c: Likewise.
49061         * lib/unistdio/u8-asnprintf.c: Likewise.
49062         * lib/unistdio/u8-asprintf.c: Likewise.
49063         * lib/unistdio/u8-printf-parse.c: Likewise.
49064         * lib/unistdio/u8-snprintf.c: Likewise.
49065         * lib/unistdio/u8-sprintf.c: Likewise.
49066         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
49067         * lib/unistdio/u8-u8-asprintf.c: Likewise.
49068         * lib/unistdio/u8-u8-snprintf.c: Likewise.
49069         * lib/unistdio/u8-u8-sprintf.c: Likewise.
49070         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
49071         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
49072         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
49073         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
49074         * lib/unistdio/u8-vasnprintf.c: Likewise.
49075         * lib/unistdio/u8-vasprintf.c: Likewise.
49076         * lib/unistdio/u8-vsnprintf.c: Likewise.
49077         * lib/unistdio/u8-vsprintf.c: Likewise.
49078         * lib/unistdio/ulc-asnprintf.c: Likewise.
49079         * lib/unistdio/ulc-asprintf.c: Likewise.
49080         * lib/unistdio/ulc-printf-parse.c: Likewise.
49081         * lib/unistdio/ulc-snprintf.c: Likewise.
49082         * lib/unistdio/ulc-sprintf.c: Likewise.
49083         * lib/unistdio/ulc-vasnprintf.c: Likewise.
49084         * lib/unistdio/ulc-vasprintf.c: Likewise.
49085         * lib/unistdio/ulc-vsnprintf.c: Likewise.
49086         * lib/unistdio/ulc-vsprintf.c: Likewise.
49087         * lib/unistr.h: Likewise.
49088         * lib/unistr/u-cpy-alloc.h: Likewise.
49089         * lib/unistr/u-cpy.h: Likewise.
49090         * lib/unistr/u-endswith.h: Likewise.
49091         * lib/unistr/u-move.h: Likewise.
49092         * lib/unistr/u-set.h: Likewise.
49093         * lib/unistr/u-startswith.h: Likewise.
49094         * lib/unistr/u-stpcpy.h: Likewise.
49095         * lib/unistr/u-stpncpy.h: Likewise.
49096         * lib/unistr/u-strcat.h: Likewise.
49097         * lib/unistr/u-strcpy.h: Likewise.
49098         * lib/unistr/u-strcspn.h: Likewise.
49099         * lib/unistr/u-strdup.h: Likewise.
49100         * lib/unistr/u-strlen.h: Likewise.
49101         * lib/unistr/u-strncat.h: Likewise.
49102         * lib/unistr/u-strncpy.h: Likewise.
49103         * lib/unistr/u-strnlen.h: Likewise.
49104         * lib/unistr/u-strpbrk.h: Likewise.
49105         * lib/unistr/u-strspn.h: Likewise.
49106         * lib/unistr/u-strstr.h: Likewise.
49107         * lib/unistr/u-strtok.h: Likewise.
49108         * lib/unistr/u16-check.c: Likewise.
49109         * lib/unistr/u16-chr.c: Likewise.
49110         * lib/unistr/u16-cmp.c: Likewise.
49111         * lib/unistr/u16-cpy-alloc.c: Likewise.
49112         * lib/unistr/u16-cpy.c: Likewise.
49113         * lib/unistr/u16-endswith.c: Likewise.
49114         * lib/unistr/u16-mblen.c: Likewise.
49115         * lib/unistr/u16-mbsnlen.c: Likewise.
49116         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49117         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49118         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49119         * lib/unistr/u16-mbtouc.c: Likewise.
49120         * lib/unistr/u16-mbtoucr.c: Likewise.
49121         * lib/unistr/u16-move.c: Likewise.
49122         * lib/unistr/u16-next.c: Likewise.
49123         * lib/unistr/u16-prev.c: Likewise.
49124         * lib/unistr/u16-set.c: Likewise.
49125         * lib/unistr/u16-startswith.c: Likewise.
49126         * lib/unistr/u16-stpcpy.c: Likewise.
49127         * lib/unistr/u16-stpncpy.c: Likewise.
49128         * lib/unistr/u16-strcat.c: Likewise.
49129         * lib/unistr/u16-strchr.c: Likewise.
49130         * lib/unistr/u16-strcmp.c: Likewise.
49131         * lib/unistr/u16-strcpy.c: Likewise.
49132         * lib/unistr/u16-strcspn.c: Likewise.
49133         * lib/unistr/u16-strdup.c: Likewise.
49134         * lib/unistr/u16-strlen.c: Likewise.
49135         * lib/unistr/u16-strmblen.c: Likewise.
49136         * lib/unistr/u16-strmbtouc.c: Likewise.
49137         * lib/unistr/u16-strncat.c: Likewise.
49138         * lib/unistr/u16-strncmp.c: Likewise.
49139         * lib/unistr/u16-strncpy.c: Likewise.
49140         * lib/unistr/u16-strnlen.c: Likewise.
49141         * lib/unistr/u16-strpbrk.c: Likewise.
49142         * lib/unistr/u16-strrchr.c: Likewise.
49143         * lib/unistr/u16-strspn.c: Likewise.
49144         * lib/unistr/u16-strstr.c: Likewise.
49145         * lib/unistr/u16-strtok.c: Likewise.
49146         * lib/unistr/u16-to-u32.c: Likewise.
49147         * lib/unistr/u16-to-u8.c: Likewise.
49148         * lib/unistr/u16-uctomb-aux.c: Likewise.
49149         * lib/unistr/u16-uctomb.c: Likewise.
49150         * lib/unistr/u32-check.c: Likewise.
49151         * lib/unistr/u32-chr.c: Likewise.
49152         * lib/unistr/u32-cmp.c: Likewise.
49153         * lib/unistr/u32-cpy-alloc.c: Likewise.
49154         * lib/unistr/u32-cpy.c: Likewise.
49155         * lib/unistr/u32-endswith.c: Likewise.
49156         * lib/unistr/u32-mblen.c: Likewise.
49157         * lib/unistr/u32-mbsnlen.c: Likewise.
49158         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49159         * lib/unistr/u32-mbtouc.c: Likewise.
49160         * lib/unistr/u32-mbtoucr.c: Likewise.
49161         * lib/unistr/u32-move.c: Likewise.
49162         * lib/unistr/u32-next.c: Likewise.
49163         * lib/unistr/u32-prev.c: Likewise.
49164         * lib/unistr/u32-set.c: Likewise.
49165         * lib/unistr/u32-startswith.c: Likewise.
49166         * lib/unistr/u32-stpcpy.c: Likewise.
49167         * lib/unistr/u32-stpncpy.c: Likewise.
49168         * lib/unistr/u32-strcat.c: Likewise.
49169         * lib/unistr/u32-strchr.c: Likewise.
49170         * lib/unistr/u32-strcmp.c: Likewise.
49171         * lib/unistr/u32-strcpy.c: Likewise.
49172         * lib/unistr/u32-strcspn.c: Likewise.
49173         * lib/unistr/u32-strdup.c: Likewise.
49174         * lib/unistr/u32-strlen.c: Likewise.
49175         * lib/unistr/u32-strmblen.c: Likewise.
49176         * lib/unistr/u32-strmbtouc.c: Likewise.
49177         * lib/unistr/u32-strncat.c: Likewise.
49178         * lib/unistr/u32-strncmp.c: Likewise.
49179         * lib/unistr/u32-strncpy.c: Likewise.
49180         * lib/unistr/u32-strnlen.c: Likewise.
49181         * lib/unistr/u32-strpbrk.c: Likewise.
49182         * lib/unistr/u32-strrchr.c: Likewise.
49183         * lib/unistr/u32-strspn.c: Likewise.
49184         * lib/unistr/u32-strstr.c: Likewise.
49185         * lib/unistr/u32-strtok.c: Likewise.
49186         * lib/unistr/u32-to-u16.c: Likewise.
49187         * lib/unistr/u32-to-u8.c: Likewise.
49188         * lib/unistr/u32-uctomb.c: Likewise.
49189         * lib/unistr/u8-check.c: Likewise.
49190         * lib/unistr/u8-chr.c: Likewise.
49191         * lib/unistr/u8-cmp.c: Likewise.
49192         * lib/unistr/u8-cpy-alloc.c: Likewise.
49193         * lib/unistr/u8-cpy.c: Likewise.
49194         * lib/unistr/u8-endswith.c: Likewise.
49195         * lib/unistr/u8-mblen.c: Likewise.
49196         * lib/unistr/u8-mbsnlen.c: Likewise.
49197         * lib/unistr/u8-mbtouc-aux.c: Likewise.
49198         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49199         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49200         * lib/unistr/u8-mbtouc.c: Likewise.
49201         * lib/unistr/u8-mbtoucr.c: Likewise.
49202         * lib/unistr/u8-move.c: Likewise.
49203         * lib/unistr/u8-next.c: Likewise.
49204         * lib/unistr/u8-prev.c: Likewise.
49205         * lib/unistr/u8-set.c: Likewise.
49206         * lib/unistr/u8-startswith.c: Likewise.
49207         * lib/unistr/u8-stpcpy.c: Likewise.
49208         * lib/unistr/u8-stpncpy.c: Likewise.
49209         * lib/unistr/u8-strcat.c: Likewise.
49210         * lib/unistr/u8-strchr.c: Likewise.
49211         * lib/unistr/u8-strcmp.c: Likewise.
49212         * lib/unistr/u8-strcpy.c: Likewise.
49213         * lib/unistr/u8-strcspn.c: Likewise.
49214         * lib/unistr/u8-strdup.c: Likewise.
49215         * lib/unistr/u8-strlen.c: Likewise.
49216         * lib/unistr/u8-strmblen.c: Likewise.
49217         * lib/unistr/u8-strmbtouc.c: Likewise.
49218         * lib/unistr/u8-strncat.c: Likewise.
49219         * lib/unistr/u8-strncmp.c: Likewise.
49220         * lib/unistr/u8-strncpy.c: Likewise.
49221         * lib/unistr/u8-strnlen.c: Likewise.
49222         * lib/unistr/u8-strpbrk.c: Likewise.
49223         * lib/unistr/u8-strrchr.c: Likewise.
49224         * lib/unistr/u8-strspn.c: Likewise.
49225         * lib/unistr/u8-strstr.c: Likewise.
49226         * lib/unistr/u8-strtok.c: Likewise.
49227         * lib/unistr/u8-to-u16.c: Likewise.
49228         * lib/unistr/u8-to-u32.c: Likewise.
49229         * lib/unistr/u8-uctomb-aux.c: Likewise.
49230         * lib/unistr/u8-uctomb.c: Likewise.
49231         * lib/unitypes.h: Likewise.
49232         * lib/uniwidth.h: Likewise.
49233         * lib/uniwidth/cjk.h: Likewise.
49234         * lib/uniwidth/u16-strwidth.c: Likewise.
49235         * lib/uniwidth/u16-width.c: Likewise.
49236         * lib/uniwidth/u32-strwidth.c: Likewise.
49237         * lib/uniwidth/u32-width.c: Likewise.
49238         * lib/uniwidth/u8-strwidth.c: Likewise.
49239         * lib/uniwidth/u8-width.c: Likewise.
49240         * lib/uniwidth/width.c: Likewise.
49241
49242 2007-10-07  Bruno Haible  <bruno@clisp.org>
49243
49244         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49245         The file is still under LGPL (see modules/inttypes).
49246
49247 2007-10-06  Bruno Haible  <bruno@clisp.org>
49248
49249         * modules/trunc (Dependencies): Add 'extensions'.
49250         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49251         Reported by Ben Pfaff <blp@gnu.org>.
49252
49253 2007-10-06  Bruno Haible  <bruno@clisp.org>
49254
49255         * modules/freopen-tests: New file.
49256         * tests/test-freopen.c: New file.
49257
49258         * modules/fopen-tests: New file.
49259         * tests/test-fopen.c: New file.
49260
49261         * modules/fopen: New file.
49262         * lib/fopen.c: New file.
49263         * m4/fopen.m4: New file.
49264         * modules/freopen: New file.
49265         * lib/freopen.c: New file.
49266         * m4/freopen.m4: New file.
49267         * lib/stdio.in.h (fopen, freopen): New declarations.
49268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49269         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49270         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49271         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49272         * doc/functions/fopen.texi: Mention the 'fopen' module.
49273         * doc/functions/freopen.texi: Mention the 'freopen' module.
49274
49275 2007-10-06  Bruno Haible  <bruno@clisp.org>
49276
49277         * modules/open-tests: New file.
49278         * tests/test-open.c: New file.
49279
49280         * modules/open: New file.
49281         * lib/open.c: New file.
49282         * m4/open.m4: New file.
49283         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49284         lib/open.c does.
49285         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49286         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49287         macros.
49288         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49289         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49290         REPLACE_OPEN.
49291         * doc/functions/open.texi: Mention the 'open' module.
49292
49293 2007-10-04  Bruno Haible  <bruno@clisp.org>
49294
49295         * modules/ceill-tests: New file.
49296         * tests/test-ceill.c: New file.
49297
49298         * modules/ceill: New file.
49299         * lib/ceill.c: Replace entire file.
49300         * m4/ceill.m4: New file.
49301         * lib/math.in.h (ceill): Replace declaration.
49302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49303         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49304         * doc/functions/ceill.texi: Mention the 'ceill' module.
49305         * modules/mathl (Files): Remove lib/ceill.c.
49306         (Depends-on): Add ceill.
49307
49308 2007-10-04  Bruno Haible  <bruno@clisp.org>
49309
49310         * modules/ceilf-tests: New file.
49311         * tests/test-ceilf.c: New file.
49312
49313         * modules/ceilf: New file.
49314         * lib/ceil.c: New file.
49315         * lib/ceilf.c: New file.
49316         * m4/ceilf.m4: New file.
49317         * lib/math.in.h (ceilf): New declaration.
49318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49319         HAVE_DECL_CEILF.
49320         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49321         HAVE_DECL_CEILF.
49322         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49323
49324 2007-10-04  Bruno Haible  <bruno@clisp.org>
49325
49326         * modules/floorl-tests: New file.
49327         * tests/test-floorl.c: New file.
49328
49329         * modules/floorl: New file.
49330         * lib/floorl.c: Replace entire file.
49331         * m4/floorl.m4: New file.
49332         * lib/math.in.h (floorl): Replace declaration.
49333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49334         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49335         * doc/functions/floorl.texi: Mention the 'floorl' module.
49336         * modules/mathl (Files): Remove lib/floorl.c.
49337         (Depends-on): Add floorl.
49338
49339 2007-10-04  Bruno Haible  <bruno@clisp.org>
49340
49341         * modules/floorf-tests: New file.
49342         * tests/test-floorf.c: New file.
49343
49344         * modules/floorf: New file.
49345         * lib/floor.c: New file.
49346         * lib/floorf.c: New file.
49347         * m4/floorf.m4: New file.
49348         * lib/math.in.h (floorf): New declaration.
49349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49350         HAVE_DECL_FLOORF.
49351         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49352         HAVE_DECL_FLOORF.
49353         * doc/functions/floorf.texi: Mention the 'floorf' module.
49354
49355 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49356             Bruno Haible  <bruno@clisp.org>
49357
49358         Advertise for the Git server instead of the CVS server.
49359         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49360         repository instead of the CVS one.
49361         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49362         about all VCS systems generically.
49363         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49364
49365 2007-10-04  Bruno Haible  <bruno@clisp.org>
49366
49367         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49368         means.
49369         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49370
49371 2007-10-04  Bruno Haible  <bruno@clisp.org>
49372
49373         * modules/truncl-tests: New file.
49374         * tests/test-truncl.c: New file.
49375
49376         * modules/truncl: New file.
49377         * lib/truncl.c: New file.
49378         * m4/truncl.m4: New file.
49379         * lib/math.in.h (truncl): New declaration.
49380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49381         HAVE_DECL_TRUNCL.
49382         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49383         HAVE_DECL_TRUNCL.
49384         * doc/functions/truncl.texi: Mention the 'truncl' module.
49385
49386 2007-10-04  Bruno Haible  <bruno@clisp.org>
49387
49388         * modules/truncf-tests: New file.
49389         * tests/test-truncf.c: New file.
49390
49391         * modules/truncf: New file.
49392         * lib/trunc.c: Make paramerizable through USE_* macros.
49393         * lib/truncf.c: New file.
49394         * m4/truncf.m4: New file.
49395         * lib/math.in.h (truncf): New declaration.
49396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49397         HAVE_DECL_TRUNCF.
49398         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49399         HAVE_DECL_TRUNCF.
49400         * doc/functions/truncf.texi: Mention the 'truncf' module.
49401
49402 2007-10-03  Bruno Haible  <bruno@clisp.org>
49403
49404         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49405         augmentation also for tests modules.
49406         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49407         * modules/atexit-tests (Makefile.am): Likewise.
49408         * modules/binary-io-tests (Makefile.am): Likewise.
49409         * modules/c-strcase-tests (Makefile.am): Likewise.
49410         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49411         * modules/canonicalize-tests (Makefile.am): Likewise.
49412         * modules/closein-tests (Makefile.am): Likewise.
49413         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49414         * modules/freadahead-tests (Makefile.am): Likewise.
49415         * modules/fseek-tests (Makefile.am): Likewise.
49416         * modules/fseeko-tests (Makefile.am): Likewise.
49417         * modules/ftell-tests (Makefile.am): Likewise.
49418         * modules/ftello-tests (Makefile.am): Likewise.
49419         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49420         * modules/isnanl-tests (Makefile.am): Likewise.
49421         * modules/lseek-tests (Makefile.am): Likewise.
49422         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49423         * modules/mbscasestr-tests (Makefile.am): Likewise.
49424         * modules/mbschr-tests (Makefile.am): Likewise.
49425         * modules/mbscspn-tests (Makefile.am): Likewise.
49426         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49427         * modules/mbspbrk-tests (Makefile.am): Likewise.
49428         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49429         * modules/mbsrchr-tests (Makefile.am): Likewise.
49430         * modules/mbsspn-tests (Makefile.am): Likewise.
49431         * modules/mbsstr-tests (Makefile.am): Likewise.
49432         * modules/printf-posix-tests (Makefile.am): Likewise.
49433         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49434         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49435         * modules/tsearch-tests (Makefile.am): Likewise.
49436         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49437         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49438         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49439         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49440         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49441         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49442         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49443         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49444         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49445         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49446         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49447         * modules/xstrtol-tests (Makefile.am): Likewise.
49448         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49449         * modules/yesno-tests (Makefile.am): Likewise.
49450
49451 2007-10-03  Bruno Haible  <bruno@clisp.org>
49452
49453         * modules/trunc-tests: New file.
49454         * tests/test-trunc.c: New file.
49455
49456         * modules/trunc: New file.
49457         * lib/trunc.c: New file.
49458         * m4/trunc.m4: New file.
49459         * lib/math.in.h (trunc): New declaration.
49460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49461         HAVE_DECL_TRUNC.
49462         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49463         HAVE_DECL_TRUNC.
49464         * doc/functions/trunc.texi: Mention the 'trunc' module.
49465
49466 2007-10-03  Bruno Haible  <bruno@clisp.org>
49467
49468         * tests/test-fpending.c: New file, mostly copied
49469         from coreutils/lib/t-fpending.c.
49470         * modules/fpending-tests: New file.
49471
49472 2007-10-03  Bruno Haible  <bruno@clisp.org>
49473
49474         Port the stdio extensions to QNX (untested).
49475         * lib/fseterr.c (fseterr): Add support for QNX.
49476         * lib/fbufmode.c (fbufmode): Likewise.
49477         * lib/freadable.c (freadable): Likewise.
49478         * lib/fwritable.c (fwritable): Likewise.
49479         * lib/freading.c (freading): Likewise.
49480         * lib/fwriting.c (fwriting): Likewise.
49481         * lib/freadahead.c (freadahed): Likewise.
49482         * lib/fpurge.c (fpurge): Likewise.
49483         * lib/fseeko.c (rpl_fseeko): Likewise.
49484
49485 2007-10-03  Bruno Haible  <bruno@clisp.org>
49486             Jim Meyering  <jim@meyering.net>
49487             Eric Blake  <ebb9@byu.net>
49488
49489         * doc/relocatable.texi: Use @command instead of @program.
49490
49491 2007-10-02  Jim Meyering  <jim@meyering.net>
49492
49493         Perform one more "_.h" -> ".in.h" substitution.
49494         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49495         instead of unistd_.h here, too.
49496
49497 2007-10-01  Bruno Haible  <bruno@clisp.org>
49498
49499         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49500         Needed for the alloca-opt module.
49501
49502 2007-09-30  Bruno Haible  <bruno@clisp.org>
49503
49504         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49505         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49506         alloca_.h.
49507         * lib/argz.in.h: Renamed from lib/argz_.h.
49508         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49509         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49510         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49511         byteswap_.h.
49512         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49513         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49514         dirent_.h.
49515         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49516         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49517         fcntl_.h.
49518         * lib/float.in.h: Renamed from lib/float_.h.
49519         * modules/float (Files, Makefile.am): Use float.in.h instead of
49520         float_.h.
49521         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49522         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49523         fnmatch_.h.
49524         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49525         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49526         getopt_.h.
49527         * lib/glob.in.h: Renamed from lib/glob_.h.
49528         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49529         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49530         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49531         iconv_.h.
49532         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49533         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49534         inttypes_.h.
49535         * lib/locale.in.h: Renamed from lib/locale_.h.
49536         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49537         locale_.h.
49538         * lib/math.in.h: Renamed from lib/math_.h.
49539         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49540         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49541         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49542         of netinet_in_.h. Add dependency.
49543         * lib/poll.in.h: Renamed from lib/poll_.h.
49544         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49545         * lib/search.in.h: Renamed from lib/search_.h.
49546         * modules/search (Files, Makefile.am): Use search.in.h instead of
49547         search_.h.
49548         * lib/signal.in.h: Renamed from lib/signal_.h.
49549         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49550         _signal.h.
49551         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49552         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49553         stdbool_.h.
49554         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49555         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49556         stdint_.h.
49557         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49558         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49559         stdio_.h.
49560         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49561         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49562         stdlib_.h.
49563         * lib/string.in.h: Renamed from lib/string_.h.
49564         * modules/string (Files, Makefile.am): Use string.in.h instead of
49565         string_.h.
49566         * doc/gnulib-tool.texi (Initial import): Update.
49567         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49568         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49569         of sys_select_.h. Add dependency.
49570         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49571         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49572         of sys_socket_.h.
49573         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49574         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49575         sys_stat_.h.
49576         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49577         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49578         sys_time_.h.
49579         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49580         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49581         sysexits_.h.
49582         * lib/time.in.h: Renamed from lib/time_.h.
49583         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49584         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49585         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49586         unistd_.h.
49587         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49588         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49589         wchar_.h.
49590         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49591         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49592         wctype_.h.
49593         * build-aux/bootstrap (slurp): Update.
49594         * lib/.cppi-disable: Update.
49595
49596 2007-09-30  Bruno Haible  <bruno@clisp.org>
49597
49598         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49599         Needed on BeOS.
49600
49601 2007-09-30  Bruno Haible  <bruno@clisp.org>
49602
49603         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49604
49605 2007-09-29  Bruno Haible  <bruno@clisp.org>
49606
49607         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49608
49609 2007-09-29  Bruno Haible  <bruno@clisp.org>
49610
49611         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49612         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49613         * build-aux/install-reloc: Compile also areadlink.c.
49614         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49615
49616 2007-09-29  Bruno Haible  <bruno@clisp.org>
49617
49618         * gnulib-tool (func_emit_initmacro_done): Indentation.
49619
49620 2007-09-29  Bruno Haible  <bruno@clisp.org>
49621
49622         * README: Add CVS checkout update instructions.
49623         Info from Bob Proulx <bob@proulx.com>.
49624
49625 2007-09-28  Eric Blake  <ebb9@byu.net>
49626
49627         Provide move-if-change.
49628         * build-aux/move-if-change: New file, based on best practice
49629         rather than any canonical upstream location.
49630
49631 2007-09-28  Jim Meyering  <jim@meyering.net>
49632
49633         Fix canonicalize loop-detection corner case.
49634         Do not attempt to stat the symlink values stored via seen_triple.
49635         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49636         on linux-2.6.18, (but not 2.6.22).
49637         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49638         triple_compare.  The former compares dev,ino,filename, while the latter
49639         would actually stat dirname(filename) when dev and ino were equal.
49640         * lib/hash-triple.c: Install <string.h>.
49641         (STREQ): Define.
49642         (triple_compare_ino_str): New function.
49643         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49644
49645 2007-09-28  Eric Blake  <ebb9@byu.net>
49646
49647         Enforce that AC_REPLACE_FUNCS files exist.
49648         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49649         override check for typos.
49650
49651         Fix test-closein on Solaris 10.
49652         * tests/test-closein.c (main): Don't assume stdin can be inherited
49653         closed on all systems.
49654         * tests/test-closein.sh: Likewise.
49655         Reported by Piotr Tarnowski.
49656
49657 2007-09-28  Jim Meyering  <jim@meyering.net>
49658
49659         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49660
49661 2007-09-27  Jim Meyering  <jim@meyering.net>
49662
49663         canonicalize: Avoid a false-positive cycle failure.
49664         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49665         Sort.  Remove cycle-check.
49666         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49667         not cycle-check.h.
49668         (seen_triple): New function.
49669         (canonicalize_filename_mode): Use it instead of cycle-check.
49670         * tests/test-canonicalize.c: Add a test for this bug.
49671         * tests/test-canonicalize.sh: Set up and run the test.
49672
49673         New module, file-set, from coreutils.
49674         * modules/file-set: Define it.
49675         * lib/file-set.c, lib/file-set.h: Implement.
49676
49677         New module, hash-triple, from coreutils.
49678         * modules/hash-triple: Define it.
49679         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49680
49681 2007-09-25  Eric Blake  <ebb9@byu.net>
49682
49683         Fix strerror on Interix.
49684         * lib/string_.h (strerror): Declare replacement.
49685         * doc/functions/strerror.texi (strerror): Document the Interix
49686         shortcoming.
49687         * modules/string (Makefile.am): Support new hooks.
49688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49689         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49690         gl_FUNC_STRERROR_SEPARATE.
49691         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49692         * lib/strerror.c (rpl_strerror): Provide replacement.
49693         * modules/strerror (Depends-on): Add string.
49694         (configure.ac): Detect use of module.
49695         * tests/test-strerror.c: New file.
49696         * modules/strerror-tests: New test module.
49697         * modules/argp (Depends-on): Add strerror.
49698         * modules/error (Depends-on): Likewise.
49699         Reported by Martin Koeppe.
49700
49701 2007-09-24  Bruno Haible  <bruno@clisp.org>
49702
49703         * README: Update git instructions.
49704
49705 2007-09-24  Eric Blake  <ebb9@byu.net>
49706
49707         Revert fpending breakage from 2007-09-08.
49708         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49709         __fpending.c.
49710
49711 2007-09-24  Jim Meyering  <jim@meyering.net>
49712
49713         filenamecat.c: Add a test.
49714         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49715         showing how the function works when DIR is the empty string.
49716
49717 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49718
49719         * tests/test-canonicalize.sh: Turn on executable bit.
49720
49721 2007-09-19  Eric Blake  <ebb9@byu.net>
49722
49723         * README: Update CVS instructions.
49724
49725 2007-09-18  Bruno Haible  <bruno@clisp.org>
49726
49727         * modules/areadlink: New file.
49728         * lib/areadlink.h (areadlink): New declaration.
49729         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49730
49731 2007-09-17  Jim Meyering  <jim@meyering.net>
49732
49733         * lib/savewd.c (ESTALE) [!defined]: Define.
49734         Reported to be required on Interix by Martin Koeppe.
49735
49736 2007-09-17  Bruno Haible  <bruno@clisp.org>
49737
49738         * gnulib-tool (func_version): Use $version.
49739
49740 2007-09-16  Bruno Haible  <bruno@clisp.org>
49741
49742         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49743         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49744         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49745         Reported by Greg Schafer <gschafer@zip.com.au>.
49746
49747 2007-09-15  Bruno Haible  <bruno@clisp.org>
49748
49749         * gnulib-tool (sed): Try a little harder to make bash understand the
49750         alias.
49751         Reported by Bruce Korb <bruce.korb@gmail.com>.
49752
49753 2007-09-13  Eric Blake  <ebb9@byu.net>
49754
49755         * ChangeLog: Remove conflict markers.
49756
49757 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49758
49759         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49760         Reported by Bruno Haible <bruno@clisp.org>.
49761
49762 2007-09-12  Bruno Haible  <bruno@clisp.org>
49763
49764         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49765         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49766         is not defined.
49767
49768 2007-09-12  Eric Blake  <ebb9@byu.net>
49769
49770         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49771         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49772         Autoconf definition.
49773         * modules/euidaccess (Depends-on): Add extensions, for
49774         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49775         * modules/fnmatch (Depends-on): Likewise.
49776         * modules/getaddrinfo (Depends-on): Likewise.
49777         * modules/getdelim (Depends-on): Likewise.
49778         * modules/getline (Depends-on): Likewise.
49779         * modules/getsubopt (Depends-on): Likewise.
49780         * modules/gettext (Depends-on): Likewise.
49781         * modules/group-member (Depends-on): Likewise.
49782         * modules/mbchar (Depends-on): Likewise.
49783         * modules/memmem (Depends-on): Likewise.
49784         * modules/mempcpy (Depends-on): Likewise.
49785         * modules/memrchr (Depends-on): Likewise.
49786         * modules/pagealign_alloc (Depends-on): Likewise.
49787         * modules/readutmp (Depends-on): Likewise.
49788         * modules/stpcpy (Depends-on): Likewise.
49789         * modules/stpncpy (Depends-on): Likewise.
49790         * modules/strchrnul (Depends-on): Likewise.
49791         * modules/strndup (Depends-on): Likewise.
49792         * modules/strsep (Depends-on): Likewise.
49793         * modules/strverscmp (Depends-on): Likewise.
49794         * modules/vasprintf (Depends-on): Likewise.
49795         * modules/wcwidth (Depends-on): Likewise.
49796         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49797         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49798         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49799         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49800         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49801         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49802         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49803         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49804         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49805         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49806         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49807         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49808         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49809         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49810         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49811         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49812         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49813         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49814         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49815         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49816         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49817         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49818         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49819         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49820         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49822         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49823         so that lock.m4 can be used in gettext without extensions module.
49824
49825 2007-09-11  Bruno Haible  <bruno@clisp.org>
49826
49827         * m4/isc-posix.m4: Remove file.
49828         Suggested by Eric Blake.
49829
49830 2007-09-11  Eric Blake  <ebb9@byu.net>
49831
49832         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49833
49834 2007-09-10  Bruno Haible  <bruno@clisp.org>
49835
49836         * posix-modules: Fix typo in error message.
49837         Reported by Matt <mkraai@beckman.com>.
49838
49839 2007-09-09  Bruno Haible  <bruno@clisp.org>
49840
49841         * doc/functions/getdelim.texi: Update list of platforms lacking the
49842         function.
49843         * doc/functions/getline.texi: Likewise.
49844
49845 2007-09-09  Jim Meyering  <jim@meyering.net>
49846
49847         * lib/hash.c (hash_initialize): Detect calloc failure.
49848         Reported by Bruno Haible.
49849
49850 2007-09-09  Bruno Haible  <bruno@clisp.org>
49851
49852         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49853         malloc or realloc fails.
49854
49855 2007-09-09  Bruno Haible  <bruno@clisp.org>
49856
49857         * modules/getcwd (Depends-on): Add malloc-posix.
49858         * modules/glob (Depends-on): Likewise.
49859         * modules/putenv (Depends-on): Likewise.
49860         * modules/strdup (Depends-on): Likewise.
49861         * modules/getdelim (Depends-on): Add realloc-posix.
49862         * modules/read-file (Depends-on): Likewise.
49863
49864 2007-09-09  Bruno Haible  <bruno@clisp.org>
49865
49866         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49867         (gl_FUNC_MALLOC_POSIX): Require it.
49868         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49869         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49870         * modules/realloc (Files): Add m4/malloc.m4.
49871         * modules/calloc (Files): Likewise.
49872
49873 2007-09-09  Bruno Haible  <bruno@clisp.org>
49874
49875         * modules/malloc-posix: New file.
49876         * modules/malloc (Depends-on): Add malloc-posix.
49877         * lib/malloc.c: Include errno.h.
49878         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49879         and a POSIX-compatible malloc into a single function. Set ENOMEM
49880         when returning NULL.
49881         * m4/malloc.m4: New file.
49882         * doc/functions/malloc.texi: Mention the malloc-posix module.
49883         * lib/stdlib_.h (malloc): New declaration.
49884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49885         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49886         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49887         and HAVE_MALLOC_POSIX.
49888
49889 2007-09-09  Bruno Haible  <bruno@clisp.org>
49890
49891         * modules/realloc-posix: New file.
49892         * modules/realloc (Depends-on): Add realloc-posix.
49893         * lib/realloc.c: Include errno.h.
49894         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49895         and a POSIX-compatible realloc into a single function. Set ENOMEM
49896         when returning NULL.
49897         * m4/realloc.m4: New file.
49898         * doc/functions/realloc.texi: Mention the realloc-posix module.
49899         * lib/stdlib_.h (realloc): New declaration.
49900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49901         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49902         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49903         and HAVE_REALLOC_POSIX.
49904
49905 2007-09-09  Bruno Haible  <bruno@clisp.org>
49906
49907         * modules/calloc-posix: New file.
49908         * modules/calloc (Depends-on): Add calloc-posix.
49909         * lib/calloc.c: Include errno.h.
49910         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49911         and a POSIX-compatible calloc into a single function. Set ENOMEM
49912         when returning NULL.
49913         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49914         * doc/functions/calloc.texi: Mention the calloc-posix module.
49915         * lib/stdlib_.h (calloc): New declaration.
49916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49917         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49918         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49919         and HAVE_CALLOC_POSIX.
49920
49921 2007-09-09  Bruno Haible  <bruno@clisp.org>
49922
49923         Allow for modules to show an arbitrary notice.
49924         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49925         * gnulib-tool: New option --extract-notice.
49926         (func_usage): Document it.
49927         (sed_extract_prog): Update.
49928         (func_get_notice): New function.
49929         (func_modules_notice): New function.
49930         (func_import, func_create_testdir): Invoke it.
49931         Suggested by Jim Meyering.
49932
49933 2007-09-09  Bruno Haible  <bruno@clisp.org>
49934
49935         * gnulib-tool: New options --verbose, --quiet.
49936         (func_usage): Document them.
49937         (verbose): New variable.
49938         (func_execute_command): New function.
49939         (func_import): Don't show the module list and the file list if
49940         $verbose < 0.
49941         (func_create_testdir): Likewise. Use func_execute_command.
49942         (func_create_megatestdir): Use func_execute_command.
49943
49944 2007-09-08  Bruno Haible  <bruno@clisp.org>
49945
49946         * gnulib-tool (func_import): Prefer rsync over wget when available,
49947         for fetching the PO files.
49948
49949 2007-09-08  Bruno Haible  <bruno@clisp.org>
49950
49951         * posix-modules: New file. Portions copied from gnulib-tool.
49952         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49953
49954 2007-09-08  Jim Meyering  <jim@meyering.net>
49955
49956         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49957         * lib/fpending.h: Rename from __fpending.h.
49958         * lib/fpending.c: Rename from __fpending.c.
49959         Include "fpending.h", not "__fpending.h".
49960         * lib/__fpending.h, lib/__fpending.c: Remove files.
49961         * modules/fpending (Files): Reflect new file names.
49962         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49963
49964 2007-09-08  Bruno Haible  <bruno@clisp.org>
49965
49966         * m4/inttypes-h.m4: Remove stub file.
49967
49968 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49969
49970         * doc/headers/stdint.texi: Discuss #include_next issue.
49971
49972 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49973
49974         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49975
49976 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49977
49978         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49979         in variable name.
49980
49981 2007-09-03  Jim Meyering  <jim@meyering.net>
49982
49983         New module: git-version-gen.
49984         * modules/git-version-gen: New file.
49985
49986         Import changes from coreutils for bootstrap script.
49987
49988         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49989
49990         bootstrap: uses rsync to download the .po files
49991         * build-aux/bootstrap (po_download_command_format): New global.
49992         (download_po_files): Use rsync.
49993         (update_po_files): Don't remove .po files after download,
49994         so future rsync runs can take advantage of the copies.
49995
49996         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49997
49998         Solve the unnecessary-.po-file-regeneration problem once and for all.
49999         * build-aux/bootstrap (download_po_files): New function, renamed from
50000         get_translations.  Now, downloads, but doesn't update LINGUAS.
50001         (update_po_files): New function.
50002
50003         bootstrap: Ignore more.
50004         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
50005         uniwidth to e.g., lib/.gitignore.
50006         (slurp): Handle the sys_stat_.h -> sys mapping, too.
50007
50008         * build-aux/bootstrap: New setting: vc_ignore.
50009         (insert_sorted_if_absent): Create $file if absent.
50010         Adapt to new, possibly empty, list: $vc_ignore.
50011
50012         bootstrap: generate more ignorable names
50013         * build-aux/bootstrap (slurp): When generating ignorable names,
50014         also map .sin to .sed, .gperf to .c, and .y to .c.
50015
50016 2007-09-03  Jim Meyering  <jim@meyering.net>
50017
50018         * build-aux/git-version-gen: New file, from coreutils.  For details, see
50019         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
50020
50021 2007-09-02  Bruno Haible  <bruno@clisp.org>
50022
50023         Fix mis-recognition of 'mcs' on QNX 6.
50024         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
50025         output contains the string "Mono".
50026         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
50027         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
50028
50029 2007-09-01  Bruno Haible  <bruno@clisp.org>
50030
50031         Fix collision between uniwidth/* and linebreak modules.
50032         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
50033         u32_width): Remove declarations.
50034         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
50035         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
50036         streq3, streq2, streq1, streq0): Remove functions.
50037         (STREQ): Remove macro.
50038         (is_cjk_encoding): Remove function.
50039         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
50040         (uc_width, u8_width, u16_width, u32_width): Remove functions.
50041         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
50042         * NEWS: Document the change.
50043
50044 2007-09-01  Bruno Haible  <bruno@clisp.org>
50045
50046         * lib/streq.h: Add double-inclusion guard.
50047
50048 2007-09-01  Karl Berry  <karl@gnu.org>
50049
50050         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
50051
50052 2007-08-28  Jim Meyering  <jim@meyering.net>
50053
50054         Rename mreadlink_with_size to areadlink_with_size.
50055         * NEWS: Document the change.
50056         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
50057         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
50058         * lib/mreadlink.h: Rename this to...
50059         * lib/areadlink.h: ...this.
50060         * modules/mreadlink-with-size: Rename this to...
50061         * modules/areadlink-with-size: ...this.
50062         * lib/canonicalize.c: Reflect the renaming.
50063         * modules/canonicalize: Likewise.
50064
50065 2007-08-26  Bruno Haible  <bruno@clisp.org>
50066
50067         * gnulib-tool (func_import): When deciding which files to remove,
50068         consider also dangling symbolic links.
50069         Reported by Eric Blake.
50070
50071 2007-08-26  Bruno Haible  <bruno@clisp.org>
50072
50073         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
50074
50075 2007-08-23  Simon Josefsson  <simon@josefsson.org>
50076
50077         * lib/readline.c: Don't include getline.h, the prototype is now
50078         found in stdio.h.
50079
50080 2007-08-23  Jim Meyering  <jim@meyering.net>
50081
50082         Getdelim touchup.
50083         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
50084         around the funlockfile call, since funlockfile never sets errno.
50085         Don't set errno upon failed realloc.
50086
50087 2007-08-22  Eric Blake  <ebb9@byu.net>
50088
50089         Getline touchups.
50090         * lib/getdelim.c (getdelim): Revert regression that required *n to
50091         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
50092         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
50093         getdelim, rather than whether implementation is missing.
50094         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
50095         * lib/stdio_.h (getline): Also declare if replacement is
50096         required.
50097         * doc/functions/getdelim.texi: New file.
50098         * doc/functions/getline.texi: Likewise.
50099         * doc/gnulib.texi (Function Substitutes): Add new files.
50100         Reported by Bruno Haible.
50101
50102 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
50103
50104         * users.txt: Add Guile.
50105
50106 2007-08-22  Eric Blake  <ebb9@byu.net>
50107
50108         * tests/test-getdelim.c (main): Use remove, not unlink.
50109         * tests/test-getline.c (main): Likewise.
50110
50111         Move getline and getdelim into stdio.h, per POSIX 200x.
50112         * modules/getline (Files): Remove getline.h.
50113         (Depends-on): Add stdio.
50114         (configure.ac): Add module indicator.
50115         * modules/getdelim (Files): Remove getdelim.h.
50116         (Depends-on): Add stdio.
50117         (configure.ac): Add module indicator.
50118         * modules/stdio (Makefile.am): Work with new indicators.
50119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
50120         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
50121         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50122         * lib/getdelim.h: Delete.
50123         * lib/getline.h: Delete.
50124         * lib/stdio_.h (getdelim, getline): Declare.
50125         * modules/getdelim-tests: New module.
50126         * modules/getline-tests: Likewise.
50127         * tests/test-getdelim.c: New file.
50128         * tests/test-getline.c: Likewise.
50129         * NEWS: Document the change.
50130         * lib/getline.c: Update choice of header.
50131         * lib/csharpcomp.c: Likewise.
50132         * lib/getpass.c: Likewise.
50133         * lib/javacomp.c: Likewise.
50134         * lib/javaversion.c: Likewise.
50135         * lib/yesno.c: Likewise.
50136         * lib/getdelim.c: Likewise.
50137         (getdelim): Set errno on failure, and avoid memory leak.
50138
50139 2007-08-19  Bruno Haible  <bruno@clisp.org>
50140
50141         * modules/closein (Depends-on): Add freadahead.
50142         * lib/closein.c: Include freadahead.h.
50143         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
50144         is zero.
50145
50146 2007-08-19  Bruno Haible  <bruno@clisp.org>
50147
50148         * modules/freadahead-tests: New file.
50149         * tests/test-freadahead.sh: New file.
50150         * tests/test-freadahead.c: New file.
50151
50152         * modules/freadahead: New file.
50153         * lib/freadahead.h: New file.
50154         * lib/freadahead.c: New file.
50155         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
50156         fbufmode, fpurge, freadable, fwritable.
50157
50158 2007-08-19  Eric Blake  <ebb9@byu.net>
50159
50160         Test yesno in combination with closein.
50161         * lib/yesno.c (yesno): Document use of stdin.
50162         * modules/yesno-tests (Files): New module.
50163         * tests/test-yesno.c (main): New file.
50164         * tests/test-yesno.sh: Likewise.
50165
50166 2007-08-19  Bruno Haible  <bruno@clisp.org>
50167
50168         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
50169         * lib/fseeko.c (rpl_fseeko): Likewise.
50170         * lib/fseterr.c (fseterr): Likewise.
50171
50172 2007-08-19  Bruno Haible  <bruno@clisp.org>
50173
50174         * tests/test-lseek.c (main): Disable a test for BeOS.
50175         * doc/functions/lseek.texi: Document the BeOS bug.
50176
50177 2007-08-19  Bruno Haible  <bruno@clisp.org>
50178             Eric Blake  <ebb9@byu.net>
50179
50180         * lib/lseek.c: Include <sys/stat.h>.
50181         (rpl_lseek): Add workaround code also for Unix platforms.
50182         Needed for BeOS.
50183         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
50184         * doc/functions/lseek.texi: Document BeOS definiency.
50185
50186 2007-08-18  Bruno Haible  <bruno@clisp.org>
50187
50188         * modules/fstrcmp-tests: New file.
50189         * tests/test-fstrcmp.c: New file.
50190
50191 2007-08-18  Bruno Haible  <bruno@clisp.org>
50192
50193         * modules/fstrcmp: New file, from GNU gettext with modifications.
50194         * lib/fstrcmp.h: New file, from GNU gettext.
50195         * lib/fstrcmp.c: New file, from GNU gettext.
50196         * MODULES.html.sh (String handling): Add fstrcmp.
50197
50198 2007-08-18  Bruno Haible  <bruno@clisp.org>
50199
50200         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
50201         'bool'.
50202         (diag, compareseq): Remove const from the ctxt argument.
50203         (USE_HEURISTIC): Undefine at the end.
50204
50205 2007-08-18  Jim Meyering  <jim@meyering.net>
50206
50207         New file: lib/idcache.h
50208         * NEWS: Mention the addition.
50209         * modules/idcache (Files): Add lib/idcache.h
50210         * lib/idcache.c: Include "idcache.h".
50211         Don't include <sys/types.h>.
50212         Add a FIXME comment.
50213         Move file-scoped "static" declarations to the top.
50214         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
50215
50216 2007-08-17  Bruno Haible  <bruno@clisp.org>
50217         and Paul Eggert  <eggert@cs.ucla.edu>
50218
50219         * MODULES.html.sh: Add diffseq.
50220         * modules/diffseq: New file.
50221         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
50222         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
50223
50224 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50225
50226         Import changes from coreutils for bootstrap script.
50227
50228         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
50229
50230         * build-aux/bootstrap (slurp): Work even in environments where
50231         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
50232         current code does not slurp files whose names start with ".", and
50233         this looks like it might be a troublesome area.
50234
50235         2007-07-11  Jim Meyering  <jim@meyering.net>
50236
50237         If there's a GPL vN copyright comment, require that N == 3.
50238
50239         2007-07-08  Jim Meyering  <jim@meyering.net>
50240
50241         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50242         * build-aux/bootstrap (mam_template): Move definition out of loop.
50243
50244         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50245
50246         * build-aux/bootstrap (symlink_to_dir): Rename function from
50247         symlink_to_gnulib.  Add a directory parameter.  Update all
50248         callers.
50249         (cp_mark_as_generated): Also check for -- and link to -- files in
50250         gl/.
50251
50252         2007-07-08  Jim Meyering  <jim@meyering.net>
50253
50254         Adapt to deeper hierarchy in gnulib.
50255         * build-aux/bootstrap (symlink_to_dir): If the destination
50256         directory doesn't exist, create it. This is required at least for
50257         "lib/uniwidth/cjk.h".
50258
50259         2007-05-15  Jim Meyering  <jim@meyering.net>
50260
50261         * build-aux/bootstrap: Now that generated Makefile.am files
50262         are no longer under version control, they must be created at
50263         bootstrap time.
50264
50265 2007-08-14  Ben Pfaff  <blp@gnu.org>
50266
50267         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50268
50269 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50270
50271         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50272         given the changes below.
50273         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50274         even on hosts that have padding bits beyond the supported 64.
50275
50276 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50277
50278         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50279         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50280         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50281         depends on it.
50282         (xstrtol_error): Remove.
50283         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50284         but with a different signature.
50285         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50286         * lib/xstrtol-error.c: Include exitfail.h.
50287         (xstrtol_fatal): New function, with a different signature from the
50288         old xstrtol_error, so that the caller need not worry about passing
50289         in an exit status, or about storage management of the option argument.
50290         (xstrtol_error): Now a static function.  Redo signature to
50291         implement xstrtol_fatal.  Output the correct number of hyphens in
50292         front of the option so that the caller need not worry about
50293         storage management.
50294         (N_): New macro.
50295         (_): Remove; not used now.
50296         * modules/xstrtol: Depend on getopt.
50297         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50298         of old STRTOL_FATAL_ERROR macro.
50299         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50300         of test program.
50301         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50302         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50303
50304 2007-08-08  Eric Blake  <ebb9@byu.net>
50305
50306         * lib/xstrtol-error.c: Add missing include.
50307
50308         Move xstrtol messages into gnulib domain, when --pobase is used.
50309         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50310         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50311         * modules/xstrtol (Files): Distribute new file.
50312         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50313         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50314         * tests/test-xstrtol.c: ...into new file.
50315         * tests/test-xstrtoul.c: Also test xstrtoul.
50316         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50317         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50318         * tests/test-xstrtol.sh: Drive the tests.
50319         * tests/test-xstrtoimax.sh: Likewise.
50320         * tests/test-xstrtoumax.sh: Likewise.
50321         * modules/xstrtol-tests: New module.
50322         * modules/xstrtoimax-tests: Likewise.
50323         * modules/xstrtoumax-tests: Likewise.
50324
50325 2007-08-08  Jim Meyering  <jim@meyering.net>
50326
50327         New function: mfile_name_concat.
50328         * lib/filenamecat.c (mfile_name_concat): New function, just like
50329         file_name_concat, but return NULL upon failure rather than exiting
50330         with a diagnostic.
50331         * lib/filenamecat.h: Declare it.
50332
50333 2007-08-07  Bruno Haible  <bruno@clisp.org>
50334
50335         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50336         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50337         warning from gcc.
50338         Reported by Eric Blake.
50339
50340 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50341
50342         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50343         * modules/crypto/arcfour (License): Likewise.
50344         * modules/crypto/des-tests (License): Likewise.
50345         * modules/crypto/gc-arctwo-tests (License): Likewise.
50346         * modules/crypto/gc-des-tests (License): Likewise.
50347         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50348         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50349         * modules/crypto/gc-md2-tests (License): Likewise.
50350         * modules/crypto/gc-md4-tests (License): Likewise.
50351         * modules/crypto/gc-md5-tests (License): Likewise.
50352         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50353         * modules/crypto/gc-rijndael-tests (License): Likewise.
50354         * modules/crypto/gc-sha1-tests (License): Likewise.
50355         * modules/crypto/gc-tests (License): Likewise.
50356         * modules/crypto/hmac-md5 (License): Likewise.
50357         * modules/crypto/hmac-sha1 (License): Likewise.
50358         * modules/crypto/md2-tests (License): Likewise.
50359         * modules/crypto/md4-tests (License): Likewise.
50360         * modules/crypto/md5 (License): Likewise.
50361         * modules/crypto/rijndael (License): Likewise.
50362         * modules/crypto/sha1 (License): Likewise.
50363         * modules/memxor (License): Likewise.
50364
50365 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50366         and Bruno Haible  <bruno@clisp.org>
50367
50368         * NEWS: Describe interface changes to human, xstrtol.
50369         * lib/human.h: Include <xstrtol.h>.
50370         (human_options): Return enum strtol_error, not int.  Remove
50371         bool arg; take int * instead.
50372         * lib/human.c: Don't include "gettext.h".
50373         (_): Remove; no longer used.
50374         Don't include <xstrtol.h>, since human.h does it.
50375         (human_options): Adjust to abovementioned interface changes.
50376         Do not report error to stderr; that's now the caller's
50377         responsibility.
50378         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50379         interface change.
50380         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50381         Str, Argument_type_string.  All uses changed.  Put " argument"
50382         in diagnostics to make them clearer.  Change wording of suffix
50383         message for clarity.
50384         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50385         Argument_type_string.
50386         (STRTOL_FATAL_WARN): Remove; no longer used.
50387         * modules/human (Depends-on): Remove gettext-h.
50388
50389 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50390
50391         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50392
50393 2007-07-31  Bruno Haible  <bruno@clisp.org>
50394
50395         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50396         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50397         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50398
50399 2007-07-31  Bruno Haible  <bruno@clisp.org>
50400
50401         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50402         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50403
50404 2007-07-30  Bruno Haible  <bruno@clisp.org>
50405
50406         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50407         * modules/c-ctype (License): Likewise.
50408         * modules/c-strcase (License): Likewise.
50409         * modules/check-version (License): Likewise.
50410         * modules/iconv (License): Likewise.
50411         * modules/iconv_open (License): Likewise.
50412         * modules/read-file (License): Likewise.
50413         * modules/striconv (License): Likewise.
50414         * modules/strverscmp (License): Likewise.
50415         * modules/vasprintf (License): Likewise.
50416         * modules/crypto/des (License): Likewise.
50417         * modules/crypto/gc (License): Likewise.
50418         * modules/crypto/gc-arcfour (License): Likewise.
50419         * modules/crypto/gc-arctwo (License): Likewise.
50420         * modules/crypto/gc-des (License): Likewise.
50421         * modules/crypto/gc-hmac-md5 (License): Likewise.
50422         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50423         * modules/crypto/gc-md2 (License): Likewise.
50424         * modules/crypto/gc-md4 (License): Likewise.
50425         * modules/crypto/gc-md5 (License): Likewise.
50426         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50427         * modules/crypto/gc-random (License): Likewise.
50428         * modules/crypto/gc-rijndael (License): Likewise.
50429         * modules/crypto/gc-sha1 (License): Likewise.
50430         * modules/crypto/md2 (License): Likewise.
50431         * modules/crypto/md4 (License): Likewise.
50432
50433 2007-07-30  Jim Meyering  <jim@meyering.net>
50434
50435         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50436         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50437         it has valid stat data.  This bug would cause du not to count the
50438         sizes of inaccessible directories.
50439         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50440         in <http://bugzilla.redhat.com/250077>.
50441
50442 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50443             Bruno Haible  <bruno@clisp.org>
50444
50445         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50446         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50447         #include_next, gives a diagnostic about it, but reports no error in
50448         the exit code.
50449         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50450
50451 2007-07-24  Ben Pfaff  <blp@gnu.org>
50452
50453         Improve name: "count-one-bits" is better than "popcount".
50454         * MODULES.html.sh: Update name.
50455         * lib/popcount.h: Renamed lib/count-one-bits.h.
50456         (popcount): Renamed count_one_bits.
50457         (popcountl): Renamed count_one_bits_l.
50458         (popcountll): Renamed count_one_bits_ll.
50459         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50460         * modules/popcount: Renamed module/count-one-bits.
50461         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50462         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50463
50464 2007-07-23  Ben Pfaff  <blp@gnu.org>
50465
50466         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50467         better code generation, and add U to large constants to avoid
50468         warnings, in non-GCC case.
50469         Suggested by Bruno Haible.
50470
50471 2007-07-23  Ben Pfaff  <blp@gnu.org>
50472
50473         * lib/popcount.h: Use verify_true instead of if...abort.
50474         * modules/popcount: Depend on verify module.
50475         Suggested by Jim Meyering.
50476
50477 2007-07-23  Bruno Haible  <bruno@clisp.org>
50478
50479         * gnulib-tool (func_import): Create a .cvsignore file also when the
50480         directory is not yet in CVS but the toplevel directory is. When
50481         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50482         Reported by Karl Berry.
50483
50484 2007-07-22  Ben Pfaff  <blp@gnu.org>
50485
50486         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50487         case.
50488         Suggested by Eric Blake.
50489
50490 2007-07-22  Ben Pfaff  <blp@gnu.org>
50491
50492         New module: popcount.
50493         * MODULES.html.sh: Add popcount.
50494         * modules/popcount: New file.
50495         * modules/popcount-tests: New file.
50496         * tests/test-popcount.c: New file.
50497         * lib/popcount.h: New file.
50498         * m4/popcount.m4: New file.
50499
50500 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50501
50502         * build-aux/announce-gen: Update to GPLv3.
50503
50504         * build-aux/config.guess: Update from config.
50505
50506 2007-07-21  Bruno Haible  <bruno@clisp.org>
50507
50508         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50509         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50510
50511 2007-07-20  Jim Meyering  <jim@meyering.net>
50512
50513         * check-module: Diagnose a self-dependency.
50514
50515 2007-07-19  Bruno Haible  <bruno@clisp.org>
50516
50517         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50518         empty.
50519         Reported by Eric Blake.
50520
50521 2007-07-18  Bruno Haible  <bruno@clisp.org>
50522
50523         * gnulib-tool: New options --po-base, --po-domain.
50524         (func_usage): Document them.
50525         (pobase, po_domain): New variables.
50526         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50527         DEFAULT_TEXT_DOMAIN.
50528         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50529         (func_import): Consider pobase and po_domain. Create a po/ directory.
50530         (func_create_testdir): Set pobase and po_domain to empty.
50531         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50532         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50533
50534 2007-07-18  Bruno Haible  <bruno@clisp.org>
50535
50536         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50537         EXTRA_DIST augmentation for files in build-aux/.
50538
50539 2007-07-16  Bruno Haible  <bruno@clisp.org>
50540
50541         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50542         * modules/getdelim (License): Likewise.
50543
50544 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50545
50546         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50547         * modules/d-type (License): Likewise.
50548         * modules/extensions (License): Likewise.
50549         * modules/fnmatch (License): Likewise.
50550         * modules/fseeko (License): Likewise.
50551         * modules/getaddrinfo (License): Likewise.
50552         * modules/getline (License): Likewise.
50553         * modules/getlogin_r (License): Likewise.
50554         * modules/getpass (License): Likewise.
50555         * modules/gettimeofday (License): Likewise.
50556         * modules/glob (License): Likewise.
50557         * modules/inet_ntop (License): Likewise.
50558         * modules/malloc (License): Likewise.
50559         * modules/malloca (License): Likewise.
50560         * modules/memmem (License): Likewise.
50561         * modules/mempcpy (License): Likewise.
50562         * modules/memset (License): Likewise.
50563         * modules/minmax (License): Likewise.
50564         * modules/mktime (License): Likewise.
50565         * modules/netinet_in (License): Likewise.
50566         * modules/pathmax (License): Likewise.
50567         * modules/poll (License): Likewise.
50568         * modules/regex (License): Likewise.
50569         * modules/snprintf (License): Likewise.
50570         * modules/stdbool (License): Likewise.
50571         * modules/stdint (License): Likewise.
50572         * modules/stdio (License): Likewise.
50573         * modules/strcase (License): Likewise.
50574         * modules/strcasestr (License): Likewise.
50575         * modules/strdup (License): Likewise.
50576         * modules/string (License): Likewise.
50577         * modules/strndup (License): Likewise.
50578         * modules/strnlen (License): Likewise.
50579         * modules/strpbrk (License): Likewise.
50580         * modules/strptime (License): Likewise.
50581         * modules/strsep (License): Likewise.
50582         * modules/sys_select (License): Likewise.
50583         * modules/sys_socket (License): Likewise.
50584         * modules/sys_stat (License): Likewise.
50585         * modules/sys_time (License): Likewise.
50586         * modules/time (License): Likewise.
50587         * modules/time_r (License): Likewise.
50588         * modules/timegm (License): Likewise.
50589         * modules/unistd (License): Likewise.
50590         * modules/vsnprintf (License): Likewise.
50591         * modules/wctype (License): Likewise.
50592
50593 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50594
50595         * modules/argz (License): LGPLv2+.
50596
50597 2007-07-15  Karl Berry  <karl@gnu.org>
50598
50599         * doc/gnulib.texi: revise node structure per new fdl.texi.
50600
50601 2007-07-14  Bruno Haible  <bruno@clisp.org>
50602
50603         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50604         the output file.
50605         * lib/uniname/uninames.h: Regenerated.
50606
50607 2007-07-14  Karl Berry  <karl@gnu.org>
50608
50609         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50610         omitting sectioning and index commands.
50611
50612 2007-07-13  Bruno Haible  <bruno@clisp.org>
50613
50614         New gnulib-tool option --more-symlinks.
50615         * gnulib-tool (func_usage): Document --more-symlinks.
50616         (do_copyrights): New variable.
50617         Recognize option --more-symlinks.
50618         (func_import): Don't add a copyright notice transform to
50619         sed_transform_lib_file if do_copyrights is empty.
50620
50621 2007-07-13  Bruno Haible  <bruno@clisp.org>
50622
50623         * lib/vasnprintf.c (decimal_point_char): Define also if
50624         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50625         && !NEED_PRINTF_DIRECTIVE_A.
50626         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50627         Gary V. Vaughan <gary@gnu.org>.
50628
50629 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50630
50631         * lib/inttypes_.h: Undo previous change, since it was fixed
50632         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50633
50634 2007-07-13  Bruno Haible  <bruno@clisp.org>
50635
50636         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50637         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50638
50639 2007-07-13  Jim Meyering  <jim@meyering.net>
50640
50641         df: Don't fail for Tru64's "file-on-file mount".
50642         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50643         so we fall through and use statfs instead.  Details here:
50644         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50645         Reported by Albert Chin.
50646
50647 2007-07-13  Bruno Haible  <bruno@clisp.org>
50648
50649         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50650         * modules/configmake (License): Likewise.
50651         * modules/gettext (License): Likewise.
50652         * modules/gettext-h (License): Likewise.
50653         * modules/include_next (License): Likewise.
50654         * modules/link-warning (License): Likewise.
50655         * modules/localcharset (License): Likewise.
50656         * modules/localename (License): Likewise.
50657         * modules/lock (License): Likewise.
50658         * modules/relocatable-lib-lgpl (License): Likewise.
50659         * modules/size_max (License): Likewise.
50660         * modules/vasnprintf (License): Likewise.
50661         * modules/wchar (License): Likewise.
50662         * modules/xsize (License): Likewise.
50663
50664 2007-07-13  Bruno Haible  <bruno@clisp.org>
50665
50666         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50667         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50668
50669 2007-07-12  Bruno Haible  <bruno@clisp.org>
50670
50671         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50672         in the modules files.
50673
50674 2007-07-11  Karl Berry  <karl@gnu.org>
50675
50676         * MODULES.html.sh (func_module): use
50677          sed -e '\|^'"${includefile}"'$|d'
50678          instead of /.../d, to avoid errors on $includefile's containing /.
50679
50680 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50681
50682         * gnulib-tool (func_import): Avoid duplication of --avoid
50683         statements
50684         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50685         names to `_' in variable names.
50686
50687 2007-07-10  Eric Blake  <ebb9@byu.net>
50688
50689         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50690         * NEWS: Document this change.
50691
50692 2007-07-08  Bruno Haible  <bruno@clisp.org>
50693
50694         Update to Unicode 5.0.
50695         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50696         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50697         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50698         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50699         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50700         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50701         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50702         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50703         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50704         U+10A3F, U+1D242..U+1D244.
50705         (nonspacing_table_ind): Update.
50706         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50707         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50708
50709 2007-07-08  Bruno Haible  <bruno@clisp.org>
50710
50711         Update to Unicode 5.0.
50712         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50713         code transform. Extend the name index field of unicode_name_to_code and
50714         unicode_code_to_name from 16 to 24 bits.
50715         * lib/uniname/uniname.c (unicode_character_name,
50716         unicode_name_character): Add the range 0x12xxx to the code transform.
50717         * lib/uniname/uninames.h: Regenerated.
50718         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50719
50720 2007-07-07  Bruno Haible  <bruno@clisp.org>
50721
50722         * modules/wcwidth-tests: New file.
50723         * tests/test-wcwidth.c: New file.
50724
50725         Work around MacOS X wcwidth() bug.
50726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50727         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50728         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50729         original wcwidth in non-UTF-8 locales.
50730         * modules/wcwidth (Depends-on): Add localcharset, streq,
50731         uniwidth/width.
50732         * doc/functions/wcwidth.texi: Update.
50733
50734 2007-07-07  Bruno Haible  <bruno@clisp.org>
50735
50736         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50737         (wcwidth): New declaration.
50738         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50739         macros.
50740         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50741         here. Prepare for creating <wchar.h> unconditionally.
50742         * modules/wchar (Depends-on): Add link-warning.
50743         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50744         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50745         * lib/wcwidth.h: Remove file.
50746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50747         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50748         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50749         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50750         (Include): Replace wcwidth.h with <wchar.h>.
50751         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50752         * lib/mbchar.h: Don't include wcwidth.h.
50753         * lib/mbswidth.c: Likewise.
50754         * NEWS: Mention the change.
50755
50756 2007-07-07  Bruno Haible  <bruno@clisp.org>
50757
50758         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50759         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50760         definition with an external declaration.
50761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50762         defined as a function. Remove AC_C_INLINE requirement.
50763         * modules/wcwidth (Files): Add lib/wcwidth.c.
50764         (Makefile.am): Remove redundant statement.
50765
50766 2007-07-07  Bruno Haible  <bruno@clisp.org>
50767
50768         * MODULES.html.sh (Unicode string functions): Add the new modules.
50769
50770         * tests/uniwidth/test-u32-strwidth.c: New file.
50771         * modules/uniwidth/u32-strwidth-tests: New file.
50772
50773         * lib/uniwidth/u32-strwidth.c: New file.
50774         * modules/uniwidth/u32-strwidth: New file.
50775
50776         * tests/uniwidth/test-u16-strwidth.c: New file.
50777         * modules/uniwidth/u16-strwidth-tests: New file.
50778
50779         * lib/uniwidth/u16-strwidth.c: New file.
50780         * modules/uniwidth/u16-strwidth: New file.
50781
50782         * tests/uniwidth/test-u8-strwidth.c: New file.
50783         * modules/uniwidth/u8-strwidth-tests: New file.
50784
50785         * lib/uniwidth/u8-strwidth.c: New file.
50786         * modules/uniwidth/u8-strwidth: New file.
50787
50788         * tests/uniwidth/test-u32-width.c: New file.
50789         * modules/uniwidth/u32-width-tests: New file.
50790
50791         * lib/uniwidth/u32-width.c: New file.
50792         * modules/uniwidth/u32-width: New file.
50793
50794         * tests/uniwidth/test-u16-width.c: New file.
50795         * modules/uniwidth/u16-width-tests: New file.
50796
50797         * lib/uniwidth/u16-width.c: New file.
50798         * modules/uniwidth/u16-width: New file.
50799
50800         * tests/uniwidth/test-u8-width.c: New file.
50801         * modules/uniwidth/u8-width-tests: New file.
50802
50803         * lib/uniwidth/u8-width.c: New file.
50804         * modules/uniwidth/u8-width: New file.
50805
50806         * tests/uniwidth/test-uc_width.c: New file.
50807         * modules/uniwidth/width-tests: New file.
50808
50809         * lib/uniwidth/width.c: New file, from GNU libiconv.
50810         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50811         * modules/uniwidth/width: New file.
50812
50813         * lib/uniwidth.h: New file, from GNU libiconv.
50814         * modules/uniwidth/base: New file.
50815
50816 2007-07-07  Bruno Haible  <bruno@clisp.org>
50817
50818         * lib/uniname.h: New file, from GNU gettext.
50819         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50820         * lib/uniname/uninames.h: New file, from GNU gettext.
50821         * lib/uniname/uniname.c: New file, from GNU gettext.
50822         * tests/uniname/test-uninames.sh: New file.
50823         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50824         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50825         * modules/uniname/base: New file.
50826         * modules/uniname/uniname: New file.
50827         * modules/uniname/uniname-tests: New file.
50828         * MODULES.html.sh (Unicode string functions): Add the new modules.
50829
50830 2007-07-06  Bruno Haible  <bruno@clisp.org>
50831
50832         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50833
50834 2007-07-06  Bruno Haible  <bruno@clisp.org>
50835
50836         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50837         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50838         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50839         include <sys/time.h>.
50840         Reported by Eric Blake.
50841
50842 2007-07-06  Eric Blake  <ebb9@byu.net>
50843
50844         Fix testing canonicalize on cygwin.
50845         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50846         Revert patch from 2007-06-19.
50847         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50848         canonicalize module is also in use.
50849         * tests/test-canonicalize.c: New file.
50850         * tests/test-canonicalize.sh: Likewise.
50851         * modules/canonicalize-tests: Likewise.
50852
50853 2007-07-06  Jim Meyering  <jim@meyering.net>
50854
50855         * lib/getugroups.c (getugroups): Detect getgrent failure.
50856         Adjust comment to reflect reality: this function may return -1.
50857
50858 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50859
50860         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50861         the new TP address.
50862         (usage): Fix typo
50863         (gnulib_mk): New variable.
50864
50865 2007-07-05  Jim Meyering  <jim@meyering.net>
50866
50867         Don't let endgrent clobber errno, no matter how improbable.
50868         * lib/getugroups.c (getugroups): Save and restore errno around
50869         endgrent call.
50870
50871         Close the group DB even when failing with 2^31 or more members.
50872         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50873
50874 2007-07-04  Jim Meyering  <jim@meyering.net>
50875
50876         * lib/getugroups.h: New file.
50877         * lib/getugroups.c: Include "getugroups.h".
50878         Remove uses of "register" keyword.
50879         Move local variable, "cp", down into scope where used.
50880         Give "username" parameter the "const" attribute.
50881         * modules/getugroups (Files): Add lib/getugroups.h
50882
50883 2007-07-04  Karl Berry  <karl@gnu.org>
50884
50885         * MODULES.html.sh (func_all_modules): Complete rename of
50886         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50887
50888 2007-07-02  Bruno Haible  <bruno@clisp.org>
50889
50890         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50891         mode, when inttypes.h comes from gnulib.
50892         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50893
50894 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50895
50896         * NEWS: Mention lgpl module name change.
50897
50898         * modules/lgpl-2.1: Renamed from lgpl.
50899
50900         * NEWS: Mention gpl module name change.
50901
50902         * modules/gpl-3.0: New file, based on gpl-2.0.
50903
50904         * modules/gpl-2.0: Renamed from gpl.
50905
50906         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50907         doc/gpl-2.0.texi.
50908
50909 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50910
50911         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50912         #define __STDC_LIMIT_MACROS temporarily while including
50913         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50914         Problem reported by Joel E. Denny in
50915         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50916
50917 2007-07-01  Bruno Haible  <bruno@clisp.org>
50918
50919         * lib/unistdio.h: New file.
50920         * lib/unistdio/u-asnprintf.h: New file.
50921         * lib/unistdio/u-asprintf.h: New file.
50922         * lib/unistdio/u-printf-args.c: New file.
50923         * lib/unistdio/u-printf-args.h: New file.
50924         * lib/unistdio/u-printf-parse.h: New file.
50925         * lib/unistdio/u-snprintf.h: New file.
50926         * lib/unistdio/u-sprintf.h: New file.
50927         * lib/unistdio/u-vasprintf.h: New file.
50928         * lib/unistdio/u-vsnprintf.h: New file.
50929         * lib/unistdio/u-vsprintf.h: New file.
50930         * lib/unistdio/ulc-asnprintf.c: New file.
50931         * lib/unistdio/ulc-asprintf.c: New file.
50932         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50933         * lib/unistdio/ulc-printf-parse.c: New file.
50934         * lib/unistdio/ulc-snprintf.c: New file.
50935         * lib/unistdio/ulc-sprintf.c: New file.
50936         * lib/unistdio/ulc-vasnprintf.c: New file.
50937         * lib/unistdio/ulc-vasprintf.c: New file.
50938         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50939         * lib/unistdio/ulc-vsnprintf.c: New file.
50940         * lib/unistdio/ulc-vsprintf.c: New file.
50941         * lib/unistdio/u8-asnprintf.c: New file.
50942         * lib/unistdio/u8-asprintf.c: New file.
50943         * lib/unistdio/u8-printf-parse.c: New file.
50944         * lib/unistdio/u8-snprintf.c: New file.
50945         * lib/unistdio/u8-sprintf.c: New file.
50946         * lib/unistdio/u8-vasnprintf.c: New file.
50947         * lib/unistdio/u8-vasprintf.c: New file.
50948         * lib/unistdio/u8-vsnprintf.c: New file.
50949         * lib/unistdio/u8-vsprintf.c: New file.
50950         * lib/unistdio/u8-u8-asnprintf.c: New file.
50951         * lib/unistdio/u8-u8-asprintf.c: New file.
50952         * lib/unistdio/u8-u8-snprintf.c: New file.
50953         * lib/unistdio/u8-u8-sprintf.c: New file.
50954         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50955         * lib/unistdio/u8-u8-vasprintf.c: New file.
50956         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50957         * lib/unistdio/u8-u8-vsprintf.c: New file.
50958         * lib/unistdio/u16-asnprintf.c: New file.
50959         * lib/unistdio/u16-asprintf.c: New file.
50960         * lib/unistdio/u16-printf-parse.c: New file.
50961         * lib/unistdio/u16-snprintf.c: New file.
50962         * lib/unistdio/u16-sprintf.c: New file.
50963         * lib/unistdio/u16-vasnprintf.c: New file.
50964         * lib/unistdio/u16-vasprintf.c: New file.
50965         * lib/unistdio/u16-vsnprintf.c: New file.
50966         * lib/unistdio/u16-vsprintf.c: New file.
50967         * lib/unistdio/u16-u16-asnprintf.c: New file.
50968         * lib/unistdio/u16-u16-asprintf.c: New file.
50969         * lib/unistdio/u16-u16-snprintf.c: New file.
50970         * lib/unistdio/u16-u16-sprintf.c: New file.
50971         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50972         * lib/unistdio/u16-u16-vasprintf.c: New file.
50973         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50974         * lib/unistdio/u16-u16-vsprintf.c: New file.
50975         * lib/unistdio/u32-asnprintf.c: New file.
50976         * lib/unistdio/u32-asprintf.c: New file.
50977         * lib/unistdio/u32-printf-parse.c: New file.
50978         * lib/unistdio/u32-snprintf.c: New file.
50979         * lib/unistdio/u32-sprintf.c: New file.
50980         * lib/unistdio/u32-vasnprintf.c: New file.
50981         * lib/unistdio/u32-vasprintf.c: New file.
50982         * lib/unistdio/u32-vsnprintf.c: New file.
50983         * lib/unistdio/u32-vsprintf.c: New file.
50984         * lib/unistdio/u32-u32-asnprintf.c: New file.
50985         * lib/unistdio/u32-u32-asprintf.c: New file.
50986         * lib/unistdio/u32-u32-snprintf.c: New file.
50987         * lib/unistdio/u32-u32-sprintf.c: New file.
50988         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50989         * lib/unistdio/u32-u32-vasprintf.c: New file.
50990         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50991         * lib/unistdio/u32-u32-vsprintf.c: New file.
50992         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50993         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50994         * tests/unistdio/test-ulc-printf1.h: New file.
50995         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50996         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50997         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50998         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50999         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
51000         * tests/unistdio/test-ulc-vasprintf1.c: New file.
51001         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
51002         * tests/unistdio/test-ulc-vsprintf1.c: New file.
51003         * tests/unistdio/test-u8-asnprintf1.c: New file.
51004         * tests/unistdio/test-u8-asnprintf1.h: New file.
51005         * tests/unistdio/test-u8-printf1.h: New file.
51006         * tests/unistdio/test-u8-vasnprintf1.c: New file.
51007         * tests/unistdio/test-u8-vasnprintf2.c: New file.
51008         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
51009         * tests/unistdio/test-u8-vasnprintf3.c: New file.
51010         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
51011         * tests/unistdio/test-u8-vasprintf1.c: New file.
51012         * tests/unistdio/test-u8-vsnprintf1.c: New file.
51013         * tests/unistdio/test-u8-vsprintf1.c: New file.
51014         * tests/unistdio/test-u16-asnprintf1.c: New file.
51015         * tests/unistdio/test-u16-asnprintf1.h: New file.
51016         * tests/unistdio/test-u16-printf1.h: New file.
51017         * tests/unistdio/test-u16-vasnprintf1.c: New file.
51018         * tests/unistdio/test-u16-vasnprintf2.c: New file.
51019         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
51020         * tests/unistdio/test-u16-vasnprintf3.c: New file.
51021         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
51022         * tests/unistdio/test-u16-vasprintf1.c: New file.
51023         * tests/unistdio/test-u16-vsnprintf1.c: New file.
51024         * tests/unistdio/test-u16-vsprintf1.c: New file.
51025         * tests/unistdio/test-u32-asnprintf1.c: New file.
51026         * tests/unistdio/test-u32-asnprintf1.h: New file.
51027         * tests/unistdio/test-u32-printf1.h: New file.
51028         * tests/unistdio/test-u32-vasnprintf1.c: New file.
51029         * tests/unistdio/test-u32-vasnprintf2.c: New file.
51030         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
51031         * tests/unistdio/test-u32-vasnprintf3.c: New file.
51032         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
51033         * tests/unistdio/test-u32-vasprintf1.c: New file.
51034         * tests/unistdio/test-u32-vsnprintf1.c: New file.
51035         * tests/unistdio/test-u32-vsprintf1.c: New file.
51036         * modules/unistdio/base: New file.
51037         * modules/unistdio/u-printf-args: New file.
51038         * modules/unistdio/ulc-asnprintf: New file.
51039         * modules/unistdio/ulc-asprintf: New file.
51040         * modules/unistdio/ulc-fprintf: New file.
51041         * modules/unistdio/ulc-printf-parse: New file.
51042         * modules/unistdio/ulc-snprintf: New file.
51043         * modules/unistdio/ulc-sprintf: New file.
51044         * modules/unistdio/ulc-vasnprintf: New file.
51045         * modules/unistdio/ulc-vasprintf: New file.
51046         * modules/unistdio/ulc-vfprintf: New file.
51047         * modules/unistdio/ulc-vsnprintf: New file.
51048         * modules/unistdio/ulc-vsprintf: New file.
51049         * modules/unistdio/u8-asnprintf: New file.
51050         * modules/unistdio/u8-asprintf: New file.
51051         * modules/unistdio/u8-printf-parse: New file.
51052         * modules/unistdio/u8-snprintf: New file.
51053         * modules/unistdio/u8-sprintf: New file.
51054         * modules/unistdio/u8-vasnprintf: New file.
51055         * modules/unistdio/u8-vasprintf: New file.
51056         * modules/unistdio/u8-vsnprintf: New file.
51057         * modules/unistdio/u8-vsprintf: New file.
51058         * modules/unistdio/u8-u8-asnprintf: New file.
51059         * modules/unistdio/u8-u8-asprintf: New file.
51060         * modules/unistdio/u8-u8-snprintf: New file.
51061         * modules/unistdio/u8-u8-sprintf: New file.
51062         * modules/unistdio/u8-u8-vasnprintf: New file.
51063         * modules/unistdio/u8-u8-vasprintf: New file.
51064         * modules/unistdio/u8-u8-vsnprintf: New file.
51065         * modules/unistdio/u8-u8-vsprintf: New file.
51066         * modules/unistdio/u16-asnprintf: New file.
51067         * modules/unistdio/u16-asprintf: New file.
51068         * modules/unistdio/u16-printf-parse: New file.
51069         * modules/unistdio/u16-snprintf: New file.
51070         * modules/unistdio/u16-sprintf: New file.
51071         * modules/unistdio/u16-vasnprintf: New file.
51072         * modules/unistdio/u16-vasprintf: New file.
51073         * modules/unistdio/u16-vsnprintf: New file.
51074         * modules/unistdio/u16-vsprintf: New file.
51075         * modules/unistdio/u16-u16-asnprintf: New file.
51076         * modules/unistdio/u16-u16-asprintf: New file.
51077         * modules/unistdio/u16-u16-snprintf: New file.
51078         * modules/unistdio/u16-u16-sprintf: New file.
51079         * modules/unistdio/u16-u16-vasnprintf: New file.
51080         * modules/unistdio/u16-u16-vasprintf: New file.
51081         * modules/unistdio/u16-u16-vsnprintf: New file.
51082         * modules/unistdio/u16-u16-vsprintf: New file.
51083         * modules/unistdio/u32-asnprintf: New file.
51084         * modules/unistdio/u32-asprintf: New file.
51085         * modules/unistdio/u32-printf-parse: New file.
51086         * modules/unistdio/u32-snprintf: New file.
51087         * modules/unistdio/u32-sprintf: New file.
51088         * modules/unistdio/u32-vasnprintf: New file.
51089         * modules/unistdio/u32-vasprintf: New file.
51090         * modules/unistdio/u32-vsnprintf: New file.
51091         * modules/unistdio/u32-vsprintf: New file.
51092         * modules/unistdio/u32-u32-asnprintf: New file.
51093         * modules/unistdio/u32-u32-asprintf: New file.
51094         * modules/unistdio/u32-u32-snprintf: New file.
51095         * modules/unistdio/u32-u32-sprintf: New file.
51096         * modules/unistdio/u32-u32-vasnprintf: New file.
51097         * modules/unistdio/u32-u32-vasprintf: New file.
51098         * modules/unistdio/u32-u32-vsnprintf: New file.
51099         * modules/unistdio/u32-u32-vsprintf: New file.
51100         * modules/unistdio/ulc-asnprintf-tests: New file.
51101         * modules/unistdio/ulc-vasnprintf-tests: New file.
51102         * modules/unistdio/ulc-vasprintf-tests: New file.
51103         * modules/unistdio/ulc-vsnprintf-tests: New file.
51104         * modules/unistdio/ulc-vsprintf-tests: New file.
51105         * modules/unistdio/u8-asnprintf-tests: New file.
51106         * modules/unistdio/u8-vasnprintf-tests: New file.
51107         * modules/unistdio/u8-vasprintf-tests: New file.
51108         * modules/unistdio/u8-vsnprintf-tests: New file.
51109         * modules/unistdio/u8-vsprintf-tests: New file.
51110         * modules/unistdio/u16-asnprintf-tests: New file.
51111         * modules/unistdio/u16-vasnprintf-tests: New file.
51112         * modules/unistdio/u16-vasprintf-tests: New file.
51113         * modules/unistdio/u16-vsnprintf-tests: New file.
51114         * modules/unistdio/u16-vsprintf-tests: New file.
51115         * modules/unistdio/u32-asnprintf-tests: New file.
51116         * modules/unistdio/u32-vasnprintf-tests: New file.
51117         * modules/unistdio/u32-vasprintf-tests: New file.
51118         * modules/unistdio/u32-vsnprintf-tests: New file.
51119         * modules/unistdio/u32-vsprintf-tests: New file.
51120         * MODULES.html.sh (Unicode string functions): Add the new modules.
51121
51122 2007-07-01  Bruno Haible  <bruno@clisp.org>
51123
51124         * lib/sprintf.c (sprintf): Limit the available length estimation,
51125         to avoid address wraparound.
51126         * lib/vsprintf.c (vsprintf): Likewise.
51127         * modules/sprintf-posix (Dependencies): Add stdint.
51128         * modules/vsprintf-posix (Dependencies): Likewise.
51129
51130 2007-07-01  Bruno Haible  <bruno@clisp.org>
51131
51132         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
51133         Windows PATH as well. Conservative double-quoting. Comments.
51134
51135 2007-07-01  Bruno Haible  <bruno@clisp.org>
51136             Eric Blake  <ebb9@byu.net>
51137             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51138
51139         * gnulib-tool (self_abspathname): Fix algorithm to cope with
51140         empty components in $PATH, denoting '.'.
51141
51142 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51143
51144         * gnulib-tool: Fix indentation.
51145         (func_create_megatestdir): Likewise.
51146         Report by Bruno Haible.
51147
51148 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51149
51150         Sync from Automake.
51151         * build-aux/gnupload: Fix shell portability issues with for loops.
51152         Report by Karl Berry.
51153
51154 2007-06-29  Simon Josefsson  <simon@josefsson.org>
51155
51156         * build-aux/maint.mk (POURL): Use translationproject.org.
51157
51158 2007-06-27  Simon Josefsson  <simon@josefsson.org>
51159             Bruno Haible  <bruno@clisp.org>
51160
51161         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
51162         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
51163         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
51164         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
51165         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
51166
51167 2007-06-27  Bruno Haible  <bruno@clisp.org>
51168
51169         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
51170         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
51171
51172 2007-06-26  Karl Berry  <karl@gnu.org>
51173
51174         * MODULES.html.sh: remove xreadlink-with-size.
51175
51176 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51177
51178         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
51179         method that I hope also handles the double-include problem noted
51180         by Bruno Haible in
51181         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
51182
51183 2007-06-23  Bruno Haible  <bruno@clisp.org>
51184
51185         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51186         Don't let the 'mostlyclean' target fail if the last subdirectory could
51187         not be removed.
51188         Reported by Karl Berry.
51189
51190 2007-06-23  Bruno Haible  <bruno@clisp.org>
51191
51192         * gnulib-tool (echo): Add a speedier workaround for ksh.
51193         * tests/test-echo.sh: Likewise.
51194
51195 2007-06-23  Bruno Haible  <bruno@clisp.org>
51196
51197         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
51198         * tests/test-echo.sh: Likewise.
51199
51200 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51201
51202         * gnulib-tool (IFS): Initialize early, so we don't set it to
51203         empty later.
51204         (self_abspathname): Rewrite algorithm to set it, reindent.
51205         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
51206         (func_create_megatestdir): Merge some sed scripts.
51207
51208 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51209
51210         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
51211         exposed by Sun Studio 11 cc on Solaris 8.
51212
51213 2007-06-22  Bruno Haible  <bruno@clisp.org>
51214
51215         * gnulib-tool (echo): Ensure the echo primitive does not interpret
51216         backslashes.
51217         * tests/test-echo.sh: New file.
51218
51219 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51220
51221         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
51222         simplify `sed_replace_build_aux' scripts, they are portable but
51223         echoing them with `echo' is not.
51224         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
51225
51226 2007-06-21  Karl Berry  <karl@gnu.org>
51227
51228         * config/srclist.txt: guess we can't handle the licenses via
51229         srclist at the moment.
51230
51231 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51232
51233         * MODULES.html.sh: Add include_next.
51234         * modules/include_next: New file.
51235
51236 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51237
51238         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
51239         INCLUDE_NEXT.
51240         (gl_CHECK_NEXT_HEADERS): New macro.
51241         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51242         the obsolescent gl_ABSOLUTE_HEADER.
51243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51244         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51245         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51246         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51247         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51248         * m4/math_h.m4 (gl_MATH_H): Likewise.
51249         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51250         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51251         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51252         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51253         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51254         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51255         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51256         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51257         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51258         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51259         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51260         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51261         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51262         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51263         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51264         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51265         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51266         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51267         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51268         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51269         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51270         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51271         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51272         * lib/float_.h: Likewise.
51273         * lib/inttypes_.h: Likewise.
51274         * lib/math_.h: Likewise.
51275         * lib/search_.h: Likewise.
51276         * lib/signal_.h: Likewise.
51277         * lib/stdint_.h: Likewise.
51278         * lib/stdio_.h: Likewise.
51279         * lib/stdlib_.h: Likewise.
51280         * lib/string_.h: Likewise.
51281         * lib/sys_stat_.h: Likewise.
51282         * lib/sys_time_.h: Likewise.
51283         * lib/time_.h: Likewise.
51284         * lib/unistd_.h: Likewise.
51285         * lib/wchar_.h: Likewise.
51286         * lib/wctype_.h: Likewise.
51287         * lib/dirent_.h: Likewise.
51288         * lib/iconv_.h: Likewise.
51289         * lib/locale_.h: Likewise.
51290         * lib/netinet_in_.h: Likewise.
51291         * lib/sys_select_.h: Likewise.
51292         * lib/sys_socket_.h: Likewise.
51293         * lib/sysexits_.h: Likewise.
51294         * modules/fcntl (Depends-on): Depend on include_next, not
51295         absolute_header.
51296         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51297         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51298         * modules/fchdir: Likewise.
51299         * modules/float: Likewise.
51300         * modules/iconv_open: Likewise.
51301         * modules/inttypes: Likewise.
51302         * modules/locale: Likewise.
51303         * modules/math: Likewise.
51304         * modules/netinet_in: Likewise.
51305         * modules/search: Likewise.
51306         * modules/signal: Likewise.
51307         * modules/stdint: Likewise.
51308         * modules/stdio: Likewise.
51309         * modules/stdlib: Likewise.
51310         * modules/string: Likewise.
51311         * modules/sys_select: Likewise.
51312         * modules/sys_socket: Likewise.
51313         * modules/sys_stat: Likewise.
51314         * modules/sys_time: Likewise.
51315         * modules/sysexits: Likewise.
51316         * modules/time: Likewise.
51317         * modules/unistd: Likewise.
51318         * modules/wchar: Likewise.
51319         * modules/wctype: Likewise.
51320         * modules/sys_stat: Change maintainer to "all".
51321         * modules/unistd: Likewise.
51322
51323 2007-06-20  Karl Berry  <karl@gnu.org>
51324
51325         * config/srclist.txt: track www changes in license files.
51326
51327 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51328
51329         * build-aux/bootstrap: Remove stray dot.
51330         Make sure build_aux settings are honored when linking
51331         gnulib_extra_files.
51332
51333 2007-06-19  Eric Blake  <ebb9@byu.net>
51334
51335         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51336         Allow compilation on cygwin.
51337
51338 2007-06-19  Jim Meyering  <jim@meyering.net>
51339
51340         xreadlink-with-size: Remove module.  No longer used.
51341         Ex-callers now use xreadlink or mreadlink-with-size.
51342         * modules/xreadlink-with-size: Remove module.
51343         * lib/xreadlink-with-size.c: Remove file.
51344         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51345         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51346         just before the function definition *is* accurate.
51347
51348         Eliminate one way canonicalize_filename_mode could exit.
51349         * lib/canonicalize.c (canonicalize_filename_mode):
51350         Use mreadlink_with_size, not xreadlink_with_size.
51351
51352 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51353
51354         Detect porting problems to FreeBSD/arm, which has time_t wider than
51355         long int.  Original problem reported for GNU diff by Xin Li in
51356         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51357         * modules/getdate (Depends-on): Add intprops, verify.
51358         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51359         is an integer type no wider than long int.
51360
51361 2007-06-18  Jim Meyering  <jim@meyering.net>
51362
51363         New module: mreadlink-with-size.
51364         * MODULES.html.sh: Add mreadlink-with-size.
51365         * modules/mreadlink-with-size: New module
51366         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51367         not xreadlink-with-size.
51368         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51369
51370 2007-06-16  Bruno Haible  <bruno@clisp.org>
51371
51372         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51373         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51374         Reported by Gary V. Vaughan <gary@gnu.org>.
51375
51376 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51377
51378         Revamp lchown so that it lives in unistd.h where it belongs.
51379         * lib/lchown.h: Remove.
51380         * lib/dirchownmod.c: Don't include lib/lchown.h.
51381         * lib/fchownat.c: Likewise.
51382         * lib/openat.c: Likewise.
51383         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51384         does not follow symlinks.
51385         (EOPNOTSUPP): Define if not defined.
51386         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51387         is defined to 0.
51388         (lchown): New decl.
51389         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51390         Do not check for lchown decl.
51391         Set REPLACE_LCHOWN.
51392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51393         REPLACE_LCHOWN.
51394         * modules/chown: Make it clear it follows symlinks.
51395         * modules/lchown: Make it clear it doesn't follow symlinks.
51396         (Files): Remove lib/lchown.h
51397         (Depends-on): Add unistd.
51398         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51399         (Include): Include <unistd.h>, not "lchown.h".
51400         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51401         REPLACE_LCHOWN.
51402
51403 2007-06-15  Jim Meyering  <jim@meyering.net>
51404
51405         Change license (GPL to LGPL) of fsusage and dependents.
51406         * modules/fsusage (License): Change to LGPL.
51407         * modules/full-read (License): Likewise.
51408         * modules/full-write (License): Likewise.
51409         * modules/safe-read (License): Likewise.
51410         * modules/safe-write (License): Likewise.
51411
51412 2007-06-14  Ben Pfaff  <blp@gnu.org>
51413
51414         Missing part of allocsa -> malloca transition.
51415         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51416         gl_MALLOCA.
51417
51418 2007-06-12  Bruno Haible  <bruno@clisp.org>
51419
51420         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51421         to ia64, x86_64, i386.
51422         Reported by Eric Blake.
51423
51424 2007-06-12  Bruno Haible  <bruno@clisp.org>
51425
51426         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51427         cross-compiling to x86_64.
51428
51429 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51430
51431         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51432         glitch reported by Ralf Wildenhues in
51433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51434
51435         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51436         Vin Shelton.
51437
51438 2007-06-11  Bruno Haible  <bruno@clisp.org>
51439
51440         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51441         replacement string.
51442         Reported by Eric Blake.
51443
51444 2007-06-10  Bruno Haible  <bruno@clisp.org>
51445
51446         Prepare vasnprintf code for use with Unicode strings.
51447         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51448         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51449         TYPE_U32_STRING.
51450         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51451         a_u32_string variants.
51452         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51453         * lib/printf-args.c: Don't include config.h and the specification
51454         header if PRINTF_FETCHARGS is already defined.
51455         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51456         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51457         TYPE_U16_STRING, TYPE_U32_STRING.
51458         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51459         u16_directive, u16_directives, u32_directive, u32_directives): New
51460         types.
51461         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51462         New declarations.
51463         * lib/printf-parse.c: Don't include config.h and the specification
51464         header if PRINTF_PARSE is already defined. Eliminate the set of
51465         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51466         them now. Include c-ctype.h.
51467         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51468         directive and CHAR_T_ONLY_ASCII.
51469         * lib/vasnprintf.c: Don't include config.h and the specification header
51470         if VASNPRINTF is already defined.
51471         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51472         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51473         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51474         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51475         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51476         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51477         code accordingly.
51478         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51479         pad_ourselves also in this case, with the 'c' and 's' directives, and
51480         with a different notion of "width".
51481         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51482
51483 2007-06-10  Bruno Haible  <bruno@clisp.org>
51484
51485         * modules/unistr/u32-mbsnlen: New file.
51486         * lib/unistr/u32-mbsnlen.c: New file.
51487
51488         * modules/unistr/u16-mbsnlen: New file.
51489         * lib/unistr/u16-mbsnlen.c: New file.
51490
51491         * modules/unistr/u8-mbsnlen: New file.
51492         * lib/unistr/u8-mbsnlen.c: New file.
51493
51494         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51495         declarations.
51496
51497 2007-06-10  Bruno Haible  <bruno@clisp.org>
51498
51499         * lib/string_.h (mbsnlen): New declaration.
51500         * lib/mbsnlen.c: New file.
51501         * m4/mbsnlen.m4: New file.
51502         * modules/mbsnlen: New file.
51503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51504         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51505         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51506
51507 2007-06-10  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51510
51511 2007-06-10  Bruno Haible  <bruno@clisp.org>
51512
51513         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51514         * lib/mbuiter.h: Likewise.
51515
51516 2007-06-10  Bruno Haible  <bruno@clisp.org>
51517
51518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51519         declaration.
51520
51521 2007-06-10  Karl Berry  <karl@gnu.org>
51522
51523         * config/srclist.txt: remove gettext entries, Bruno prefers
51524         to update individually.
51525
51526 2007-06-10  Bruno Haible  <bruno@clisp.org>
51527
51528         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51529         'maxlen'. Ensure only length + width bytes are allocated, not
51530         length + 1 + width.
51531
51532 2007-06-09  Bruno Haible  <bruno@clisp.org>
51533
51534         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51535         (CHAR_T): Remove macro.
51536         (VASNPRINTF): Update.
51537
51538 2007-06-09  Bruno Haible  <bruno@clisp.org>
51539
51540         * MODULES.html.sh (Unicode string functions): Add the new modules.
51541
51542         * modules/uniconv/u32-conv-to-enc: New file.
51543         * lib/uniconv/u32-conv-to-enc.c: New file.
51544         * modules/uniconv/u32-conv-to-enc-tests: New file.
51545         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51546
51547         * modules/uniconv/u16-conv-to-enc: New file.
51548         * lib/uniconv/u16-conv-to-enc.c: New file.
51549         * lib/uniconv/u-conv-to-enc.h: New file.
51550         * modules/uniconv/u16-conv-to-enc-tests: New file.
51551         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51552
51553         * modules/uniconv/u8-conv-to-enc: New file.
51554         * lib/uniconv/u8-conv-to-enc.c: New file.
51555         * modules/uniconv/u8-conv-to-enc-tests: New file.
51556         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51557
51558         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51559         u32_conv_to_encoding): New declarations.
51560
51561 2007-06-09  Bruno Haible  <bruno@clisp.org>
51562
51563         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51564
51565 2007-06-09  Bruno Haible  <bruno@clisp.org>
51566
51567         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51568         * modules/malloca: Renamed from modules/allocsa, updated.
51569         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51570         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51571         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51572         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51573         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51574         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51575         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51576         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51577         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51578         * modules/c-strcasestr (Depends-on): Update.
51579         * lib/c-strcasestr.c: Update.
51580         * modules/c-strstr (Depends-on): Update.
51581         * lib/c-strstr.c: Update.
51582         * modules/canonicalize-lgpl (Depends-on): Update.
51583         * lib/canonicalize-lgpl.c: Update.
51584         * modules/clean-temp (Depends-on): Update.
51585         * lib/clean-temp.c: Update.
51586         * modules/csharpcomp (Depends-on): Update.
51587         * lib/csharpcomp.c: Update.
51588         * modules/csharpexec (Depends-on): Update.
51589         * lib/csharpexec.c: Update.
51590         * modules/javacomp (Depends-on): Update.
51591         * lib/javacomp.c: Update.
51592         * modules/javaexec (Depends-on): Update.
51593         * lib/javaexec.c: Update.
51594         * modules/mbscasestr (Depends-on): Update.
51595         * lib/mbscasestr.c: Update.
51596         * modules/mbsstr (Depends-on): Update.
51597         * lib/mbsstr.c: Update.
51598         * modules/setenv (Depends-on): Update.
51599         * lib/setenv.c: Update.
51600         * modules/strcasestr (Depends-on): Update.
51601         * lib/strcasestr.c: Update.
51602         * modules/striconveha (Depends-on): Update.
51603         * lib/striconveha.c: Update.
51604         * modules/relocatable-prog-wrapper (Files): Update.
51605         * lib/relocwrapper.c: Update.
51606         * build-aux/install-reloc: Update.
51607         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51608
51609 2007-06-08  Bruno Haible  <bruno@clisp.org>
51610
51611         Port to uClibc.
51612         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51613         * lib/fpurge.c (fpurge): Likewise.
51614         * lib/freading.c (freading): Likewise.
51615         * lib/fseeko.c (rpl_fseeko): Likewise.
51616         * lib/fseterr.c (fseterr): Likewise.
51617         * lib/fwriting.c (fwriting): Likewise.
51618         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51619
51620 2007-06-08  Bruno Haible  <bruno@clisp.org>
51621
51622         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51623         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51624         * modules/gettext (Files): Add m4/intlmacosx.m4.
51625
51626 2007-06-07  Bruno Haible  <bruno@clisp.org>
51627
51628         * modules/localename-tests: New file.
51629         * tests/test-localename.c: New file.
51630
51631         New module 'localename'.
51632         * lib/localename.h: New file.
51633         * lib/localename.c: New file, from GNU gettext.
51634         * m4/localename.m4: New file.
51635         * modules/localename: New file.
51636
51637 2007-06-07  Bruno Haible  <bruno@clisp.org>
51638
51639         Work around the lack of <wchar.h> on some builds of uClibc.
51640         * doc/headers/wchar.texi: Update.
51641         * lib/wchar_.h: Include <wchar.h> only if it exists.
51642         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51643         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51644         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51645         doesn't exist.
51646         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51647         * modules/mbfile (Depends-on): Add wchar.
51648         * modules/mbiter (Depends-on): Likewise.
51649         * modules/mbuiter (Depends-on): Likewise.
51650         Reported by Simon Josefsson.
51651
51652 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51653
51654         Work around problem reported by Steven M. Schweda in
51655         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51656         Tru64 5.1B with the Compaq compiler environment installed declares
51657         an 'isblank' function but does not define it in the C library.
51658         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51659         * lib/regex_internal.h (isblank): Likewise.
51660         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51661         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51662
51663 2007-06-05  Bruno Haible  <bruno@clisp.org>
51664
51665         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51666         ia64.
51667         * modules/printf-safe: New file.
51668         * modules/fprintf-posix (Depends-on): Add printf-safe.
51669         * modules/printf-posix (Depends-on): Likewise.
51670         * modules/snprintf-posix (Depends-on): Likewise.
51671         * modules/sprintf-posix (Depends-on): Likewise.
51672         * modules/vasnprintf-posix (Depends-on): Likewise.
51673         * modules/vasprintf-posix (Depends-on): Likewise.
51674         * modules/vfprintf-posix (Depends-on): Likewise.
51675         * modules/vprintf-posix (Depends-on): Likewise.
51676         * modules/vsnprintf-posix (Depends-on): Likewise.
51677         * modules/vsprintf-posix (Depends-on): Likewise.
51678         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51679         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51680         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51681         "no" on i386, x86_64, ia64.
51682         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51683         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51684         on i386, x86_64, ia64.
51685         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51686         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51687         on i386, x86_64, ia64.
51688         * tests/test-vasnprintf-posix.c: Include float.h.
51689         (LDBL80_WORDS): New macro.
51690         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51691         on i386, x86_64, ia64.
51692         * tests/test-vasprintf-posix.c: Include float.h.
51693         (LDBL80_WORDS): New macro.
51694         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51695         on i386, x86_64, ia64.
51696         * tests/test-snprintf-posix.c: Include float.h.
51697         * tests/test-sprintf-posix.c: Likewise.
51698         * tests/test-vsnprintf-posix.c: Likewise.
51699         * tests/test-vsprintf-posix.c: Likewise.
51700
51701 2007-06-05  Bruno Haible  <bruno@clisp.org>
51702
51703         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51704         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51705         non-IEEE numbers on i386, x86_64, ia64.
51706         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51707         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51708         * tests/test-isnanl.h: Include float.h.
51709         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51710
51711 2007-06-05  Bruno Haible  <bruno@clisp.org>
51712
51713         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51714         also the %a / %A. Handle the %a / %A code before this extra handling.
51715
51716 2007-06-05  Bruno Haible  <bruno@clisp.org>
51717
51718         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51719         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51720
51721 2007-06-05  Bruno Haible  <bruno@clisp.org>
51722
51723         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51724         typo in variable name.
51725
51726 2007-06-05  Eric Blake  <ebb9@byu.net>
51727
51728         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51729         Reported by Simon Josefsson.
51730
51731 2007-06-04  Bruno Haible  <bruno@clisp.org>
51732
51733         Avoid test failures on some PowerPC platforms.
51734         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51735         Define differently for PowerPC.
51736         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51737         Reported by Gary V. Vaughan <gary@gnu.org>.
51738
51739 2007-06-02  Bruno Haible  <bruno@clisp.org>
51740
51741         Fix test-stdint failure on FreeBSD/ia64.
51742         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51743         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51744         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51745         * doc/headers/stdint.texi: Update.
51746
51747 2007-06-01  Bruno Haible  <bruno@clisp.org>
51748
51749         * tests/test-binary-io.c (main): Pass a third argument to open().
51750         Reported by Gary V. Vaughan <gary@gnu.org>.
51751
51752 2007-06-01  Bruno Haible  <bruno@clisp.org>
51753
51754         * doc/functions/frexpl.texi: Update for mingw.
51755
51756 2007-06-01  Bruno Haible  <bruno@clisp.org>
51757
51758         * tests/test-lseek.c (main): Disable test of errno for invalid third
51759         argument.
51760         * doc/functions/lseek.texi: Update.
51761         Reported by Gary V. Vaughan <gary@gnu.org>.
51762
51763 2007-05-28  Bruno Haible  <bruno@clisp.org>
51764
51765         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51766
51767 2007-05-31  Eric Blake  <ebb9@byu.net>
51768
51769         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51770         cross compiling.
51771
51772 2007-05-30  Eric Blake  <ebb9@byu.net>
51773         and Bruno Haible  <bruno@clisp.org>
51774
51775         Work around mingw test failures exposed by m4-1.4.9b.
51776         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51777         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51778         moment.
51779
51780 2007-05-30  Bruno Haible  <bruno@clisp.org>
51781
51782         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51783         assuming that they are closed. Needed on HP-UX 11.
51784
51785 2007-05-29  Bruno Haible  <bruno@clisp.org>
51786
51787         Fix a problem with #include_next.
51788         * lib/dirent_.h: Split the double-inclusion guard.
51789         * lib/fcntl_.h: Likewise.
51790         * lib/float_.h: Likewise.
51791         * lib/iconv_.h: Likewise.
51792         * lib/inttypes_.h: Likewise.
51793         * lib/locale_.h: Likewise.
51794         * lib/math_.h: Likewise.
51795         * lib/netinet_in_.h: Likewise.
51796         * lib/search_.h: Likewise.
51797         * lib/signal_.h: Likewise.
51798         * lib/stdint_.h: Likewise.
51799         * lib/stdio_.h: Likewise.
51800         * lib/stdlib_.h: Likewise.
51801         * lib/string_.h: Likewise.
51802         * lib/sys_select_.h: Likewise.
51803         * lib/sys_socket_.h: Likewise.
51804         * lib/sys_stat_.h: Likewise.
51805         * lib/sys_time_.h: Likewise.
51806         * lib/sysexits_.h: Likewise.
51807         * lib/time_.h: Likewise.
51808         * lib/unistd_.h: Likewise.
51809         * lib/wchar_.h: Likewise.
51810         * lib/wctype_.h: Likewise.
51811
51812 2007-05-29  Bruno Haible  <bruno@clisp.org>
51813
51814         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51815         for the moment.
51816
51817 2007-05-29  Bruno Haible  <bruno@clisp.org>
51818
51819         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51820         invocation.
51821         Reported by Eric Blake.
51822
51823 2007-05-29  Bruno Haible  <bruno@clisp.org>
51824
51825         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51826         compiling case.
51827
51828 2007-05-29  Eric Blake  <ebb9@byu.net>
51829             Bruno Haible  <bruno@clisp.org>
51830
51831         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51832         cross compiles.
51833
51834 2007-05-28  Eric Blake  <ebb9@byu.net>
51835
51836         * modules/closein-tests (test_closein_LDADD): Support test on
51837         cygwin with libtool.
51838
51839 2007-05-28  Bruno Haible  <bruno@clisp.org>
51840
51841         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51842         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51843         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51844         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51845         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51846         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51847         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51848         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51849         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51850
51851 2007-05-28  Eric Blake  <ebb9@byu.net>
51852
51853         Unconditionally include <config.h> in unit tests.
51854         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51855         * tests/test-allocsa.c, tests/test-arcfour.c,
51856         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51857         tests/test-array_list.c, tests/test-array_oset.c,
51858         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51859         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51860         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51861         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51862         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51863         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51864         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51865         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51866         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51867         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51868         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51869         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51870         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51871         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51872         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51873         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51874         test-md5.c, test-memmem.c, test-printf-posix.c,
51875         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51876         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51877         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51878         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51879         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51880         test-vasnprintf-posix2.c, test-vasnprintf.c,
51881         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51882         test-vfprintf-posix.c, test-vprintf-posix.c,
51883         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51884         test-xvasprintf.c: Likewise.
51885
51886 2007-05-28  Bruno Haible  <bruno@clisp.org>
51887
51888         * gnulib-tool (func_import): Remember the --with-tests command-line
51889         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51890         Reported by Eric Blake.
51891
51892 2007-05-28  Bruno Haible  <bruno@clisp.org>
51893
51894         * modules/ftell-tests: New file.
51895         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51896         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51897
51898         * lib/ftell.c: New file.
51899         * modules/ftell: New file.
51900         * m4/ftell.m4: New file.
51901         * doc/functions/ftell.texi: Update.
51902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51903         REPLACE_FTELL.
51904         * lib/stdio_.h (rpl_ftell): New declaration.
51905         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51906         REPLACE_FTELL.
51907
51908 2007-05-28  Eric Blake  <ebb9@byu.net>
51909
51910         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51911
51912 2007-05-28  Bruno Haible  <bruno@clisp.org>
51913
51914         * modules/fseek-tests: New file.
51915         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51916         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51917
51918         * lib/fseek.c: New file.
51919         * modules/fseek: New file.
51920         * m4/fseek.m4: New file.
51921         * doc/functions/fseek.texi: Update.
51922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51923         REPLACE_FSEEK.
51924         * lib/stdio_.h (rpl_fseek): New declaration.
51925         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51926         REPLACE_FSEEK.
51927
51928 2007-05-28  Bruno Haible  <bruno@clisp.org>
51929
51930         * lib/stdio_.h (fflush): More comments.
51931
51932 2007-05-28  Bruno Haible  <bruno@clisp.org>
51933
51934         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51935         runtime test.
51936
51937 2007-05-28  Eric Blake  <ebb9@byu.net>
51938
51939         Improve lseek module.
51940         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51941         * lib/unistd_.h (lseek): Scale back link warning message.
51942         * tests/test-lseek.c: Beef up test.
51943         * tests/test-lseek.sh: Exercise more facets of lseek.
51944         Reported by Bruno Haible.
51945
51946 2007-05-28  Bruno Haible  <bruno@clisp.org>
51947
51948         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51949         to define.
51950
51951 2007-05-27  Bruno Haible  <bruno@clisp.org>
51952
51953         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51954
51955 2007-05-27  Bruno Haible  <bruno@clisp.org>
51956
51957         * modules/openmp: New file.
51958         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51959         Noah Misch.
51960
51961 2007-05-26  Bruno Haible  <bruno@clisp.org>
51962
51963         * modules/chdir-long (Depends-on): Add fchdir.
51964         * modules/chdir-safer (Depends-on): Likewise.
51965         * modules/fts (Depends-on): Likewise.
51966         * modules/fts-lgpl (Depends-on): Likewise.
51967         * modules/openat (Depends-on): Likewise.
51968         * modules/savewd (Depends-on): Likewise.
51969
51970 2007-05-24  Eric Blake  <ebb9@byu.net>
51971
51972         Fix lseek on mingw.
51973         * modules/lseek: New module.
51974         * m4/lseek.m4: New file.
51975         * lib/lseek.c: New file.
51976         * modules/lseek-tests: New file.
51977         * tests/test-lseek.c: New file.
51978         * tests/test-lseek.sh: New file.
51979         * MODULES.html.sh: Document lseek module.
51980         * modules/fflush (Depends-on): Add lseek, fseeko.
51981         * modules/fseeko (Depends-on): Likewise.
51982         * modules/ftello (Depends-on): Likewise.
51983         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51984         broken.
51985         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51986         broken.
51987         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51988         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51989         * lib/ftello.c (rpl_ftello): Likewise.
51990         * tests/test-fseeko.c (main): Test this.
51991         * tests/test-fseeko.sh: Likewise.
51992         * tests/test-ftello.c (main): Likewise.
51993         * tests/test-ftello.sh: Likewise.
51994         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51995         implies replacing fseek.
51996         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51997         HAVE_FTELLO.
51998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51999         * modules/unistd (Makefile.am): Likewise.
52000         * lib/unistd_.h (lseek): Declare a replacement.
52001         * doc/functions/lseek.texi (lseek): Document this fix.
52002         * doc/functions/fseek.texi (fseek): Likewise.
52003         * doc/functions/ftell.texi (ftell): Likewise.
52004
52005 2007-05-24  Bruno Haible  <bruno@clisp.org>
52006
52007         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
52008         in the printed representation of a NaN.
52009         * tests/test-vasprintf-posix.c (test_function): Likewise.
52010         * tests/test-snprintf-posix.h (test_function): Likewise.
52011         * tests/test-sprintf-posix.h (test_function): Likewise.
52012         Reported by Eric Blake.
52013
52014 2007-05-23  Eric Blake  <ebb9@byu.net>
52015
52016         Fix fseeko/ftello on cygwin 1.5.24.
52017         * doc/functions/fseeko.texi (fseeko): Document the fix.
52018         * doc/functions/ftello.texi (ftello): Document the fix.
52019         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
52020         * doc/functions/stdout.text (stdout): New file.
52021         * doc/functions/stderr.text (stderr): New file.
52022         * doc/gnulib.texi (Function Substitutes): Use new files.
52023         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
52024         prior to 1.7.0.
52025         * tests/test-ftello.c (main): Likewise for ftello.
52026         * tests/test-fseeko.sh: New file.
52027         * tests/test-ftello.sh: New file.
52028         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
52029         with seekable stdin.
52030         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
52031         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
52032         (gl_REPLACE_FSEEKO): New macro.
52033         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
52034         * modules/fseeko (Files): Distribute fseeko.c.
52035         * modules/ftello (Files): Distribute ftello.c.
52036         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
52037         mode.
52038         * lib/ftello.c (rpl_ftello): New file.
52039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
52040         fseeko, ftello.
52041         (gl_STDIN_LARGE_OFFSET): New macro.
52042         * modules/stdio (Makefile.am): Perform the replacement.
52043         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
52044
52045 2007-05-23  Bruno Haible  <bruno@clisp.org>
52046
52047         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
52048         GNULIB_POSIXCHECK is defined.
52049
52050 2007-05-21  Bruno Haible  <bruno@clisp.org>
52051
52052         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
52053         Check also the output for NaN arguments. When cross-compiling, guess
52054         no on IRIX.
52055         * lib/vasnprintf.c: Update comments.
52056         * tests/test-vasnprintf-posix.c (strisnan): New function.
52057         (test_function): Use it.
52058         * tests/test-vasprintf-posix.c (strisnan): New function.
52059         (test_function): Use it.
52060         * tests/test-snprintf-posix.h (strisnan): New function.
52061         (test_function): Use it.
52062         * tests/test-sprintf-posix.h (strisnan): New function.
52063         (test_function): Use it.
52064         Reported by Eric Blake.
52065
52066 2007-05-20  Bruno Haible  <bruno@clisp.org>
52067
52068         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
52069         numbers that fails on BeOS.
52070         * doc/functions/frexpl.texi: Update.
52071
52072 2007-05-20  Jim Meyering  <jim@meyering.net>
52073
52074         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
52075         forced upon us by glibc-2.6.
52076
52077 2007-05-20  Bruno Haible  <bruno@clisp.org>
52078
52079         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
52080         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
52081         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
52082         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
52083         NEED_PRINTF_INFINITE.
52084         (is_infinitel): New function.
52085         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
52086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
52087         gl_PREREQ_VASNPRINTF_INFINITE.
52088         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
52089         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52090         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
52091         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
52092         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
52093         gl_PREREQ_VASNPRINTF_INFINITE.
52094         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52095         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52096         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52097         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52098         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52101         * doc/functions/fprintf.texi: Update.
52102         * doc/functions/printf.texi: Update.
52103         * doc/functions/snprintf.texi: Update.
52104         * doc/functions/sprintf.texi: Update.
52105         * doc/functions/vfprintf.texi: Update.
52106         * doc/functions/vprintf.texi: Update.
52107         * doc/functions/vsnprintf.texi: Update.
52108         * doc/functions/vsprintf.texi: Update.
52109
52110 2007-05-20  Bruno Haible  <bruno@clisp.org>
52111
52112         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
52113         was not found in libc.
52114         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
52115
52116 2007-05-20  Bruno Haible  <bruno@clisp.org>
52117
52118         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52119         printed as "-nan" instead of "nan".
52120         * tests/test-vasprintf-posix.c (test_function): Likewise.
52121         * tests/test-snprintf-posix.h (test_function): Likewise.
52122         * tests/test-sprintf-posix.h (test_function): Likewise.
52123         Needed for HP-UX 11.
52124
52125 2007-05-20  Jim Meyering  <jim@meyering.net>
52126
52127         Fix buggy test for the fchownat-deref bug.
52128         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
52129         symlink required for the run-test.  Without it, this test would
52130         always declare that fchownat doesn't work, and client code would
52131         unnecessarily use the replacement function with fixed libc.
52132         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
52133         Reported by Greg Schafer.
52134
52135 2007-05-19  Bruno Haible  <bruno@clisp.org>
52136
52137         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
52138         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
52139         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
52140         Needed for IRIX 6.5 and Solaris 2.5.1.
52141
52142 2007-05-19  Bruno Haible  <bruno@clisp.org>
52143
52144         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
52145         (test_function): Skip tests involving -0.0 on platforms where
52146         -0.0 = 0.0.
52147         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
52148         (test_function): Skip tests involving -0.0 on platforms where
52149         -0.0 = 0.0.
52150         * tests/test-snprintf-posix.h (have_minus_zero): New function.
52151         (test_function): Skip tests involving -0.0 on platforms where
52152         -0.0 = 0.0.
52153         * tests/test-sprintf-posix.h (have_minus_zero): New function.
52154         (test_function): Skip tests involving -0.0 on platforms where
52155         -0.0 = 0.0.
52156         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
52157         tests.
52158         * tests/test-printf-posix.h (test_function): Likewise.
52159         * tests/test-printf-posix.output: Remove all -0.0 related results.
52160         Needed for IRIX 6.5.
52161
52162 2007-05-19  Bruno Haible  <bruno@clisp.org>
52163
52164         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52165         printed as "nan0x7fffffff" instead of "nan".
52166         * tests/test-vasprintf-posix.c (test_function): Likewise.
52167         * tests/test-snprintf-posix.h (test_function): Likewise.
52168         * tests/test-sprintf-posix.h (test_function): Likewise.
52169         * tests/test-fprintf-posix.h (NaN): Remove macro.
52170         (test_function): Remove all NaN related tests.
52171         * tests/test-printf-posix.h (NaN): Remove macro.
52172         (test_function): Remove all NaN related tests.
52173         * tests/test-printf-posix.output: Remove all NaN related results.
52174         Needed for IRIX 6.5.
52175
52176 2007-05-19  Bruno Haible  <bruno@clisp.org>
52177
52178         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
52179         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
52180
52181 2007-05-19  Bruno Haible  <bruno@clisp.org>
52182
52183         * lib/float_.h: New file.
52184         * m4/float_h.m4: New file.
52185         * modules/float: New file.
52186         * modules/isnanl (Dependencies): Add float.
52187         * modules/isnanl-nolibm (Dependencies): Likewise.
52188         * modules/mathl (Dependencies): Likewise.
52189         * modules/printf-frexpl (Dependencies): Likewise.
52190         * modules/signbit (Dependencies): Likewise.
52191         * modules/vasnprintf (Dependencies): Likewise.
52192         * doc/headers/float.texi: Update.
52193
52194 2007-05-19  Jim Meyering  <jim@meyering.net>
52195
52196         * lib/utimens.c (gl_futimens): Rename from futimens,
52197         now that glibc-2.6 declares futimens.
52198         * lib/utimens.h: Likewise.
52199
52200 2007-05-19  Bruno Haible  <bruno@clisp.org>
52201
52202         Avoid test failures on mingw.
52203         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
52204         * tests/test-printf-posix.sh: Likewise.
52205         * tests/test-vfprintf-posix.sh: Likewise.
52206         * tests/test-vprintf-posix.sh: Likewise.
52207
52208 2007-05-19  Bruno Haible  <bruno@clisp.org>
52209
52210         Fix *printf result for NaN, Inf, -0.0 on mingw.
52211         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
52212         * lib/vasnprintf.c: Include math.h and isnan.h.
52213         (is_infinite_or_zero): New function.
52214         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
52215         values in the %f, %F, %e, %E, %g, %G directives.
52216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
52217         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52218         gl_PRINTF_INFINITE and test its result. Invoke
52219         gl_PREREQ_VASNPRINTF_INFINITE.
52220         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52221         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52222         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52223         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52224         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52226         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52227         * doc/functions/fprintf.texi: Update.
52228         * doc/functions/printf.texi: Update.
52229         * doc/functions/snprintf.texi: Update.
52230         * doc/functions/sprintf.texi: Update.
52231         * doc/functions/vfprintf.texi: Update.
52232         * doc/functions/vprintf.texi: Update.
52233         * doc/functions/vsnprintf.texi: Update.
52234         * doc/functions/vsprintf.texi: Update.
52235
52236 2007-05-19  Bruno Haible  <bruno@clisp.org>
52237
52238         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
52239         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
52240         Instead of multiplying with 10^k, set extra_zeroes to k.
52241         (scale10_round_long_double): Remove function.
52242
52243 2007-05-18  Bruno Haible  <bruno@clisp.org>
52244
52245         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52246         introduced on 2007-05-06.
52247
52248 2007-05-18  Bruno Haible  <bruno@clisp.org>
52249
52250         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52251         %g directives.
52252         * tests/test-vasprintf-posix.c (test_function): Likewise.
52253         * tests/test-snprintf-posix.h (test_function): Likewise.
52254         * tests/test-sprintf-posix.h (test_function): Likewise.
52255
52256 2007-05-18  Bruno Haible  <bruno@clisp.org>
52257
52258         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52259         (strmatch): New function.
52260         (test_function): Test the %f directive on numbers of various exponents.
52261         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52262         (strmatch): New function.
52263         (test_function): Test the %f directive on numbers of various exponents.
52264         * tests/test-snprintf-posix.h (strmatch): New function.
52265         (test_function): Test the %f directive on numbers of various exponents.
52266         * tests/test-sprintf-posix.h (strmatch): New function.
52267         (test_function): Test the %f directive on numbers of various exponents.
52268         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52269         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52270         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52271         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52272
52273 2007-05-18  Bruno Haible  <bruno@clisp.org>
52274
52275         Add support for 'long double' number output.
52276         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52277         * lib/vasnprintf.c: Include math.h and float+.h.
52278         (mp_limb_t): New type.
52279         (GMP_LIMB_BITS): New macro.
52280         (mp_twolimb_t): New type.
52281         (GMP_TWOLIMB_BITS): New macro.
52282         (mpn_t): New type.
52283         (multiply, divide, convert_to_decimal, decode_long_double,
52284         scale10_round_long_double, scale10_round_decimal_long_double,
52285         floorlog10l): New functions.
52286         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52287         for the %f, %F, %e, %E, %g, %G directives.
52288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52289         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52290         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52291         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52292         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52293         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52294         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52295         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52296         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52297         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52298         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52299         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52300         * modules/snprintf-posix (Depends-on): Likewise.
52301         * modules/sprintf-posix (Depends-on): Likewise.
52302         * modules/vasnprintf-posix (Depends-on): Likewise.
52303         * modules/vasprintf-posix (Depends-on): Likewise.
52304         * modules/vfprintf-posix (Depends-on): Likewise.
52305         * modules/vsnprintf-posix (Depends-on): Likewise.
52306         * modules/vsprintf-posix (Depends-on): Likewise.
52307         * modules/vasnprintf (Files): Add lib/float+.h.
52308         * doc/functions/fprintf.texi: Update.
52309         * doc/functions/printf.texi: Update.
52310         * doc/functions/snprintf.texi: Update.
52311         * doc/functions/sprintf.texi: Update.
52312         * doc/functions/vfprintf.texi: Update.
52313         * doc/functions/vprintf.texi: Update.
52314         * doc/functions/vsnprintf.texi: Update.
52315         * doc/functions/vsprintf.texi: Update.
52316
52317 2007-05-18  Bruno Haible  <bruno@clisp.org>
52318
52319         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52320
52321 2007-05-18  Bruno Haible  <bruno@clisp.org>
52322
52323         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52324         for printing 64-bit integers. Needed for mingw.
52325
52326 2007-05-18  Bruno Haible  <bruno@clisp.org>
52327
52328         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52329         gl_FUNC_FREXPL_WORKS.
52330         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52331
52332 2007-05-18  Bruno Haible  <bruno@clisp.org>
52333
52334         * modules/frexpl-nolibm-tests: New file.
52335
52336         * modules/frexpl-nolibm: New file.
52337         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52338
52339 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52340
52341         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52342         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52343         GCC 4.2, which otherwise issues a lot of warnings.
52344         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52345         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52346         Likewise.
52347         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52348         * modules/iconv_open (iconv.h): Likewise.
52349         * modules/locale (locale.h): Likewise.
52350         * modules/netinet_in (netinet/in.h): Likewise.
52351         * modules/sys_select (sys_select.h): Likewise.
52352         * modules/sys_socket (sys/socket.h): Likewise.
52353         * modules/sys_stat (sys/stat.h): Likewise.
52354         * modules/sysexits (sysexits.h): Likewise.
52355         * modules/unistd (unistd.h): Likewise.
52356
52357 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52358
52359         * modules/closein-tests (Makefile.am): Distribute
52360         `test-closein.sh'.
52361
52362 2007-05-17  Bruno Haible  <bruno@clisp.org>
52363
52364         * tests/test-printf-posix.output: Renamed from
52365         tests/test-fprintf-posix.out.
52366         * modules/fprintf-posix-tests: Update.
52367         * modules/printf-posix-tests: Update.
52368         * modules/vfprintf-posix-tests: Update.
52369         * modules/vprintf-posix-tests: Update.
52370         * tests/test-fprintf-posix.sh: Update.
52371         * tests/test-printf-posix.sh: Update.
52372         * tests/test-vfprintf-posix.sh: Update.
52373         * tests/test-vprintf-posix.sh: Update.
52374         Reported by Ralf Wildenhues.
52375
52376 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52377
52378         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52379         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52380         GCC 4.2, which otherwise issues a lot of warnings.
52381         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52382         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52383         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52384         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52385         it should no longer be needed.
52386         * lib/string_.h: Likewise.
52387         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52388         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52389         * modules/inttypes (inttypes.h): Likewise.
52390         * modules/math (math.h): Likewise.
52391         * modules/search (search.h): Likewise.
52392         * modules/signal (signal.h): Likewise.
52393         * modules/stdint (stdint.h): Likewise.
52394         * modules/stdio (stdio.h): Likewise.
52395         * modules/stdlib (stdlib.h): Likewise.
52396         * modules/string (string.h): Likewise.
52397         * modules/sys_time (sys/time.h): Likewise.
52398         * modules/time (time.h): Likewise.
52399         * modules/wchar (wchar.h): Likewise.
52400         * modules/wctype (wtype.h): Likewise.
52401
52402 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52403
52404         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52405
52406 2007-05-13  Bruno Haible  <bruno@clisp.org>
52407
52408         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52409         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52410         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52411         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52412         (gl_PREREQ_STRTOK_R): Don't require it here.
52413
52414 2007-05-13  Bruno Haible  <bruno@clisp.org>
52415
52416         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52417         when used in C++ mode.
52418
52419 2007-05-12  Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/linebuffer.h: Tweak doc.
52422         * lib/linebuffer.c: Likewise.
52423
52424 2007-05-12  James Youngman  <jay@gnu.org>
52425
52426         * lib/linebuffer.c (readlinebuffer_delim): New function,
52427         like readlinebuffer, but use a caller-specified delimiter.
52428         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52429         as the delimiter.
52430         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52431
52432 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52433
52434         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52435         * modules/openat (Files): Remove openat-die.c.
52436         (Depends-on): Add openat-die.
52437         * modules/openat-die: New module.
52438
52439 2007-05-06  Bruno Haible  <bruno@clisp.org>
52440
52441         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52442         Update with info about Cygwin.
52443         * doc/functions/fprintf.texi: Update.
52444         * doc/functions/printf.texi: Update.
52445         * doc/functions/snprintf.texi: Update.
52446         * doc/functions/sprintf.texi: Update.
52447         * doc/functions/vfprintf.texi: Update.
52448         * doc/functions/vprintf.texi: Update.
52449         * doc/functions/vsnprintf.texi: Update.
52450         * doc/functions/vsprintf.texi: Update.
52451         Reported by Eric Blake.
52452
52453 2007-05-06  Bruno Haible  <bruno@clisp.org>
52454
52455         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52456         padding ourselves for the floating-point directives.
52457         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52459         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52460         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52461         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52462         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52463         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52464         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52465         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52466         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52468         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52469         * tests/test-snprintf-posix.h (test_function): Also check the width
52470         and some flags in the %f directive.
52471         * tests/test-sprintf-posix.h (test_function): Likewise.
52472         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52473         * tests/test-vasprintf-posix.c (test_function): Likewise.
52474         * doc/functions/fprintf.texi: Update.
52475         * doc/functions/printf.texi: Update.
52476         * doc/functions/snprintf.texi: Update.
52477         * doc/functions/sprintf.texi: Update.
52478         * doc/functions/vfprintf.texi: Update.
52479         * doc/functions/vprintf.texi: Update.
52480         * doc/functions/vsnprintf.texi: Update.
52481         * doc/functions/vsprintf.texi: Update.
52482
52483 2007-05-06  Bruno Haible  <bruno@clisp.org>
52484
52485         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52486         pass the ' flag character to sprintf or snprintf.
52487         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52489         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52490         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52491         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52492         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52493         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52494         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52495         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52496         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52497         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52498         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52499         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52500         flag.
52501         * tests/test-sprintf-posix.h (test_function): Likewise.
52502         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52503         * tests/test-vasprintf-posix.c (test_function): Likewise.
52504         * doc/functions/fprintf.texi: Update.
52505         * doc/functions/printf.texi: Update.
52506         * doc/functions/snprintf.texi: Update.
52507         * doc/functions/sprintf.texi: Update.
52508         * doc/functions/vfprintf.texi: Update.
52509         * doc/functions/vprintf.texi: Update.
52510         * doc/functions/vsnprintf.texi: Update.
52511         * doc/functions/vsprintf.texi: Update.
52512
52513 2007-05-01  Bruno Haible  <bruno@clisp.org>
52514
52515         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52516
52517 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52518
52519         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52520         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52521
52522 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52523
52524         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52525         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52526         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52527
52528 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52529
52530         * lib/argp-help.c (struct hol_entry): New member `ord'.
52531         (HOL_ENTRY_PTRCMP): Use ord for comparison
52532         (hol_sort): Initialize ord.
52533
52534 2007-05-01  Bruno Haible  <bruno@clisp.org>
52535
52536         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52537         Reported by Eric Blake.
52538         * doc/gnulib.texi (Function Substitutes): Update.
52539
52540 2007-05-01  Bruno Haible  <bruno@clisp.org>
52541
52542         * doc/functions.texi: Remove file, now redundant through
52543         doc/functions/*.texi.
52544
52545 2007-05-01  Bruno Haible  <bruno@clisp.org>
52546
52547         * modules/argp (Depends-on): Add sleep.
52548
52549 2007-05-01  Bruno Haible  <bruno@clisp.org>
52550
52551         * modules/sleep-tests: New file.
52552         * tests/test-sleep.c: New file.
52553
52554         * modules/sleep: New file.
52555         * lib/sleep.c: New file.
52556         * m4/sleep.m4: New file.
52557         * lib/unistd_.h (sleep): New declaration.
52558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52559         HAVE_SLEEP.
52560         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52561         * doc/functions/sleep.texi: Document the sleep module.
52562
52563 2007-05-01  Bruno Haible  <bruno@clisp.org>
52564
52565         * lib/sigprocmask.h: Remove file.
52566         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52567         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52568         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52569         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52570         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52571         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52572         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52573         HAVE_SIGSET_T as a shell variable.
52574         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52575         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52576         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52577         (Depends-on): Add signal. Remove verify.
52578         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52579         (Include): Mention <signal.h> instead of sigprocmask.h.
52580         * NEWS: Mention the change.
52581         * lib/fatal-signal.c: Don't include sigprocmask.h.
52582
52583 2007-05-01  Bruno Haible  <bruno@clisp.org>
52584
52585         * modules/signal: New file.
52586         * lib/signal_.h: New file.
52587         * m4/signal_h.m4: New file.
52588
52589 2007-05-01  Bruno Haible  <bruno@clisp.org>
52590
52591         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52592         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52593         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52594         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52595
52596 2007-05-01  Bruno Haible  <bruno@clisp.org>
52597
52598         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52599         configure time.
52600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52601         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52602         * modules/sys_stat (Makefile.am): Substitute their values into
52603         sys/stat.h.
52604
52605 2007-05-01  Bruno Haible  <bruno@clisp.org>
52606
52607         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52608         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52609         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52610
52611 2007-05-01  Bruno Haible  <bruno@clisp.org>
52612
52613         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52614         'assert' module here.
52615
52616 2007-05-01  Bruno Haible  <bruno@clisp.org>
52617
52618         * doc/functions/*.texi: New files.
52619         * doc/functions/google-ranking.txt: New file.
52620         * doc/gnulib.texi (Function Substitutes): New chapter.
52621         (ctime, inet_ntoa): Remove sections.
52622         * doc/ctime.texi: Remove file.
52623         * doc/inet_ntoa.texi: Remove file.
52624         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52625         dependencies.
52626         (%.info): New rule, specifying a --reference-limit.
52627
52628 2007-05-01  Bruno Haible  <bruno@clisp.org>
52629
52630         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52631
52632 2007-05-01  Bruno Haible  <bruno@clisp.org>
52633
52634         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52635         the portability of 'mkdir' to mingw systems.
52636
52637 2007-05-01  Bruno Haible  <bruno@clisp.org>
52638
52639         * doc/headers/google-ranking.txt: New file.
52640
52641 2007-04-30  Eric Blake  <ebb9@byu.net>
52642
52643         Prefer fseeko to fseek.
52644         * modules/getpass (Depends-on): Add fseeko.
52645         * lib/getpass.c (getpass): Use fseeko, not fseek.
52646
52647 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52648
52649         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52650         assumes the sorting is stable, while most qsort implementations
52651         are not.  Use argument addresses to ensure they never compare as
52652         equal.
52653
52654         * tests/test-argp-2.sh (usage-indent test): Fix output
52655         (func_compare): Restore diff options
52656         * tests/test-argp.c: Restore #include "progname.h"
52657
52658 2007-04-29  Bruno Haible  <bruno@clisp.org>
52659
52660         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52662         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52663         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52664         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52665         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52666         (TESTS, check_PROGRAMS): Add test-snprintf.
52667         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52668         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52669         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52670         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52671         assertions that fail on HP-UX, OSF/1, or IRIX.
52672         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52673
52674 2007-04-29  Bruno Haible  <bruno@clisp.org>
52675
52676         * MODULES.html.sh (posix_functions): Remove 'contents'.
52677
52678 2007-04-29  Karl Berry  <karl@gnu.org>
52679
52680         * config/srclist.txt (gendocs_template_min): new entry.
52681
52682 2007-04-29  Bruno Haible  <bruno@clisp.org>
52683
52684         Work around fpurge bug on BSD systems.
52685         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52686         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52687         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52688         fpurge to rpl_fpurge if the system already has this function.
52689         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52690         the case where the system already has this function. Correct invariants
52691         on BSD systems.
52692         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52693         BSD systems.
52694
52695 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52696
52697         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52698         proposed by Sven Verdoolaege.
52699
52700         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52701         options.
52702         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52703         (usage and help tests): Update
52704
52705 2007-04-29  Bruno Haible  <bruno@clisp.org>
52706
52707         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52708         Print more information in case of failure. Disable a test on BeOS.
52709
52710 2007-04-29  Bruno Haible  <bruno@clisp.org>
52711
52712         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52713         This helps debugging on systems on which no gdb is available.
52714
52715 2007-04-29  Bruno Haible  <bruno@clisp.org>
52716
52717         * lib/freading.h: Improve comments.
52718         * lib/fwriting.h: Likewise.
52719         * tests/test-freading.c (main): Don't check freading immediately after
52720         repositioning. Needed for glibc.
52721
52722 2007-04-29  Bruno Haible  <bruno@clisp.org>
52723
52724         * lib/freading.c (freading): Trivial simplification.
52725
52726 2007-04-28  Bruno Haible  <bruno@clisp.org>
52727
52728         * tests/test-fwriting.c (main): Also test the interaction between
52729         fflush and fwriting.
52730         * modules/fwriting-tests (Depends-on): Add fflush.
52731
52732         * tests/test-freading.c (main): Also test the interaction between
52733         fflush and freading.
52734         * modules/freading-tests (Depends-on): Add fflush.
52735
52736 2007-04-28  Bruno Haible  <bruno@clisp.org>
52737
52738         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52739         fseeko and ftello.
52740         Suggested by Eric Blake.
52741
52742 2007-04-28  Jim Meyering  <jim@meyering.net>
52743
52744         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52745         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52746         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52747
52748 2007-04-27  Eric Blake  <ebb9@byu.net>
52749
52750         * doc/headers/assert.texi (assert.h): Document assert module use.
52751
52752 2007-04-27  Bruno Haible  <bruno@clisp.org>
52753
52754         * doc/headers/*.texi: New files.
52755         * doc/gnulib.texi (Header File Substitutes): New chapter.
52756         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52757         dependencies.
52758         (standards.info ,standards.html, standards.dvi): Update dependencies.
52759         (mostlyclean, clean): New targets.
52760
52761 2007-04-27  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52764         * modules/sysexits (Files, Makefile.am): Update.
52765
52766         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52767         * modules/sys_socket (Files, Makefile.am): Update.
52768
52769         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52770         * modules/sys_stat (Files, Makefile.am): Update.
52771
52772 2007-04-27  Eric Blake  <ebb9@byu.net>
52773
52774         * lib/freading.h: Improve comments.
52775         * lib/fwriting.h: Likewise.
52776         * lib/fflush.c: Likewise.
52777
52778         Fix closein for mingw.
52779         * modules/closein-tests: Add tests for closein.
52780         * tests/test-closein.c: New file.
52781         * tests/test-closein.sh: Likewise.
52782         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52783         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52784
52785 2007-04-27  Bruno Haible  <bruno@clisp.org>
52786
52787         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52788         version is < 6.
52789         * lib/math_.h [__DECC]: Likewise.
52790         * lib/stdio_.h [__DECC]: Likewise.
52791         * lib/stdlib_.h [__DECC]: Likewise.
52792         * lib/string_.h [__DECC]: Likewise.
52793         * lib/time_.h [__DECC]: Likewise.
52794         * lib/wchar_.h [__DECC]: Likewise.
52795         * lib/wctype_.h [__DECC]: Likewise.
52796
52797 2007-04-27  Bruno Haible  <bruno@clisp.org>
52798
52799         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52800
52801 2007-04-27  Bruno Haible  <bruno@clisp.org>
52802
52803         * lib/fflush.c: Add comments.
52804         * modules/fpurge-tests (Depends-on): Add fflush.
52805         * modules/freadable-tests (Depends-on): Likewise.
52806         * modules/fwritable-tests (Depends-on): Likewise.
52807
52808 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52809
52810         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52811         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52812         Report by Bruno Haible <bruno@clisp.org>.
52813
52814 2007-04-26  Eric Blake  <ebb9@byu.net>
52815
52816         Fix fflush on mingw.
52817         * modules/fflush (Depends-on): Add freading.
52818         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52819         but unread data.
52820
52821 2007-04-26  Eric Blake  <ebb9@byu.net>
52822         and Bruno Haible  <bruno@clisp.org>
52823
52824         Implement freading and fwriting.
52825         * lib/freading.c: New file.
52826         * lib/freading.h: Likewise.
52827         * m4/freading.m4: Likewise.
52828         * modules/freading: Likewise.
52829         * modules/freading-tests: Likewise.
52830         * tests/test-freading.c: Likewise.
52831         * lib/fwriting.c: New file.
52832         * lib/fwriting.h: Likewise.
52833         * m4/fwriting.m4: Likewise.
52834         * modules/fwriting: Likewise.
52835         * modules/fwriting-tests: Likewise.
52836         * tests/test-fwriting.c: Likewise.
52837         * MODULES.html.sh (File stream based Input/Output): Mention them.
52838
52839 2007-04-26  Bruno Haible  <bruno@clisp.org>
52840
52841         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52842         'long' when we assume it.
52843         Suggested by Eric Blake.
52844
52845 2007-04-26  Bruno Haible  <bruno@clisp.org>
52846
52847         Ensure fseeko, ftello are declared on glibc systems.
52848         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52849         * modules/fseeko (configure.ac-early): Likewise.
52850         * modules/ftello (configure.ac-early): Likewise.
52851         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52852         AC_FUNC_FSEEKO for this.
52853         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52854         (gl_CHECK_FSEEKO): Remove macro.
52855
52856 2007-04-26  Bruno Haible  <bruno@clisp.org>
52857
52858         * tests/test-fflush.c (main): Also check the ftell result after
52859         fflush and fseek/fseeko.
52860         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52861         file descriptor position cache in the stream.
52862         * lib/fseeko.c (rpl_fseeko): Likewise.
52863
52864 2007-04-26  Bruno Haible  <bruno@clisp.org>
52865
52866         * modules/fflush-tests (Depends-on): Add fseeko.
52867
52868 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52869             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52870
52871         * lib/argz_.h: ensure error_t definition is obtained in same
52872         mechanism system argz.h would have.
52873         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52874         argz facilities are known bad.  Err on the side of caution if
52875         cross-compiling.
52876
52877 2007-04-25  Eric Blake  <ebb9@byu.net>
52878
52879         * lib/fpurge.c (includes): Use stdlib.h for free.
52880         * tests/test-fflush.c (main): Also test fflush-fseeko.
52881
52882 2007-04-25  Bruno Haible  <bruno@clisp.org>
52883
52884         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52885         * lib/fseeko.c: New file.
52886         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52887         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52888         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52889         gl_FUNC_FSEEKO.
52890         (gl_FUNC_FSEEKO): Invoke it.
52891         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52892         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52893         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52894
52895 2007-04-25  Bruno Haible  <bruno@clisp.org>
52896
52897         * modules/fflush (Depends-on): Add ftello.
52898
52899 2007-04-25  Bruno Haible  <bruno@clisp.org>
52900
52901         * modules/ftello-tests: New file.
52902         * tests/test-ftello.c: New file.
52903
52904         * modules/ftello: New file.
52905         * m4/ftello.m4: New file.
52906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52907         HAVE_FTELLO.
52908         * lib/stdio_.h (ftello): New declaration.
52909         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52910         HAVE_FTELLO.
52911
52912 2007-04-25  Bruno Haible  <bruno@clisp.org>
52913
52914         * modules/fseeko-tests: New file.
52915         * tests/test-fseeko.c: New file.
52916
52917         * modules/fseeko: New file.
52918         * m4/fseeko.m4: New file.
52919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52920         HAVE_FSEEKO.
52921         * lib/stdio_.h (fseeko): New declaration.
52922         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52923         HAVE_FSEEKO.
52924
52925 2007-04-25  Bruno Haible  <bruno@clisp.org>
52926
52927         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52928
52929 2007-04-25  Bruno Haible  <bruno@clisp.org>
52930
52931         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52932         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52933         * tests/test-unistd.c: Likewise.
52934         * tests/test-fcntl.c: Likewise.
52935
52936 2007-04-23  Eric Blake  <ebb9@byu.net>
52937
52938         * lib/fflush.c: Fix missing include.
52939         Reported by Bruno Haible.
52940
52941 2007-04-23  Bruno Haible  <bruno@clisp.org>
52942
52943         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52944         Reported by Eric Blake.
52945
52946 2007-04-23  Bruno Haible  <bruno@clisp.org>
52947
52948         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52949
52950 2007-04-23  Bruno Haible  <bruno@clisp.org>
52951
52952         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52953
52954 2007-04-23  Bruno Haible  <bruno@clisp.org>
52955
52956         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52957         Needed on HP-UX 11.
52958
52959 2007-04-16  Eric Blake  <ebb9@byu.net>
52960
52961         Make fflush rely on fpurge.
52962         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52963         open coding all variants.
52964         * modules/fflush (Depends-on): Add fpurge and unistd.
52965         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52966         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52967
52968         Fix --with-tests compilation on cygwin.
52969         * modules/argmatch-tests (Makefile.am): List gnulib library first
52970         in LDADD.
52971         * modules/argp-tests (Makefile.am): Likewise.
52972         * modules/array-list-tests (Makefile.am): Likewise.
52973         * modules/array-oset-tests (Makefile.am): Likewise.
52974         * modules/avltree-list-tests (Makefile.am): Likewise.
52975         * modules/avltree-oset-tests (Makefile.am): Likewise.
52976         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52977         * modules/carray-list-tests (Makefile.am): Likewise.
52978         * modules/dirname-tests (Makefile.am): Likewise.
52979         * modules/frexp-tests (Makefile.am): Likewise.
52980         * modules/isnanl-tests (Makefile.am): Likewise.
52981         * modules/linked-list-tests (Makefile.am): Likewise.
52982         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52983         * modules/lock-tests (Makefile.am): Likewise.
52984         * modules/rbtree-list-tests (Makefile.am): Likewise.
52985         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52986         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52987         * modules/tls-tests (Makefile.am): Likewise.
52988         * modules/tsearch-tests (Makefile.am): Likewise.
52989         * modules/xvasprintf-tests (Makefile.am): Likewise.
52990
52991         Fix fpurge for cygwin.
52992         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52993         value.
52994         * modules/fpurge-tests (Depends-on): Clean up trash.
52995
52996 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52997
52998         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52999
53000         * m4/autobuild.m4: Re-indent.
53001
53002 2007-04-13  Bruno Haible  <bruno@clisp.org>
53003
53004         * modules/fpurge-tests: New file.
53005         * tests/test-fpurge.c: New file.
53006
53007         * modules/fpurge: New file.
53008         * lib/fpurge.h: New file.
53009         * lib/fpurge.c: New file.
53010         * m4/fpurge.m4: New file.
53011
53012 2007-04-13  Bruno Haible  <bruno@clisp.org>
53013
53014         * modules/fbufmode-tests: New file.
53015         * tests/test-fbufmode.c: New file.
53016
53017         * modules/fbufmode: New file.
53018         * lib/fbufmode.h: New file.
53019         * lib/fbufmode.c: New file.
53020         * m4/fbufmode.m4: New file.
53021
53022 2007-04-13  Bruno Haible  <bruno@clisp.org>
53023
53024         * modules/fwritable-tests: New file.
53025         * tests/test-fwritable.c: New file.
53026
53027         * modules/fwritable: New file.
53028         * lib/fwritable.h: New file.
53029         * lib/fwritable.c: New file.
53030         * m4/fwritable.m4: New file.
53031
53032 2007-04-13  Bruno Haible  <bruno@clisp.org>
53033
53034         * modules/freadable-tests: New file.
53035         * tests/test-freadable.c: New file.
53036
53037         * modules/freadable: New file.
53038         * lib/freadable.h: New file.
53039         * lib/freadable.c: New file.
53040         * m4/freadable.m4: New file.
53041
53042 2007-04-13  Bruno Haible  <bruno@clisp.org>
53043
53044         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
53045         MOSTLYCLEANFILES.
53046
53047 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53048
53049         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
53050         gzip bootstrap.conf to avoid dragging in i18n machinery.
53051         (gnulib_tool_option): Use it.
53052
53053 2007-04-13  Bruno Haible  <bruno@clisp.org>
53054
53055         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
53056         %F directives.
53057         * tests/test-vasprintf-posix.c (test_function): Likewise.
53058         * tests/test-snprintf-posix.h (test_function): Likewise.
53059         * tests/test-sprintf-posix.h (test_function): Likewise.
53060         * tests/test-fprintf-posix.h (test_function): Likewise.
53061         * tests/test-printf-posix.h (test_function): Likewise.
53062         * tests/test-fprintf-posix.out: Likewise.
53063
53064 2007-04-13  Bruno Haible  <bruno@clisp.org>
53065
53066         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
53067         * modules/tls-tests (configure.ac): Likewise.
53068         Reported by Arto C. Nirkko <anirkko@insel.ch>.
53069
53070 2007-04-13  Bruno Haible  <bruno@clisp.org>
53071
53072         * lib/tls.c (glthread_tls_get): Fix return type.
53073         Patch by Arto C. Nirkko <anirkko@insel.ch>.
53074
53075 2007-04-12  Eric Blake  <ebb9@byu.net>
53076
53077         * modules/gettime (Depends-on): Remove gettime.
53078         Reported by Dmitry V. Levin.
53079
53080 2007-04-12  Bruno Haible  <bruno@clisp.org>
53081
53082         * modules/fflush (Include): Mention <stdio.h>.
53083         * modules/strtoimax (Include): Mention <inttypes.h>.
53084         * modules/strtoumax (Include): Likewise.
53085
53086 2007-04-12  Eric Blake  <ebb9@byu.net>
53087
53088         * .cvsignore: New file.
53089         * .gitignore: Likewise.
53090
53091 2007-04-12  Bruno Haible  <bruno@clisp.org>
53092
53093         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
53094         not before, since $(LDADD) often contains libgnu.a.
53095         * modules/striconv-tests (test_striconv_LDADD): Likewise.
53096         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
53097         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
53098         Needed on Cygwin.
53099
53100 2007-04-12  Eric Blake  <ebb9@byu.net>
53101
53102         Work around glibc's failure to flush stdin on fclose.
53103         * lib/closein.c (close_stdin): Flush stdin before closing.
53104
53105         Work around glibc's failure to reset seekable stdin on exit.
53106         * modules/closein: New module.
53107         * lib/closein.c: New file.
53108         * lib/closein.h: Likewise.
53109         * m4/closein.m4: Likewise.
53110         * MODULES.html.sh (File stream based Input/Output): Document it.
53111
53112 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53113
53114         * gnulib-tool: Rename generated 'autobuild' script to
53115         'do-autobuild' in --create-megatestdir output.
53116
53117         * doc/gnulib.texi (Build robot for gnulib): Fix.
53118
53119 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53120
53121         * modules/sysexits (Depends-on): Add absolute-header.
53122
53123 2007-04-12  Eric Blake  <ebb9@byu.net>
53124
53125         No need to preserve errno on success.
53126         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
53127         Reported by Bruno Haible.
53128
53129 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53130
53131         * MODULES.html.sh (Support for maintaining and releasing
53132         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
53133
53134 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53135
53136         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
53137
53138 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53139
53140         * modules/autobuild: New module.
53141
53142         * m4/autobuild.m4: New file.
53143
53144 2007-04-11  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
53147         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
53148         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
53149         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
53150         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53151         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53152         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53153         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53154         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53155         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
53157         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53158         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53159         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
53160         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53161         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53162         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
53163         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53164         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
53166         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53167         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
53169         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53170         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53171         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
53172         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53173         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53174         Reported by Eric Blake.
53175
53176 2007-04-11  Bruno Haible  <bruno@clisp.org>
53177
53178         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
53179
53180 2007-04-10  Bruno Haible  <bruno@clisp.org>
53181
53182         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
53183         for NaN and Infinity. Needed on FreeBSD 6.1.
53184         * tests/test-vasnprintf-posix.c (test_function): Undo last change
53185         regarding results for "%010a" of Infinity and NaN.
53186         * tests/test-vasprintf-posix.c (test_function): Likewise.
53187         * tests/test-snprintf-posix.h (test_function): Likewise.
53188         * tests/test-sprintf-posix.h (test_function): Likewise.
53189         * tests/test-fprintf-posix.h (test_function): Likewise.
53190         * tests/test-printf-posix.h (test_function): Likewise.
53191         * tests/test-fprintf-posix.out: Likewise.
53192
53193 2007-04-10  Bruno Haible  <bruno@clisp.org>
53194
53195         * modules/locale-tests: New file.
53196         * tests/test-locale.c: New file.
53197
53198         * modules/locale: New file.
53199         * lib/locale_.h: New file.
53200         * m4/locale_h.m4: New file.
53201
53202 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
53203             Bruno Haible  <bruno@clisp.org>
53204
53205         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
53206         be determined, test for availability of the copysignf, copysign,
53207         copysignl functions.
53208         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
53209         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
53210         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
53211
53212 2007-04-09  Eric Blake  <ebb9@byu.net>
53213
53214         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
53215         * modules/stdio (Makefile.am): Support fflush.
53216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53217         * modules/fflush: New file.
53218         * lib/fflush.c: Likewise.
53219         * m4/fflush.m4: Likewise.
53220         * modules/fflush-tests: New test.
53221         * tests/test-fflush.c: Likewise.
53222         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
53223
53224 2007-04-06  Bruno Haible  <bruno@clisp.org>
53225
53226         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
53227         (VASNPRINTF): Use signbit for faster determination whether to print a
53228         minus sign.
53229         * modules/vasnprintf (Files): Remove lib/float+.h.
53230         * modules/fprintf-posix (Depends-on): Add signbit.
53231         * modules/snprintf-posix (Depends-on): Likewise.
53232         * modules/sprintf-posix (Depends-on): Likewise.
53233         * modules/vasnprintf-posix (Depends-on): Likewise.
53234         * modules/vasprintf-posix (Depends-on): Likewise.
53235         * modules/vfprintf-posix (Depends-on): Likewise.
53236         * modules/vsnprintf-posix (Depends-on): Likewise.
53237         * modules/vsprintf-posix (Depends-on): Likewise.
53238
53239 2007-04-06  Bruno Haible  <bruno@clisp.org>
53240
53241         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53242         * tests/test-frexpl.c (main): Likewise.
53243         * tests/test-ldexpl.c (main): Likewise.
53244         * modules/frexp-tests (Depends-on): Add signbit.
53245         * modules/frexpl-tests (Depdends-on): Likewise.
53246         * modules/ldexpl-tests (Depdends-on): Likewise.
53247
53248 2007-04-06  Bruno Haible  <bruno@clisp.org>
53249
53250         * modules/signbit-tests: New file.
53251         * tests/test-signbit.c: New file.
53252
53253         * modules/signbit: New file.
53254         * lib/signbitf.c: New file.
53255         * lib/signbitd.c: New file.
53256         * lib/signbitl.c: New file.
53257         * m4/signbit.m4: New file.
53258         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53259         (signbit): New macro.
53260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53261         REPLACE_SIGNBIT.
53262         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53263         REPLACE_FREXPL into math.h.
53264
53265 2007-04-06  Bruno Haible  <bruno@clisp.org>
53266
53267         * modules/isnanf-nolibm-tests: New file.
53268         * tests/test-isnanf.c: New file.
53269
53270         * modules/isnanf-nolibm: New file.
53271         * lib/isnanf.h: New file.
53272         * lib/isnanf.c: New file.
53273         * lib/isnan.c: Consider the USE_FLOAT macro.
53274         * m4/isnanf.m4: New file.
53275
53276 2007-04-06  Bruno Haible  <bruno@clisp.org>
53277
53278         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53279         (Link): New section.
53280
53281         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53282
53283 2007-04-06  Bruno Haible  <bruno@clisp.org>
53284
53285         Assume the 'long double' type.
53286         * m4/longdouble.m4: Remove file.
53287         * config/srclist.txt: Don't mention longdouble.m4.
53288         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53289         * lib/float+.h: Likewise.
53290         * lib/frexp.c: Likewise.
53291         * lib/printf-args.h: Likewise.
53292         * lib/printf-args.c: Likewise.
53293         * lib/printf-frexp.c: Likewise.
53294         * lib/printf-parse.c: Likewise.
53295         * lib/vasnprintf.c: Likewise.
53296         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53297         * m4/intl.m4: Likewise.
53298         * m4/isnanl.m4: Likewise.
53299         * m4/printf.m4: Likewise.
53300         * m4/printf-frexpl.m4: Likewise.
53301         * m4/vasnprintf.m4: Likewise.
53302         * modules/allocsa (Files): Remove m4/longdouble.m4.
53303         * modules/gettext (Files): Likewise.
53304         * modules/relocatable-prog-wrapper (Files): Likewise.
53305         * modules/vasnprintf (Files): Likewise.
53306         * modules/isnanl (Files): Likewise.
53307         (Include): Simplify.
53308         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53309         (Include): Simplify.
53310         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53311         (Include): Simplify.
53312         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53313         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53314         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53315         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53316         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53317         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53318         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53319         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53320         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53321         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53322         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53323         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53324         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53325         * tests/test-isnanl.c: Likewise.
53326         * tests/test-snprintf-posix.h: Likewise.
53327         * tests/test-sprintf-posix.h: Likewise.
53328         * tests/test-vasnprintf-posix.c: Likewise.
53329         * tests/test-vasnprintf-posix2.c: Likewise.
53330         * tests/test-vasprintf-posix.c: Likewise.
53331
53332 2007-04-06  Bruno Haible  <bruno@clisp.org>
53333
53334         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53335         * lib/math_.h [__DECC]: Include the overridden include file through
53336         #include_next, outside the double-inclusion guard.
53337         * lib/stdio_.h [__DECC]: Likewise.
53338         * lib/stdlib_.h [__DECC]: Likewise.
53339         * lib/string_.h [__DECC]: Likewise.
53340         * lib/time_.h [__DECC]: Likewise.
53341         * lib/wchar_.h [__DECC]: Likewise.
53342         * lib/wctype_.h [__DECC]: Likewise.
53343         * lib/inttypes_.h [__DECC]: Likewise.
53344         Reported by Albert Chin <china@thewrittenword.com> in
53345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53346
53347 2007-04-04  Eric Blake  <ebb9@byu.net>
53348
53349         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53350         1.5.x.
53351
53352 2007-04-04  Bruno Haible  <bruno@clisp.org>
53353
53354         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53355         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53356
53357 2007-04-04  Bruno Haible  <bruno@clisp.org>
53358
53359         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53360         results for "%010a" of Infinity and NaN.
53361         * tests/test-vasprintf-posix.c (test_function): Likewise.
53362         * tests/test-snprintf-posix.h (test_function): Likewise.
53363         * tests/test-sprintf-posix.h (test_function): Likewise.
53364         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53365         * tests/test-printf-posix.h (test_function): Likewise.
53366         * tests/test-fprintf-posix.out: Update.
53367         Needed for FreeBSD 6.1.
53368
53369 2007-04-04  Bruno Haible  <bruno@clisp.org>
53370
53371         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53372         directly used by the gnulib modules nor by gnulib-tool.
53373
53374 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53375
53376         * DEPENDENCIES: Give overall description of version dependency
53377         desirability.  Use more-typical names for apps.
53378         Add shell, coreutils, diffutils, grep, tar, gzip.
53379
53380 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53381
53382         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53383
53384 2007-04-04  Karl Berry  <karl@gnu.org>
53385
53386         * MODULES.html.sh (func_module): missing '.
53387
53388 2007-04-03  Bruno Haible  <bruno@clisp.org>
53389
53390         * modules/argmatch-tests (Makefile.am): New variable
53391         test_argmatch_LDADD.
53392         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53393         * modules/array-list-tests (Makefile.am): New variable
53394         test_array_list_LDADD.
53395         * modules/array-oset-tests (Makefile.am): New variable
53396         test_array_oset_LDADD.
53397         * modules/avltree-list-tests (Makefile.am): New variable
53398         test_avltree_list_LDADD.
53399         * modules/avltree-oset-tests (Makefile.am): New variable
53400         test_avltree_oset_LDADD.
53401         * modules/avltreehash-list-tests (Makefile.am): New variable
53402         test_avltreehash_list_LDADD.
53403         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53404         test_canonicalize_lgpl_LDADD.
53405         * modules/carray-list-tests (Makefile.am): New variable
53406         test_carray_list_LDADD.
53407         * modules/dirname-tests (Makefile.am): New variable
53408         test_dirname_LDADD.
53409         * modules/linked-list-tests (Makefile.am): New variable
53410         test_linked_list_LDADD.
53411         * modules/linkedhash-list-tests (Makefile.am): New variable
53412         test_linkedhash_list_LDADD.
53413         * modules/rbtree-list-tests (Makefile.am): New variable
53414         test_rbtree_list_LDADD.
53415         * modules/rbtree-oset-tests (Makefile.am): New variable
53416         test_rbtree_oset_LDADD.
53417         * modules/rbtreehash-list-tests (Makefile.am): New variable
53418         test_rbtreehash_list_LDADD.
53419         * modules/xvasprintf-tests (Makefile.am): New variable
53420         test_xvasprintf_LDADD.
53421         Reported by Eric Blake.
53422
53423 2007-04-03  Eric Blake  <ebb9@byu.net>
53424
53425         * DEPENDENCIES: Weaken m4 requirements.
53426
53427 2007-04-03  Bruno Haible  <bruno@clisp.org>
53428
53429         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53430         * modules/isnanl-tests (configure.ac): Likewise.
53431
53432 2007-04-03  Ben Pfaff  <blp@gnu.org>
53433
53434         * modules/iconv_open: Add $(srcdir)/ to source directory
53435         references in Makefile fragments that call gperf, to fix VPATH
53436         builds.
53437
53438 2007-04-03  Bruno Haible  <bruno@clisp.org>
53439
53440         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53441         * lib/ldexpl.c: Undo last change.
53442
53443 2007-04-03  Bruno Haible  <bruno@clisp.org>
53444
53445         * modules/printf-frexpl (Depends-on): Undo last change.
53446         (Files): Add m4/ldexpl.m4.
53447
53448 2007-04-03  Bruno Haible  <bruno@clisp.org>
53449
53450         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53451         * modules/isnanl (Link): New section.
53452
53453         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53454         * modules/frexp (Link): New section.
53455
53456         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53457         * modules/frexpl (Link): New section.
53458
53459         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53460         * modules/ldexpl (Link): New section.
53461
53462 2007-04-03  Bruno Haible  <bruno@clisp.org>
53463
53464         * modules/TEMPLATE-EXTENDED: New file.
53465         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53466
53467 2007-04-03  Bruno Haible  <bruno@clisp.org>
53468
53469         * DEPENDENCIES: New file.
53470         Suggested by Simon Josefsson.
53471
53472 2007-04-03  Bruno Haible  <bruno@clisp.org>
53473
53474         * doc/gnulib.texi: Escape @.
53475
53476 2007-04-03  James Youngman  <jay@gnu.org>
53477         and Paul Eggert  <eggert@cs.ucla.edu>
53478
53479         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53480         birthtime on all systems that have birthtime, not just those which
53481         use st_birthtimensec rather than st_birthtim.  Putting zero in
53482         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53483         that the birth time is not available for files on an NFS mount.
53484
53485 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53486
53487         * modules/memxor: Move back from crypto/, suggested by Bruno.
53488         * modules/crypto/hmac-sha1: Fix memxor dependency.
53489
53490         * modules/crypto/gc: Moved from ../.
53491
53492 2007-04-02  Eric Blake  <ebb9@byu.net>
53493
53494         * lib/ldexpl.c (includes): Avoid libm.
53495
53496         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53497
53498 2007-04-02  Bruno Haible  <bruno@clisp.org>
53499
53500         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53501         on IRIX.
53502
53503 2007-04-02  Bruno Haible  <bruno@clisp.org>
53504
53505         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53506         x86 or x86_64 platforms running MacOS X.
53507         Reported by Ryan Schmidt <@ryandesign.com>.
53508
53509 2007-04-02  Bruno Haible  <bruno@clisp.org>
53510
53511         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53512         i386.
53513
53514 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53515
53516         * modules/crypto/arcfour: Moved from ../.
53517         * modules/crypto/arcfour-tests: Moved from ../.
53518         * modules/crypto/arctwo: Moved from ../.
53519         * modules/crypto/arctwo-tests: Moved from ../.
53520         * modules/crypto/des: Moved from ../.
53521         * modules/crypto/des-tests: Moved from ../.
53522         * modules/crypto/gc-arcfour: Moved from ../.
53523         * modules/crypto/gc-arcfour-tests: Moved from ../.
53524         * modules/crypto/gc-arctwo: Moved from ../.
53525         * modules/crypto/gc-arctwo-tests: Moved from ../.
53526         * modules/crypto/gc-des: Moved from ../.
53527         * modules/crypto/gc-des-tests: Moved from ../.
53528         * modules/crypto/gc-hmac-md5: Moved from ../.
53529         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53530         * modules/crypto/gc-hmac-sha1: Moved from ../.
53531         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53532         * modules/crypto/gc-md2: Moved from ../.
53533         * modules/crypto/gc-md2-tests: Moved from ../.
53534         * modules/crypto/gc-md4: Moved from ../.
53535         * modules/crypto/gc-md4-tests: Moved from ../.
53536         * modules/crypto/gc-md5: Moved from ../.
53537         * modules/crypto/gc-md5-tests: Moved from ../.
53538         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53539         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53540         * modules/crypto/gc-random: Moved from ../.
53541         * modules/crypto/gc-rijndael: Moved from ../.
53542         * modules/crypto/gc-rijndael-tests: Moved from ../.
53543         * modules/crypto/gc-sha1: Moved from ../.
53544         * modules/crypto/gc-sha1-tests: Moved from ../.
53545         * modules/crypto/gc-tests: Moved from ../.
53546         * modules/crypto/hmac-md5: Moved from ../.
53547         * modules/crypto/hmac-md5-tests: Moved from ../.
53548         * modules/crypto/hmac-sha1: Moved from ../.
53549         * modules/crypto/hmac-sha1-tests: Moved from ../.
53550         * modules/crypto/md2: Moved from ../.
53551         * modules/crypto/md2-tests: Moved from ../.
53552         * modules/crypto/md4: Moved from ../.
53553         * modules/crypto/md4-tests: Moved from ../.
53554         * modules/crypto/md5: Moved from ../.
53555         * modules/crypto/md5-tests: Moved from ../.
53556         * modules/crypto/memxor: Moved from ../.
53557         * modules/crypto/rijndael: Moved from ../.
53558         * modules/crypto/rijndael-tests: Moved from ../.
53559         * modules/crypto/sha1: Moved from ../.
53560
53561 2007-03-30  James Youngman  <jay@gnu.org>
53562
53563         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53564         rename() to change the ctime of a file (because ctime is unaffected
53565         by rename on jfs2 on AIX 5.1).
53566         (main): Start by doing cleanup, in case a previous run failed leaving
53567         test files behind.
53568
53569 2007-03-31  Bruno Haible  <bruno@clisp.org>
53570
53571         Support old proprietary implementations of iconv.
53572         * modules/iconv_open: New file.
53573         * lib/iconv_.h: New file.
53574         * m4/iconv_h.m4: New file.
53575         * lib/iconv_open.c: New file.
53576         * lib/iconv_open-aix.gperf: New file.
53577         * lib/iconv_open-hpux.gperf: New file.
53578         * lib/iconv_open-irix.gperf: New file.
53579         * lib/iconv_open-osf.gperf: New file.
53580         * m4/iconv_open.m4: New file.
53581         * modules/linebreak (Depends-on): Add iconv_open.
53582         * modules/striconv (Depends-on): Likewise.
53583         * modules/striconveh (Depends-on): Likewise.
53584         * modules/unicodeio (Depends-on): Likewise.
53585         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53586         (iconv_t)(-1).
53587         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53588         conversion if cd is (iconv_t)(-1).
53589         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53590         is not possible.
53591
53592 2007-03-31  Bruno Haible  <bruno@clisp.org>
53593
53594         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53595         work on Solaris either. Protect also second use of "autodetect_jp".
53596
53597 2007-03-31  Bruno Haible  <bruno@clisp.org>
53598
53599         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53600         the function is not present.
53601
53602 2007-03-31  Bruno Haible  <bruno@clisp.org>
53603
53604         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53605         the function is not present.
53606
53607 2007-03-31  Bruno Haible  <bruno@clisp.org>
53608
53609         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53610         a bug in HP-UX iconv_open().
53611
53612 2007-03-31  Bruno Haible  <bruno@clisp.org>
53613
53614         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53615         (Mathematics <math.h>): New section, add fpieee.
53616         (Input/output <stdio.h>): Add fseterr.
53617         (Mathematics <math.h>): New section, add printf-frexp.
53618         (Container data structures): Add sublist.
53619         (Core language properties): Add fpucw, inline.
53620         (Functions for greatest-width integer types <inttypes.h>): Add
53621         imaxabs, imaxdiv, inttypes.
53622         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53623         isnanl-nolibm, ldexp.
53624         (Mathematics <math.h>): New section, add printf-frexpl.
53625         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53626         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53627         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53628         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53629         (Unicode string functions): Add unistr/u*-mbtoucr.
53630         (Java): Add javacomp-script, javaexec-script.
53631         (C#): Add csharpcomp-script, csharpexec-script.
53632         (Support for building libraries and executables): Add havelib,
53633         relocatable-*.
53634         (Support for maintaining and releasing projects): Renamed from
53635         'Support for maintaining and release projects'. Add announce-gen.
53636
53637 2007-03-31  Bruno Haible  <bruno@clisp.org>
53638
53639         * README: Talk primarily about git.
53640         (git and CVS): Renamed from CVS.
53641         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53642         gnulib is available through git.
53643         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53644
53645 2007-03-30  Bruno Haible  <bruno@clisp.org>
53646
53647         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53648         * lib/poll_.h: Likewise.
53649         * lib/stat_.h: Likewise.
53650         * lib/sys_time_.h: Likewise.
53651         * lib/sysexit_.h: Likewise.
53652         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53653         * lib/stdbool_.h: Likewise.
53654         * lib/byteswap_.h: Add double-inclusion guard.
53655
53656 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53657
53658         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53659
53660 2007-03-30  Karl Berry  <karl@gnu.org>
53661
53662         * config/srclist-update: double space after USA in the license
53663         substitution, since that's how it's usually (?) written.
53664
53665 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53666
53667         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53668         reported by Bruno Haible.
53669
53670 2007-03-29  Bruno Haible  <bruno@clisp.org>
53671
53672         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53673         a bug in AIX iconv().
53674
53675 2007-03-29  Bruno Haible  <bruno@clisp.org>
53676
53677         * modules/ldexpl-tests: New file.
53678         * tests/test-ldexpl.c: New file.
53679
53680 2007-03-29  Bruno Haible  <bruno@clisp.org>
53681
53682         * lib/ldexpl.c: Include fpucw.h.
53683         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53684         multiplication.
53685         * modules/ldexpl (Depends-on): Add fpucw.
53686
53687 2007-03-29  Bruno Haible  <bruno@clisp.org>
53688
53689         * modules/ldexpl: New file.
53690         * m4/ldexpl.m4: New file.
53691         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53692         set.
53693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53694         REPLACE_LDEXPL.
53695         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53696         REPLACE_LDEXPL.
53697         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53698         gl_FUNC_LDEXPL_WORKS.
53699         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53700         * modules/mathl (Files): Remove lib/ldexpl.c.
53701         (Depends-on): Add ldexpl.
53702
53703 2007-03-29  Bruno Haible  <bruno@clisp.org>
53704
53705         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53706
53707 2007-03-29  Bruno Haible  <bruno@clisp.org>
53708
53709         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53710         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53711         and possibly also HP-UX.
53712         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53713         work on AIX, IRIX, HP-UX, OSF/1.
53714         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53715         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53716         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53717         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53718         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53719         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53720
53721 2007-03-29  Bruno Haible  <bruno@clisp.org>
53722
53723         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53724
53725 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53726
53727         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53728         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53729
53730 2007-03-29  Eric Blake  <ebb9@byu.net>
53731
53732         * lib/acl-internal.h: Remove redundant include.
53733         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53734         Cygwin when a file is locked.
53735
53736 2007-03-29  Bruno Haible  <bruno@clisp.org>
53737
53738         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53739         file.
53740         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53741
53742 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53743
53744         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53745         try to remove a parent directory if the child couldn't be removed
53746         (except for the first rmdir, which could fail because the child
53747         doesn't exist).  Problem reported by Jeff Blaine in
53748         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53749
53750 2007-03-28  Bruno Haible  <bruno@clisp.org>
53751
53752         * lib/striconveh.c (utf8conv_carefully): New function.
53753         (mem_cd_iconveh_internal): Invoke it.
53754
53755 2007-03-28  Bruno Haible  <bruno@clisp.org>
53756
53757         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53758         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53759         input.
53760         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53761         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53762         unistr/u8-uctomb.
53763
53764 2007-03-28  Bruno Haible  <bruno@clisp.org>
53765
53766         * modules/unistr/u8-mbtoucr: New file.
53767         * lib/unistr/u8-mbtoucr.c: New file.
53768         * modules/unistr/u16-mbtoucr: New file.
53769         * lib/unistr/u16-mbtoucr.c: New file.
53770         * modules/unistr/u16-mbtoucr: New file.
53771         * lib/unistr/u16-mbtoucr.c: New file.
53772         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53773
53774 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53775             Bruno Haible  <bruno@clisp.org>
53776
53777         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53778         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53779         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53780
53781         * m4/stdio_h.m4: Add stubs for vasprintf too.
53782
53783         * modules/stdio: Support vasprintf in sed command.
53784
53785         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53786         vasprintf.h.  Add stdio module indicator.
53787
53788         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53789         vasprintf.h.
53790
53791         * lib/vasprintf.h: File removed.
53792
53793         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53794         * lib/vasprintf.c: Ditto.
53795         * lib/xvasprintf.c: Ditto.
53796         * tests/test-vasprintf-posix.c: Ditto.
53797         * tests/test-vasprintf.c: Ditto.
53798
53799 2007-03-27  Bruno Haible  <bruno@clisp.org>
53800
53801         Make vasnprintf multithread-safe.
53802         * lib/vasnprintf.c (decimal_point_char): New function.
53803         (VASNPRINTF): Use it.
53804         Suggested by Simon Josefsson.
53805
53806 2007-03-27  Eric Blake  <ebb9@byu.net>
53807
53808         Support sub-second birthtime on cygwin.
53809         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53810         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53811         (get_stat_birthtime): Also work with st_birthtim.
53812
53813 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53814
53815         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53816         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53817         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53818         (get_stat_birthtime_ns): Simplify compile-time tests.
53819         (get_stat_birthtime): Change the API to look like
53820         get_stat_mtime etc., except return a negative tv_nsec on error.
53821         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53822         Don't check for "spare" fields.
53823         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53824         or for struct stat.st_birthtime, as these tests aren't used.
53825         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53826
53827 2007-03-27  Bruno Haible  <bruno@clisp.org>
53828
53829         * lib/stat-time.h: Include <sys/stat.h>.
53830
53831 2007-03-27  James Youngman  <jay@gnu.org>
53832
53833         * lib/stat-time.h (get_stat_birthtime): New function for
53834           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53835         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53836           and its variants.
53837         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53838         * modules/stat-time-test: New file.
53839         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53840
53841 2007-03-26  Bruno Haible  <bruno@clisp.org>
53842
53843         Better support of signalling NaNs.
53844         * lib/atanl.c: Include isnanl.h.
53845         (atanl): Perform test for NaN at the beginning of the function and
53846         through a call to isnanl.
53847         * lib/cosl.c: Include isnanl.h.
53848         (cosl): Perform test for NaN at the beginning of the function and
53849         through a call to isnanl.
53850         * lib/ldexpl.c: Include isnanl.h.
53851         (ldexpl): Perform test for NaN through a call to isnanl.
53852         * lib/logl.c: Include isnanl.h.
53853         (logl): Perform test for NaN at the beginning of the function and
53854         through a call to isnanl.
53855         * lib/sinl.c: Include isnanl.h.
53856         (sinl): Perform test for NaN at the beginning of the function and
53857         through a call to isnanl.
53858         * lib/sqrtl.c: Include isnanl.h.
53859         (sqrtl): Perform test for NaN at the beginning of the function and
53860         through a call to isnanl.
53861         * lib/tanl.c: Include isnanl.h.
53862         (tanl): Perform test for NaN at the beginning of the function and
53863         through a call to isnanl.
53864         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53865         * modules/mathl (Depends-on): Add isnanl.
53866
53867 2007-03-26  Eric Blake  <ebb9@byu.net>
53868
53869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53870         regression in logic sense of previous patch.
53871
53872 2007-03-26  Bruno Haible  <bruno@clisp.org>
53873
53874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53875         unportable shell command "if ! ...".
53876         Reported by Ralf Wildenhues.
53877
53878 2007-03-25  Bruno Haible  <bruno@clisp.org>
53879
53880         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53881         <sysexits.h> file, and only add EX_CONFIG.
53882         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53883         absolute file name and whether it is sufficient. Substitute also
53884         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53885         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53886         ABSOLUTE_SYSEXITS_H into sysexits.h.
53887
53888 2007-03-25  Bruno Haible  <bruno@clisp.org>
53889
53890         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53891         hints is NULL.
53892
53893 2007-03-25  Bruno Haible  <bruno@clisp.org>
53894
53895         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53896         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53897
53898 2007-03-25  Bruno Haible  <bruno@clisp.org>
53899
53900         * lib/vasnprintf.c: Include langinfo.h.
53901         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53902         multithread-safe.
53903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53904         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53905         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53906         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53907         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53908         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53909         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53910         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53911         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53912         Reported by Simon Josefsson.
53913
53914 2007-03-25  Bruno Haible  <bruno@clisp.org>
53915
53916         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53917         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53918         * modules/vasnprintf (Depends-on): Add stdint.
53919
53920 2007-03-25  Bruno Haible  <bruno@clisp.org>
53921
53922         * modules/fpieee: New file.
53923         * m4/fpieee.m4: New file.
53924         * modules/isnan-nolibm (Depends-on): Add fpieee.
53925         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53926         * modules/isnanl (Depends-on): Add fpieee.
53927
53928 2007-03-25  Bruno Haible  <bruno@clisp.org>
53929
53930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53931
53932 2007-03-25  Bruno Haible  <bruno@clisp.org>
53933
53934         Avoid test failures on IRIX 6.5.
53935         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53936         (main): Use it.
53937         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53938         macros.
53939         (main): Use them.
53940
53941 2007-03-25  Bruno Haible  <bruno@clisp.org>
53942
53943         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53944         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53945         exists but doesn't work.
53946         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53947         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53949         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53950         math.h.
53951
53952 2007-03-25  Bruno Haible  <bruno@clisp.org>
53953
53954         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53955         returns inf. Needed on IRIX 6.5.
53956
53957 2007-03-25  Bruno Haible  <bruno@clisp.org>
53958
53959         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53960         (main): Use isnanl instead of x != x idiom.
53961         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53962
53963         * tests/test-frexp.c: Include isnan.h.
53964         (main): Use isnan instead of x != x idiom.
53965         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53966
53967 2007-03-25  Bruno Haible  <bruno@clisp.org>
53968
53969         * tests/test-frexp.c (NaN): New function/macro.
53970         (main): Use it instead of 0.0 / 0.0.
53971         * tests/test-isnan.c (NaN): New function/macro.
53972         (main): Use it instead of 0.0 / 0.0.
53973         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53974         (test_function): Use it instead of 0.0 / 0.0.
53975         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53976         (test_function): Use it instead of 0.0 / 0.0.
53977         * tests/test-snprintf-posix.h (NaN): New function/macro.
53978         (test_function): Use it instead of 0.0 / 0.0.
53979         * tests/test-sprintf-posix.h (NaN): New function/macro.
53980         (test_function): Use it instead of 0.0 / 0.0.
53981         * tests/test-fprintf-posix.h (NaN): New function/macro.
53982         (test_function): Use it instead of 0.0 / 0.0.
53983         * tests/test-printf-posix.h (NaN): New function/macro.
53984         (test_function): Use it instead of 0.0 / 0.0.
53985
53986         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53987
53988 2007-03-25  Bruno Haible  <bruno@clisp.org>
53989
53990         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53991
53992 2007-03-25  Bruno Haible  <bruno@clisp.org>
53993
53994         * lib/regexec.c (merge_state_with_log): Make static.
53995
53996 2007-03-25  Bruno Haible  <bruno@clisp.org>
53997
53998         * lib/trigl.c (kernel_rem_pio2): Make static.
53999
54000 2007-03-25  Bruno Haible  <bruno@clisp.org>
54001
54002         * lib/sincosl.c (sincosl_table): Make static.
54003
54004 2007-03-25  Bruno Haible  <bruno@clisp.org>
54005
54006         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
54007         if the compiler does not support C99.
54008
54009 2007-03-25  Bruno Haible  <bruno@clisp.org>
54010
54011         * modules/time (Makefile.am): Ensure all rule action lines start with a
54012         tab.
54013
54014 2007-03-24  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/tsearch-tests: New file.
54017         * tests/test-tsearch.sh: New file.
54018         * tests/test-tsearch.c: New file, mostly copied from glibc.
54019
54020         * modules/search-tests: New file.
54021         * tests/test-search.c: New file.
54022
54023         * modules/search: New file.
54024         * lib/search_.h: New file, incorporating lib/tsearch.h.
54025         * m4/search_h.m4: New file.
54026         * lib/tsearch.h: Remove file.
54027         * lib/tsearch.c: Include search.h instead of tsearch.h.
54028         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
54029         HAVE_TSEARCH.
54030         * modules/tsearch (Files): Remove lib/tsearch.h.
54031         (Depends-on): Add search.
54032         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
54033         (Include): Change tsearch.h into search.h.
54034
54035 2007-03-24  Bruno Haible  <bruno@clisp.org>
54036
54037         * modules/fpucw: New file.
54038         * lib/fpucw.h: New file.
54039         * lib/frexp.c: Include fpucw.h.
54040         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54041         (FUNC): Use them.
54042         * lib/printf-frexp.c: Include fpucw.h.
54043         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54044         (FUNC): Use them.
54045         * lib/vasnprintf.c: Include fpucw.h.
54046         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
54047         'long double' calculations.
54048         * tests/test-frexpl.c: Include fpucw.h.
54049         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54050         * tests/test-printf-frexpl.c: Include fpucw.h.
54051         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54052         * modules/frexpl (Depends-on): Add fpucw.
54053         * modules/printf-frexpl (Depends-on): Likewise.
54054         * modules/fprintf-posix (Depends-on): Likewise.
54055         * modules/snprintf-posix (Depends-on): Likewise.
54056         * modules/sprintf-posix (Depends-on): Likewise.
54057         * modules/vasnprintf-posix (Depends-on): Likewise.
54058         * modules/vasprintf-posix (Depends-on): Likewise.
54059         * modules/vfprintf-posix (Depends-on): Likewise.
54060         * modules/vsnprintf-posix (Depends-on): Likewise.
54061         * modules/vsprintf-posix (Depends-on): Likewise.
54062         * modules/frexpl-tests (Depends-on): Likewise.
54063         * modules/printf-frexpl-tests (Depends-on): Likewise.
54064
54065 2007-03-24  Bruno Haible  <bruno@clisp.org>
54066
54067         * lib/float+.h: New file.
54068         * lib/isnan.c: Include float+.h.
54069         (SIZE): New macro.
54070         (FUNC): Compare only SIZE bytes of the value.
54071         * lib/vasnprintf.c: Include float+.h.
54072         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
54073         SIZEOF_LDBL or SIZEOF_DBL bytes.
54074         * modules/isnan-nolibm (Files): Add lib/float+.h.
54075         * modules/isnanl-nolibm (Files): Add lib/float+.h.
54076         * modules/isnanl (Files): Add lib/float+.h.
54077         * modules/vasnprintf (Files): Add lib/float+.h.
54078
54079 2007-03-24  Bruno Haible  <bruno@clisp.org>
54080
54081         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
54082         include isnanl-nolibm.h.
54083
54084 2007-03-24  Bruno Haible  <bruno@clisp.org>
54085
54086         * tests/test-read-file.c (main): Don't produce spurious output for
54087         expected situations. Make the test fail if it encountered unexpected
54088         results.
54089
54090 2007-03-24  Bruno Haible  <bruno@clisp.org>
54091
54092         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
54093         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
54094
54095 2007-03-24  Bruno Haible  <bruno@clisp.org>
54096
54097         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
54098
54099 2007-03-24  Bruno Haible  <bruno@clisp.org>
54100
54101         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
54102         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
54103
54104         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
54105         * modules/utf8-ucs4: Turn into a symbolic link to module
54106         unistr/u8-mbtouc.
54107
54108         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
54109         utf8-ucs4-unsafe.
54110         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
54111         unistr/u8-mbtouc-unsafe.
54112
54113         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
54114         * modules/utf16-ucs4: Turn into a symbolic link to module
54115         unistr/u16-mbtouc.
54116
54117         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
54118         utf16-ucs4-unsafe.
54119         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
54120         unistr/u16-mbtouc-unsafe.
54121
54122         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
54123         * modules/ucs4-utf8: Turn into a symbolic link to module
54124         unistr/u8-ubtomb.
54125
54126         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
54127         * modules/ucs4-utf16: Turn into a symbolic link to module
54128         unistr/u16-ubtomb.
54129
54130 2007-03-24  Bruno Haible  <bruno@clisp.org>
54131
54132         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
54133         Enable the function only if HAVE_INLINE.
54134         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
54135         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54136         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
54137         Enable the function only if HAVE_INLINE.
54138         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
54139         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54140         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
54141         Enable the function only if HAVE_INLINE.
54142         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
54143         Enable the function only if HAVE_INLINE.
54144         * modules/utf8-ucs4: Update.
54145         * modules/utf8-ucs4-unsafe: Update.
54146         * modules/utf16-ucs4: Update.
54147         * modules/utf16-ucs4-unsafe: Update.
54148         * modules/ucs4-utf8: Update.
54149         * modules/ucs4-utf16: Update.
54150
54151 2007-03-24  Bruno Haible  <bruno@clisp.org>
54152
54153         * lib/utf8-ucs4.h: Remove file.
54154         * lib/utf8-ucs4-unsafe.h: Remove file.
54155         * lib/utf16-ucs4.h: Remove file.
54156         * lib/utf16-ucs4-unsafe.h: Remove file.
54157         * lib/ucs4-utf8.h: Remove file.
54158         * lib/ucs4-utf16.h: Remove file.
54159         * lib/unistr.h: Include their previous contents.
54160         * m4/utf-ucs4.m4: Remove file.
54161         * m4/ucs4-utf.m4: Remove file.
54162         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
54163         (Depends-on): Add unistr/base.
54164         (configure.ac): Remove gl_UTF_UCS4.
54165         (Makefile.am): Update.
54166         (Include): Change to unistr.h.
54167         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
54168         (Depends-on): Add unistr/base.
54169         (configure.ac): Remove gl_UTF_UCS4.
54170         (Makefile.am): Update.
54171         (Include): Change to unistr.h.
54172         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
54173         (Depends-on): Add unistr/base.
54174         (configure.ac): Remove gl_UTF_UCS4.
54175         (Makefile.am): Update.
54176         (Include): Change to unistr.h.
54177         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
54178         (Depends-on): Add unistr/base.
54179         (configure.ac): Remove gl_UTF_UCS4.
54180         (Makefile.am): Update.
54181         (Include): Change to unistr.h.
54182         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
54183         (Depends-on): Add unistr/base.
54184         (configure.ac): Remove gl_UCS4_UTF.
54185         (Makefile.am): Update.
54186         (Include): Change to unistr.h.
54187         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
54188         (Depends-on): Add unistr/base.
54189         (configure.ac): Remove gl_UCS4_UTF.
54190         (Makefile.am): Update.
54191         (Include): Change to unistr.h.
54192         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
54193         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
54194         utf8-ucs4-unsafe.h.
54195         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
54196         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
54197         utf16-ucs4-unsafe.h.
54198         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
54199         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
54200         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
54201         * lib/unistr/u8-strchr.c: Likewise.
54202         * lib/unistr/u8-strrchr.c: Likewise.
54203         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
54204         * lib/unistr/u16-strchr.c: Likewise.
54205         * lib/unistr/u16-strrchr.c: Likewise.
54206         * lib/striconveh.c: Update.
54207         * lib/linebreak.c: Update.
54208
54209 2007-03-24  Bruno Haible  <bruno@clisp.org>
54210
54211         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
54212         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
54213
54214 2007-03-22  Bruno Haible  <bruno@clisp.org>
54215
54216         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
54217
54218 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
54219
54220         * MODULES.html.sh (File system functions): New module write-any-file.
54221         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
54222         * m4/write-any-file.m4: New files.
54223
54224 2007-03-23  Eric Blake  <ebb9@byu.net>
54225
54226         * gnulib-tool: Rearrange space-tab sequences, since some editors
54227         like to eat them.
54228
54229 2007-03-23  Eric Blake  <ebb9@byu.net>
54230
54231         * lib/version-etc.c (version_etc_va): Update license wording to
54232         be more concise.  Recommended by Richard Stallman.
54233
54234 2007-03-22  Bruno Haible  <bruno@clisp.org>
54235
54236         * lib/poll.c (MSG_PEEK): New fallback definition.
54237
54238 2007-03-22  Bruno Haible  <bruno@clisp.org>
54239
54240         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54241         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54242         (main): Update.
54243         Fixes a compilation error on BeOS.
54244
54245 2007-03-22  Bruno Haible  <bruno@clisp.org>
54246
54247         * modules/frexpl-tests: New file.
54248         * tests/test-frexpl.c: New file.
54249
54250         * modules/frexpl: New file.
54251         * m4/frexpl.m4: New file.
54252         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54253         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54255         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54256         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54257         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54258
54259 2007-03-22  Bruno Haible  <bruno@clisp.org>
54260
54261         * lib/frexpl.c: Share code with lib/frexp.c.
54262         * modules/mathl (Files): Add lib/frexp.c.
54263         (Depends-on): Add isnanl-nolibm.
54264
54265 2007-03-22  Bruno Haible  <bruno@clisp.org>
54266
54267         * modules/printf-frexp (Files): Add m4/frexp.m4.
54268         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54269         only if the found frexp function actually works.
54270
54271 2007-03-22  Bruno Haible  <bruno@clisp.org>
54272
54273         * lib/frexp.c: Remove older implementation that uses divisions.
54274
54275 2007-03-21  Bruno Haible  <bruno@clisp.org>
54276
54277         * modules/frexp-tests: New file.
54278         * tests/test-frexp.c: New file.
54279
54280         * modules/frexp: New file.
54281         * lib/frexp.c: New file.
54282         * m4/frexp.m4: New file.
54283         * lib/math_.h (frexp): New declaration.
54284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54285         REPLACE_FREXP.
54286         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54287
54288 2007-03-21  Bruno Haible  <bruno@clisp.org>
54289
54290         * modules/isnanl-tests: New file.
54291         * tests/test-isnanl.c: New file.
54292
54293         * modules/isnanl: New file.
54294         * lib/isnanl.h: New file.
54295         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54296         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54297         gl_FUNC_ISNANL_WORKS.
54298         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54299         New macros.
54300
54301 2007-03-21  Bruno Haible  <bruno@clisp.org>
54302
54303         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54304         lib/isnanl.h.
54305         (Include): Update.
54306         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54307         * lib/vasnprintf.c: Update.
54308         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54309         tests/test-isnanl.h, remove tests/test-isnanl.c.
54310         (Makefile.am): Update.
54311         * tests/test-isnanl-nolibm.c: New file.
54312         * tests/test-isnanl.h: New file.
54313         * tests/test-isnanl.c: Remove file.
54314
54315 2007-03-21  Jim Meyering  <jim@meyering.net>
54316
54317         When trying to open ".", treat ESTALE like EACCES.
54318         * lib/savewd.c (savewd_save): Resort to forking not just upon
54319         failure with EACCES, but also when errno is ESTALE.
54320
54321 2007-03-20  Bruno Haible  <bruno@clisp.org>
54322
54323         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54324         Needed on AIX 5.1. Reported by Matthew Woehlke.
54325
54326 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54327
54328         Suggestions by Bruno Haible:
54329         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54330         our own.
54331         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54332         * modules/acl (Depends-on): Add gettext.
54333
54334 2007-03-19  Bruno Haible  <bruno@clisp.org>
54335
54336         * modules/iconvme: Remove file.
54337         * lib/iconvme.h: Remove file.
54338         * lib/iconvme.c: Remove file.
54339         * m4/iconvme.m4: Remove file.
54340
54341 2007-03-19  Bruno Haible  <bruno@clisp.org>
54342
54343         * doc/relocatable-maint.texi: Break long shell script line.
54344         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54345
54346 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54347
54348         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54349         handle file_has_acl.
54350         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54351         * lib/acl.c: Move header inclusions and related macro defns into
54352         lib/acl-internal.h.
54353         (S_ISLNK): Remove defn, since that's now done for us.
54354         (file_has_acl): Move to lib/file-has-acl.c.
54355         Call acl_trivial if available.  This is the crucial part of the fix.
54356         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54357         shared within the library.  Rewrite a bit, partly to make it compatible
54358         with the GNU coding style.
54359         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54360         Remove unnecessary double-quotes.
54361         Don't test for acl_to_text; the build will catch that.
54362         Replace acl_entries if it doesn't exist and it is needed.
54363         Check for -lsec and acl_trivial (as used on Solaris 10).
54364         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54365         lib/file-has-acl.c.
54366         (Depends-on): Add sys_stat, for S_ISLNK.
54367
54368 2007-03-19  Ben Pfaff  <blp@gnu.org>
54369
54370         * doc/gnulib.texi: Fix typos.
54371         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54372
54373 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54374
54375         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54376         If size is zero here, buf must be zero.
54377
54378 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54379
54380         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54381         <bruno@clisp.org>.
54382
54383 2007-03-18  Bruno Haible  <bruno@clisp.org>
54384
54385         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54386         Suggested by Eric Blake.
54387
54388 2007-03-18  Ben Pfaff  <blp@gnu.org>
54389
54390         * doc/relocatable.texi: Recommend using as prefix a directory
54391         that does not exist and will never be created.  Based on
54392         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54393         and others.
54394
54395 2007-03-17  Bruno Haible  <bruno@clisp.org>
54396
54397         * lib/fchownat.c: Include lchown.h.
54398
54399 2007-03-17  Bruno Haible  <bruno@clisp.org>
54400
54401         Fix endless loop when the given allocated size was > INT_MAX.
54402         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54403         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54404         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54405         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54406         * lib/sprintf.c (sprintf): Likewise.
54407
54408 2007-03-17  Bruno Haible  <bruno@clisp.org>
54409
54410         * tests/test-argp-2.sh (func_compare): Output a context diff.
54411
54412 2007-03-17  Bruno Haible  <bruno@clisp.org>
54413
54414         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54415         locale's decimal-point character.
54416
54417 2007-03-17  Bruno Haible  <bruno@clisp.org>
54418
54419         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54420         before comparing it. Needed because on some platforms (e.g. x86) a
54421         'long double' occupies less bytes than sizeof (long double).
54422
54423 2007-03-17  Bruno Haible  <bruno@clisp.org>
54424
54425         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54426         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54427         * tests/test-getaddrinfo.c (simple): Likewise.
54428         * tests/test-read-file.c (main): Likewise.
54429
54430 2007-03-17  Bruno Haible  <bruno@clisp.org>
54431
54432         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54433
54434 2007-03-17  Bruno Haible  <bruno@clisp.org>
54435
54436         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54437         unused variable.
54438
54439 2007-03-17  Bruno Haible  <bruno@clisp.org>
54440
54441         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54442         * tests/test-c-strncasecmp.c: Likewise.
54443
54444 2007-03-17  Bruno Haible  <bruno@clisp.org>
54445
54446         * modules/stdlib (Depends-on): Add unistd.
54447         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54448         Needed for MacOS X 10.3.
54449
54450 2007-03-17  Bruno Haible  <bruno@clisp.org>
54451
54452         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54453
54454 2007-03-17  Bruno Haible  <bruno@clisp.org>
54455
54456         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54457
54458 2007-03-17  Bruno Haible  <bruno@clisp.org>
54459
54460         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54461         to reflect files copied from gnulib (with or without modifications).
54462         Suggested by Jim Meyering.
54463
54464 2007-03-17  Eric Blake  <ebb9@byu.net>
54465
54466         * NEWS: Document stdlib change from 2007-02-18.
54467
54468 2007-03-17  Jim Meyering  <jim@meyering.net>
54469
54470         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54471         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54472         someone uses a name containing shell meta-characters.
54473         Reported by Alfred M. Szmidt.
54474
54475         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54476
54477 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54478
54479         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54480         and copy gettext configuration files only if configure.ac contains
54481         a use of AM_GNU_GETTEXT_VERSION.
54482
54483 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54484
54485         * build-aux/bootstrap (gnulib_name): New variable.
54486         (gnulib_tool_options): Use it.
54487
54488 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54489
54490         * tests/test-des.c: Use new namespace.
54491
54492 2007-03-15  Bruno Haible  <bruno@clisp.org>
54493
54494         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54495         Reported by James Youngman <jay@gnu.org>.
54496
54497 2007-03-15  Bruno Haible  <bruno@clisp.org>
54498
54499         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54500         declared prototype. Needed with cc on OSF/1 5.1.
54501
54502 2007-03-15  Bruno Haible  <bruno@clisp.org>
54503
54504         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54505         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54506         (struct gl_list_implementation): Add dispose_fn argument to the
54507         'create_empty', 'create' methods.
54508         (struct gl_list_impl_base): Add field 'dispose_fn'.
54509         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54510         argument.
54511         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54512         dispose_fn argument.
54513         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54514         dispose_fn on the dropped values.
54515         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54516         dispose_fn argument.
54517         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54518         dropped values.
54519         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54520         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54521         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54522         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54523         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54524         argument.
54525         (gl_tree_list_free): Call dispose_fn on the dropped values.
54526         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54527         the dropped values.
54528         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54529         Add dispose_fn argument.
54530         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54531         Call dispose_fn on the dropped values.
54532         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54533         Add dispose_fn argument.
54534         (gl_sublist_create): Initialize the 'dispose_fn' field.
54535         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54536         * tests/test-array_list.c (main): Update.
54537         * tests/test-carray_list.c (main): Update.
54538         * tests/test-avltree_list.c (main): Update.
54539         * tests/test-rbtree_list.c (main): Update.
54540         * tests/test-avltreehash_list.c (main): Update.
54541         * tests/test-rbtreehash_list.c (main): Update.
54542         * tests/test-linked_list.c (main): Update.
54543         * tests/test-linkedhash_list.c (main): Update.
54544         * tests/test-array_oset.c (main): Update.
54545
54546 2007-03-15  Bruno Haible  <bruno@clisp.org>
54547
54548         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54549         (gl_oset_create_empty): Add dispose_fn argument.
54550         (struct gl_oset_implementation): Add dispose_fn argument to
54551         'create_empty' method.
54552         (struct gl_oset_impl_base): Add dispose_fn field.
54553         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54554         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54555         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54556         values.
54557         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54558         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54559         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54560         dropped value.
54561         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54562         dropped value.
54563         * tests/test-array_oset.c (main): Update.
54564         * tests/test-avltree_oset.c (main): Update.
54565         * tests/test-rbtree_oset.c (main): Update.
54566         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54567
54568 2007-03-13  Bruno Haible  <bruno@clisp.org>
54569
54570         * tests/test-stdbool.c (i): Update after last patch.
54571
54572 2007-03-12  Bruno Haible  <bruno@clisp.org>
54573
54574         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54575         the iswprint macro. Needed on Solaris 2.5.1.
54576
54577 2007-03-12  Bruno Haible  <bruno@clisp.org>
54578
54579         * tests/test-printf-frexp.c (main): Declare x as volatile.
54580
54581 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54582
54583         * doc/gnulib.texi (Build robot for gnulib): New section.
54584
54585 2007-03-12  Jim Meyering  <jim@meyering.net>
54586
54587         * build-aux/bootstrap: New file.
54588         * build-aux/bootstrap.conf: New file, from coreutils.
54589
54590 2007-03-11  Bruno Haible  <bruno@clisp.org>
54591
54592         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54593
54594 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54595
54596         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54597         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54598         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54599
54600 2007-03-11  Bruno Haible  <bruno@clisp.org>
54601
54602         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54603         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54604
54605 2007-03-11  Bruno Haible  <bruno@clisp.org>
54606
54607         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54608         formula. Needed for SunPRO C 5.0.
54609
54610 2007-03-11  Bruno Haible  <bruno@clisp.org>
54611
54612         * modules/long-options (Depends-on): Add getopt.
54613
54614 2007-03-11  Bruno Haible  <bruno@clisp.org>
54615
54616         * modules/modechange (Depends-on): Add stdbool.
54617
54618 2007-03-11  Bruno Haible  <bruno@clisp.org>
54619
54620         * modules/i-ring (Depends-on): Add stdbool.
54621
54622 2007-03-11  Bruno Haible  <bruno@clisp.org>
54623
54624         * modules/gc-des (Depends-on): Add stdbool.
54625
54626 2007-03-11  Bruno Haible  <bruno@clisp.org>
54627
54628         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54629
54630 2007-03-11  Bruno Haible  <bruno@clisp.org>
54631
54632         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54633
54634 2007-03-11  Bruno Haible  <bruno@clisp.org>
54635
54636         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54637
54638 2007-03-11  Bruno Haible  <bruno@clisp.org>
54639
54640         * lib/vasnprintf.c (sprintf): Undefine.
54641
54642 2007-03-11  Bruno Haible  <bruno@clisp.org>
54643
54644         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54645         initializers in SunPRO C and Compaq C compilers.
54646
54647 2007-03-11  Bruno Haible  <bruno@clisp.org>
54648
54649         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54650         decrementing code ANSI C compliant.
54651
54652 2007-03-11  Bruno Haible  <bruno@clisp.org>
54653
54654         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54655         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54656
54657 2007-03-11  Bruno Haible  <bruno@clisp.org>
54658
54659         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54660         <stdbool.h> substitute doesn't pass.
54661
54662 2007-03-11  Bruno Haible  <bruno@clisp.org>
54663
54664         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54665
54666 2007-03-11  Bruno Haible  <bruno@clisp.org>
54667
54668         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54669         script, for submission to autobuild.josefsson.org.
54670
54671 2007-03-10  Bruno Haible  <bruno@clisp.org>
54672
54673         * modules/canonicalize-lgpl-tests: New file.
54674         * tests/test-canonicalize-lgpl.sh: New file.
54675         * tests/test-canonicalize-lgpl.c: New file.
54676
54677         * modules/c-strcase-tests: New file.
54678         * tests/test-c-strcase.sh: New file.
54679         * tests/test-c-strcasecmp.c: New file.
54680         * tests/test-c-strncasecmp.c: New file.
54681
54682         * modules/atexit-tests: New file.
54683         * tests/test-atexit.sh: New file.
54684         * tests/test-atexit.c: New file.
54685
54686 2007-03-10  Bruno Haible  <bruno@clisp.org>
54687
54688         * tests/test-binary-io.sh: Use temporary filenames that are not so
54689         likely to clash with those of other tests (in a parallel make).
54690         * tests/test-binary-io.c: Likewise.
54691
54692 2007-03-10  Bruno Haible  <bruno@clisp.org>
54693
54694         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54695         fallback; use #error instead.
54696         Suggested by Simon Josefsson.
54697
54698 2007-03-10  Bruno Haible  <bruno@clisp.org>
54699
54700         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54701         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54702         first and the last.
54703
54704 2007-03-10  Bruno Haible  <bruno@clisp.org>
54705
54706         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54707
54708 2007-03-10  Bruno Haible  <bruno@clisp.org>
54709
54710         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54711         "make distcheck".
54712         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54713         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54714         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54715
54716 2007-03-10  Bruno Haible  <bruno@clisp.org>
54717
54718         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54719         variable.
54720         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54721         variable.
54722
54723 2007-03-09  Eric Blake  <ebb9@byu.net>
54724         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54725
54726         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54727         types are not being provided by gnulib.
54728         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54729         types are supported.
54730
54731 2007-03-10  Bruno Haible  <bruno@clisp.org>
54732
54733         * lib/stdio_.h (__attribute__): New macro.
54734         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54735         vsprintf): Specify __attribute__ __format__ for GCC.
54736         Suggested by Eric Blake.
54737
54738 2007-03-09  Bruno Haible  <bruno@clisp.org>
54739
54740         * modules/printf-posix-tests: New file.
54741         * tests/test-printf-posix.sh: New file.
54742         * tests/test-printf-posix.c: New file.
54743
54744         * modules/printf-posix: New file.
54745         * lib/printf.c: New file.
54746         * m4/printf-posix-rpl.m4: New file.
54747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54748         REPLACE_PRINTF.
54749         * lib/stdio_.h (printf): New declaration.
54750         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54751         ____strfmon____): New macros.
54752         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54753         REPLACE_PRINTF.
54754
54755 2007-03-09  Bruno Haible  <bruno@clisp.org>
54756
54757         * tests/test-vasnprintf-posix2.sh: New file.
54758         * tests/test-vasnprintf-posix2.c: New file.
54759         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54760         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54761         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54762
54763         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54764         a locale dependent decimal point, rather than always '.'.
54765
54766 2007-03-09  Eric Blake  <ebb9@byu.net>
54767
54768         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54769         spite of platforms like Tandem/NSK that define it to -1.
54770
54771 2007-03-08  Bruno Haible  <bruno@clisp.org>
54772
54773         * modules/vprintf-posix-tests: New file.
54774         * tests/test-vprintf-posix.sh: New file.
54775         * tests/test-vprintf-posix.c: New file.
54776         * tests/test-printf-posix.h: New file.
54777
54778         * modules/vprintf-posix: New file.
54779         * lib/vprintf.c: New file.
54780         * m4/vprintf-posix.m4: New file.
54781         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54782         REPLACE_VPRINTF.
54783         * lib/stdio_.h (vprintf): New declaration.
54784         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54785         REPLACE_VPRINTF.
54786
54787 2007-03-08  Bruno Haible  <bruno@clisp.org>
54788
54789         * modules/fprintf-posix-tests: New file.
54790         * tests/test-fprintf-posix.sh: New file.
54791         * tests/test-fprintf-posix.c: New file.
54792
54793         * modules/fprintf-posix: New file.
54794         * lib/fprintf.c: New file.
54795         * m4/fprintf-posix.m4: New file.
54796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54797         REPLACE_FPRINTF.
54798         * lib/stdio_.h (fprintf): New declaration.
54799         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54800         REPLACE_FPRINTF.
54801
54802 2007-03-08  Bruno Haible  <bruno@clisp.org>
54803
54804         * modules/vfprintf-posix-tests: New file.
54805         * tests/test-vfprintf-posix.sh: New file.
54806         * tests/test-vfprintf-posix.c: New file.
54807         * tests/test-fprintf-posix.h: New file.
54808         * tests/test-fprintf-posix.out: New file.
54809
54810         * modules/vfprintf-posix: New file.
54811         * lib/vfprintf.c: New file.
54812         * m4/vfprintf-posix.m4: New file.
54813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54814         REPLACE_VFPRINTF.
54815         * lib/stdio_.h (vfprintf): New declaration.
54816         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54817         REPLACE_VFPRINTF.
54818
54819 2007-03-08  Bruno Haible  <bruno@clisp.org>
54820
54821         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54822
54823 2007-03-08  Bruno Haible  <bruno@clisp.org>
54824
54825         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54826         instead of 'expr' invocations.
54827         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54828         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54829         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54830         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54831         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54832         Suggested by Paul Eggert.
54833
54834 2007-03-08  Bruno Haible  <bruno@clisp.org>
54835
54836         * modules/fseterr-tests: New file.
54837         * tests/test-fseterr.c: New file.
54838
54839         * modules/fseterr: New file.
54840         * lib/fseterr.h: New file.
54841         * lib/fseterr.c: New file.
54842
54843 2007-03-08  Bruno Haible  <bruno@clisp.org>
54844
54845         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54846         * lib/getopt_.h: Likewise.
54847         * lib/mbswidth.h: Likewise.
54848         * lib/setenv.h: Likewise.
54849         * lib/vasnprintf.h: Likewise.
54850         * lib/vasprintf.h: Likewise.
54851         * lib/verror.h: Likewise.
54852         * lib/xsetenv.h: Likewise.
54853         * lib/xvasprintf.h: Likewise.
54854
54855 2007-03-08  Jim Meyering  <jim@meyering.net>
54856
54857         * users.txt: Add parted.
54858
54859         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54860
54861 2007-03-07  Bruno Haible  <bruno@clisp.org>
54862
54863         * m4/printf.m4: Make the shell script snippets copy&pastable.
54864
54865 2007-03-02  Bruno Haible  <bruno@clisp.org>
54866
54867         * lib/netinet_in_.h: New file.
54868         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54869         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54870         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54871         (Depends-on): Add absolute-header.
54872         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54873         into netinet/in.h.
54874
54875 2007-03-03  Bruno Haible  <bruno@clisp.org>
54876
54877         * lib/sys_select_.h: New file.
54878         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54879         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54880         * modules/sys_select (Files): Add lib/sys_select_.h.
54881         (Depends-on): Add absolute-header.
54882         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54883         into sys/select.h.
54884
54885 2007-03-02  Bruno Haible  <bruno@clisp.org>
54886
54887         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54888         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54889         values.
54890         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54891         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54892         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54893         * modules/sys_socket (Depends-on): Add absolute-header.
54894         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54895         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54896         (Include): Remove requirement of inclusion of <sys/types.h>.
54897
54898 2007-03-02  Bruno Haible  <bruno@clisp.org>
54899
54900         * lib/byteswap_.h (bswap_32): Fix formula.
54901
54902 2007-03-06  Bruno Haible  <bruno@clisp.org>
54903
54904         * modules/sprintf-posix-tests: New file.
54905         * tests/test-sprintf-posix.c: New file.
54906
54907         * modules/sprintf-posix: New file.
54908         * lib/sprintf.c: New file.
54909         * m4/sprintf-posix.m4: New file.
54910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54911         REPLACE_SPRINTF.
54912         * lib/stdio_.h (sprintf): New declaration.
54913         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54914         REPLACE_SPRINTF.
54915
54916 2007-03-06  Bruno Haible  <bruno@clisp.org>
54917
54918         * modules/vsprintf-posix-tests: New file.
54919         * tests/test-vsprintf-posix.c: New file.
54920         * tests/test-sprintf-posix.h: New file.
54921
54922         * modules/vsprintf-posix: New file.
54923         * lib/vsprintf.c: New file.
54924         * m4/vsprintf-posix.m4: New file.
54925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54926         REPLACE_VSPRINTF.
54927         * lib/stdio_.h (vsprintf): New declaration.
54928         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54929         REPLACE_VSPRINTF.
54930
54931 2007-03-06  Bruno Haible  <bruno@clisp.org>
54932
54933         * modules/vsnprintf (Depend-on): Remove minmax.
54934
54935 2007-03-06  Bruno Haible  <bruno@clisp.org>
54936
54937         * modules/snprintf-posix-tests: New file.
54938         * tests/test-snprintf-posix.c: New file.
54939
54940         * modules/snprintf-posix: New file.
54941         * m4/snprintf-posix.m4: New file.
54942         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54943         gl_FUNC_SNPRINTF.
54944         (gl_FUNC_SNPRINTF): Invoke it.
54945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54946         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54947         is set.
54948         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54949
54950 2007-03-06  Bruno Haible  <bruno@clisp.org>
54951
54952         * modules/vsnprintf-posix-tests: New file.
54953         * tests/test-vsnprintf-posix.c: New file.
54954         * tests/test-snprintf-posix.h: New file.
54955
54956         * modules/vsnprintf-posix: New file.
54957         * m4/vsnprintf-posix.m4: New file.
54958         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54959         gl_FUNC_VSNPRINTF.
54960         (gl_FUNC_VSNPRINTF): Invoke it.
54961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54962         * lib/stdio_.h (vsnprintf): Define as a replacement if
54963         REPLACE_VSNPRINTF is set.
54964         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54965
54966 2007-03-06  Bruno Haible  <bruno@clisp.org>
54967
54968         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54969         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54970
54971 2007-03-06  Bruno Haible  <bruno@clisp.org>
54972
54973         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54974         (asinl): Declare also if HAVE_DECL_ASINL is set.
54975         (atanl): Declare also if HAVE_DECL_ATANL is set.
54976         (ceill): Declare also if HAVE_DECL_CEILL is set.
54977         (cosl): Declare also if HAVE_DECL_COSL is set.
54978         (expl): Declare also if HAVE_DECL_EXPL is set.
54979         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54980         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54981         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54982         (logl): Declare also if HAVE_DECL_LOGL is set.
54983         (sinl): Declare also if HAVE_DECL_SINL is set.
54984         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54985         (tanl): Declare also if HAVE_DECL_TANL is set.
54986         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54988         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54989         declaration of frexpl, ldexpl.
54990         * modules/printf-frexpl (Depends-on): Add math.
54991         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54992
54993 2007-03-05  Bruno Haible  <bruno@clisp.org>
54994
54995         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54996         frexpl and ldexpl are declared.
54997         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54998
54999 2007-03-05  Bruno Haible  <bruno@clisp.org>
55000
55001         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
55002         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
55003
55004 2007-03-05  Bruno Haible  <bruno@clisp.org>
55005
55006         * lib/stdio_.h: Include <stddef.h>.
55007
55008 2007-03-05  Bruno Haible  <bruno@clisp.org>
55009
55010         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
55011
55012 2007-03-05  Bruno Haible  <bruno@clisp.org>
55013
55014         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
55015         NetBSD 4, from Ralf Wildenhues.
55016
55017 2007-03-04  Bruno Haible  <bruno@clisp.org>
55018
55019         * lib/vasprintf.h: Update #if logic for the case when the functions
55020         exist but are overridden.
55021
55022 2007-03-04  Bruno Haible  <bruno@clisp.org>
55023
55024         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
55025         implementations: glibc-2.4 and MacOS X 10.3.
55026         * tests/test-vasnprintf-posix.c (test_function): Test also the case
55027         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
55028         * tests/test-vasprintf-posix.c (test_function): Likewise.
55029
55030 2007-03-04  Bruno Haible  <bruno@clisp.org>
55031
55032         * modules/vasprintf-posix-tests: New file.
55033         * tests/test-vasprintf-posix.c: New file.
55034
55035         * modules/vasprintf-posix: New file.
55036         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
55037         defined.
55038         * m4/vasprintf-posix.m4: New file.
55039         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
55040         gl_FUNC_VASPRINTF.
55041         (gl_FUNC_VASPRINTF): Invoke it.
55042         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
55043         here.
55044         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
55045
55046 2007-03-04  Bruno Haible  <bruno@clisp.org>
55047
55048         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
55049         REPLACE_GETTIMEOFDAY.
55050         * modules/sys_time (Makefile.am): Likewise.
55051         * m4/sys_time_h.m4: Likewise.
55052         * m4/gettimeofday.m4: Likewise.
55053
55054 2007-03-04  Bruno Haible  <bruno@clisp.org>
55055
55056         * modules/vasnprintf-posix-tests: New file.
55057         * tests/test-vasnprintf-posix.c: New file.
55058
55059         * modules/vasnprintf-posix: New file.
55060         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
55061         printf-frexpl.h.
55062         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
55063         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
55064         REPLACE_VASNPRINTF is defined.
55065         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
55066         gl_FUNC_VASNPRINTF.
55067         (gl_FUNC_VASNPRINTF): Invoke it.
55068         * m4/vasnprintf-posix.m4: New file.
55069         * m4/printf.m4: New file.
55070
55071 2007-03-04  Bruno Haible  <bruno@clisp.org>
55072
55073         Compile progreloc.c only if --enable-relocatable is specified.
55074         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
55075         if --enable-relocatable was specified.
55076         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
55077         lib_SOURCES.
55078
55079 2007-03-04  Jim Meyering  <jim@meyering.net>
55080
55081         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
55082         Use it consistently, rather than enumerating errno constants.
55083
55084 2007-03-04  Bruno Haible  <bruno@clisp.org>
55085
55086         * modules/xvasprintf-tests: New file.
55087         * tests/test-xvasprintf.c: New file.
55088
55089         * modules/vasprintf-tests: New file.
55090         * tests/test-vasprintf.c: New file.
55091
55092         * modules/vasnprintf-tests: New file.
55093         * tests/test-vasnprintf.c: New file.
55094
55095         * modules/vsnprintf-tests: New file.
55096         * tests/test-vsnprintf.c: New file.
55097
55098         * modules/snprintf-tests: New file.
55099         * tests/test-snprintf.c: New file.
55100
55101 2007-03-04  Bruno Haible  <bruno@clisp.org>
55102
55103         Compile relocatable.c only if --enable-relocatable is specified.
55104         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
55105         gl_RELOCATABLE_LIBRARY.
55106         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
55107         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
55108         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
55109         gl_RELOCATABLE_LIBRARY.
55110         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
55111         (Makefile.am): Remove lib_SOURCES.
55112         * modules/relocatable-lib-lgpl (configure.ac): Invoke
55113         gl_RELOCATABLE_LIBRARY.
55114         (Makefile.am): Remove lib_SOURCES.
55115         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
55116         always.
55117         * modules/relocatable-prog-wrapper (configure.ac): Invoke
55118         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
55119
55120 2007-03-04  Bruno Haible  <bruno@clisp.org>
55121
55122         * modules/argmatch-tests: New file.
55123         * tests/test-argmatch.c: New file.
55124
55125         * tests/test-allocsa.c (main): Halve the number of loop runs.
55126
55127         * modules/alloca-opt-tests: New file.
55128         * tests/test-alloca-opt.c: New file.
55129
55130 2007-03-04  Jim Meyering  <jim@meyering.net>
55131
55132         Work around difference between Linux ACLs and Solaris 10 ZFS.
55133         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
55134         for EINVAL.
55135
55136 2007-03-03  Bruno Haible  <bruno@clisp.org>
55137
55138         * modules/relocatable-prog (Depends-on): Add back progreloc's
55139         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
55140
55141 2007-03-03  Bruno Haible  <bruno@clisp.org>
55142
55143         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
55144         * modules/relocatable-lib: New file.
55145
55146 2007-03-03  Bruno Haible  <bruno@clisp.org>
55147
55148         * modules/relocatable-prog: Renamed from modules/relocatable.
55149         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
55150
55151 2007-03-03  Bruno Haible  <bruno@clisp.org>
55152
55153         * modules/relocatable-script (Files): Add doc/relocatable.texi,
55154         m4/relocatable-lib.m4.
55155         (Depends-on): Remove 'relocatable'.
55156         (configure.ac): Add gl_RELOCATABLE_NOP.
55157
55158 2007-03-03  Bruno Haible  <bruno@clisp.org>
55159
55160         * modules/relocatable-prog-wrapper: New file.
55161         * modules/relocatable (Depends-on): Add it. Remove all other
55162         dependencies except progname.
55163         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
55164
55165         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
55166         (gl_FUNC_STRERROR): Nop.
55167         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
55168
55169         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
55170         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
55171
55172         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
55173         (gl_FUNC_READLINK): Update.
55174
55175         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
55176
55177 2007-03-03  Bruno Haible  <bruno@clisp.org>
55178
55179         * lib/xreadlink.c: Include <unistd.h> unconditionally.
55180         * modules/xreadlink (Depends-on): Add unistd.
55181         * modules/xreadlink-with-size (Depends-on): Likewise.
55182
55183 2007-03-03  Bruno Haible  <bruno@clisp.org>
55184
55185         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
55186         extracted from gt_FUNC_SETENV.
55187         (gt_FUNC_SETENV): Remove macro.
55188         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
55189         remove gt_FUNC_SETENV.
55190
55191 2007-03-03  Bruno Haible  <bruno@clisp.org>
55192
55193         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
55194         ENABLE_RELOCATABLE here.
55195         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
55196
55197 2007-03-03  Bruno Haible  <bruno@clisp.org>
55198
55199         * modules/rbtreehash-list-tests (Depends-on): Add progname.
55200         * tests/test-rbtreehash_list.c: Include progname.h.
55201         (main): Call set_program_name.
55202
55203         * modules/rbtree-oset-tests (Depends-on): Add progname.
55204         * tests/test-rbtree_oset.c: Include progname.h.
55205         (main): Call set_program_name.
55206
55207         * modules/rbtree-list-tests (Depends-on): Add progname.
55208         * tests/test-rbtree_list.c: Include progname.h.
55209         (main): Call set_program_name.
55210
55211         * modules/linked-list-tests (Depends-on): Add progname.
55212         * tests/test-linked_list.c: Include progname.h.
55213         (main): Call set_program_name.
55214
55215 2007-03-03  Bruno Haible  <bruno@clisp.org>
55216
55217         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
55218         All uses of __restrict changed to _Restrict_.
55219         * lib/glob_.h (__restrict): Remove macro.
55220
55221 2007-03-02  Bruno Haible  <bruno@clisp.org>
55222
55223         * modules/gettext (configure.ac): Require gettext infrastructure
55224         from version 0.16.1.
55225
55226 2007-03-02  Bruno Haible  <bruno@clisp.org>
55227
55228         * modules/linkedhash-list-tests (Depends-on): Add progname.
55229         * tests/test-linkedhash_list.c: Include progname.h.
55230         (main): Call set_program_name.
55231
55232         * modules/carray-list-tests (Depends-on): Add progname.
55233         * tests/test-carray_list.c: Include progname.h.
55234         (main): Call set_program_name.
55235
55236         * modules/avltreehash-list-tests (Depends-on): Add progname.
55237         * tests/test-avltreehash_list.c: Include progname.h.
55238         (main): Call set_program_name.
55239
55240         * modules/avltree-oset-tests (Depends-on): Add progname.
55241         * tests/test-avltree_oset.c: Include progname.h.
55242         (main): Call set_program_name.
55243
55244         * modules/avltree-list-tests (Depends-on): Add progname.
55245         * tests/test-avltree_list.c: Include progname.h.
55246         (main): Call set_program_name.
55247
55248         * modules/array-oset-tests (Depends-on): Add progname.
55249         * tests/test-array_oset.c: Include progname.h.
55250         (main): Call set_program_name.
55251
55252         * modules/array-list-tests (Depends-on): Add progname.
55253         * tests/test-array_list.c: Include progname.h.
55254         (main): Call set_program_name.
55255
55256         * modules/argp-tests (Depends-on): Add progname.
55257         * tests/test-argp.c: Include argp.h first. Include progname.h.
55258         (main): Call set_program_name.
55259
55260 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55261
55262         * doc/gnulib-tool.texi (Initial import): Reword description of
55263         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55264         limited effect even if defined after the first system include.
55265
55266 2007-03-01  Bruno Haible  <bruno@clisp.org>
55267
55268         * build-aux/config.libpath: Update to libtool-1.5.22.
55269         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55270
55271 2007-03-01  Bruno Haible  <bruno@clisp.org>
55272
55273         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55274         foo_CFLAGS.
55275         Reported by Ralf Wildenhues.
55276
55277 2007-03-01  Bruno Haible  <bruno@clisp.org>
55278
55279         * build-aux/install-reloc: Remove object files left over by some
55280         compilers.
55281         Reported by Ralf Wildenhues.
55282
55283 2007-03-01  Bruno Haible  <bruno@clisp.org>
55284
55285         * build-aux/install-reloc: Break long lines.
55286
55287 2007-03-01  Bruno Haible  <bruno@clisp.org>
55288
55289         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55290         Reported by Ralf Wildenhues.
55291
55292 2007-03-01  Bruno Haible  <bruno@clisp.org>
55293
55294         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55295         include ordering constraints.
55296
55297 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55298
55299         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55300         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55301         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55302         as another example.
55303         * lib/time_.h: Fix misspelling.
55304         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55305         Require gl_HEADER_TIME_H_DEFAULTS.
55306         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55307         * m4/time_r.m4 (gl_TIME_R): Likewise.
55308         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55309
55310 2007-03-01  Bruno Haible  <bruno@clisp.org>
55311
55312         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55313         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55314
55315 2007-03-01  Jim Meyering  <jim@meyering.net>
55316
55317         * modules/xreadlink (Maintainer): Add my name.
55318         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55319
55320 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55321             Bruno Haible  <bruno@clisp.org>
55322
55323         * build-aux/install-reloc: Compile also c-ctype.c.
55324         * build-aux/relocatable.sh.in: New file.
55325         * doc/relocatable.texi: New file.
55326         * doc/relocatable-maint.texi: New file.
55327         * doc/gnulib.texi: Include relocatable-maint.texi.
55328         * lib/progreloc.c: Include unistd.h unconditionally.
55329         * lib/relocwrapper.c: Include unistd.h unconditionally.
55330         Include c-ctype.h.
55331         (add_dotbin): Use c_tolower.
55332         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55333         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55334         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55335         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55336         to m4/relocatable-lib.m4.
55337         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55338         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55339         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55340         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55341         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55342         * modules/relocatable: New file.
55343         * modules/relocatable-lib: New file.
55344         * modules/relocatable-script: New file.
55345
55346 2007-02-28  Bruno Haible  <bruno@clisp.org>
55347
55348         Import --enable-relocatable infrastructure.
55349         * build-aux/config.libpath: New file, from GNU gettext.
55350         * build-aux/install-reloc: New file, from GNU gettext.
55351         * build-aux/reloc-ldflags: New file, from GNU gettext.
55352         * lib/relocatable.h: New file, from GNU gettext.
55353         * lib/relocatable.c: New file, from GNU gettext.
55354         * lib/relocwrapper.c: New file, from GNU gettext.
55355         * m4/relocatable.m4: New file, from GNU gettext.
55356
55357 2007-02-28  Bruno Haible  <bruno@clisp.org>
55358
55359         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55360
55361         * modules/xreadlink: New file, from GNU gettext with modifications.
55362         * lib/xreadlink.c: New file, from GNU gettext.
55363         * lib/xreadlink.h: Add comments.
55364         (xreadlink): New declaration.
55365
55366         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55367         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55368         lib/xreadlink-with-size.c.
55369         (configure.ac): Remove gl_XREADLINK invocation.
55370         (Makefile.am): Augment lib_SOURCES.
55371         * m4/xreadlink.m4: Remove file.
55372         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55373         (xreadlink_with_size): Renamed from xreadink.
55374         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55375         * modules/canonicalize (Depends-on): Replace xreadlink with
55376         xreadlink-with-size.
55377         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55378
55379 2007-02-25  Jim Meyering  <jim@meyering.net>
55380
55381         * build-aux/announce-gen: When complaining about excess arguments,
55382         list them.
55383
55384 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55385
55386         * README: Document signed integer overflow situation more
55387         accurately.
55388
55389 2007-02-25  Bruno Haible  <bruno@clisp.org>
55390
55391         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55392         'a' or 'A' conversion.
55393
55394 2007-02-25  Bruno Haible  <bruno@clisp.org>
55395
55396         * modules/filename: Renamed from modules/pathname.
55397         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55398         lib/concatpath.c with lib/concat-filename.c.
55399         (Makefile.am): Update.
55400         (Include): Replace pathname.h with filename.h.
55401         * lib/filename.h: Renamed from lib/pathname.h.
55402         (concatenated_filename): Renamed from concatenated_pathname.
55403         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55404         (concatenated_filename): Renamed from concatenated_pathname.
55405         * lib/findprog.c: Include filename.h instead of pathname.h.
55406         (find_in_path): Update.
55407         * lib/javacomp.c: Include filename.h instead of pathname.h.
55408         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55409         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55410         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55411         is_oldgcj_14_13_usable, is_javac_usable): Update.
55412         * lib/javaexec.c: Include filename.h instead of pathname.h.
55413         (execute_java_class): Update.
55414         * modules/findprog: Update.
55415         * modules/javacomp: Update.
55416         * modules/javaexec: Update.
55417         * MODULES.html.sh (File system functions): Add 'filename', remove
55418         'pathname'.
55419
55420 2007-02-25  Bruno Haible  <bruno@clisp.org>
55421
55422         * modules/printf-frexpl-tests: New file.
55423         * tests/test-printf-frexpl.c: New file.
55424
55425         * modules/printf-frexpl: New file.
55426         * lib/printf-frexpl.h: New file.
55427         * lib/printf-frexpl.c: New file.
55428         * m4/printf-frexpl.m4: New file.
55429
55430 2007-02-25  Bruno Haible  <bruno@clisp.org>
55431
55432         * modules/printf-frexp-tests: New file.
55433         * tests/test-printf-frexp.c: New file.
55434
55435         * modules/printf-frexp: New file.
55436         * lib/printf-frexp.h: New file.
55437         * lib/printf-frexp.c: New file.
55438         * m4/printf-frexp.m4: New file.
55439
55440 2007-02-25  Bruno Haible  <bruno@clisp.org>
55441
55442         Assume automake >= 1.10 for the tests.
55443         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55444         * modules/arctwo-tests: Likewise.
55445         * modules/argp-tests: Likewise.
55446         * modules/avltree-list-tests: Likewise.
55447         * modules/avltree-oset-tests: Likewise.
55448         * modules/avltreehash-list-tests: Likewise.
55449         * modules/carray-list-tests: Likewise.
55450         * modules/crc-tests: Likewise.
55451         * modules/des-tests: Likewise.
55452         * modules/gc-arcfour-tests: Likewise.
55453         * modules/gc-arctwo-tests: Likewise.
55454         * modules/gc-des-tests: Likewise.
55455         * modules/gc-hmac-md5-tests: Likewise.
55456         * modules/gc-hmac-sha1-tests: Likewise.
55457         * modules/gc-md2-tests: Likewise.
55458         * modules/gc-md4-tests: Likewise.
55459         * modules/gc-md5-tests: Likewise.
55460         * modules/gc-pbkdf2-sha1-tests: Likewise.
55461         * modules/gc-rijndael-tests: Likewise.
55462         * modules/gc-sha1-tests: Likewise.
55463         * modules/gc-tests: Likewise.
55464         * modules/getaddrinfo-tests: Likewise.
55465         * modules/hmac-md5-tests: Likewise.
55466         * modules/hmac-sha1-tests: Likewise.
55467         * modules/linked-list-tests: Likewise.
55468         * modules/linkedhash-list-tests: Likewise.
55469         * modules/lock-tests: Likewise.
55470         * modules/md2-tests: Likewise.
55471         * modules/md4-tests: Likewise.
55472         * modules/md5-tests: Likewise.
55473         * modules/rbtree-list-tests: Likewise.
55474         * modules/rbtree-oset-tests: Likewise.
55475         * modules/rbtreehash-list-tests: Likewise.
55476         * modules/read-file-tests: Likewise.
55477         * modules/rijndael-tests: Likewise.
55478         * modules/stdint-tests: Likewise.
55479         * modules/tls-tests: Likewise.
55480
55481 2007-02-24  Bruno Haible  <bruno@clisp.org>
55482
55483         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55484         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55485         function; instead check whether isnan with a double argument links.
55486         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55487         function; instead check whether isnan with a 'long double' argument
55488         links.
55489         Reported by Eric Blake <ebb9@byu.net>.
55490
55491 2007-02-24  Bruno Haible  <bruno@clisp.org>
55492
55493         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55494         defined.
55495         * lib/isnanl.c: Remove all code. Just include isnan.c.
55496         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55497
55498 2007-02-25  Jim Meyering  <jim@meyering.net>
55499
55500         Avoid conflicting types for 'unsetenv' on FreeBSD.
55501         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55502         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55503         in stdlib.h.
55504
55505 2007-02-24  Bruno Haible  <bruno@clisp.org>
55506
55507         * modules/isnanl-nolibm-tests: New file.
55508         * tests/test-isnanl.c: New file.
55509
55510         * modules/isnanl-nolibm: New file.
55511         * lib/isnanl.h: New file.
55512         * lib/isnanl.c: New file.
55513         * m4/isnanl.m4: New file.
55514
55515 2007-02-24  Bruno Haible  <bruno@clisp.org>
55516
55517         * modules/isnan-nolibm-tests: New file.
55518         * tests/test-isnan.c: New file.
55519
55520         * modules/isnan-nolibm: New file.
55521         * lib/isnan.h: New file.
55522         * lib/isnan.c: New file.
55523         * m4/isnan.m4: New file.
55524
55525 2007-02-24  Bruno Haible  <bruno@clisp.org>
55526
55527         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55528         assume that an exponent fits in 20 bits.
55529
55530 2007-02-24  Jim Meyering  <jim@meyering.net>
55531
55532         * m4/regex.m4: Update the description of the configure-time option,
55533         --without-included-regex, to state accurately what the defaults are,
55534         and perhaps to give people an idea why using this option is risky.
55535
55536 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55537
55538         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55539         loops on small arguments.  This attempts to avoid the problem
55540         Bruno Haible reported for AIX 4.3.2 in
55541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55542
55543 2007-02-23  Bruno Haible  <bruno@clisp.org>
55544
55545         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55546         Needed for help2man.
55547
55548 2007-02-23  Karl Berry  <karl@gnu.org>
55549
55550         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55551         exists, foo.h should be cvs-ignored, not committed.
55552
55553 2007-02-23  Eric Blake  <ebb9@byu.net>
55554
55555         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55556         * lib/stat-time.h (includes): Likewise.
55557         * lib/utimecmp.c (includes): Likewise.
55558         * lib/utimens.h (includes): Likewise.
55559         * lib/getdate.y (includes): Also include "timespec.h" for use
55560         internal to the module.
55561         * modules/utimens (Depends-on): Revert yesterday's patch.
55562         * modules/nanosleep (Depends-on): Add missing dependency.
55563
55564 2007-02-22  Bruno Haible  <bruno@clisp.org>
55565
55566         * lib/glob.c: Don't include getlogin_r.h.
55567
55568 2007-02-22  Jim Meyering  <jim@meyering.net>
55569
55570         * modules/utimens (Depends-on): Add timespec, required for
55571         utimens.h's inclusion of timespec.h.
55572
55573 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55574
55575         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55576         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55577         Schwab in
55578         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55579         I'll try to think of a better way to fix the Solaris problem.
55580
55581         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55582         like glibc; on Solaris 10, it fails with errno == EINVAL.
55583         POSIX says the behavior is unspecified if the first argument is NULL,
55584         so play it safe and never pass NULL to the system getcwd.
55585
55586 2007-02-21  Jim Meyering  <jim@meyering.net>
55587
55588         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55589         of gettimeofday.  It would conflict with the one now always
55590         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55591         an IRIX 6.5 build failure.
55592
55593 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         Minor fixups to port to Solaris 10 with Sun C 5.8.
55596         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55597         * modules/getcwd (Depends-on): Add dirfd.
55598         * lib/putenv.c (putenv): #undef it.
55599         (rpl_putenv): New decl.
55600         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55601
55602 2007-02-20  Bruno Haible  <bruno@clisp.org>
55603
55604         * modules/stdio-tests: New file.
55605         * tests/test-stdio.c: New file.
55606
55607         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55608         (Depends-on): Add stdio.
55609         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55610         (Include): Use <stdio.h> instead of vsnprintf.h.
55611         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55612         HAVE_DECL_VSNPRINTF.
55613         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55614
55615         * modules/snprintf (Files): Remove lib/snprintf.h.
55616         (Depends-on): Add stdio.
55617         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55618         (Include): Use <stdio.h> instead of snprintf.h.
55619         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55620         HAVE_DECL_SNPRINTF.
55621         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55622         * lib/getaddrinfo.c: Likewise.
55623
55624         * modules/stdio: New file.
55625         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55626         * lib/snprintf.h: Remove file.
55627         * lib/vsnprintf.h: Remove file.
55628         * lib/.cppi-disable: Remove snprintf.h.
55629         * m4/stdio_h.m4: New file.
55630         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55631
55632 2007-02-20  Jim Meyering  <jim@meyering.net>
55633
55634         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55635         used by e.g., mingw.  From Bruno Haible.
55636
55637 2007-02-19  Bruno Haible  <bruno@clisp.org>
55638
55639         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55640         warnings.
55641         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55642
55643 2007-02-19  Bruno Haible  <bruno@clisp.org>
55644
55645         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55646         from mingw users.
55647
55648 2007-02-19  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55651         warnings.
55652         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55653
55654 2007-02-19  Jim Meyering  <jim@meyering.net>
55655
55656         Don't use FD after a successful "fdopendir (fd)".
55657         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55658         Reset it by calling dirfd on the just-obtained DIR*.
55659
55660         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55661         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55662
55663 2007-02-18  Bruno Haible  <bruno@clisp.org>
55664
55665         * lib/readlink.c: Include <unistd.h>.
55666         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55667         HAVE_READLINK.
55668         * modules/readlink (Depends-on): Add unistd.
55669         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55670         (Include): Add <unistd.h>.
55671
55672         * lib/getlogin_r.h: Remove file.
55673         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55674         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55675         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55676         HAVE_DECL_GETLOGIN_R.
55677         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55678         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55679         (Include): Use <unistd.h> instead of getlogin_r.h.
55680
55681         * lib/getcwd.h: Remove file.
55682         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55683         * lib/xgetcwd.c: Likewise.
55684         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55685         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55686         * modules/getcwd (Files): Remove lib/getcwd.h.
55687         (Depends-on): Add unistd.
55688         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55689         (Include): Use <unistd.h> instad of getcwd.h.
55690
55691         * lib/ftruncate.c: Include <unistd.h> first.
55692         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55693         Set HAVE_FTRUNCATE.
55694         * modules/ftruncate (Depends-on): Add unistd.
55695         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55696
55697         * lib/fchdir.c: Include <unistd.h> first.
55698         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55699         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55700         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55701         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55702         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55703
55704         * lib/dup2.c: Include <unistd.h> first.
55705         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55706         HAVE_DUP2.
55707         * modules/dup2 (Depends-on): Add unistd.
55708         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55709
55710         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55711         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55712         REPLACE_CHOWN. Don't define chown as a macro here.
55713         * modules/chown (Depends-on): Add unistd.
55714         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55715
55716         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55717         Add definition for GL_LINK_WARNING.
55718         (chown, dup2): New declarations.
55719         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55720         link warning.
55721         (ftruncate): New declaration.
55722         (getcwd): New declaration, taken from old getcwd.h.
55723         (getlogin_r): New declaration, taken from old getlogin_r.h.
55724         (readlink): New declaration.
55725         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55726         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55727         (gl_PREREQ_UNISTD): Remove macro.
55728         (gl_UNISTD_MODULE_INDICATOR): New macro.
55729         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55730         many new variables. Don't set UNISTD_H.
55731         * modules/unistd (Description): Change.
55732         (Depends-on): Add link-warning.
55733         (configure.ac): Update.
55734         (Makefile.am): Create unistd.h always. Substitute many new variables
55735         into it.
55736
55737 2007-02-18  Bruno Haible  <bruno@clisp.org>
55738
55739         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55740         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55741         HAVE_GETSUBOPT.
55742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55743         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55744         * lib/getsubopt.h: Remove file.
55745         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55746         (Depends-on): Add stdlib.
55747         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55748         (Includes): Use <stdlib.h> instead of getsubopt.h.
55749         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55750         Set HAVE_GETSUBOPT.
55751         * lib/getsubopt.c: Don't include getsubopt.h.
55752
55753 2007-02-18  Bruno Haible  <bruno@clisp.org>
55754
55755         * modules/fchdir (Depends-on): Add dup2.
55756
55757 2007-02-18  Bruno Haible  <bruno@clisp.org>
55758
55759         * lib/stdlib_.h: Handle glibc's special invocation convention
55760         specially.
55761
55762 2007-02-18  Bruno Haible  <bruno@clisp.org>
55763
55764         * modules/stdlib-tests: New file.
55765         * tests/test-stdlib.c: New file.
55766
55767         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55768         (Depends-on): Add stdlib.
55769         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55770         (Includes): Use <stdlib.h> instead of mkstemp.h.
55771         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55772         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55773         * lib/mkstemp.c: Don't include mkstemp.h.
55774         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55775         * lib/stdlib--.h: Don't include mkstemp.h.
55776
55777         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55778         (Depends-on): Add stdlib.
55779         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55780         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55781         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55782         HAVE_MKDTEMP.
55783         * lib/mkdtemp.c: Don't include mkdtemp.h.
55784         * lib/clean-temp.c: Don't include mkdtemp.h.
55785
55786         * modules/exit (Files): Remove lib/exit.h.
55787         (Depends-on): Add stdlib.
55788         (Makefile.am): Remove lib_SOURCES.
55789         (Include): Use <stdlib.h> instead of exit.h.
55790         * lib/argmatch.c: Don't include exit.h.
55791         * lib/execute.c: Likewise.
55792         * lib/pagealign_alloc.c: Likewise.
55793         * lib/pipe.c: Likewise.
55794         * lib/wait-process.c: Likewise.
55795         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55796         * lib/exitfail.c: Likewise.
55797         * lib/savewd.c: Likewise.
55798         * lib/xsetenv.c: Likewise.
55799
55800         * modules/stdlib: New file.
55801         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55802         and extra comments about mkstemp().
55803         * lib/exit.h: Remove file.
55804         * lib/mkdtemp.h: Remove file.
55805         * lib/mkstemp.h: Remove file.
55806         * m4/stdlib_h.m4: New file.
55807         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55808
55809 2007-02-18  Bruno Haible  <bruno@clisp.org>
55810
55811         * modules/math-tests: New file.
55812         * tests/test-math.c: New file.
55813
55814         * modules/math: New file.
55815         * modules/mathl (Files): Remove lib/mathl.h.
55816         (Depends-on): Add math.
55817         (Makefile.am): Don't mention mathl.h.
55818         (Include): Use <math.h> instead of mathl.h.
55819         * lib/math_.h: New file.
55820         * lib/mathl.h: Remove file.
55821         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55822         mathl.h.
55823         * lib/asinl.c: Likewise.
55824         * lib/atanl.c: Likewise.
55825         * lib/ceill.c: Likewise.
55826         * lib/cosl.c: Likewise.
55827         * lib/expl.c: Likewise.
55828         * lib/floorl.c: Likewise.
55829         * lib/frexpl.c: Likewise.
55830         * lib/ldexpl.c: Likewise.
55831         * lib/logl.c: Likewise.
55832         * lib/sincosl.c: Likewise.
55833         * lib/sinl.c: Likewise.
55834         * lib/sqrtl.c: Likewise.
55835         * lib/tanl.c: Likewise.
55836         * lib/trigl.c: Likewise.
55837         * m4/math_h.m4: New file.
55838         * MODULES.html.sh (Mathematics): Add math.
55839
55840 2007-02-17  Bruno Haible  <bruno@clisp.org>
55841
55842         * modules/wctype-tests: New file.
55843         * tests/test-wctype.c: New file.
55844
55845         * modules/wchar-tests: New file.
55846         * tests/test-wchar.c: New file.
55847
55848         * modules/unistd-tests: New file.
55849         * tests/test-unistd.c: New file.
55850
55851         * modules/time-tests: New file.
55852         * tests/test-time.c: New file.
55853
55854         * modules/sysexits-tests: New file.
55855         * tests/test-sysexits.c: New file.
55856
55857         * modules/sys_time-tests: New file.
55858         * tests/test-sys_time.c: New file.
55859
55860         * modules/sys_stat-tests: New file.
55861         * tests/test-sys_stat.c: New file.
55862
55863         * modules/sys_socket-tests: New file.
55864         * tests/test-sys_socket.c: New file.
55865
55866         * modules/sys_select-tests: New file.
55867         * tests/test-sys_select.c: New file.
55868
55869         * modules/string-tests: New file.
55870         * tests/test-string.c: New file.
55871
55872         * modules/stdbool-tests: New file.
55873         * tests/test-stdbool.c: New file.
55874
55875         * modules/netinet_in-tests: New file.
55876         * tests/test-netinet_in.c: New file.
55877
55878         * modules/inttypes-tests: New file.
55879         * tests/test-inttypes.c: New file.
55880
55881         * modules/fcntl-tests: New file.
55882         * tests/test-fcntl.c: New file.
55883
55884         * modules/byteswap-tests: New file.
55885         * tests/test-byteswap.c: New file.
55886
55887         * modules/arpa_inet-tests: New file.
55888         * tests/test-arpa_inet.c: New file.
55889
55890 2007-02-17  Bruno Haible  <bruno@clisp.org>
55891
55892         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55893         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55894         if the corresponding module is not enabled. Emit link warnings if
55895         the function is used nevertheless.
55896         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55897         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55898         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55899         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55900         * modules/inttypes (Depends-on): Add link-warning.
55901         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55902         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55903         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55904         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55905         * modules/imaxdiv (configure.ac): Likewise.
55906         * modules/strtoimax (configure.ac): Likewise.
55907         * modules/strtoumax (configure.ac): Likewise.
55908
55909 2007-02-17  Bruno Haible  <bruno@clisp.org>
55910
55911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55912         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55913         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55914         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55915
55916 2007-02-17  Bruno Haible  <bruno@clisp.org>
55917
55918         * modules/link-warning: New file.
55919         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55920         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55921         * modules/string (Depends-on): Add link-warning.
55922         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55923         string.h.
55924         * MODULES.html.sh (Support for building libraries and executables): Add
55925         link-warning.
55926
55927 2007-02-17  Bruno Haible  <bruno@clisp.org>
55928
55929         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55930         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55931         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55932         long lines.
55933
55934 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55935             Bruno Haible  <bruno@clisp.org>
55936
55937         * modules/tmpfile: New file.
55938         * lib/tmpfile.c: New file.
55939         * m4/tmpfile.m4: New file.
55940         * MODULES.html.sh (func_all_modules): New section "Input/output".
55941
55942 2007-02-15  Bruno Haible  <bruno@clisp.org>
55943
55944         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55945         (supports_delete_on_close): New function.
55946         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55947
55948 2007-02-14  Bruno Haible  <bruno@clisp.org>
55949
55950         * modules/mbspcasecmp-tests: New file.
55951         * tests/test-mbspcasecmp.sh: New file.
55952         * tests/test-mbspcasecmp.c: New file.
55953
55954         New module mbspcasecmp.
55955         * modules/mbspcasecmp: New file.
55956         * lib/mbspcasecmp.c: New file.
55957         * lib/string_.h (strncasecmp): Change warning message.
55958         (mbspcasecmp): New declaration.
55959         * m4/mbspcasecmp.m4: New file.
55960         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55961         GNULIB_MBSPCASECMP.
55962         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55963         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55964
55965 2007-02-14  Bruno Haible  <bruno@clisp.org>
55966
55967         * modules/mbsncasecmp-tests: New file.
55968         * tests/test-mbsncasecmp.sh: New file.
55969         * tests/test-mbsncasecmp.c: New file.
55970
55971         New module mbsncasecmp.
55972         * modules/mbsncasecmp: New file.
55973         * lib/mbsncasecmp.c: New file.
55974         * lib/string_.h (mbsncasecmp): New declaration.
55975         * m4/mbsncasecmp.m4: New file.
55976         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55977         GNULIB_MBSNCASECMP.
55978         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55979         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55980
55981 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55982
55983         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55984         Verify that it doesn't overlap with our flags.
55985         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55986         do not have the desired effect in multibyte locales; instead, use
55987         mbscasecmp.
55988         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55989         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55990         we don't require GNU fnmatch ourselves (if our users require it, they
55991         should do so explicitly).
55992
55993         Fix regex code so it doesn't rely on strcasecmp.
55994         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55995         Otherwise, include gnulib's langinfo.h.
55996         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55997         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55998         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55999         * modules/regex (FILES): Remove m4/codeset.m4.
56000         (Depends-on): Add localcharset.  Remove strcase.
56001
56002 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56003
56004         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
56005         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
56006
56007 2007-02-13  Bruno Haible  <bruno@clisp.org>
56008
56009         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
56010         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56011
56012 2007-02-12  Bruno Haible  <bruno@clisp.org>
56013
56014         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56015         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
56016         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
56017         time warning rather than a link error.
56018
56019 2007-02-12  Bruno Haible  <bruno@clisp.org>
56020
56021         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
56022         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56023         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56024
56025 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56026
56027         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
56028         args, not 2.
56029
56030 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56031
56032         New module 'time', so that apps can include <time.h> as per
56033         POSIX and GNU instead of separate include files like time_r.h
56034         and timegm.h.  This implementation tries out a simpler approach
56035         for replacing decls in standard include files (as compared to
56036         the string module), somewhat as an experiment.
56037
56038         * config/srclist.txt: Comment out mktime.c for now.
56039         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
56040         since it doesn't apply any more.  Use generic wording instead.
56041         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
56042         'time'.
56043         * lib/time_.h, m4/time_h.m4, modules/time: New files.
56044         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
56045         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
56046         Don't include <sys/types.h>; no longer needed since we assume C89.
56047         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
56048         * lib/strftime.c: Likewise.
56049         * lib/time_r.c: Likewise.
56050         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
56051         * lib/nanosleep.c: Include <time.h> first, to check interface.
56052         * lib/strptime.c: Likewise.
56053         * lib/time_r.c: Likewise.
56054         * lib/timegm.c: Likewise.
56055         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
56056         needed.
56057         * lib/timegm.c: Don't include timegm.h; no longer needed.
56058         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
56059         time.h now handles any problems in that area.
56060         (struct timespec, nanosleep): Remove; time.h now arranges for these.
56061         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
56062         that time.h defines struct timespec.
56063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
56064         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
56065         handles that.
56066         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
56067         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
56068         needed.  Set REPLACE_LOCALTIME.
56069         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
56070         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
56071         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
56072         nanosleep; time_h.m4 now does that.  Don't require
56073         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
56074         module handles this now.
56075         * modules/getdate (Depends-on): Remove timespec.  Add time.
56076         * modules/nanosleep (Depends-on): Likewise.
56077         * modules/stat-time (Depends-on): Likewise.
56078         * modules/nanosleep (Include): Include time.h, not timespec.h.
56079         * modules/strptime (Files): Remove lib/strptime.h.
56080         (Depends-on): Add extensions, time.
56081         (Include): Include time.h, not strptime.h.
56082         * modules/time_r (Files): Remove lib/time_r.h.
56083         (Depends-on): Add time.
56084         (Include): Include time.h, not time_r.h.
56085         * modules/timegm: Likewise.
56086         * modules/timespec (Description): Now does timespec-related decls
56087         of our own, instead of struct timespec itself.
56088         (Depends-on): Add time; remove extensions.
56089         (Maintainer): Add self.
56090         * modules/utimecmp (Depends-on): Add time; remove timespec.
56091         * modules/utimens (Depends-on): Likewise.
56092         * modules/xnanosleep (Depends-on): Likewise.
56093
56094 2007-02-11  Bruno Haible  <bruno@clisp.org>
56095
56096         * lib/c-strstr.c: Include allocsa.h.
56097         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56098         * lib/c-strcasestr.c: Include allocsa.h.
56099         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56100         * lib/strcasestr.c: Include allocsa.h.
56101         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56102         * lib/mbsstr.c: Include allocsa.h.
56103         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56104         allocsa/freesa instead of malloc/free.
56105         * lib/mbscasestr.c: Include allocsa.h.
56106         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56107         allocsa/freesa instead of malloc/free.
56108         * modules/c-strstr (Depends-on): Add allocsa.
56109         * modules/c-strcasestr (Depends-on): Likewise.
56110         * modules/strcasestr (Depends-on): Likewise.
56111         * modules/mbsstr (Depends-on): Likewise.
56112         * modules/mbscasestr (Depends-on): Likewise.
56113
56114 2007-02-11  Bruno Haible  <bruno@clisp.org>
56115
56116         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
56117
56118         * modules/mbsspn-tests: New file.
56119         * tests/test-mbsspn.sh: New file.
56120         * tests/test-mbsspn.c: New file.
56121
56122 2007-02-11  Bruno Haible  <bruno@clisp.org>
56123
56124         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
56125
56126         * modules/mbspbrk-tests: New file.
56127         * tests/test-mbspbrk.sh: New file.
56128         * tests/test-mbspbrk.c: New file.
56129
56130 2007-02-11  Bruno Haible  <bruno@clisp.org>
56131
56132         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
56133         unneeded cast.
56134
56135         * modules/mbscspn-tests: New file.
56136         * tests/test-mbscspn.sh: New file.
56137         * tests/test-mbscspn.c: New file.
56138
56139 2007-02-11  Bruno Haible  <bruno@clisp.org>
56140
56141         * modules/mbscasecmp-tests: New file.
56142         * tests/test-mbscasecmp.sh: New file.
56143         * tests/test-mbscasecmp.c: New file.
56144
56145 2007-02-11  Bruno Haible  <bruno@clisp.org>
56146
56147         Ensure O(n) worst-case complexity of mbscasestr.
56148         * lib/mbscasestr.c: Include stdbool.h.
56149         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56150         functions.
56151         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
56152         the bookkeeping indicates that it's worth it.
56153         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
56154
56155         * modules/mbscasestr-tests: New file.
56156         * tests/test-mbscasestr1.c: New file.
56157         * tests/test-mbscasestr2.sh: New file.
56158         * tests/test-mbscasestr2.c: New file.
56159         * tests/test-mbscasestr3.sh: New file.
56160         * tests/test-mbscasestr3.c: New file.
56161         * tests/test-mbscasestr4.sh: New file.
56162         * tests/test-mbscasestr4.c: New file.
56163         * m4/locale-tr.m4: New file.
56164
56165 2007-02-11  Bruno Haible  <bruno@clisp.org>
56166
56167         Ensure O(n) worst-case complexity of mbsstr.
56168         * lib/mbsstr.c: Include stdbool.h.
56169         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56170         functions.
56171         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
56172         bookkeeping indicates that it's worth it.
56173         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
56174
56175         * modules/mbsstr-tests: New file.
56176         * tests/test-mbsstr1.c: New file.
56177         * tests/test-mbsstr2.sh: New file.
56178         * tests/test-mbsstr2.c: New file.
56179         * tests/test-mbsstr3.sh: New file.
56180         * tests/test-mbsstr3.c: New file.
56181         * m4/locale-fr.m4: New file.
56182
56183 2007-02-11  Bruno Haible  <bruno@clisp.org>
56184
56185         * lib/mbsrchr.c (mbsrchr): Fix bug.
56186
56187         * modules/mbsrchr-tests: New file.
56188         * tests/test-mbsrchr.sh: New file.
56189         * tests/test-mbsrchr.c: New file.
56190
56191 2007-02-11  Bruno Haible  <bruno@clisp.org>
56192
56193         * lib/mbschr.c (mbschr): Fix bug.
56194
56195         * modules/mbschr-tests: New file.
56196         * tests/test-mbschr.sh: New file.
56197         * tests/test-mbschr.c: New file.
56198         * m4/locale-zh.m4: New file.
56199
56200 2007-02-11  Bruno Haible  <bruno@clisp.org>
56201
56202         Support for copying multibyte string iterators.
56203         * lib/mbiter.h: Include <string.h>.
56204         (mbiter_multi_copy): New function.
56205         (mbi_copy): New macro.
56206         * lib/mbuiter.h: Include <string.h>.
56207         (mbuiter_multi_copy): New function.
56208         (mbui_copy): New macro.
56209
56210 2007-02-11  Bruno Haible  <bruno@clisp.org>
56211
56212         New module mbslen.
56213         * modules/mbslen: New file.
56214         * lib/mbslen.c: New file.
56215         * lib/string_.h (mbslen): New declaration.
56216         * m4/mbslen.m4: New file.
56217         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56218         GNULIB_MBSLEN.
56219         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
56220         * MODULES.html.sh (Internationalization functions): Add mbslen.
56221
56222 2007-02-11  Bruno Haible  <bruno@clisp.org>
56223
56224         Ensure O(n) worst-case complexity of strcasestr substitute.
56225         * lib/strcasestr.c: Include stdbool.h.
56226         (knuth_morris_pratt): New function.
56227         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56228         bookkeeping indicates that it's worth it.
56229         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
56230
56231         * modules/strcasestr-tests: New file.
56232         * tests/test-strcasestr.c: New file.
56233
56234 2007-02-11  Bruno Haible  <bruno@clisp.org>
56235
56236         Ensure O(n) worst-case complexity of c_strcasestr.
56237         * lib/c-strcasestr.c: Include stdbool.h, string.h.
56238         (knuth_morris_pratt): New function.
56239         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
56240         the bookkeeping indicates that it's worth it.
56241         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56242
56243         * modules/c-strcasestr-tests: New file.
56244         * tests/test-c-strcasestr.c: New file.
56245
56246 2007-02-11  Bruno Haible  <bruno@clisp.org>
56247
56248         Ensure O(n) worst-case complexity of c_strstr.
56249         * lib/c-strstr.c: Include stdbool.h, string.h.
56250         (knuth_morris_pratt): New function.
56251         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56252         bookkeeping indicates that it's worth it.
56253         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56254
56255         * lib/c-strstr.c: Complete rewrite for maintainability.
56256
56257         * modules/c-strstr-tests: New file.
56258         * tests/test-c-strstr.c: New file.
56259
56260 2007-02-11  Bruno Haible  <bruno@clisp.org>
56261
56262         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56263         5.2.1 and earlier, whereby \055 was treated just like the range
56264         delimiter '-'.
56265         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56266
56267 2007-02-08  Bruno Haible  <bruno@clisp.org>
56268
56269         * modules/regex (Depends-on): Add stdbool.
56270         Reported by Dalibor Topic <robilad@kaffe.org>.
56271
56272 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56273
56274         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56275         Prefer returning from main to exiting from it.
56276         Remove unnecessary parens after sizeof.
56277
56278 2007-02-05  Bruno Haible  <bruno@clisp.org>
56279
56280         New module mbssep.
56281         * modules/mbssep: New file.
56282         * lib/mbssep.c: New file.
56283         * lib/string_.h (strsep): Add a conditional link warning.
56284         (mbssep): New declaration.
56285         * m4/mbssep.m4: New file.
56286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56287         GNULIB_MBSSEP.
56288         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56289         * MODULES.html.sh (Internationalization functions): Add mbssep.
56290
56291 2007-02-05  Bruno Haible  <bruno@clisp.org>
56292
56293         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56294         Optimize search in case of 1 delimiter.
56295
56296 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56297
56298         * lib/acl.h: Include sys/types.h before sys/acl.h.
56299
56300 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56301
56302         Merge upstream fix for glibc bugzilla #3957:
56303
56304         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56305
56306         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56307         bit for RE_HAT_LISTS_NOT_NEWLINE.
56308         (build_charclass_op): Remove bogus comment.
56309
56310 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56311
56312         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56313
56314 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56315
56316         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56317         * lib/memmem.c [!defined _LIBC]: Include config.h.
56318
56319 2007-02-04  Bruno Haible  <bruno@clisp.org>
56320
56321         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56322         warning message.
56323
56324 2007-02-04  Bruno Haible  <bruno@clisp.org>
56325
56326         New module mbstok_r.
56327         * modules/mbstok_r: New file.
56328         * lib/mbstok_r.c: New file.
56329         * lib/string_.h (strtok_r): Change argument names to match the
56330         comments. Add a conditional link warning.
56331         (mbstok_r): New declaration.
56332         * m4/mbstok_r.m4: New file.
56333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56334         GNULIB_MBSTOK_R.
56335         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56336         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56337
56338 2007-02-04  Bruno Haible  <bruno@clisp.org>
56339
56340         New module mbsspn.
56341         * modules/mbsspn: New file.
56342         * lib/mbsspn.c: New file.
56343         * lib/string_.h (strspn): Add a conditional link warning.
56344         (mbsspn): New declaration.
56345         * m4/mbsspn.m4: New file.
56346         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56347         GNULIB_MBSSPN.
56348         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56349         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56350
56351 2007-02-04  Bruno Haible  <bruno@clisp.org>
56352
56353         New module mbspbrk.
56354         * modules/mbspbrk: New file.
56355         * lib/mbspbrk.c: New file.
56356         * lib/string_.h (strpbrk): Add a conditional link warning.
56357         (mbspbrk): New declaration.
56358         * m4/mbspbrk.m4: New file.
56359         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56360         GNULIB_MBSPBRK.
56361         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56362         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56363
56364 2007-02-04  Bruno Haible  <bruno@clisp.org>
56365
56366         New module mbscspn.
56367         * modules/mbscspn: New file.
56368         * lib/mbscspn.c: New file.
56369         * lib/string_.h (strcspn): Add a conditional link warning.
56370         (mbscspn): New declaration.
56371         * m4/mbscspn.m4: New file.
56372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56373         GNULIB_MBSCSPN.
56374         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56375         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56376
56377 2007-02-04  Bruno Haible  <bruno@clisp.org>
56378
56379         New module mbscasestr, reduced goal of strcasestr.
56380         * modules/mbscasestr: New file.
56381         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56382         (mbscasestr): Renamed from strcasestr.
56383         * lib/strcasestr.c: Don't include mbuiter.h.
56384         (strcasestr): Remove support for multibyte locales.
56385         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56386         Change the conditional link warning.
56387         (mbscasestr): New declaration.
56388         * m4/mbscasestr.m4: New file.
56389         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56390         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56391         REPLACE_STRCASESTR.
56392         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56394         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56395         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56396         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56397         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56398         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56399         (Depends-on): Remove mbuiter.
56400         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56401
56402 2007-02-04  Bruno Haible  <bruno@clisp.org>
56403
56404         Simplify handling of strncasecmp.
56405         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56406         the conditional link warning.
56407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56408         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56409         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56410         * modules/strcase (configure.ac): Don't invoke
56411         gl_STRING_MODULE_INDICATOR.
56412         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56413
56414 2007-02-04  Bruno Haible  <bruno@clisp.org>
56415
56416         New module mbscasecmp, reduced goal of strcasecmp.
56417         * modules/mbscasecmp: New file.
56418         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56419         (mbscasecmp): Renamed from strcasecmp.
56420         * lib/strcasecmp.c: Don't include mbuiter.h.
56421         (strcasecmp): Remove support for multibyte locales.
56422         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56423         Change the conditional link warning.
56424         (mbscasecmp): New declaration.
56425         * m4/mbscasecmp.m4: New file.
56426         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56427         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56428         REPLACE_STRCASECMP.
56429         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56430         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56431         GNULIB_MBSCASECMP.
56432         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56433         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56434         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56435         (Depends-on): Remove mbuiter.
56436         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56437
56438 2007-02-04  Bruno Haible  <bruno@clisp.org>
56439
56440         New module mbsstr. Remove module strstr.
56441         * modules/mbsstr: New file.
56442         * modules/strstr: Remove file.
56443         * lib/mbsstr.c: Renamed from lib/strstr.c.
56444         (mbsstr): Renamed from strstr.
56445         * lib/string_.h (strstr): Remove declaration. Change the conditional
56446         link warning.
56447         (mbsstr): New declaration.
56448         * m4/mbsstr.m4: New file.
56449         * m4/strstr.m4: Remove file.
56450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56451         REPLACE_STRSTR.
56452         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56453         Don't initialize GNULIB_STRSTR.
56454         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56455         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56456         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56457         (Support for systems lacking ANSI C 89): Remove strstr.
56458
56459 2007-02-04  Bruno Haible  <bruno@clisp.org>
56460
56461         New module mbsrchr.
56462         * modules/mbsrchr: New file.
56463         * lib/mbsrchr.c: New file.
56464         * lib/string_.h (strrchr): Add a conditional link warning.
56465         (mbsrchr): New declaration.
56466         * m4/mbsrchr.m4: New file.
56467         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56468         GNULIB_MBSRCHR.
56469         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56470         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56471
56472 2007-02-04  Bruno Haible  <bruno@clisp.org>
56473
56474         New module mbschr.
56475         * modules/mbschr: New file.
56476         * lib/mbschr.c: New file.
56477         * lib/string_.h (strchr): Add a conditional link warning.
56478         (mbschr): New declaration.
56479         * m4/mbschr.m4: New file.
56480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56481         GNULIB_MBSCHR.
56482         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56483         * MODULES.html.sh (Internationalization functions): Add mbschr.
56484
56485 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56486
56487         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56488
56489         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56490
56491 2007-02-04  Bruno Haible  <bruno@clisp.org>
56492
56493         New module description section 'configure.ac-early'.
56494         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56495         (func_get_autoconf_early_snippet): New function.
56496         (func_import, func_create_testdir): Use it. Remove special cases for
56497         modules 'extensions' and 'lock'.
56498         * modules/extensions (configure.ac-early): Require
56499         gl_USE_SYSTEM_EXTENSIONS.
56500         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56501
56502 2007-02-04  Bruno Haible  <bruno@clisp.org>
56503
56504         Make use of gcj-4.3's -fsource and -ftarget option.
56505         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56506         and if so try the options -fsource and -ftarget.
56507         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56508         source_version, ftarget_option, target_version arguments.
56509         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56510         (is_envjavac_oldgcj_14_14_usable): Renamed from
56511         is_envjavac_gcj_14_14_usable.
56512         (is_envjavac_oldgcj_14_13_usable): Renamed from
56513         is_envjavac_gcj_14_13_usable.
56514         (is_gcj_present): Update.
56515         (is_gcj_43, is_gcj43_usable): New functions.
56516         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56517         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56518         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56519         try the options -fsource and -ftarget.
56520
56521 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56522
56523         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56524         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56525         larger value.
56526
56527 2007-02-03  Jim Meyering  <jim@meyering.net>
56528
56529         Give tools a better chance to allocate space for very large buffers.
56530         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56531
56532         Make pwd and readlink work also when run with an unreadable parent dir
56533         on systems with openat support.
56534         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56535         provided getcwd function, even when we have openat support.
56536         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56537
56538 2007-02-02  Bruno Haible  <bruno@clisp.org>
56539
56540         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56541         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56542         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56543         portability problems if one of these functions is only used on specific
56544         platforms.
56545         Reported by Paul Eggert.
56546
56547 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56548
56549         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56550         is causing more trouble than it's curing.
56551         * lib/regex_internal.h (__mempcpy): Remove.
56552         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56553         (and make the code a tad smaller to boot).
56554         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56555
56556 2007-02-02  Jim Meyering  <jim@meyering.net>
56557
56558         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56559         section, not in the Makefile.am: one.
56560
56561 2007-02-02  Eric Blake  <ebb9@byu.net>
56562
56563         * lib/strchrnul.c: Always include config.h first.
56564
56565         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56566         gnulib strstr is not necessary here.
56567
56568 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56569
56570         * m4/socklen.m4: Fix typo.
56571
56572 2007-02-02  Eric Blake  <ebb9@byu.net>
56573
56574         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56575         * modules/netinet_in (Makefile.am): Likewise.
56576
56577 2007-02-01  Bruno Haible  <bruno@clisp.org>
56578
56579         * lib/string_.h (GL_LINK_WARNING): New macro.
56580         (strcasecmp, strstr, strcasestr): If provided by the system,
56581         conditionally define as a macro that leads to a warning instead of to
56582         an error.
56583         (strncasecmp): Conditionally define as a macro that leads to a warning.
56584
56585 2007-02-01  Karl Berry  <karl@gnu.org>
56586
56587         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56588
56589 2007-02-01  Bruno Haible  <bruno@clisp.org>
56590
56591         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56592         renamings.
56593
56594 2007-02-01  Eric Blake  <ebb9@byu.net>
56595
56596         * modules/regex (Depends-on): Revert dependence on mempcpy.
56597         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56598         module's definition of mempcpy.
56599         Reported by Paul Eggert.
56600
56601 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56602
56603         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56604         the symbol XYZ before redefining it.  This fixes a problem with
56605         programs that don't use XYZ, when compiled on systems that define
56606         XYZ to something else.
56607
56608 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56609
56610         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56611         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56612         writeable to group or other and (2) is intended to have a special
56613         mode bit that is set or cleared.  In such a case, the directory
56614         should be neither group- nor other-writeable until the special
56615         mode bits are right.
56616
56617 2007-01-31  Eric Blake  <ebb9@byu.net>
56618
56619         * modules/mountlist (Depends-on): Add strstr.
56620
56621         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56622         bug.
56623         * modules/string (Makefile.am): Remove redundant replacement.
56624         * modules/regex (Depends-on): Add mempcpy.
56625
56626 2007-01-31  Bruno Haible  <bruno@clisp.org>
56627
56628         New module description field 'Link'.
56629         * gnulib-tool (func_usage): Document --extract-link-directive.
56630         (sed_extract_prog): Recognize 'Link' directive.
56631         (func_get_link_directive): New function.
56632         (func_import): Show summary of link directives.
56633         Handle --extract-link-directive option.
56634         * modules/acl (Link): New section.
56635         * modules/clock-time (Link): New section.
56636         * modules/euidaccess (Link): New section.
56637         * modules/gettext (Link): New section.
56638         * modules/iconv (Link): New section.
56639         * modules/lock (Link): New section.
56640         * modules/nanosleep (Link): New section.
56641         * modules/readline (Link): New section.
56642
56643 2007-01-27  Bruno Haible  <bruno@clisp.org>
56644
56645         Enforce the use of gnulib modules for unportable <string.h> functions.
56646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56647         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56648         (gl_HEADER_STRING_H_BODY): Require it.
56649         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56650         the symbol XYZ to one that gives a link error.
56651         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56652         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56653         * modules/mempcpy (configure.ac): Likewise.
56654         * modules/memrchr (configure.ac): Likewise.
56655         * modules/stpcpy (configure.ac): Likewise.
56656         * modules/stpncpy (configure.ac): Likewise.
56657         * modules/strcase (configure.ac): Likewise.
56658         * modules/strcasestr (configure.ac): Likewise.
56659         * modules/strchrnul (configure.ac): Likewise.
56660         * modules/strdup (configure.ac): Likewise.
56661         * modules/strndup (configure.ac): Likewise.
56662         * modules/strnlen (configure.ac): Likewise.
56663         * modules/strpbrk (configure.ac): Likewise.
56664         * modules/strsep (configure.ac): Likewise.
56665         * modules/strstr (configure.ac): Likewise.
56666         * modules/strtok_r (configure.ac): Likewise.
56667
56668 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56669
56670         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56671
56672 2007-01-30  Jim Meyering  <jim@meyering.net>
56673
56674         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56675
56676 2007-01-29  Bruno Haible  <bruno@clisp.org>
56677
56678         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56679         * lib/execute.c: Likewise.
56680         * lib/pipe.c: Likewise.
56681         * lib/printf-args.h: Likewise.
56682         * lib/printf-args.c: Likewise.
56683         * lib/printf-parse.c: Likewise.
56684         * lib/vasnprintf.c: Likewise.
56685
56686 2007-01-29  Eric Blake  <ebb9@byu.net>
56687
56688         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56689         declaration.
56690
56691 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56692
56693         * lib/strptime.h (strptime): Use 'restrict' for args where
56694         POSIX requires this.
56695         * lib/strptime.c (strptime): Likewise.
56696         Change license notice from LGPL to GPL, since gnulib-tool will
56697         change this as needed.
56698         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56699         defined.
56700         Include "strptime.h" first, to check interface.
56701         Do not #undef _LIBC and _NL_CURRENT.
56702         Do not include <stdlib.h>; no longer needed.
56703         Include "time_r.h" and declare ptime_locale_status
56704         only if _LIBC is not defined.
56705         (__P): Remove unused macro.
56706         (match_string): Bring back glibc version, but use it only if _LIBC
56707         is defined.
56708         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56709         Remove unnecessary assertion and abort() call.
56710         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56711         * m4/strptime.m4: Fix serial number comment.
56712         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56713         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56714         (Depends-on): Add time_r.
56715
56716 2007-01-29  Bruno Haible  <bruno@clisp.org>
56717
56718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56719         strptime.
56720         * modules/strptime (Depends-on): Add stdbool.
56721         * lib/strptime.h: Include <time.h> always. Add comments.
56722
56723 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56724
56725         * modules/strptime: New file.
56726         * lib/strptime.h: New file.
56727         * lib/strptime.c: New file.
56728         * m4/strptime.m4: New file.
56729
56730 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56731
56732         * MODULES.html.sh: New module mpsort.
56733         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56734
56735         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56736         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56737         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56738         All uses changed.
56739         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56740         All uses changed.
56741         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56742         to _Restrict_.
56743         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56744         the parameter matches the prototype.
56745
56746 2007-01-28  Jim Meyering  <jim@meyering.net>
56747
56748         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56749         sys/time.h here, reverting that part of the previous patch:
56750         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56751
56752 2007-01-28  Bruno Haible  <bruno@clisp.org>
56753
56754         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56755         value of $(SYS_TIME_H).
56756         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56757         remove it conditionally, too. [added by Jim Meyering]
56758         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56759         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56760         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56761         GETTIMEOFDAY_REPLACEMENT to 1.
56762
56763 2007-01-28  Bruno Haible  <bruno@clisp.org>
56764
56765         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56766         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56767         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56768         Set UNISTD_H instead of UNISTD_H2.
56769         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56770
56771 2007-01-28  Bruno Haible  <bruno@clisp.org>
56772
56773         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56774         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56775
56776 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56777
56778         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56779         (func_create_testdir): Ensure C locale for `grep' and `tr'
56780         character ranges.
56781         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56782         ACLOCAL_AMFLAGS parsing state machine.
56783
56784 2007-01-27  Bruno Haible  <bruno@clisp.org>
56785
56786         * modules/unistr/base: Update.
56787
56788 2007-01-27  Bruno Haible  <bruno@clisp.org>
56789
56790         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56791         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56792         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56793         modules/unistr/u32-mbtouc.
56794         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56795         * lib/unistr.h: Update.
56796         * lib/linebreak.c: Update.
56797         * modules/unistr/u32-mbtouc: Renamed from
56798         modules/unistr/u32-mbtouc-safe.
56799         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56800         * lib/unistr.h: Update.
56801         * lib/unistr/u32-to-u8.c: Update.
56802         * lib/unistr/u32-to-u16.c: Update.
56803
56804 2007-01-27  Bruno Haible  <bruno@clisp.org>
56805
56806         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56807         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56808         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56809         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56810         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56811         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56812         modules/unistr/u16-mbtouc.
56813         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56814         * lib/unistr.h: Update.
56815         * lib/linebreak.c: Update.
56816         * modules/linebreak: Update.
56817         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56818         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56819         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56820         * modules/unistr/u16-mbtouc: Renamed from
56821         modules/unistr/u16-mbtouc-safe.
56822         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56823         * lib/unistr.h: Update.
56824         * lib/unistr/u16-to-u8.c: Update.
56825         * modules/unistr/u16-to-u8: Update.
56826         * lib/unistr/u16-to-u32.c: Update.
56827         * modules/unistr/u16-to-u32: Update.
56828
56829 2007-01-27  Bruno Haible  <bruno@clisp.org>
56830
56831         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56832         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56833         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56834         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56835         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56836         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56837         modules/unistr/u8-mbtouc.
56838         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56839         * lib/unistr.h: Update.
56840         * lib/striconveh.c: Update.
56841         * modules/striconveh: Update.
56842         * lib/linebreak.c: Update.
56843         * modules/linebreak: Update.
56844         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56845         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56846         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56847         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56848         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56849         * lib/unistr.h: Update.
56850         * lib/striconveh.c: Update.
56851         * modules/striconveh: Update.
56852         * lib/unistr/u8-to-u16.c: Update.
56853         * modules/unistr/u8-to-u16: Update.
56854         * lib/unistr/u8-to-u32.c: Update.
56855         * modules/unistr/u8-to-u32: Update.
56856
56857 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56858
56859         Sync from Libtool.
56860         * lib/argz.c: Do not include strings.h nor memory.h, include
56861         string.h unconditionally.  Patch by Simon Josefsson.
56862
56863 2007-01-27  Bruno Haible  <bruno@clisp.org>
56864
56865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56866         from gl_HEADER_STRING_H_BODY.
56867         (gl_HEADER_STRING_H_BODY): Require it.
56868         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56869         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56870         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56871         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56872         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56873         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56874         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56875         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56876         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56877         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56878         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56879         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56880         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56881         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56882         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56883
56884 2007-01-27  Bruno Haible  <bruno@clisp.org>
56885
56886         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56887         check_PROGRAMS into noinst_PROGRAMS.
56888         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56889         check_PROGRAMS in this case.
56890         (func_import): Set for_test to false.
56891         (func_create_testdir): Set for_test to true.
56892
56893 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56894             Bruno Haible  <bruno@clisp.org>
56895
56896         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56897         (Depends-on): Add string.
56898         (Includes): Use <string.h> instead of strcasestr.h.
56899         * modules/string (Makefile.am): Also substitute the value of
56900         REPLACE_STRCASESTR.
56901         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56902         assume strcasestr is declared in <string.h> not <strings.h>. Also
56903         set REPLACE_STRCASESTR.
56904         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56905         REPLACE_STRCASESTR.
56906         * lib/strcasestr.h: Remove file.
56907         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56908         * lib/string_.h (strcasestr): New declaration.
56909
56910 2007-01-27  Bruno Haible  <bruno@clisp.org>
56911
56912         * lib/string_.h: Use 'extern'.
56913
56914 2007-01-27  Jim Meyering  <jim@meyering.net>
56915
56916         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56917         of set-but-not-used local, "q".
56918
56919         * lib/mempcpy.c: Include <config.h> before <string.h>.
56920         This fixes a compilation error on HP-UX, due to the system's
56921         "restrict"-using mempcpy prototype.
56922
56923 2007-01-26  Bruno Haible  <bruno@clisp.org>
56924
56925         Small optimization.
56926         * lib/javacomp.c: Include c-strstr.h.
56927          (is_envjavac_gcj): Use c_strstr instead of strstr.
56928         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56929
56930 2007-01-26  Bruno Haible  <bruno@clisp.org>
56931
56932         * MODULES.html.sh (Unicode string functions): Add the new modules.
56933
56934         * modules/uniconv/u32-strconv-to-locale: New file.
56935         * lib/uniconv/u32-strconv-to-locale.c: New file.
56936
56937         * modules/uniconv/u16-strconv-to-locale: New file.
56938         * lib/uniconv/u16-strconv-to-locale.c: New file.
56939
56940         * modules/uniconv/u8-strconv-to-locale: New file.
56941         * lib/uniconv/u8-strconv-to-locale.c: New file.
56942
56943         * modules/uniconv/u32-strconv-from-locale: New file.
56944         * lib/uniconv/u32-strconv-from-locale.c: New file.
56945
56946         * modules/uniconv/u16-strconv-from-locale: New file.
56947         * lib/uniconv/u16-strconv-from-locale.c: New file.
56948
56949         * modules/uniconv/u8-strconv-from-locale: New file.
56950         * lib/uniconv/u8-strconv-from-locale.c: New file.
56951
56952         * modules/uniconv/u32-strconv-to-enc: New file.
56953         * lib/uniconv/u32-strconv-to-enc.c: New file.
56954         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56955         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56956
56957         * modules/uniconv/u16-strconv-to-enc: New file.
56958         * lib/uniconv/u16-strconv-to-enc.c: New file.
56959         * lib/uniconv/u-strconv-to-enc.h: New file.
56960         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56961         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56962
56963         * modules/uniconv/u8-strconv-to-enc: New file.
56964         * lib/uniconv/u8-strconv-to-enc.c: New file.
56965         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56966         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56967
56968         * modules/uniconv/u32-strconv-from-enc: New file.
56969         * lib/uniconv/u32-strconv-from-enc.c: New file.
56970         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56971         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56972
56973         * modules/uniconv/u16-strconv-from-enc: New file.
56974         * lib/uniconv/u16-strconv-from-enc.c: New file.
56975         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56976         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56977
56978         * modules/uniconv/u8-strconv-from-enc: New file.
56979         * lib/uniconv/u8-strconv-from-enc.c: New file.
56980         * lib/uniconv/u-strconv-from-enc.h: New file.
56981         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56982         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56983
56984         * modules/uniconv/u32-conv-from-enc: New file.
56985         * lib/uniconv/u32-conv-from-enc.c: New file.
56986         * modules/uniconv/u32-conv-from-enc-tests: New file.
56987         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56988
56989         * modules/uniconv/u16-conv-from-enc: New file.
56990         * lib/uniconv/u16-conv-from-enc.c: New file.
56991         * lib/uniconv/u-conv-from-enc.h: New file.
56992         * modules/uniconv/u16-conv-from-enc-tests: New file.
56993         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56994
56995         * modules/uniconv/u8-conv-from-enc: New file.
56996         * lib/uniconv/u8-conv-from-enc.c: New file.
56997         * modules/uniconv/u8-conv-from-enc-tests: New file.
56998         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56999
57000         * modules/uniconv/base: New file.
57001         * lib/uniconv.h: New file.
57002
57003 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57004
57005         * doc/gnulib-tool.texi (Initial import): Update to match current
57006         behavior with strdup module.
57007         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
57008         * lib/memmem.h: Remove; all uses removed.  This is now done
57009         by <string.h>.
57010         * lib/mempcpy.h: Likewise.
57011         * lib/memrchr.h: Likewise.
57012         * lib/stpcpy.h: Likewise.
57013         * lib/stpncpy.h: Likewise.
57014         * lib/strcase.h: Likewise.
57015         * lib/strchrnul.h: Likewise.
57016         * lib/strdup.h: Likewise.
57017         * lib/strndup.h: Likewise.
57018         * lib/strnlen.h: Likewise.
57019         * lib/strpbrk.h: Likewise.
57020         * lib/strsep.h: Likewise.
57021         * lib/strstr.h: Likewise.
57022         * lib/strtok_r.h: Likewise.
57023         * lib/string_.h: New file.
57024         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
57025         Rely on <string.h> instead.
57026         * lib/canon-host.c: Likewise.
57027         * lib/chdir-long.c: Likewise.
57028         * lib/concatpath.c: Likewise.
57029         * lib/exclude.c: Likewise.
57030         * lib/fchdir.c: Likewise.
57031         * lib/getaddrinfo.c: Likewise.
57032         * lib/getcwd.c: Likewise.
57033         * lib/getsubopt.c: Likewise.
57034         * lib/glob.c: Likewise.
57035         * lib/hard-locale.c: Likewise.
57036         * lib/iconvme.c: Likewise.
57037         * lib/javacomp.c: Likewise.
57038         * lib/mempcpy.c: Likewise.
57039         * lib/memrchr.c: Likewise.
57040         * lib/regex_internal.h: Likewise.
57041         * lib/stpncpy.c: Likewise.
57042         * lib/strcasecmp.c: Likewise.
57043         * lib/strchrnul.c: Likewise.
57044         * lib/strdup.c: Likewise.
57045         * lib/striconv.c: Likewise.
57046         * lib/striconveh.c: Likewise.
57047         * lib/striconveha.c: Likewise.
57048         * lib/strncasecmp.c: Likewise.
57049         * lib/strndup.c: Likewise.
57050         * lib/strnlen.c: Likewise.
57051         * lib/strsep.c: Likewise.
57052         * lib/strstr.c: Likewise.
57053         * lib/strtok_r.c: Likewise.
57054         * lib/userspec.c: Likewise.
57055         * lib/w32spawn.h: Likewise.
57056         * lib/xstrndup.c: Likewise.
57057         * lib/mountlist.c (strstr): Remove decl.
57058         * m4/string_h.m4: New file.
57059         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
57060         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
57061         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
57062         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
57063         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
57064         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
57065         Set REPLACE_STRCASECMP if necessary.
57066         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
57067         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
57068         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
57069         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
57070         HAVE_DECL_STRDUP if necessary.
57071         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
57072         since gl_FUNC_STRNDUP does that now.
57073         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
57074         Check for decl here...
57075         (gl_PREREQ_STRNLEN): ... not here.
57076         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
57077         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
57078         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
57079         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
57080         necessary.
57081         * modules/string: New file.
57082         * modules/memmem (Files): Remove special-purpose include file.
57083         (Depends-on): Add string.
57084         (Include): Include <string.h>, not the removed file.
57085         * modules/mempcpy: Likewise.
57086         * modules/memrchr: Likewise.
57087         * modules/stpcpy: Likewise.
57088         * modules/stpncpy: Likewise.
57089         * modules/strcase: Likewise.
57090         * modules/strchrnul: Likewise.
57091         * modules/strdup: Likewise.
57092         * modules/strndup: Likewise.
57093         * modules/strnlen: Likewise.
57094         * modules/strpbrk: Likewise.
57095         * modules/strsep: Likewise.
57096         * modules/strstr: Likewise.
57097         * modules/strtok_r: Likewise.
57098         * tests/test-dirname.c: Don't include "strdup.h", since
57099         <string.h> now suffices.
57100         * tests/test-memmem.c: Don't include "memmem.h", since
57101         <string.h> now suffices.
57102
57103 2007-01-25  Bruno Haible  <bruno@clisp.org>
57104
57105         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
57106         *resultp is 0.
57107
57108         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
57109         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
57110         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
57111         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
57112
57113         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
57114         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
57115         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
57116         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
57117         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
57118         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
57119
57120 2007-01-24  Bruno Haible  <bruno@clisp.org>
57121
57122         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
57123         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
57124         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
57125         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
57126         gl_FUNC_FTS_CORE.
57127         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
57128         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
57129         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57130         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
57131         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
57132         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
57133         gl_FUNC_FCHOWNAT.
57134         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
57135         gl_FUNC_STRFTIME.
57136         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
57137         Reported by Ralf Wildenhues.
57138
57139 2007-01-24  Bruno Haible  <bruno@clisp.org>
57140
57141         Drop AC_REQUIRE calls that are redundant with the module dependencies.
57142         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
57143         gl_GETADDRINFO.
57144         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
57145         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
57146         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
57147
57148 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
57149
57150         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
57151         Don't use 'exit'; just return from 'main'.
57152         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
57153
57154         * lib/fnmatch_.h: Readjust white space and comments to match
57155         glibc, to avoid spurious diffs.
57156
57157 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57158
57159         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
57160         2004-12-01 change by Jakub Jelinek, since this code won't compile
57161         if !LIBC.  Problem reported by Bob Proulx.
57162
57163 2007-01-23  Bruno Haible  <bruno@clisp.org>
57164
57165         * lib/striconveh.c: Include c-strcaseeq.h.
57166         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
57167         * modules/striconveh (Depends-on): Add c-strcaseeq.
57168
57169 2007-01-23  Bruno Haible  <bruno@clisp.org>
57170
57171         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
57172
57173         * modules/c-strcaseeq: New file.
57174         * lib/c-strcaseeq.h: New file.
57175
57176         * modules/streq: New file.
57177         * lib/streq.h: New file.
57178
57179 2007-01-23  Bruno Haible  <bruno@clisp.org>
57180
57181         * modules/striconveha-tests: New file.
57182         * tests/test-striconveha.c: New file.
57183
57184         * lib/striconveha.h: Include <stdbool.h>.
57185         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
57186         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
57187         (mem_iconveha_notranslit): Renamed from mem_iconveha.
57188         (mem_iconveha): New function.
57189         (str_iconveha_notranslit): Renamed from str_iconveha.
57190         (str_iconveha): New function.
57191         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
57192         c-strcase.
57193
57194 2007-01-23  Bruno Haible  <bruno@clisp.org>
57195
57196         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
57197         encodings without forgiving before trying any encoding with handler.
57198         (str_iconveha): Try all encodings without forgiving before trying any
57199         encoding with handler.
57200
57201 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57202
57203         Import the following changes from libc.
57204
57205         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57206
57207         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
57208
57209         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57210
57211         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
57212         normal_bracket label.
57213
57214         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
57215
57216         [BZ #361]
57217         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
57218         to normal_bracket after fetching the next character.
57219
57220 2007-01-22  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
57223         argument.
57224         * lib/striconveh.c (iconv_carefully_1): New function.
57225         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
57226         argument.
57227         (str_cd_iconveh): Update.
57228         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
57229         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
57230         * tests/test-striconveh.c (MAGIC): New macro.
57231         (new_offsets): New function.
57232         (main): Test call with and without offsets.
57233
57234 2007-01-22  Bruno Haible  <bruno@clisp.org>
57235
57236         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
57237         * modules/sys_select (Makefile.am): Likewise.
57238         * modules/sys_socket (Makefile.am): Likewise.
57239         * modules/sys_time (Makefile.am): Likewise.
57240
57241 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57242
57243         * modules/gettimeofday (License): Change from GPL to LGPL, since
57244         gettimeofday is a library function.
57245
57246 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57247
57248         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57249
57250 2007-01-21  Bruno Haible  <bruno@clisp.org>
57251
57252         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57253
57254 2007-01-21  Bruno Haible  <bruno@clisp.org>
57255
57256         * modules/striconveha: New file.
57257         * lib/striconveha.h: New file.
57258         * lib/striconveha.c: New file.
57259         * MODULES.html.sh (Internationalization functions): Add striconveha.
57260         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57261         string.
57262         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57263
57264 2007-01-21  Bruno Haible  <bruno@clisp.org>
57265
57266         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57267         * lib/striconveh.c (str_iconveh): Likewise.
57268
57269 2007-01-21  Bruno Haible  <bruno@clisp.org>
57270
57271         * lib/striconveh.h (mem_iconveh): New declaration.
57272         * lib/striconveh.c (mem_iconveh): New function.
57273         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57274
57275 2007-01-21  Bruno Haible  <bruno@clisp.org>
57276
57277         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57278
57279         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57280         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57281         original result buffer.
57282         (str_cd_iconveh): Update.
57283         * tests/test-striconveh.c (main): Update.
57284
57285         * lib/striconv.h (mem_cd_iconv): Change specification.
57286         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57287         result buffer.
57288         (str_cd_iconv): Update.
57289         * tests/test-striconv.c (main): Update.
57290
57291 2007-01-21  Bruno Haible  <bruno@clisp.org>
57292
57293         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57294
57295 2007-01-20  Jim Meyering  <jim@meyering.net>
57296
57297         * lib/userspec.c (parse_with_separator): If a user or group string
57298         starts with "+", skip the corresponding name-to-ID look-up, since
57299         such a look-up must fail: user and group names may not include "+".
57300
57301 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57302
57303         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57304         since we now assume the sys_time module.
57305         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57306         check for sys/time.h; no longer needed.
57307         * modules/poll (Depends-on): Depend on sys_time.
57308
57309 2007-01-18  Bruno Haible  <bruno@clisp.org>
57310
57311         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57312         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57313
57314         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57315         gettimeofday.
57316
57317         * tests/test-gettimeofday.c: Include <time.h>.
57318         (dummy): Remove variable.
57319
57320         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57321         gl_HEADER_SYS_TIME_H.
57322         (gl_HEADER_SYS_TIME_H): New macro.
57323
57324         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57325         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57326         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57327         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57328         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57329         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57330         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57331         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57332         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57333         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57334         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57335
57336         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57337         last change; it caused a compilation error when cross-compiling to
57338         Cygwin.
57339
57340 2007-01-18  Jim Meyering  <jim@meyering.net>
57341
57342         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57343         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57344         than the race-prone "test -d sys || mkdir sys".
57345         (configure.ac): Use AC_PROG_MKDIR_P.
57346         * modules/sys_select: Likewise.
57347         * modules/sys_socket: Likewise.
57348         * modules/sys_time: Likewise.
57349
57350 2007-01-18  Eric Blake  <ebb9@byu.net>
57351
57352         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57353         replace gettimeofday.
57354         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57355         name, to avoid infinite recursion.
57356
57357 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57358
57359         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57360         module sys_time.
57361         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57362         assume timespec.h defines struct timeval.
57363         * lib/settime.c: Likewise.
57364         * lib/utimens.c: Likewise.
57365         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57366         since we now assume the gettimeofday module.
57367         * lib/tempname.c (__gen_tempname): Likewise.
57368         * lib/gettimeofday.h: Remove.
57369         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57370         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57371         Include <time.h>, for 'time()'.
57372         (localtime_buffer_addr): Also use this workaround if
57373         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57374         to simplify the uses.  All uses changed.
57375         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57376         that #undef is inside {}, and 'const' follows type name consistently.
57377         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57378         (gettimeofday): Do not use the maximum possible value for
57379         tv->tv_usec, since that might break usages other than ls.c.
57380         Instead, we'll leave ls.c alone.  This undoes today's patch
57381         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57382         we've never observed the problem but might as well keep the
57383         canary.
57384         * lib/nanosleep.c: Include timespec.h first, for interface check.
57385         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57386         now assume the sys_time module.
57387         * lib/tempname.c: Likewise.
57388         * lib/timespec.h: Likewise.
57389         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57390         needed.
57391         * lib/strftime.c: Likewise.
57392         * lib/timespec.h: Likewise.
57393         * lib/posixtm.c: Include posixtm.h first, for interface check.
57394         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57395         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57396         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57397         * lib/sys_time_.h: New file.
57398         * lib/timespec.h (struct timespec): Use long int, not long.
57399         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57400         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57401         Remove obsolescent call to AC_HEADER_TIME.
57402         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57403         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57404         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57405         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57406         Likewise.
57407         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57408         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57409         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57410         into the sys_time module.  Check for gettimeofday just once.
57411         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57412         for gettimeofday signature to just check the signature.  Merely
57413         compile it, since linking doesn't test signature.  Improve test for
57414         whether gettimeofday.o is actually needed.
57415         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57416         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57417         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57418         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57419         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57420         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57421         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57422         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57423         than worrying about sys/time.h.
57424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57425         Don't bother worrying about TIME_WITH_SYS_TIME.
57426         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57427         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57428         * m4/sys_time_h.m4: New file.
57429         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57430         Don't include sys/time.h.  Return from main rather than exiting.
57431         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57432         all uses changed.
57433         * modules/gethrxtime (Depends-on): Add sys_time.
57434         * modules/gettime (Depends-on): Likewise.
57435         * modules/gettimeofday (Depends-on): Likewise.
57436         * modules/nanosleep (Depends-on): Likewise.
57437         * modules/settime (Depends-on): Likewise.
57438         * modules/tempname (Depends-on): Likewise.
57439         * modules/utimens (Depends-on): Likewise.
57440         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57441         (Include): Change back to <sys/time.h>.
57442         (Maintainer): Add self.
57443         * modules/sys_time: New file.
57444         * modules/tempname (Depends-on): Add gettimeofday.
57445         * tests/test-gettimeofday.c: Include <sys/time.h>
57446         rather than gettimeofday.h.
57447
57448 2007-01-17  Bruno Haible  <bruno@clisp.org>
57449
57450         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57451         the license default to GPL.
57452         (func_create_testdir): Don't complain if a module is LGPL and its
57453         tests module depends on GPLed modules.
57454
57455 2007-01-17  Bruno Haible  <bruno@clisp.org>
57456
57457         * lib/gettimeofday.c (gettimeofday): Add code for the case
57458         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57459         maximum possible value for tv->tv_usec, rather than the minimum one.
57460
57461 2005-10-08  Martin Lambers  <marlam@marlam.de>
57462 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57463 2007-01-16  Bruno Haible  <bruno@clisp.org>
57464
57465         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57466         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57467         gl_FUNC_GETTIMEOFDAY.
57468         (Include): Add gettimeofday.h.
57469         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57470         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57471         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57472         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57473         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57474         * lib/gettimeofday.h: New file.
57475         * lib/gettimeofday.c: Include <sys/timeb.h>.
57476         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57477         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57478         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57479         fall back on time().
57480
57481         * tests/test-gettimeofday.c: New file.
57482         * modules/gettimeofday-tests: New file.
57483
57484 2007-01-16  Eric Blake  <ebb9@byu.net>
57485
57486         * modules/fnmatch (Depends-on): Depend on wchar.
57487         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57488         * m4/fnmatch.m4: Likewise.
57489         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57490         * m4/mbchar.m4: Likewise.
57491         * modules/mbswidth (Depends-on): Depend on wchar.
57492         * lib/mbswidth.c: Assume <wchar.h>.
57493         * m4/mbswidth.m4: Likewise.
57494         * modules/quotearg (Depends-on): Depend on wchar.
57495         * lib/quotearg.c: Assume <wchar.h>.
57496         * m4/quotearg.m4: Likewise.
57497         * modules/regex (Depends-on): Depend on wchar.
57498         * lib/regex_internal.h: Assume <wchar.h>.
57499         * m4/regex.m4: Likewise.
57500         * modules/stdint (Depends-on): Depend on wchar.
57501         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57502         * m4/stdint.m4: Likewise.
57503         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57504         * modules/strftime (Depends-on): Depend on wchar.
57505         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57506         * modules/strtol (Depends-on): Depend on wchar.
57507         * lib/strtol.c: Assume <wchar.h>.
57508         * modules/wcwidth (Depends-on): Depend on wchar.
57509         * lib/wcwidth.h: Assume <wchar.h>.
57510         * m4/wcwidth.m4: Likewise.
57511
57512 2007-01-16  Bruno Haible  <bruno@clisp.org>
57513
57514         * modules/csharpexec-script: New, created from...
57515         * modules/csharpexec: ... this.
57516
57517 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57518
57519         * modules/javaexec-script: New, created from...
57520         * modules/javaexec: ... this.
57521
57522 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57523
57524         * modules/poll (Dependencies): Add sys_select.
57525
57526 2007-01-15  Jim Meyering  <jim@meyering.net>
57527
57528         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57529         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57530         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57531         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57532
57533 2007-01-15  Bruno Haible  <bruno@clisp.org>
57534
57535         * modules/striconveh: New file.
57536         * lib/striconveh.h: New file.
57537         * lib/striconveh.c: New file.
57538         * MODULES.html.sh (Internationalization functions): Add striconveh.
57539
57540         * modules/striconveh-tests: New file.
57541         * tests/test-striconveh.c: New file.
57542
57543 2007-01-15  Bruno Haible  <bruno@clisp.org>
57544
57545         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57546         not from GNU libiconv or GNU libc.
57547
57548 2007-01-15  Bruno Haible  <bruno@clisp.org>
57549
57550         * doc/gnulib-intro.texi (Copyright): Explain the different license
57551         terms for module descriptions, autoconf macros, tests, documentation.
57552
57553 2007-01-14  Bruno Haible  <bruno@clisp.org>
57554
57555         * modules/striconv-tests: New file.
57556         * tests/test-striconv.c: New file.
57557
57558 2007-01-14  Bruno Haible  <bruno@clisp.org>
57559
57560         * modules/iconv-tests: New file.
57561         * tests/test-iconv.c: New file.
57562
57563 2007-01-14  Bruno Haible  <bruno@clisp.org>
57564
57565         * gnulib-tool (func_get_license): For test modules, use the license of
57566         the main module.
57567
57568 2007-01-14  Bruno Haible  <bruno@clisp.org>
57569
57570         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57571         if iconv is found to exist.
57572
57573 2007-01-14  Bruno Haible  <bruno@clisp.org>
57574
57575         * modules/c-ctype-tests: New file.
57576         * tests/test-c-ctype.c: New file.
57577
57578 2007-01-14  Bruno Haible  <bruno@clisp.org>
57579
57580         * modules/binary-io-tests: New file.
57581         * tests/test-binary-io.sh: New file.
57582         * tests/test-binary-io.c: New file.
57583
57584 2007-01-14  Bruno Haible  <bruno@clisp.org>
57585
57586         * modules/array-oset-tests: New file.
57587         * tests/test-array_oset.c: New file.
57588
57589 2007-01-14  Bruno Haible  <bruno@clisp.org>
57590
57591         * modules/array-list-tests: New file.
57592         * tests/test-array_list.c: New file.
57593
57594 2007-01-14  Bruno Haible  <bruno@clisp.org>
57595
57596         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57597         and make.
57598         Reported by Simon Josefsson in
57599         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57600
57601 2007-01-14  Bruno Haible  <bruno@clisp.org>
57602
57603         * modules/allocsa-tests: New file.
57604         * tests/test-allocsa.c: New file.
57605
57606 2007-01-14  Bruno Haible  <bruno@clisp.org>
57607
57608         * modules/fchdir (Depends-on): Add absolute-header.
57609         * modules/unistd (Depends-on): Likewise.
57610
57611 2006-12-30  Bruno Haible  <bruno@clisp.org>
57612
57613         * modules/fchdir: New file.
57614         * modules/unistd (Files): Add lib/unistd_.h.
57615         (Makefile.am): Generate unistd.h from unistd_.h.
57616         * lib/fchdir.c: New file.
57617         * lib/dirent_.h: New file.
57618         * lib/unistd_.h: New file.
57619         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57620         * m4/fchdir.m4: New file.
57621         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57622         (gl_HEADER_UNISTD): Invoke it.
57623         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57624         function.
57625         * lib/backupfile.c (opendir, closedir): Undefine.
57626         * lib/chown.c (open, close): Undefine.
57627         * lib/clean-temp.c (open, close): Undefine.
57628         * lib/copy-file.c (open, close): Undefine.
57629         * lib/execute.c (open, close): Undefine.
57630         * lib/fsusage.c (open, close): Undefine.
57631         * lib/gc-gnulib.c (open, close): Undefine.
57632         * lib/getcwd.c (opendir, closedir): Undefine.
57633         * lib/glob.c (opendir, closedir): Undefine.
57634         * lib/javacomp.c (open, close): Undefine.
57635         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57636         * lib/openat-proc.c (open, close): Undefine.
57637         * lib/pagealign_alloc.c (open, close): Undefine.
57638         * lib/pipe.c (open, close): Undefine.
57639         * lib/progreloc.c (open, close): Undefine.
57640         * lib/savedir.c (opendir, closedir): Undefine.
57641         * lib/utime.c (open, close): Undefine.
57642         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57643
57644 2007-01-10  Bruno Haible  <bruno@clisp.org>
57645
57646         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57647
57648 2007-01-12  Eric Blake  <ebb9@byu.net>
57649
57650         Provide a robust <wchar.h>.  Further simplifications are now
57651         possible in other modules, but not included here.
57652         * modules/wchar: New module.
57653         * m4/wchar.m4: New file.
57654         * lib/wchar_.h: Likewise.
57655         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57656         of the new module.
57657         * MODULES.html.sh (Extended multibyte and wide character utilities):
57658         New section.
57659
57660 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57661
57662         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57663         to a reasonable default for memory allocation.
57664         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57665         file system that reports garbage st_size values for symlinks.
57666         Problem reported by Liyang Hu.
57667
57668 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57669
57670         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57671         Emacs .#* auto-save files).
57672
57673 2007-01-11  Bruno Haible  <bruno@clisp.org>
57674
57675         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57676         directory.
57677
57678 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57679
57680         Use @...@ consistently in lib/wctype_.h.
57681         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57682         on it being set to 1 or 0.
57683         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57684         go back to AC_SUBSTing it.
57685         * modules/wctype (Makefile.am): Undo previous change.
57686
57687 2007-01-10  Eric Blake  <ebb9@byu.net>
57688
57689         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57690         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57691         * modules/wctype (Makefile.am): Likewise.
57692         Reported by Chris McGuire.
57693
57694 2007-01-10  Jim Meyering  <jim@meyering.net>
57695
57696         fts.c: a small readability/maintainability improvement
57697         * lib/fts.c (fts_read): Make this code slightly more readable and
57698         maintainable by hoisting the "sp->fts_cur = p" assignments to
57699         immediately follow the statements that set P.  Derived from
57700         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57701
57702 2007-01-10  Eric Blake  <ebb9@byu.net>
57703
57704         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57705         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57706         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57707         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57708         Reported by Chris McGuire.
57709
57710 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57711
57712         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57713         in sed script.
57714
57715 2007-01-09  Bruno Haible  <bruno@clisp.org>
57716
57717         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57718         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57719         variables.
57720         (func_module): Use them.
57721
57722 2007-01-09  Bruno Haible  <bruno@clisp.org>
57723
57724         * modules/unistr/base: New file.
57725         * lib/unistr.h: New file.
57726
57727         * modules/unistr/u8-to-u16: New file.
57728         * lib/unistr/u8-to-u16.c: New file.
57729
57730         * modules/unistr/u8-to-u32: New file.
57731         * lib/unistr/u8-to-u32.c: New file.
57732
57733         * modules/unistr/u16-to-u8: New file.
57734         * lib/unistr/u16-to-u8.c: New file.
57735
57736         * modules/unistr/u16-to-u32: New file.
57737         * lib/unistr/u16-to-u32.c: New file.
57738
57739         * modules/unistr/u32-to-u8: New file.
57740         * lib/unistr/u32-to-u8.c: New file.
57741
57742         * modules/unistr/u32-to-u16: New file.
57743         * lib/unistr/u32-to-u16.c: New file.
57744
57745         * modules/unistr/u8-check: New file.
57746         * modules/unistr/u16-check: New file.
57747         * modules/unistr/u32-check: New file.
57748         * lib/unistr/u8-check.c: New file.
57749         * lib/unistr/u16-check.c: New file.
57750         * lib/unistr/u32-check.c: New file.
57751
57752         * modules/unistr/u8-chr: New file.
57753         * modules/unistr/u16-chr: New file.
57754         * modules/unistr/u32-chr: New file.
57755         * lib/unistr/u8-chr.c: New file.
57756         * lib/unistr/u16-chr.c: New file.
57757         * lib/unistr/u32-chr.c: New file.
57758
57759         * modules/unistr/u8-cmp: New file.
57760         * modules/unistr/u16-cmp: New file.
57761         * modules/unistr/u32-cmp: New file.
57762         * lib/unistr/u8-cmp.c: New file.
57763         * lib/unistr/u16-cmp.c: New file.
57764         * lib/unistr/u32-cmp.c: New file.
57765
57766         * modules/unistr/u8-cpy: New file.
57767         * modules/unistr/u16-cpy: New file.
57768         * modules/unistr/u32-cpy: New file.
57769         * lib/unistr/u8-cpy.c: New file.
57770         * lib/unistr/u16-cpy.c: New file.
57771         * lib/unistr/u32-cpy.c: New file.
57772         * lib/unistr/u-cpy.h: New file.
57773
57774         * modules/unistr/u8-cpy-alloc: New file.
57775         * modules/unistr/u16-cpy-alloc: New file.
57776         * modules/unistr/u32-cpy-alloc: New file.
57777         * lib/unistr/u8-cpy-alloc.c: New file.
57778         * lib/unistr/u16-cpy-alloc.c: New file.
57779         * lib/unistr/u32-cpy-alloc.c: New file.
57780         * lib/unistr/u-cpy-alloc.h: New file.
57781
57782         * modules/unistr/u8-endswith: New file.
57783         * modules/unistr/u16-endswith: New file.
57784         * modules/unistr/u32-endswith: New file.
57785         * lib/unistr/u8-endswith.c: New file.
57786         * lib/unistr/u16-endswith.c: New file.
57787         * lib/unistr/u32-endswith.c: New file.
57788         * lib/unistr/u-endswith.h: New file.
57789
57790         * modules/unistr/u8-mblen: New file.
57791         * modules/unistr/u16-mblen: New file.
57792         * modules/unistr/u32-mblen: New file.
57793         * lib/unistr/u8-mblen.c: New file.
57794         * lib/unistr/u16-mblen.c: New file.
57795         * lib/unistr/u32-mblen.c: New file.
57796
57797         * modules/unistr/u8-mbtouc: New file.
57798         * modules/unistr/u16-mbtouc: New file.
57799         * modules/unistr/u32-mbtouc: New file.
57800         * lib/unistr/u8-mbtouc.c: New file.
57801         * lib/unistr/u16-mbtouc.c: New file.
57802         * lib/unistr/u32-mbtouc.c: New file.
57803
57804         * modules/unistr/u8-mbtouc-safe: New file.
57805         * modules/unistr/u16-mbtouc-safe: New file.
57806         * modules/unistr/u32-mbtouc-safe: New file.
57807         * lib/unistr/u8-mbtouc-safe.c: New file.
57808         * lib/unistr/u16-mbtouc-safe.c: New file.
57809         * lib/unistr/u32-mbtouc-safe.c: New file.
57810
57811         * modules/unistr/u8-move: New file.
57812         * modules/unistr/u16-move: New file.
57813         * modules/unistr/u32-move: New file.
57814         * lib/unistr/u8-move.c: New file.
57815         * lib/unistr/u16-move.c: New file.
57816         * lib/unistr/u32-move.c: New file.
57817         * lib/unistr/u-move.h: New file.
57818
57819         * modules/unistr/u8-next: New file.
57820         * modules/unistr/u16-next: New file.
57821         * modules/unistr/u32-next: New file.
57822         * lib/unistr/u8-next.c: New file.
57823         * lib/unistr/u16-next.c: New file.
57824         * lib/unistr/u32-next.c: New file.
57825
57826         * modules/unistr/u8-prev: New file.
57827         * modules/unistr/u16-prev: New file.
57828         * modules/unistr/u32-prev: New file.
57829         * lib/unistr/u8-prev.c: New file.
57830         * lib/unistr/u16-prev.c: New file.
57831         * lib/unistr/u32-prev.c: New file.
57832
57833         * modules/unistr/u8-set: New file.
57834         * modules/unistr/u16-set: New file.
57835         * modules/unistr/u32-set: New file.
57836         * lib/unistr/u8-set.c: New file.
57837         * lib/unistr/u16-set.c: New file.
57838         * lib/unistr/u32-set.c: New file.
57839         * lib/unistr/u-set.h: New file.
57840
57841         * modules/unistr/u8-startswith: New file.
57842         * modules/unistr/u16-startswith: New file.
57843         * modules/unistr/u32-startswith: New file.
57844         * lib/unistr/u8-startswith.c: New file.
57845         * lib/unistr/u16-startswith.c: New file.
57846         * lib/unistr/u32-startswith.c: New file.
57847         * lib/unistr/u-startswith.h: New file.
57848
57849         * modules/unistr/u8-stpcpy: New file.
57850         * modules/unistr/u16-stpcpy: New file.
57851         * modules/unistr/u32-stpcpy: New file.
57852         * lib/unistr/u8-stpcpy.c: New file.
57853         * lib/unistr/u16-stpcpy.c: New file.
57854         * lib/unistr/u32-stpcpy.c: New file.
57855         * lib/unistr/u-stpcpy.h: New file.
57856
57857         * modules/unistr/u8-stpncpy: New file.
57858         * modules/unistr/u16-stpncpy: New file.
57859         * modules/unistr/u32-stpncpy: New file.
57860         * lib/unistr/u8-stpncpy.c: New file.
57861         * lib/unistr/u16-stpncpy.c: New file.
57862         * lib/unistr/u32-stpncpy.c: New file.
57863         * lib/unistr/u-stpncpy.h: New file.
57864
57865         * modules/unistr/u8-strcat: New file.
57866         * modules/unistr/u16-strcat: New file.
57867         * modules/unistr/u32-strcat: New file.
57868         * lib/unistr/u8-strcat.c: New file.
57869         * lib/unistr/u16-strcat.c: New file.
57870         * lib/unistr/u32-strcat.c: New file.
57871         * lib/unistr/u-strcat.h: New file.
57872
57873         * modules/unistr/u8-strchr: New file.
57874         * modules/unistr/u16-strchr: New file.
57875         * modules/unistr/u32-strchr: New file.
57876         * lib/unistr/u8-strchr.c: New file.
57877         * lib/unistr/u16-strchr.c: New file.
57878         * lib/unistr/u32-strchr.c: New file.
57879
57880         * modules/unistr/u8-strcmp: New file.
57881         * modules/unistr/u16-strcmp: New file.
57882         * modules/unistr/u32-strcmp: New file.
57883         * lib/unistr/u8-strcmp.c: New file.
57884         * lib/unistr/u16-strcmp.c: New file.
57885         * lib/unistr/u32-strcmp.c: New file.
57886
57887         * modules/unistr/u8-strcpy: New file.
57888         * modules/unistr/u16-strcpy: New file.
57889         * modules/unistr/u32-strcpy: New file.
57890         * lib/unistr/u8-strcpy.c: New file.
57891         * lib/unistr/u16-strcpy.c: New file.
57892         * lib/unistr/u32-strcpy.c: New file.
57893         * lib/unistr/u-strcpy.h: New file.
57894
57895         * modules/unistr/u8-strcspn: New file.
57896         * modules/unistr/u16-strcspn: New file.
57897         * modules/unistr/u32-strcspn: New file.
57898         * lib/unistr/u8-strcspn.c: New file.
57899         * lib/unistr/u16-strcspn.c: New file.
57900         * lib/unistr/u32-strcspn.c: New file.
57901         * lib/unistr/u-strcspn.h: New file.
57902
57903         * modules/unistr/u8-strdup: New file.
57904         * modules/unistr/u16-strdup: New file.
57905         * modules/unistr/u32-strdup: New file.
57906         * lib/unistr/u8-strdup.c: New file.
57907         * lib/unistr/u16-strdup.c: New file.
57908         * lib/unistr/u32-strdup.c: New file.
57909         * lib/unistr/u-strdup.h: New file.
57910
57911         * modules/unistr/u8-strlen: New file.
57912         * modules/unistr/u16-strlen: New file.
57913         * modules/unistr/u32-strlen: New file.
57914         * lib/unistr/u8-strlen.c: New file.
57915         * lib/unistr/u16-strlen.c: New file.
57916         * lib/unistr/u32-strlen.c: New file.
57917         * lib/unistr/u-strlen.h: New file.
57918
57919         * modules/unistr/u8-strmblen: New file.
57920         * modules/unistr/u16-strmblen: New file.
57921         * modules/unistr/u32-strmblen: New file.
57922         * lib/unistr/u8-strmblen.c: New file.
57923         * lib/unistr/u16-strmblen.c: New file.
57924         * lib/unistr/u32-strmblen.c: New file.
57925
57926         * modules/unistr/u8-strmbtouc: New file.
57927         * modules/unistr/u16-strmbtouc: New file.
57928         * modules/unistr/u32-strmbtouc: New file.
57929         * lib/unistr/u8-strmbtouc.c: New file.
57930         * lib/unistr/u16-strmbtouc.c: New file.
57931         * lib/unistr/u32-strmbtouc.c: New file.
57932
57933         * modules/unistr/u8-strncat: New file.
57934         * modules/unistr/u16-strncat: New file.
57935         * modules/unistr/u32-strncat: New file.
57936         * lib/unistr/u8-strncat.c: New file.
57937         * lib/unistr/u16-strncat.c: New file.
57938         * lib/unistr/u32-strncat.c: New file.
57939         * lib/unistr/u-strncat.h: New file.
57940
57941         * modules/unistr/u8-strncmp: New file.
57942         * modules/unistr/u16-strncmp: New file.
57943         * modules/unistr/u32-strncmp: New file.
57944         * lib/unistr/u8-strncmp.c: New file.
57945         * lib/unistr/u16-strncmp.c: New file.
57946         * lib/unistr/u32-strncmp.c: New file.
57947
57948         * modules/unistr/u8-strncpy: New file.
57949         * modules/unistr/u16-strncpy: New file.
57950         * modules/unistr/u32-strncpy: New file.
57951         * lib/unistr/u8-strncpy.c: New file.
57952         * lib/unistr/u16-strncpy.c: New file.
57953         * lib/unistr/u32-strncpy.c: New file.
57954         * lib/unistr/u-strncpy.h: New file.
57955
57956         * modules/unistr/u8-strnlen: New file.
57957         * modules/unistr/u16-strnlen: New file.
57958         * modules/unistr/u32-strnlen: New file.
57959         * lib/unistr/u8-strnlen.c: New file.
57960         * lib/unistr/u16-strnlen.c: New file.
57961         * lib/unistr/u32-strnlen.c: New file.
57962         * lib/unistr/u-strnlen.h: New file.
57963
57964         * modules/unistr/u8-strpbrk: New file.
57965         * modules/unistr/u16-strpbrk: New file.
57966         * modules/unistr/u32-strpbrk: New file.
57967         * lib/unistr/u8-strpbrk.c: New file.
57968         * lib/unistr/u16-strpbrk.c: New file.
57969         * lib/unistr/u32-strpbrk.c: New file.
57970         * lib/unistr/u-strpbrk.h: New file.
57971
57972         * modules/unistr/u8-strrchr: New file.
57973         * modules/unistr/u16-strrchr: New file.
57974         * modules/unistr/u32-strrchr: New file.
57975         * lib/unistr/u8-strrchr.c: New file.
57976         * lib/unistr/u16-strrchr.c: New file.
57977         * lib/unistr/u32-strrchr.c: New file.
57978
57979         * modules/unistr/u8-strspn: New file.
57980         * modules/unistr/u16-strspn: New file.
57981         * modules/unistr/u32-strspn: New file.
57982         * lib/unistr/u8-strspn.c: New file.
57983         * lib/unistr/u16-strspn.c: New file.
57984         * lib/unistr/u32-strspn.c: New file.
57985         * lib/unistr/u-strspn.h: New file.
57986
57987         * modules/unistr/u8-strstr: New file.
57988         * modules/unistr/u16-strstr: New file.
57989         * modules/unistr/u32-strstr: New file.
57990         * lib/unistr/u8-strstr.c: New file.
57991         * lib/unistr/u16-strstr.c: New file.
57992         * lib/unistr/u32-strstr.c: New file.
57993         * lib/unistr/u-strstr.h: New file.
57994
57995         * modules/unistr/u8-strtok: New file.
57996         * modules/unistr/u16-strtok: New file.
57997         * modules/unistr/u32-strtok: New file.
57998         * lib/unistr/u8-strtok.c: New file.
57999         * lib/unistr/u16-strtok.c: New file.
58000         * lib/unistr/u32-strtok.c: New file.
58001         * lib/unistr/u-strtok.h: New file.
58002
58003         * modules/unistr/u8-uctomb: New file.
58004         * modules/unistr/u16-uctomb: New file.
58005         * modules/unistr/u32-uctomb: New file.
58006         * lib/unistr/u8-uctomb.c: New file.
58007         * lib/unistr/u16-uctomb.c: New file.
58008         * lib/unistr/u32-uctomb.c: New file.
58009
58010         * MODULES.html.sh (Unicode string functions): Add the new modules.
58011
58012 2007-01-08  Bruno Haible  <bruno@clisp.org>
58013
58014         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
58015         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
58016         subdirectories.
58017
58018 2007-01-08  Karl Berry  <karl@gnu.org>
58019
58020         * doc/error.texi: mention that main() fns must set program_name
58021         when progname is used.
58022
58023 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
58024
58025         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
58026         WCTYPE_H is empty, for the benefit of builds from non-distclean
58027         directories.  Problem reported by Eric Blake in
58028         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
58029
58030 2007-01-08  Bruno Haible  <bruno@clisp.org>
58031
58032         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
58033         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
58034         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
58035         PROVIDE_CANONICALIZE_FILENAME_MODE.
58036         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
58037
58038 2007-01-08  Bruno Haible  <bruno@clisp.org>
58039
58040         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
58041         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
58042         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
58043         * lib/fts.c: Likewise.
58044         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
58045
58046 2006-12-25  Bruno Haible  <bruno@clisp.org>
58047
58048         * modules/utf8-ucs4-safe: New file.
58049         * lib/utf8-ucs4-safe.h: New file.
58050         * lib/unistr/utf8-ucs4-safe.c: New file.
58051
58052         * modules/utf16-ucs4-safe: New file.
58053         * lib/utf16-ucs4-safe.h: New file.
58054         * lib/unistr/utf16-ucs4-safe.c: New file.
58055
58056         * MODULES.html.sh (Unicode string functions): Add the new modules.
58057
58058 2007-01-08  Bruno Haible  <bruno@clisp.org>
58059
58060         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
58061         (Depends-on): Add unitypes.
58062         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58063         (u8_mbtouc_aux): Move out to separate file.
58064         (u8_mbtouc): Use ucs4_t, uint8_t types.
58065         * lib/unistr/utf8-ucs4.c: New file.
58066
58067         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
58068         (Depends-on): Add unitypes.
58069         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58070         (u16_mbtouc_aux): Move out to separate file.
58071         (u16_mbtouc): Use ucs4_t, uint16_t types.
58072         * lib/unistr/utf16-ucs4.c: New file.
58073
58074         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
58075         (Depends-on): Add unitypes.
58076         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
58077         (u8_uctomb_aux): Move out to separate file.
58078         (u8_uctomb): Use ucs4_t, uint8_t types.
58079         * lib/unistr/ucs4-utf8.c: New file.
58080
58081         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
58082         (Depends-on): Add unitypes.
58083         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
58084         (u16_uctomb_aux): Move out to separate file.
58085         (u16_uctomb): Use ucs4_t, uint16_t types.
58086         * lib/unistr/ucs4-utf16.c: New file.
58087
58088 2006-12-25  Bruno Haible  <bruno@clisp.org>
58089
58090         * modules/unitypes: New file.
58091         * lib/unitypes.h: New file.
58092         * MODULES.html.sh (func_all_modules): New section "Unicode string
58093         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
58094         this section. Add unitypes.
58095
58096 2007-01-08  Bruno Haible  <bruno@clisp.org>
58097
58098         Avoid variable names that conflict with those from libtool.
58099         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
58100         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
58101         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
58102         library_names_spec to acl_library_names_spec, hardcode_* to
58103         acl_hardcode_*.
58104         Reported by Ralf Wildenhues.
58105
58106 2007-01-08  Bruno Haible  <bruno@clisp.org>
58107
58108         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
58109         definition.
58110         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
58111         definition.
58112         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
58113         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
58114         definition.
58115         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
58116         definition.
58117         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
58118         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
58119         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
58120         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
58121         definition.
58122         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
58123         definition.
58124         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
58125         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
58126         GC_USE_<algorithm>.
58127         * lib/gc-libgcrypt.c: Likewise.
58128         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
58129         * modules/gc-arctwo (configure.ac): Likewise.
58130         * modules/gc-des (configure.ac): Likewise.
58131         * modules/gc-hmac-md5 (configure.ac): Likewise.
58132         * modules/gc-hmac-sha1 (configure.ac): Likewise.
58133         * modules/gc-md2 (configure.ac): Likewise.
58134         * modules/gc-md4 (configure.ac): Likewise.
58135         * modules/gc-md5 (configure.ac): Likewise.
58136         * modules/gc-random (configure.ac): Likewise.
58137         * modules/gc-rijndael (configure.ac): Likewise.
58138         * modules/gc-sha1 (configure.ac): Likewise.
58139
58140 2007-01-08  Bruno Haible  <bruno@clisp.org>
58141
58142         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
58143         macro definition.
58144         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
58145         definition.
58146         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
58147         definition.
58148         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
58149         * modules/fcntl-safer (configure.ac): Likewise.
58150         * modules/fopen-safer (configure.ac): Likewise.
58151         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
58152         GNULIB_FWRITEERROR macro definition.
58153
58154 2007-01-08  Bruno Haible  <bruno@clisp.org>
58155
58156         * m4/gnulib-common.m4: New file.
58157         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
58158         (func_get_filelist): Add m4/gnulib-common.m4.
58159
58160 2007-01-08  Bruno Haible  <bruno@clisp.org>
58161
58162         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
58163         command.
58164
58165 2007-01-08  Jim Meyering  <jim@meyering.net>
58166
58167         Use a more robust test for a "can't happen" condition.
58168         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
58169         narrowed the st_size value.  Presuming the "can't happen" condition
58170         is true, that narrowing could conceivably convert an invalid st_size
58171         value into a valid one.  Instead, use a change based on Matthew
58172         Woehlke's original patch.
58173
58174         Slight readability improvement: use an assert-like macro
58175         in place of literal "abort ()" uses.
58176         * lib/fts.c (fts_assert): Define.
58177         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
58178         Use this macro instead of a bare 'abort'.
58179
58180 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
58181
58182         Don't worry about using IRIX 5.3's wctype.h broken definitions;
58183         simply work around them.
58184         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
58185         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
58186         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
58187         declaring.
58188         Don't bother to define as macros, since the standard doesn't require it.
58189         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
58190         longer worry about IRIX 5.3.
58191         (HAVE_WCTYPE_CTMP_BUG): Remove.
58192
58193 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58194
58195         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
58196         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
58197         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58198         Problems reported by Georg Schwarz for IRIX 5.3.
58199
58200         * gnulib-tool (autoconf_minversion): Take the maximum version number
58201         found, not the minimum.  Problem reported by James Youngman.
58202
58203 2007-01-03  Karl Berry  <karl@gnu.org>
58204
58205         * doc/error.texi: new file, explaining interaction with progname.
58206         * doc/gnulib.texi: include it.  Update copyright.
58207
58208 2007-01-03  Simon Josefsson  <simon@josefsson.org>
58209
58210         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
58211         AC_CANONICAL_HOST, to improve autobuild outputs.
58212
58213 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
58214             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58215
58216         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
58217         sockets, server sockets, and other file descriptors.  Count errors
58218         to compute the return value.  Reorder the code a bit to be easier
58219         to follow.  Don't set event bits that were not requested (except
58220         POLLERR and POLLHUP).
58221
58222 2007-01-01  Bruno Haible  <bruno@clisp.org>
58223
58224         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
58225
58226 2007-01-03  Jim Meyering  <jim@meyering.net>
58227
58228         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
58229
58230 2007-01-02  Bruno Haible  <bruno@clisp.org>
58231
58232         * modules/settime (Include): Require timespec.h.
58233         * modules/nanosleep (Include): Likewise.
58234
58235 2007-01-01  Bruno Haible  <bruno@clisp.org>
58236
58237         * gnulib-tool (func_emit_copyright_notice): Bump year.
58238         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
58239
58240 2007-01-01  Bruno Haible  <bruno@clisp.org>
58241
58242         Improve support for OpenBSD.
58243         * build-aux/config.rpath (libname_spec): Export.
58244         (library_names_spec): New variable. Export.
58245         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58246         library_names_spec from the config.rpath output. Locate shared library
58247         through the name pattern in library_names_spec.
58248
58249 2007-01-01  Eric Blake  <ebb9@byu.net>
58250
58251         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58252
58253 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58254
58255         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58256         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58257         assume the C locale, and avoid an "eval" that could cause trouble.
58258         Problem with SORT reported by Bob Proulx.
58259
58260         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58261         Define.  Trivial patch from Henning Nielsen Lund, originally
58262         sent to bug-grep@gnu.org today.
58263
58264 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58265
58266         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58267         struct stat.  Problem reported by Henning Nielsen Lund.
58268         * lib/acl.c: Include acl.h first, to check interface.  Don't
58269         bother to include sys/types.h and sys/stat.h again.
58270
58271 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58272
58273         Import the following change from libc; problem reported by
58274         Sven Verdoolaege.
58275
58276         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58277
58278         [BZ #1373]
58279         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58280
58281 2006-12-28  Jim Meyering  <jim@meyering.net>
58282
58283         * build-aux/announce-gen: Do not assume that the package
58284         builds any of tar.gz, tar.bz2, and .xdelta files.
58285         Suggestion from Simon Josefsson.
58286
58287 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58288
58289         * modules/announce-gen: New file.
58290
58291 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58292
58293         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58294         handles its gotchas now.
58295         * lib/mbswidth.c: Likewise.
58296         * lib/wcwidth.h: Likewise.
58297         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58298         and iswcntrl; the wctype module does this stuff now.
58299         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58301         * modules/mbchar (Depends-on): Add wctype.
58302         * modules/mbswidth (Depends-on): Likewise.
58303         * modules/wcwidth (Depends-on): Likewise.
58304
58305 2006-12-27  Eric Blake  <ebb9@byu.net>
58306
58307         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58308         module uses more than what <wctype.h> is required to provide.
58309
58310 2006-12-26  Eric Blake  <ebb9@byu.net>
58311
58312         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58313
58314 2006-12-26  Eric Blake  <ebb9@byu.net>
58315
58316         * modules/absolute-header: New module.
58317         * modules/fcntl (Depends-on): Depend on it.
58318         * modules/inttypes (Depends-on): Likewise.
58319         * modules/stdint (Depends-on): Likewise.
58320         * modules/sys_stat (Depends-on): Likewise.
58321         * modules/wctype (Depends-on): Likewise.
58322         * MODULES.html.sh (Support for building libraries and
58323         executables): Document it.
58324
58325 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58326
58327         * gnulib-tool (SED): Remove, undoing previous change.
58328         The problem was that it broke coreutils on Solaris, because
58329         "sed --posix" leaked into a makefile.
58330         (sed): New alias, if 'alias' and GNU sed.
58331
58332 2006-12-24  Jim Meyering  <jim@meyering.net>
58333
58334         Work around an fchownat bug in glibc-2.4:
58335         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58336         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58337         in spite of the -P option.
58338         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58339         New macros.
58340         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58341         * modules/openat (Files): Add lib/fchownat.c.
58342         * lib/openat.c (fchownat): Don't define here.  Move to...
58343         * lib/fchownat.c: ...this new file.
58344
58345 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58346
58347         Fix bug reported by Bruno Haible in
58348         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58349         where quotearg.c didn't compile on Mac OS X 10.2 because it
58350         lacks <wchar.h> and wint_t.
58351         * lib/wctype_.h (__wctype_wint_t): New type.
58352         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58353         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58354         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58355         Arg is now of type __wctype_wint_t, not wint_t.
58356         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58357         substitute HAVE_WINT_T.
58358         * modules/wctype (Files): Add m4/wint_t.m4.
58359         (wctype.h): Substitute HAVE_WINT_T.
58360
58361 2006-12-23  Bruno Haible  <bruno@clisp.org>
58362
58363         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58364
58365 2006-12-23  Bruno Haible  <bruno@clisp.org>
58366
58367         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58368         S_ISLNK.
58369         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58370         mingw.
58371
58372 2006-12-22  Bruno Haible  <bruno@clisp.org>
58373
58374         * lib/copy-file.c: Include acl.h.
58375         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58376         Close the file descriptors only after being done with copy_acl.
58377         * modules/copy-file (Depends-on): Add acl.
58378
58379 2006-12-22  Bruno Haible  <bruno@clisp.org>
58380
58381         * gnulib-tool (SED): New variable.
58382         Use $SED instead of sed everywhere.
58383
58384 2006-12-22  Bruno Haible  <bruno@clisp.org>
58385
58386         * modules/no-c++: New file.
58387         * m4/no-c++.m4: New file.
58388         * MODULES.html.sh (Support for building libraries and executables):
58389         Add no-c++.
58390
58391 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58392
58393         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58394         Include <limits.h>, and use its INT_MAX to rewrite the
58395         j loop so that it does not overflow 'int'.  Problem reported by
58396         Ralf Wildenhues in
58397         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58398         Play it safe by shifting left by 1 rather than multiplying by 2,
58399         as GCC is less likely to optimize this away when the value
58400         is signed (when it assumes overflow leads to undefined behavior).
58401         Also, don't assume time_t uses two's complement.
58402
58403 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58404
58405         * MODULES.html.sh: New module wctype.
58406         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58407         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58408         <wctype.h>, since the new wctype module should fix this.
58409         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58410         the wctype module should arrange for it.
58411         * lib/regex_internal.h: Likewise.
58412         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58413         since the wctype module should handle this now.
58414         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58415         * modules/fnmatch (Depends-on): Add wctype.
58416         * modules/quotearg (Depends-on): Likewise.
58417         * modules/regex (Depends-on): Likewise.
58418
58419 2006-12-19  Bruno Haible  <bruno@clisp.org>
58420
58421         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58422         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58423
58424 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58425
58426         * modules/savewd (Depends-on): Fix dependency on fcntl.
58427
58428 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58429
58430         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58431         conforms to C99, rather than relying on the user's environment
58432         setting of STDINT_H.
58433
58434 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58435         and Eric Blake  <ebb9@byu.net>
58436
58437         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58438         This is more consistent with the other defines here.
58439         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58440         Port to z/OS.  Problem reported by Paul Gilmartin.
58441         Change local vars to use gl_ prefix rather than ac_.
58442         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58443         with other defines.
58444         * modules/double-slash-root: New module.
58445         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58446         (Depends-on): Add double-slash-root.
58447         * MODULES.html.sh (File system functions): Mention new module.
58448
58449 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58450
58451         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58452         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58453         This is for the benefit of gzip, which doesn't do i18n.
58454
58455 2006-12-12  Jim Meyering  <jim@meyering.net>
58456
58457         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58458         Reported by Andreas Schwab <schwab@suse.de>.
58459
58460 2006-12-12  Bruno Haible  <bruno@clisp.org>
58461
58462         Merge these changes.
58463         2006-09-05  Bruno Haible  <bruno@clisp.org>
58464         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58465         iconv_alloc succeeded.
58466         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58467         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58468         test for " && dest " at the end - dest is always != NULL there. Call
58469         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58470         with 2xNULL arguments, also to flush the state storage. Handle the
58471         IRIX iconv behaviour. Realloc the final result, to throw away unused
58472         memory.
58473
58474 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58475
58476         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58477         and fchmodat unconditionally, since glibc 2.4 has them.
58478         Problem reported by Arkadiusz Miskiewicz.
58479
58480 2006-12-10  Bruno Haible  <bruno@clisp.org>
58481
58482         * gnulib-tool (func_import): Show the include files only for those
58483         modules that are copied and specified.
58484         Reported by Karl Berry.
58485
58486 2006-12-08  Jim Meyering  <jim@meyering.net>
58487
58488         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58489         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58490
58491         * build-aux/announce-gen: Add two new options, both optional:
58492         --bootstrap-tools=TOOL_LIST
58493               a comma-separated list of tools, e.g.,
58494               autoconf,automake,bison,gnulib
58495         --gnulib-snapshot-date=DATE
58496               if gnulib is in the bootstrap tool list,
58497               then report this as the snapshot date.
58498               If not specified, use the current date/time.
58499               If you specify a date here, be sure it's UTC.
58500
58501 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58502
58503         * tests/test-argp-2.sh: Fix test to match actual output.
58504         (func_compare): Fix sed script to be portable.
58505
58506 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58507
58508         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58509         workaround for this case.  It is not autoconfigured now; offhand
58510         it's hard to see how to autoconfigure it.
58511
58512 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58513
58514         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58515         a directory that is about to be chowned.  Such a directory's
58516         initial file permissions should permit the owner only and this
58517         should not be changed until after the chown, since the group and
58518         other bits would be incorrect if they granted permission before
58519         the chown.
58520
58521         Fix porting problem for iswctype reported by Georg Schwarz in:
58522         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58523         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58524         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58525         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58526         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58527
58528 2006-12-03  Jim Meyering  <jim@meyering.net>
58529
58530         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58531         p->fts_statp may not yet be defined.
58532         (fts_read): Instead, set it in the caller, once p->fts_statp is
58533         sure to be defined, and corresponds to a top-level directory.
58534         This bug made du -x fail.  Here's the coreutils test case:
58535         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58536         Reported by Mike Frysinger.
58537
58538 2006-12-01  Jim Meyering  <jim@meyering.net>
58539
58540         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58541         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58542         Reported by Simon Josefsson.
58543
58544 2006-11-30  Jim Meyering  <jim@meyering.net>
58545
58546         * m4/warning.m4: Use the all-permissive copyright notice
58547         recommended by RMS (rather than LGPL).
58548         * m4/vararrays.m4: Likewise.
58549         * m4/flexmember.m4: Likewise.
58550
58551 2006-11-29  Bruno Haible  <bruno@clisp.org>
58552
58553         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58554         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58555         using +=.
58556         Reported by Simon Josefsson <simon@josefsson.org>.
58557
58558 2006-11-28  James Youngman <jay@gnu.org>
58559
58560         * README: Advise users that they might find the bug-gnulib@gnu.org
58561         and autotools-announce@gnu.org mailing lists useful.
58562
58563 2006-11-28  Bruno Haible  <bruno@clisp.org>
58564
58565         * m4/ptrdiff_max.m4: Remove file.
58566
58567 2006-11-21  Bruno Haible  <bruno@clisp.org>
58568
58569         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58570         _AC_COMPUTE_INT.
58571         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58572         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58573         _AC_COMPUTE_INT.
58574         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58575         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58576         _AC_COMPUTE_INT.
58577         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58578
58579 2006-11-28  Jim Meyering  <jim@meyering.net>
58580
58581         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58582         warning from "gcc -Wshadow" about shadowing the builtin.
58583
58584 2006-11-27  Bruno Haible  <bruno@clisp.org>
58585
58586         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58587         _AC_COMPUTE_INT.
58588         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58589
58590 2006-11-27  Bruno Haible  <bruno@clisp.org>
58591             Paul Eggert  <eggert@cs.ucla.edu>
58592
58593         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58594
58595 2006-11-26  Bruno Haible  <bruno@clisp.org>
58596
58597         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58598         noinst_LTLIBRARIES.
58599
58600 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58601             Bruno Haible  <bruno@clisp.org>
58602
58603         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58604         if compiling with "gcc -ansi".
58605
58606 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58607
58608         Fix some incompatibilities with gcc -ansi -pedantic.
58609         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58610         if compiling pedantically with GCC, unless it's C99 or later.
58611         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58612         it mishandles gcc -ansi -pedantic as well.
58613         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58614         if gcc -pedantic.
58615         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58616         initializers for struct if -pedantic, unless it's C99 or later.
58617
58618 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58619
58620         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58621         Don't close an fd more than once. Identical atimes indicate
58622         success, not failure.
58623
58624 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58625
58626         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58627
58628 2006-11-23  Jim Meyering  <jim@meyering.net>
58629
58630         * build-aux/announce-gen: New file.  From coreutils.
58631
58632 2006-11-22  Jim Meyering  <jim@meyering.net>
58633
58634         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58635         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58636         (fts_read): Use a temporary to narrow the overused st_size member
58637         before using it in a switch statement.  Reported by Matthew Woehlke.
58638
58639         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58640         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58641
58642 2006-11-20  Bruno Haible  <bruno@clisp.org>
58643
58644         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58645         changequote instead of pairs of brackets.
58646         Reported by Andreas Schwab <schwab@suse.de>.
58647
58648 2006-11-21  Jim Meyering  <jim@meyering.net>
58649
58650         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58651         so as to remain compatible with older compilers.
58652         Patch from Michael Deutschmann.
58653
58654 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58655
58656         * MODULES.html.sh (File system functions): Add openat.
58657
58658         * lib/openat.h (rpl_fstatat): New macro, if
58659         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58660         (fstatat): Define to rpl_fstatat under the same conditions,
58661         unless COMPILING_FSTATAT.
58662         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58663         seems to have the bug.
58664         * lib/fstatat.c: New file.
58665         * modules/openat (Files): Add it.
58666
58667 2006-11-20  Bruno Haible  <bruno@clisp.org>
58668
58669         * Makefile: New file.
58670
58671 2006-11-20  Jim Meyering  <jim@meyering.net>
58672
58673         The beginnings of syntax-related checks for gnulib.
58674         * lib/Makefile: New file.
58675         * lib/t-idcache: New script.  Ensure that the two halves of
58676         idcache.c stay in sync.
58677
58678         * lib/idcache.c: Adjust comments in user- and group- portions to
58679         be more accurate, and to be consistent with one another.
58680
58681 2006-11-20  Jim Meyering  <jim@meyering.net>
58682
58683         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58684         continue using the flexible array member (thus, this module performs
58685         half as many malloc calls), with the addition that...
58686         (getgroup, getuser): Consistently record a non-match via an empty
58687         "name" string, and map an empty string match to a NULL return value.
58688         * modules/idcache (Depends-on): Re-add flexmember.
58689
58690         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58691         (getuidbyname, getgroup, getgidbyname): Likewise.
58692
58693         Use cleaner syntax: NULL rather than 0.
58694         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58695
58696 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58697
58698         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58699         It mishandled the case where the group was missing.
58700         Problem reported by Greg Schafer.
58701         * modules/idcache: Likewise.
58702
58703 2006-11-18  Jim Meyering  <jim@meyering.net>
58704
58705         * check-module (%exempt_header): Add exception for some
58706         conditionally-included headers.
58707
58708         * modules/i-ring (Depends-on): Add verify.
58709         (License): Change to LGPL.
58710
58711 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58714         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58715         and inttostr.h.  Use snprintf rather than uinttostr, so that
58716         LGPLed code doesn't depend on GPLed.
58717
58718 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58719
58720         * modules/inline (License): Change from GPL to LGPL.
58721
58722 2006-11-17  Jim Meyering  <jim@meyering.net>
58723
58724         * modules/d-type (License): Switch to LGPL.
58725
58726 2006-11-15  Bruno Haible  <bruno@clisp.org>
58727
58728         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58729
58730 2006-11-15  Eric Blake  <ebb9@byu.net>
58731
58732         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58733         the module dependency.
58734
58735 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58736             Bruno Haible  <bruno@clisp.org>
58737
58738         * gnulib-tool (func_create_testdir): Add license consistency check.
58739
58740 2006-11-15  Eric Blake  <ebb9@byu.net>
58741
58742         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58743         random "(cached)" in configure output.
58744
58745 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58746
58747         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58748         test for conforming inttypes.h is both announced and cached.
58749
58750         * MODULES.html.sh (seen_modules, seen_files): New variables.
58751         (func_module): Rewrite to use a few less gnulib-tool and sed
58752         invocations.  Avoid a couple of quadratic algorithms for ...
58753         (missed_modules, missed_files): ... these, with ...
58754         (func_append, func_tmpdir): ... these new functions, from
58755         gnulib-tool.  Analogously, install traps for cleanup.
58756
58757         * tests/test-gc.c (main): Remove unused variables.
58758         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58759
58760 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58761
58762         * modules/inttostr (License): Change to LGPL.
58763
58764 2006-11-14  Eric Blake  <ebb9@byu.net>
58765
58766         * modules/tempname (License): Change to LGPL.
58767
58768 2006-11-14  Eric Blake  <ebb9@byu.net>
58769
58770         * doc/functions.texi (Function Portability): *printf functions on
58771         Cygwin now understand all POSIX size specifiers.
58772
58773 2006-11-14  Bruno Haible  <bruno@clisp.org>
58774
58775         * modules/c-ctype (License): Change to LGPL.
58776
58777 2006-11-12  Bruno Haible  <bruno@clisp.org>
58778
58779         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58780         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58781         for GNOME libraries, for which the include files are installed in
58782         subdirectories of $prefix/include.
58783
58784 2006-11-12  Bruno Haible  <bruno@clisp.org>
58785
58786         * m4/lib-link.m4: Require at least autoconf-2.54.
58787         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58788         name to underscores for the --with option.
58789
58790 2006-11-13  Bruno Haible  <bruno@clisp.org>
58791
58792         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58793         the tests directory.
58794         Reported by Ralf Wildenhues.
58795
58796 2006-11-13  Bruno Haible  <bruno@clisp.org>
58797
58798         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58799         (func_emit_initmacro_end): Undo the override here.
58800         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58801         Works around the famous automake error in coreutils.
58802
58803 2006-11-13  Eric Blake  <ebb9@byu.net>
58804
58805         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58806         element, not its node.
58807
58808 2006-11-12  Bruno Haible  <bruno@clisp.org>
58809
58810         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58811         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58812
58813 2006-11-12  Bruno Haible  <bruno@clisp.org>
58814
58815         * gnulib-tool: New option --local-symlink.
58816         (func_usage): Document it.
58817         (lsymbolic): New variable.
58818         (func_import, func_create_testdir): If --symlink was not specified,
58819         test whether --local-symlink was specified and the file comes from
58820         the local_gnulib_dir.
58821
58822 2006-11-12  Bruno Haible  <bruno@clisp.org>
58823
58824         * gnulib-tool (func_ln): New function.
58825         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58826
58827 2006-11-12  Bruno Haible  <bruno@clisp.org>
58828
58829         Finish support for source files in subdirectories.
58830         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58831         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58832         AUTOMAKE_OPTIONS.
58833         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58834
58835 2006-11-12  Bruno Haible  <bruno@clisp.org>
58836
58837         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58838         EXTRA_lib_SOURCES augmentation.
58839         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58840
58841 2006-11-12  Jim Meyering  <jim@meyering.net>
58842
58843         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58844         file descriptors.  This also averts a failure on systems with
58845         native openat support when a traversed directory lacks "x" access.
58846         * lib/fts_.h: Include "i-ring.h"
58847         (struct FTS) [fts_fd_ring]: New member.
58848         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58849         (FCHDIR): Add parentheses.
58850         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58851         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58852         When descending, rather than simply closing the previous
58853         fts_cwd_fd value, push that file descriptor onto the ring.
58854         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58855         (fts_open): Initialize the new fd_ring member.
58856         (fts_close): Clear the ring.
58857         (fts_safe_changedir): When possible, use our new fd_ring to skip
58858         the diropen and fstat and dev/ino comparison that would normally
58859         accompany a virtual `chdir ("..")'.
58860
58861         * modules/fts (Depends-on): Add i-ring.
58862         * modules/i-ring: New module.
58863         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58864         * m4/i-ring.m4: New file.
58865
58866 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58867
58868         * gnulib-tool (func_create_testdir): Fix replacement of
58869         `build-aux' in configure.ac.  Run autotools in gltests
58870         subdirectory.
58871         (func_create_testdir, func_create_megatestdir, test): There is
58872         no need for '--force' in most autotool invocations in a new
58873         tree.  Actually fail the whole test if any of the tools, or the
58874         configure or make stages fail.
58875
58876         Sync from Automake.
58877         * build-aux/gnupload: Revert last change.  Add pointer to upload
58878         instructions of the GNU Maintenance Instructions.
58879         Suggestion by Karl Berry.
58880
58881 2006-11-10  Jim Meyering  <jim@meyering.net>
58882
58883         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58884
58885 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58886
58887         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58888         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58889         (bind_textdomain_codeset) [! ENABLE_NLS]:
58890         Evaluate all the arguments.  That way, callers get compatible behavior
58891         if the arguments have side effects.  Also, it avoids some GCC
58892         diagnostics in some cases; Joel E. Denny reported problems when Bison
58893         was configured with --enable-gcc-warnigs.
58894
58895 2006-11-10  Jim Meyering  <jim@meyering.net>
58896
58897         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58898         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58899         account.
58900
58901 2006-11-10  Jim Meyering  <jim@meyering.net>
58902
58903         * modules/inline: New file/module.
58904         * modules/xalloc (Files): Remove m4/inline.m4.
58905         (Depends-on): Add inline, instead.
58906         * modules/oset: Likewise.
58907         * modules/list: Likewise.
58908
58909 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58910
58911         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58912         Problem reported by Matthew Woehlke.
58913
58914 2006-11-09  Bruno Haible  <bruno@clisp.org>
58915
58916         * lib/tempname.c (gen_tempname): Remove variant that invokes
58917         __gen_tempname.
58918         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58919         __gen_tempname.
58920
58921 2006-11-08  Bruno Haible  <bruno@clisp.org>
58922
58923         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58924         to 'yes' instead of 'cross-compiling'.
58925
58926 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58927
58928         * lib/quotearg.h (quotearg_free): New decl.
58929         * lib/quotearg.c (quotearg_free): New function.
58930         (slot0, nslots, slotvec0, slotvec):
58931         Now file-scope so that quotearg_free can get at them.
58932
58933 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58934
58935         Sync from Automake.
58936         * build-aux/gnupload: Add missing 'gnu' to example URL.
58937         Report by Karl Berry.
58938
58939 2006-11-08  Bruno Haible  <bruno@clisp.org>
58940
58941         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58942         Suggested by Paul Eggert.
58943
58944 2006-11-08  Jim Meyering  <jim@meyering.net>
58945
58946         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58947         It's already included if !_LIBC.
58948         (fts_safe_changedir): Add a comment.
58949
58950 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58951
58952         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58953         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58954         Matthew Woehlke.
58955
58956         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58957         definitions up, to avoid colliding with change below.
58958         (static_inline) [HAVE_INLINE]: New macro.
58959         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58960         Provide extern decls when !HAVE_INLINE.  Do not define unless
58961         static_inline is defined, either by us or by xmalloc.c.  Use
58962         static_inline rather than static inline.
58963         (XCALLOC): Optimize sizeof(T) = 1 case.
58964         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58965
58966 2006-11-07  Bruno Haible  <bruno@clisp.org>
58967
58968         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58969         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58970         AC_C_INLINE.
58971         * modules/xalloc (Files): Add m4/inline.m4.
58972
58973 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58974
58975         * README: Fix typo.
58976         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58977         (Miscellanous Notes): ...from this.
58978
58979 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58980
58981         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58982         Mention that offsetof should be used instead of sizeof.
58983         From Bruno Haible.
58984
58985 2006-11-07  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58988
58989 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58990
58991         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58992         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58993         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58994         (gl_tree_add_before, gl_tree_add_after):
58995         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58996         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58997         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58998         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58999         (gl_linked_add_after, gl_linked_add_at): Likewise.
59000         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
59001         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59002         (gl_tree_add_before, gl_tree_add_after): Likewise.
59003         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
59004         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
59005         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
59006
59007 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59008
59009         * lib/gl_oset.h: Use C comment style, not C++ comment style.
59010
59011 2006-11-06  Bruno Haible  <bruno@clisp.org>
59012
59013         * m4/inline.m4: New file.
59014         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
59015         * modules/list (Files): Add m4/inline.m4.
59016         * modules/oset (Files): Likewise.
59017
59018 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59019
59020         * lib/idcache.c: Include <stddef.h>, for offsetof.
59021         (struct userid.name): Change from char * to a flexible array member.
59022         All uses changed.
59023         * modules/idcache (Depends-on): Add flexmember.
59024
59025         * MODULES.html.sh (Core language properties): New module flexmember.
59026         * modules/flexmember, m4/flexmember.m4: New files.
59027
59028         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
59029         inline functions that are identical with the old xnmalloc_inline,
59030         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
59031         that we can avoid some unnecessary integer multiplications and
59032         divisions in the common case where the element size is known at
59033         compile time.
59034         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
59035         needed.
59036         (xnboundedmalloc): Remove.
59037         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
59038         arguments, for consistency with rest of this header.
59039         (xcharalloc): Rewrite using XNMALLOC.
59040         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
59041         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
59042         versions have been moved to lib/xalloc.h and renamed to be the
59043         non-*_inline versions.
59044         (xmalloc, xrealloc): Implement without reference to the xnmalloc
59045         and xnrealloc functions, since those functions are now inline and
59046         now call us.
59047         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
59048         renaming described above.
59049         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
59050         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
59051         captures the dependency in AC_C_INLINE.
59052
59053         New module canonicalize-lgpl, proposed by Charles Wilson in
59054         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
59055         with a few small changes afterwards.
59056         * MODULES.html.sh (File system functions): New module
59057         canonicalize-lgpl.
59058         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
59059         and canonicalize_file_name.
59060         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
59061         * modules/canonicalize-lgpl: New files.
59062
59063 2006-11-05  Bruno Haible  <bruno@clisp.org>
59064
59065         * gnulib-tool (func_import, func_create_testdir): Create directories
59066         also for files in subdirectories of lib/.
59067
59068 2006-11-05  Bruno Haible  <bruno@clisp.org>
59069
59070         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
59071         ANSI C compliant.
59072
59073 2006-11-03  Bruno Haible  <bruno@clisp.org>
59074
59075         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59076         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
59077         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
59078         (xnboundedmalloc): New inline function.
59079         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
59080         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
59081         xmalloc.
59082         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
59083         xmalloc.
59084         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
59085         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
59086         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
59087         xmalloc.
59088         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59089         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
59090         xmalloc.
59091         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
59092         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59093         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
59094         xmalloc.
59095         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59096         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
59097         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59098         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
59099         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
59100         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
59101         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
59102
59103 2006-11-03  Bruno Haible  <bruno@clisp.org>
59104
59105         * lib/c-ctype.h [C++]: Define functions without name mangling.
59106         * lib/fwriteerror.h [C++]: Likewise.
59107         * lib/gcd.h [C++]: Likewise.
59108         * lib/linebreak.h [C++]: Likewise.
59109
59110 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59111
59112         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
59113         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
59114         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
59115         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59116         Check for functions and headers just once.
59117         Check for declaration of canonicalize_file_name.
59118         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
59119
59120 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59121
59122         * gnulib-tool (func_import): Fix typo in actioncmd.
59123
59124 2006-11-02  Bruno Haible  <bruno@clisp.org>
59125
59126         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
59127         newline sequence in the Makefile.am snippet as a space, like "make"
59128         does.
59129         Reported by Roger Persson <perrog@gmail.com>.
59130
59131 2006-11-01  Bruno Haible  <bruno@clisp.org>
59132
59133         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
59134         already declared in <string.h>.
59135         * lib/strcase.h (strncasecmp): Don't declare it if yes.
59136
59137 2006-11-01  Bruno Haible  <bruno@clisp.org>
59138
59139         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
59140         * lib/strcase.h: Include <string.h>.
59141         (strcasecmp): Define to rpl_strcasecmp here.
59142
59143 2006-11-01  Bruno Haible  <bruno@clisp.org>
59144
59145         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
59146
59147 2006-11-01  Eric Blake  <ebb9@byu.net>
59148
59149         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
59150
59151         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
59152
59153 2006-10-29  Bruno Haible  <bruno@clisp.org>
59154
59155         Make it compile in C++ mode.
59156         * lib/full-write.c (full_rw): Add a cast.
59157
59158 2006-11-01  Bruno Haible  <bruno@clisp.org>
59159
59160         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
59161         be POSIX compliant.
59162         Reported by Roger Persson <perrog@gmail.com>.
59163
59164 2006-11-01  Eric Blake  <ebb9@byu.net>
59165
59166         * lib/getopt_.h: Fix comments.
59167
59168 2006-10-31  Eric Blake  <ebb9@byu.net>
59169
59170         * modules/tmpdir (Depends-on): Add sys_stat.
59171         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
59172         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
59173         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
59174         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
59175         tempname.
59176
59177 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
59178
59179         Avoid some C++ diagnostics reported by Bruno Haible.
59180         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
59181         xmalloc.
59182         (quotearg_alloc): Use xcharalloc rather than xmalloc.
59183         (struct slotvec): Move to top level.
59184         (quotearg_n_options): Rewrite to avoid xmalloc.
59185         * lib/xalloc.h (xcharalloc): New function.
59186         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
59187         [defined __cplusplus]: Add function template that provides result
59188         type propagation.  This part of the change is from Bruno Haible.
59189
59190 2006-10-29  Bruno Haible  <bruno@clisp.org>
59191
59192         Make it compile in C++ mode.
59193         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
59194         * lib/strnlen1.c (strnlen1): Cast memchr result.
59195         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
59196         * lib/clean-temp.c (string_equals, string_hash): Add casts.
59197         (create_temp_dir): Rename local variable 'template'.
59198         (compile_csharp_using_sscli): Add cast.
59199         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
59200         * lib/findprog.c (find_in_path): Likewise.
59201         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
59202         * lib/wait-process.c (register_slave_subprocess): Likewise.
59203
59204 2006-10-22  Bruno Haible  <bruno@clisp.org>
59205
59206         * modules/tsearch: New file.
59207         * lib/tsearch.h: New file.
59208         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
59209         * m4/tsearch.m4: New file.
59210         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
59211
59212 2006-10-29  Eric Blake  <ebb9@byu.net>
59213
59214         * lib/arcfour.c: Assume config.h.
59215         * lib/arctwo.c: Likewise.
59216         * lib/base64.c: Likewise.
59217         * lib/check-version.c: Likewise.
59218         * lib/crc.c: Likewise.
59219         * lib/des.c: Likewise.
59220         * lib/gc-gnulib.c: Likewise.
59221         * lib/gc-libgcrypt.c: Likewise.
59222         * lib/gc-pbkdf2-sha1.c: Likewise.
59223         * lib/getaddrinfo.c: Likewise.
59224         * lib/getdelim.c: Likewise.
59225         * lib/getline.c: Likewise.
59226         * lib/hmac-md5.c: Likewise.
59227         * lib/hmac-sha1.c: Likewise.
59228         * lib/iconvme.c: Likewise.
59229         * lib/md2.c: Likewise.
59230         * lib/md4.c: Likewise.
59231         * lib/memxor.c: Likewise.
59232         * lib/read-file.c: Likewise.
59233         * lib/readline.c: Likewise.
59234         * lib/rijndael-alg-fst.c: Likewise.
59235         * lib/rijndael-api-fst.c: Likewise.
59236         * lib/xgetdomainname.c: Likewise.
59237
59238 2006-10-28  Eric Blake  <ebb9@byu.net>
59239
59240         * lib/xstrndup.c: Assume config.h.
59241
59242 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59243
59244         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59245         stat-macros.h is now for our own macros, whereas stat_h is for
59246         macros in the <sys/stat.h> name space.
59247         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59248         (STAT_MACROS_H): Remove.
59249         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59250         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59251         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59252         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59253         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59254         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59255         Move these macros to ...
59256         * lib/stat_.h: here.  Don't include stat-macros.h.
59257         * lib/canonicalize.c: Don't include stat-macros.h.
59258         * lib/chown.c: Likewise.
59259         * lib/euidaccess.c: Likewise.
59260         * lib/file-type.c: Likewise.
59261         * lib/filemode.c: Likewise.
59262         * lib/glob.c: Likewise.
59263         * lib/isapipe.c: Likewise.
59264         * lib/lchown.c: Likewise.
59265         * lib/lstat.c: Likewise.
59266         * lib/mkdir-p.c: Likewise.
59267         * lib/rmdir.c: Likewise.
59268         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59269         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59270         unless mkdir isn't declared, to speed up 'configure'.
59271         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59272         would define all the S_* symbols.
59273         * modules/canonicalize (Depends-on):
59274         Depend on sys_stat, not stat-macros.
59275         * modules/chown: Likewise.
59276         * modules/euidaccess: Likewise.
59277         * modules/filemode: Likewise.
59278         * modules/file-type: Likewise.
59279         * modules/glob: Likewise.
59280         * modules/isapipe: Likewise.
59281         * modules/lchown: Likewise.
59282         * modules/lstat: Likewise.
59283         * modules/mkancesdirs: Likewise.
59284         * modules/rmdir: Likewise.
59285         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59286         * modules/modechange: Likewise.
59287         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59288         (configure.ac): Remove gl_STAT_MACROS.
59289         * modules/sys_stat (Depends-on): Remove stat-macros.
59290
59291 2006-10-27  Bruno Haible  <bruno@clisp.org>
59292
59293         * m4/signed.m4: Remove file.
59294         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59295         invocation.
59296         * modules/vasnprintf (Files): Remove m4/signed.m4.
59297
59298 2006-10-27  Bruno Haible  <bruno@clisp.org>
59299
59300         Update to GNU gettext 0.16.
59301         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59302         m4/inttypes-h.m4, m4/signed.m4.
59303         * m4/gettext.m4: Update to GNU gettext 0.16.
59304         * m4/intl.m4: New file, from GNU gettext.
59305         * m4/intldir.m4: New file, from GNU gettext.
59306         * config/srclist.txt: Update
59307
59308 2006-10-27  Eric Blake  <ebb9@byu.net>
59309
59310         * MODULES.html.sh: Document tempname.
59311         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59312         dependencies.
59313         (Files): Move lib/tempname.c...
59314         * modules/tempname: ...to this new module.
59315         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59316         (gl_PREREQ_TEMPNAME): Move...
59317         * m4/tempname.m4: ...to this new file.
59318         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59319         * modules/sys_stat (Depends-on): Add stat-macros.
59320         * lib/stat_.h (includes): Pick up stat macros.
59321         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59322         if stat macros are broken.
59323         * lib/tempname.c (includes): No need to include "stat-macros.h".
59324         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59325         (direxists, __path_search) [!_LIBC]: Don't compile these in
59326         gnulib; the tmpdir module covers that.
59327         * lib/tempname.h: New file.
59328
59329 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59330
59331         * COPYING: Explain how gnulib-tool converts licence headers.
59332         Almost all wording by Eric Blake.
59333
59334 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59335
59336         * lib/mbchar.h (is_basic_table): Make read-only.
59337         * lib/mbchar.c (is_basic_table): Likewise.
59338         Reported by John Darrington.
59339
59340 2006-10-25  Bruno Haible  <bruno@clisp.org>
59341
59342         * lib/progname.h (set_program_name): Undefine before defining.
59343
59344 2006-10-25  Bruno Haible  <bruno@clisp.org>
59345
59346         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59347         false for non-gcc C++ compilers.
59348         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59349
59350 2006-10-24  Bruno Haible  <bruno@clisp.org>
59351
59352         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59353         iconv implementations like Irix iconv.
59354
59355 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59356
59357         * modules/vararrays: New file.
59358         * m4/vararrays.m4: New file, taken from diffutils.
59359         * MODULES.html.sh: New module vararrays.
59360
59361 2006-10-24  Karl Berry  <karl@gnu.org>
59362
59363         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59364         Don't call GNU Unix.
59365
59366 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59367
59368         * users.txt: Add Libtool.
59369
59370         Sync from Libtool:
59371
59372         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59375         to gnulib's policy of including config.h unconditionally.
59376
59377 2006-10-24  Bruno Haible  <bruno@clisp.org>
59378
59379         * modules/wcwidth (Files): Add m4/wint_t.m4.
59380         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59381         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59382
59383 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59384
59385         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59386         to pacify GCC with some -W flags enabled.  Problem reported by
59387         Bruno Haible.
59388
59389 2006-10-24  Jim Meyering  <jim@meyering.net>
59390
59391         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59392         Reported by Karl Berry.
59393
59394 2006-10-23  Bruno Haible  <bruno@clisp.org>
59395
59396         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59397
59398 2006-10-24  Bruno Haible  <bruno@clisp.org>
59399
59400         * lib/gl_list.h: Use C comment style, not C++ comment style.
59401
59402 2006-10-23  Eric Blake  <ebb9@byu.net>
59403
59404         * lib/getaddrinfo.c (includes): Add missing include.
59405
59406 2006-10-23  Bruno Haible  <bruno@clisp.org>
59407             Paul Eggert  <eggert@cs.ucla.edu>
59408
59409         Ability to rename obstack_free.
59410         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59411         obstack_free.
59412         (obstack_free): Invoke the __obstack_free macro.
59413         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59414
59415 2006-10-23  Bruno Haible  <bruno@clisp.org>
59416             Paul Eggert  <eggert@cs.ucla.edu>
59417
59418         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59419         __argc, __argv from the declaration. (They are defined as macros on
59420         mingw.)
59421
59422 2006-10-22  Bruno Haible  <bruno@clisp.org>
59423
59424         * doc/gnulib-intro.texi: New file.
59425         * doc/gnulib.texi: Include it.
59426
59427 2006-10-21  Bruno Haible  <bruno@clisp.org>
59428
59429         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59430         "Introduction", "Miscellanous Notes", "Particular Modules".
59431
59432 2006-10-21  Bruno Haible  <bruno@clisp.org>
59433
59434         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59435         Change mostlyclean-local rule to avoid sh syntax error from bash
59436         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59437
59438 2006-10-23  Jim Meyering  <jim@meyering.net>
59439
59440         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59441         in place of snprintf.
59442
59443         * modules/inttostr (Files): Add lib/uinttostr.c.
59444         * lib/uinttostr.c (inttostr): New file/function.
59445         * lib/inttostr.h (uinttostr): Declare.
59446         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59447         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59448         Add uinttostr.
59449         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59450
59451 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59452
59453         * lib/canonicalize.c (ELOOP): Define if not already defined.
59454         Problem reported by Bruno Haible in
59455         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59456
59457 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59458
59459         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59460         Problem reported by Perry Smith and Ville Laurikari.
59461
59462         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59463         uses.
59464
59465 2006-10-19  Bruno Haible  <bruno@clisp.org>
59466
59467         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59468         for mingw.
59469
59470 2006-10-19  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59473         Needed for mingw.
59474
59475 2006-10-19  Bruno Haible  <bruno@clisp.org>
59476
59477         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59478
59479 2006-10-19  Bruno Haible  <bruno@clisp.org>
59480
59481         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59482         it.
59483
59484 2006-10-19  Bruno Haible  <bruno@clisp.org>
59485
59486         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59487         invocation.
59488
59489 2006-10-19  Bruno Haible  <bruno@clisp.org>
59490
59491         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59492         mountlist by default.
59493
59494 2006-10-16  Bruno Haible  <bruno@clisp.org>
59495
59496         * lib/c-strstr.c: Include c-strstr.h.
59497
59498 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59499
59500         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59501         in a slash.
59502
59503 2006-10-18  Bruno Haible  <bruno@clisp.org>
59504
59505         * lib/lock.h [C++]: Wrap definitions in extern "C".
59506
59507 2006-10-18  Bruno Haible  <bruno@clisp.org>
59508
59509         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59510         gl_LIBOBJS list.
59511
59512 2006-10-18  Bruno Haible  <bruno@clisp.org>
59513
59514         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59515
59516 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59517
59518         * lib/xstrtol.h: Include gettext.h.
59519         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59520         Problem reported by Eric Blake.
59521         * modules/xstrtol (Depends-on): Add gettext-h.
59522
59523 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59524
59525         * lib/strftime.c (advance): New macro.
59526         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59527         incomplete type, so you can't add 0 to it.  Problem and patch
59528         reported by Eelco Dolstra for dietlibc.
59529
59530 2006-10-18  Jim Meyering  <jim@meyering.net>
59531
59532         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59533         type for a local, and rename it: s/up/user_proc/.
59534
59535 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59536
59537         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59538         READ_UTMP_USER_PROCESS.
59539         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59540
59541 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59542
59543         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59544         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59545
59546 2006-10-17  Eric Blake  <ebb9@byu.net>
59547
59548         * lib/sigprocmask.c (sigprocmask): Fix typo.
59549
59550         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59551
59552         * modules/clean-temp (Makefile.am): Don't add to make output...
59553         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59554         config.h.
59555
59556 2006-10-17  Bruno Haible  <bruno@clisp.org>
59557
59558         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59559         differently if DEFAULT_TEXT_DOMAIN is set.
59560
59561 2006-10-16  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/clean-temp.c: Include fwriteerror.h.
59564
59565 2006-10-16  Bruno Haible  <bruno@clisp.org>
59566
59567         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59568
59569 2006-10-16  Bruno Haible  <bruno@clisp.org>
59570
59571         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59572         * lib/sigprocmask.h: Include <sys/types.h>.
59573         (sigset_t): Use the system's definition if present.
59574
59575 2006-10-17  Eric Blake  <ebb9@byu.net>
59576
59577         * lib/xvasprintf.c (includes): Assume config.h.
59578         * lib/xasprintf.c (includes): Likewise.
59579
59580 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59581
59582         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59583         at least as wide as intmax_t.
59584
59585 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59586
59587         (Imported from Automake.)
59588         * build-aux/gnupload: Update to version 1.1 of directive file.
59589
59590 2006-10-16  Eric Blake  <ebb9@byu.net>
59591
59592         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59593         match Automake 1.10a.
59594
59595 2006-10-14  Bruno Haible  <bruno@clisp.org>
59596
59597         * modules/sigprocmask: New file.
59598         * lib/sigprocmask.h: New file.
59599         * lib/sigprocmask.c: New file.
59600         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59601         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59602         request sigprocmask.o.
59603         (gl_PREREQ_SIGPROCMASK): New macro.
59604         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59605         (Depends-on): Add sigprocmask.
59606         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59607         gt_SIGNALBLOCKING. Test for 'raise' only once.
59608         * lib/fatal-signal.c: Include sigprocmask.h.
59609         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59610         unblock_fatal_signals): Define always.
59611         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59612         sigprocmask.
59613
59614 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59615
59616         Sync from Automake.
59617         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59618         which incorrectly sets the mode of an existing destination
59619         directory.  In some cases the unpatched install-sh could do the
59620         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59621         system.  We hope this is rare in practice, but it's clearly worth
59622         fixing.  Problem reported by Alex Unleashed in
59623         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59624         Also, don't bother to check for -m bugs unless we're using -m;
59625         suggested by Stepan Kasal.
59626
59627 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59628
59629         Sync from Automake.
59630         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59631         `-c' flag, so they appear at the same position as in %FASTDEP%
59632         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59633         which ignores unknown options only after the first non-option.
59634         Bug report against M4 by Nelson H. F. Beebe.
59635
59636 2006-10-13  Jim Meyering  <jim@meyering.net>
59637
59638         Fix a bug in yesterday's change.
59639         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59640         p->fts_statp->st_dev would be used uninitialized.
59641         Ensures that we always call fts_stat on the very first entry.
59642         Miklos Szeredi reported that find -xdev stopped working.
59643
59644 2006-10-12  Bruno Haible  <bruno@clisp.org>
59645
59646         * gnulib-tool (func_get_automake_snippet): Append an automatically
59647         computed EXTRA_DIST augmentation.
59648         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59649         * modules/alloca-opt (Makefile.am): Likewise.
59650         * modules/allocsa (Makefile.am): Likewise.
59651         * modules/arcfour (Makefile.am): Likewise.
59652         * modules/arctwo (Makefile.am): Likewise.
59653         * modules/argmatch (Makefile.am): Likewise.
59654         * modules/argz (Makefile.am): Likewise.
59655         * modules/atexit (Makefile.am): Likewise.
59656         * modules/backupfile (Makefile.am): Likewise.
59657         * modules/byteswap (Makefile.am): Likewise.
59658         * modules/c-strtod (Makefile.am): Likewise.
59659         * modules/c-strtold (Makefile.am): Likewise.
59660         * modules/calloc (Makefile.am): Likewise.
59661         * modules/canon-host (Makefile.am): Likewise.
59662         * modules/canonicalize (Makefile.am): Likewise.
59663         * modules/chdir-long (Makefile.am): Likewise.
59664         * modules/chdir-safer (Makefile.am): Likewise.
59665         * modules/check-version (Makefile.am): Likewise.
59666         * modules/chown (Makefile.am): Likewise.
59667         * modules/cloexec (Makefile.am): Likewise.
59668         * modules/close-stream (Makefile.am): Likewise.
59669         * modules/closeout (Makefile.am): Likewise.
59670         * modules/crc (Makefile.am): Likewise.
59671         * modules/csharpexec (Makefile.am): Likewise.
59672         * modules/cycle-check (Makefile.am): Likewise.
59673         * modules/des (Makefile.am): Likewise.
59674         * modules/dev-ino (Makefile.am): Likewise.
59675         * modules/dirfd (Makefile.am): Likewise.
59676         * modules/dirname (Makefile.am): Likewise.
59677         * modules/dup2 (Makefile.am): Likewise.
59678         * modules/eealloc (Makefile.am): Likewise.
59679         * modules/error (Makefile.am): Likewise.
59680         * modules/euidaccess (Makefile.am): Likewise.
59681         * modules/exclude (Makefile.am): Likewise.
59682         * modules/exitfail (Makefile.am): Likewise.
59683         * modules/fcntl-safer (Makefile.am): Likewise.
59684         * modules/fcntl (Makefile.am): Likewise.
59685         * modules/file-type (Makefile.am): Likewise.
59686         * modules/fileblocks (Makefile.am): Likewise.
59687         * modules/filemode (Makefile.am): Likewise.
59688         * modules/filenamecat (Makefile.am): Likewise.
59689         * modules/fnmatch (Makefile.am): Likewise.
59690         * modules/fopen-safer (Makefile.am): Likewise.
59691         * modules/fpending (Makefile.am): Likewise.
59692         * modules/fprintftime (Makefile.am): Likewise.
59693         * modules/free (Makefile.am): Likewise.
59694         * modules/fsusage (Makefile.am): Likewise.
59695         * modules/ftruncate (Makefile.am): Likewise.
59696         * modules/fts (Makefile.am): Likewise.
59697         * modules/gc-arcfour (Makefile.am): Likewise.
59698         * modules/gc-des (Makefile.am): Likewise.
59699         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59700         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59701         * modules/gc-md4 (Makefile.am): Likewise.
59702         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59703         * modules/gc-sha1 (Makefile.am): Likewise.
59704         * modules/gc (Makefile.am): Likewise.
59705         * modules/getaddrinfo (Makefile.am): Likewise.
59706         * modules/getcwd (Makefile.am): Likewise.
59707         * modules/getdelim (Makefile.am): Likewise.
59708         * modules/getdomainname (Makefile.am): Likewise.
59709         * modules/getgroups (Makefile.am): Likewise.
59710         * modules/gethostname (Makefile.am): Likewise.
59711         * modules/gethrxtime (Makefile.am): Likewise.
59712         * modules/getline (Makefile.am): Likewise.
59713         * modules/getloadavg (Makefile.am): Likewise.
59714         * modules/getlogin_r (Makefile.am): Likewise.
59715         * modules/getndelim2 (Makefile.am): Likewise.
59716         * modules/getopt (Makefile.am): Likewise.
59717         * modules/getpagesize (Makefile.am): Likewise.
59718         * modules/getpass-gnu (Makefile.am): Likewise.
59719         * modules/getpass (Makefile.am): Likewise.
59720         * modules/getsubopt (Makefile.am): Likewise.
59721         * modules/gettime (Makefile.am): Likewise.
59722         * modules/gettimeofday (Makefile.am): Likewise.
59723         * modules/getugroups (Makefile.am): Likewise.
59724         * modules/getusershell (Makefile.am): Likewise.
59725         * modules/glob (Makefile.am): Likewise.
59726         * modules/group-member (Makefile.am): Likewise.
59727         * modules/hard-locale (Makefile.am): Likewise.
59728         * modules/hash (Makefile.am): Likewise.
59729         * modules/hmac-md5 (Makefile.am): Likewise.
59730         * modules/hmac-sha1 (Makefile.am): Likewise.
59731         * modules/human (Makefile.am): Likewise.
59732         * modules/idcache (Makefile.am): Likewise.
59733         * modules/imaxabs (Makefile.am): Likewise.
59734         * modules/imaxdiv (Makefile.am): Likewise.
59735         * modules/inet_ntop (Makefile.am): Likewise.
59736         * modules/inet_pton (Makefile.am): Likewise.
59737         * modules/intprops (Makefile.am): Likewise.
59738         * modules/inttostr (Makefile.am): Likewise.
59739         * modules/inttypes (Makefile.am): Likewise.
59740         * modules/isapipe (Makefile.am): Likewise.
59741         * modules/javaversion (Makefile.am): Likewise.
59742         * modules/lchmod (Makefile.am): Likewise.
59743         * modules/lchown (Makefile.am): Likewise.
59744         * modules/localcharset (Makefile.am): Likewise.
59745         * modules/long-options (Makefile.am): Likewise.
59746         * modules/lstat (Makefile.am): Likewise.
59747         * modules/malloc (Makefile.am): Likewise.
59748         * modules/mathl (Makefile.am): Likewise.
59749         * modules/mbchar (Makefile.am): Likewise.
59750         * modules/md2 (Makefile.am): Likewise.
59751         * modules/md4 (Makefile.am): Likewise.
59752         * modules/md5 (Makefile.am): Likewise.
59753         * modules/memcasecmp (Makefile.am): Likewise.
59754         * modules/memchr (Makefile.am): Likewise.
59755         * modules/memcmp (Makefile.am): Likewise.
59756         * modules/memcoll (Makefile.am): Likewise.
59757         * modules/memcpy (Makefile.am): Likewise.
59758         * modules/memmem (Makefile.am): Likewise.
59759         * modules/memmove (Makefile.am): Likewise.
59760         * modules/mempcpy (Makefile.am): Likewise.
59761         * modules/memrchr (Makefile.am): Likewise.
59762         * modules/memset (Makefile.am): Likewise.
59763         * modules/memxor (Makefile.am): Likewise.
59764         * modules/mkancesdirs (Makefile.am): Likewise.
59765         * modules/mkdir-p (Makefile.am): Likewise.
59766         * modules/mkdir (Makefile.am): Likewise.
59767         * modules/mkdtemp (Makefile.am): Likewise.
59768         * modules/mkstemp (Makefile.am): Likewise.
59769         * modules/mktime (Makefile.am): Likewise.
59770         * modules/modechange (Makefile.am): Likewise.
59771         * modules/mountlist (Makefile.am): Likewise.
59772         * modules/nanosleep (Makefile.am): Likewise.
59773         * modules/obstack (Makefile.am): Likewise.
59774         * modules/openat (Makefile.am): Likewise.
59775         * modules/pagealign_alloc (Makefile.am): Likewise.
59776         * modules/pathmax (Makefile.am): Likewise.
59777         * modules/physmem (Makefile.am): Likewise.
59778         * modules/poll (Makefile.am): Likewise.
59779         * modules/posixtm (Makefile.am): Likewise.
59780         * modules/posixver (Makefile.am): Likewise.
59781         * modules/putenv (Makefile.am): Likewise.
59782         * modules/quote (Makefile.am): Likewise.
59783         * modules/quotearg (Makefile.am): Likewise.
59784         * modules/raise (Makefile.am): Likewise.
59785         * modules/read-file (Makefile.am): Likewise.
59786         * modules/readline (Makefile.am): Likewise.
59787         * modules/readlink (Makefile.am): Likewise.
59788         * modules/readtokens (Makefile.am): Likewise.
59789         * modules/readutmp (Makefile.am): Likewise.
59790         * modules/realloc (Makefile.am): Likewise.
59791         * modules/regex (Makefile.am): Likewise.
59792         * modules/rename-dest-slash (Makefile.am): Likewise.
59793         * modules/rename (Makefile.am): Likewise.
59794         * modules/rijndael (Makefile.am): Likewise.
59795         * modules/rmdir (Makefile.am): Likewise.
59796         * modules/rpmatch (Makefile.am): Likewise.
59797         * modules/safe-read (Makefile.am): Likewise.
59798         * modules/safe-write (Makefile.am): Likewise.
59799         * modules/same-inode (Makefile.am): Likewise.
59800         * modules/same (Makefile.am): Likewise.
59801         * modules/save-cwd (Makefile.am): Likewise.
59802         * modules/savedir (Makefile.am): Likewise.
59803         * modules/setenv (Makefile.am): Likewise.
59804         * modules/settime (Makefile.am): Likewise.
59805         * modules/sha1 (Makefile.am): Likewise.
59806         * modules/sig2str (Makefile.am): Likewise.
59807         * modules/snprintf (Makefile.am): Likewise.
59808         * modules/stat-macros (Makefile.am): Likewise.
59809         * modules/stat-time (Makefile.am): Likewise.
59810         * modules/stdbool (Makefile.am): Likewise.
59811         * modules/stdint (Makefile.am): Likewise.
59812         * modules/stdlib-safer (Makefile.am): Likewise.
59813         * modules/stpcpy (Makefile.am): Likewise.
59814         * modules/stpncpy (Makefile.am): Likewise.
59815         * modules/strcase (Makefile.am): Likewise.
59816         * modules/strcasestr (Makefile.am): Likewise.
59817         * modules/strchrnul (Makefile.am): Likewise.
59818         * modules/strcspn (Makefile.am): Likewise.
59819         * modules/strdup (Makefile.am): Likewise.
59820         * modules/strerror (Makefile.am): Likewise.
59821         * modules/strftime (Makefile.am): Likewise.
59822         * modules/strndup (Makefile.am): Likewise.
59823         * modules/strnlen (Makefile.am): Likewise.
59824         * modules/strpbrk (Makefile.am): Likewise.
59825         * modules/strsep (Makefile.am): Likewise.
59826         * modules/strstr (Makefile.am): Likewise.
59827         * modules/strtod (Makefile.am): Likewise.
59828         * modules/strtoimax (Makefile.am): Likewise.
59829         * modules/strtok_r (Makefile.am): Likewise.
59830         * modules/strtol (Makefile.am): Likewise.
59831         * modules/strtoll (Makefile.am): Likewise.
59832         * modules/strtoul (Makefile.am): Likewise.
59833         * modules/strtoull (Makefile.am): Likewise.
59834         * modules/strtoumax (Makefile.am): Likewise.
59835         * modules/strverscmp (Makefile.am): Likewise.
59836         * modules/sys_socket (Makefile.am): Likewise.
59837         * modules/sys_stat (Makefile.am): Likewise.
59838         * modules/sysexits (Makefile.am): Likewise.
59839         * modules/time_r (Makefile.am): Likewise.
59840         * modules/timegm (Makefile.am): Likewise.
59841         * modules/timespec (Makefile.am): Likewise.
59842         * modules/tmpfile-safer (Makefile.am): Likewise.
59843         * modules/trim (Makefile.am): Likewise.
59844         * modules/unistd-safer (Makefile.am): Likewise.
59845         * modules/unlinkdir (Makefile.am): Likewise.
59846         * modules/unlocked-io (Makefile.am): Likewise.
59847         * modules/userspec (Makefile.am): Likewise.
59848         * modules/utime (Makefile.am): Likewise.
59849         * modules/utimecmp (Makefile.am): Likewise.
59850         * modules/utimens (Makefile.am): Likewise.
59851         * modules/vasnprintf (Makefile.am): Likewise.
59852         * modules/vasprintf (Makefile.am): Likewise.
59853         * modules/vsnprintf (Makefile.am): Likewise.
59854         * modules/xalloc (Makefile.am): Likewise.
59855         * modules/xgetcwd (Makefile.am): Likewise.
59856         * modules/xnanosleep (Makefile.am): Likewise.
59857         * modules/xreadlink (Makefile.am): Likewise.
59858         * modules/xstrtod (Makefile.am): Likewise.
59859         * modules/xstrtol (Makefile.am): Likewise.
59860         * modules/xstrtold (Makefile.am): Likewise.
59861         * modules/yesno (Makefile.am): Likewise.
59862         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59863
59864 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59865
59866         * modules/error (Makefile.am): Distribute files through
59867         EXTRA_DIST, not lib_SOURCES.
59868
59869 2006-10-12  Eric Blake  <ebb9@byu.net>
59870
59871         * modules/error (Makefile.am): Distribute files in /lib.
59872         * modules/obstack (Makefile.am): Likewise.
59873
59874 2006-10-12  Bruno Haible  <bruno@clisp.org>
59875
59876         * modules/acl (Makefile.am): Distribute all files in lib/ through
59877         EXTRA_DIST.
59878         * modules/arcfour (Makefile.am): Likewise.
59879         * modules/arctwo (Makefile.am): Likewise.
59880         * modules/argmatch (Makefile.am): Likewise.
59881         * modules/argz (Makefile.am): Likewise.
59882         * modules/atexit (Makefile.am): Likewise.
59883         * modules/backupfile (Makefile.am): Likewise.
59884         * modules/c-strtod (Makefile.am): Likewise.
59885         * modules/c-strtold (Makefile.am): Likewise.
59886         * modules/calloc (Makefile.am): Likewise.
59887         * modules/canon-host (Makefile.am): Likewise.
59888         * modules/canonicalize (Makefile.am): Likewise.
59889         * modules/chdir-long (Makefile.am): Likewise.
59890         * modules/chdir-safer (Makefile.am): Likewise.
59891         * modules/check-version (Makefile.am): Likewise.
59892         * modules/chown (Makefile.am): Likewise.
59893         * modules/cloexec (Makefile.am): Likewise.
59894         * modules/close-stream (Makefile.am): Likewise.
59895         * modules/closeout (Makefile.am): Likewise.
59896         * modules/crc (Makefile.am): Likewise.
59897         * modules/cycle-check (Makefile.am): Likewise.
59898         * modules/des (Makefile.am): Likewise.
59899         * modules/dirfd (Makefile.am): Likewise.
59900         * modules/dirname (Makefile.am): Likewise.
59901         * modules/dup2 (Makefile.am): Likewise.
59902         * modules/euidaccess (Makefile.am): Likewise.
59903         * modules/exclude (Makefile.am): Likewise.
59904         * modules/exitfail (Makefile.am): Likewise.
59905         * modules/fcntl-safer (Makefile.am): Likewise.
59906         * modules/file-type (Makefile.am): Likewise.
59907         * modules/fileblocks (Makefile.am): Likewise.
59908         * modules/filemode (Makefile.am): Likewise.
59909         * modules/filenamecat (Makefile.am): Likewise.
59910         * modules/fnmatch (Makefile.am): Likewise.
59911         * modules/fopen-safer (Makefile.am): Likewise.
59912         * modules/fpending (Makefile.am): Likewise.
59913         * modules/fprintftime (Makefile.am): Likewise.
59914         * modules/free (Makefile.am): Likewise.
59915         * modules/fsusage (Makefile.am): Likewise.
59916         * modules/ftruncate (Makefile.am): Likewise.
59917         * modules/fts (Makefile.am): Likewise.
59918         * modules/gc (Makefile.am): Likewise.
59919         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59920         * modules/getaddrinfo (Makefile.am): Likewise.
59921         * modules/getcwd (Makefile.am): Likewise.
59922         * modules/getdelim (Makefile.am): Likewise.
59923         * modules/getdomainname (Makefile.am): Likewise.
59924         * modules/getgroups (Makefile.am): Likewise.
59925         * modules/gethostname (Makefile.am): Likewise.
59926         * modules/gethrxtime (Makefile.am): Likewise.
59927         * modules/getline (Makefile.am): Likewise.
59928         * modules/getloadavg (Makefile.am): Likewise.
59929         * modules/getlogin_r (Makefile.am): Likewise.
59930         * modules/getopt (Makefile.am): Likewise.
59931         * modules/getpass (Makefile.am): Likewise.
59932         * modules/getpass-gnu (Makefile.am): Likewise.
59933         * modules/getsubopt (Makefile.am): Likewise.
59934         * modules/gettime (Makefile.am): Likewise.
59935         * modules/gettimeofday (Makefile.am): Likewise.
59936         * modules/getugroups (Makefile.am): Likewise.
59937         * modules/getusershell (Makefile.am): Likewise.
59938         * modules/glob (Makefile.am): Likewise.
59939         * modules/group-member (Makefile.am): Likewise.
59940         * modules/hard-locale (Makefile.am): Likewise.
59941         * modules/hash (Makefile.am): Likewise.
59942         * modules/hmac-md5 (Makefile.am): Likewise.
59943         * modules/hmac-sha1 (Makefile.am): Likewise.
59944         * modules/human (Makefile.am): Likewise.
59945         * modules/idcache (Makefile.am): Likewise.
59946         * modules/imaxabs (Makefile.am): Likewise.
59947         * modules/imaxdiv (Makefile.am): Likewise.
59948         * modules/inet_ntop (Makefile.am): Likewise.
59949         * modules/inet_pton (Makefile.am): Likewise.
59950         * modules/inttostr (Makefile.am): Likewise.
59951         * modules/isapipe (Makefile.am): Likewise.
59952         * modules/lchown (Makefile.am): Likewise.
59953         * modules/long-options (Makefile.am): Likewise.
59954         * modules/lstat (Makefile.am): Likewise.
59955         * modules/malloc (Makefile.am): Likewise.
59956         * modules/mathl (Makefile.am): Likewise.
59957         * modules/mbchar (Makefile.am): Likewise.
59958         * modules/md2 (Makefile.am): Likewise.
59959         * modules/md4 (Makefile.am): Likewise.
59960         * modules/md5 (Makefile.am): Likewise.
59961         * modules/memcasecmp (Makefile.am): Likewise.
59962         * modules/memchr (Makefile.am): Likewise.
59963         * modules/memcmp (Makefile.am): Likewise.
59964         * modules/memcoll (Makefile.am): Likewise.
59965         * modules/memcpy (Makefile.am): Likewise.
59966         * modules/memmem (Makefile.am): Likewise.
59967         * modules/memmove (Makefile.am): Likewise.
59968         * modules/mempcpy (Makefile.am): Likewise.
59969         * modules/memrchr (Makefile.am): Likewise.
59970         * modules/memset (Makefile.am): Likewise.
59971         * modules/memxor (Makefile.am): Likewise.
59972         * modules/mkancesdirs (Makefile.am): Likewise.
59973         * modules/mkdir (Makefile.am): Likewise.
59974         * modules/mkdir-p (Makefile.am): Likewise.
59975         * modules/mkdtemp (Makefile.am): Likewise.
59976         * modules/mkstemp (Makefile.am): Likewise.
59977         * modules/mktime (Makefile.am): Likewise.
59978         * modules/modechange (Makefile.am): Likewise.
59979         * modules/mountlist (Makefile.am): Likewise.
59980         * modules/nanosleep (Makefile.am): Likewise.
59981         * modules/openat (Makefile.am): Likewise.
59982         * modules/pagealign_alloc (Makefile.am): Likewise.
59983         * modules/physmem (Makefile.am): Likewise.
59984         * modules/poll (Makefile.am): Likewise.
59985         * modules/posixtm (Makefile.am): Likewise.
59986         * modules/posixver (Makefile.am): Likewise.
59987         * modules/putenv (Makefile.am): Likewise.
59988         * modules/quote (Makefile.am): Likewise.
59989         * modules/quotearg (Makefile.am): Likewise.
59990         * modules/raise (Makefile.am): Likewise.
59991         * modules/read-file (Makefile.am): Likewise.
59992         * modules/readline (Makefile.am): Likewise.
59993         * modules/readlink (Makefile.am): Likewise.
59994         * modules/readtokens (Makefile.am): Likewise.
59995         * modules/readutmp (Makefile.am): Likewise.
59996         * modules/realloc (Makefile.am): Likewise.
59997         * modules/regex (Makefile.am): Likewise.
59998         * modules/rename (Makefile.am): Likewise.
59999         * modules/rename-dest-slash (Makefile.am): Likewise.
60000         * modules/rijndael (Makefile.am): Likewise.
60001         * modules/rmdir (Makefile.am): Likewise.
60002         * modules/rpmatch (Makefile.am): Likewise.
60003         * modules/safe-read (Makefile.am): Likewise.
60004         * modules/safe-write (Makefile.am): Likewise.
60005         * modules/same (Makefile.am): Likewise.
60006         * modules/save-cwd (Makefile.am): Likewise.
60007         * modules/savedir (Makefile.am): Likewise.
60008         * modules/setenv (Makefile.am): Likewise.
60009         * modules/settime (Makefile.am): Likewise.
60010         * modules/sha1 (Makefile.am): Likewise.
60011         * modules/sig2str (Makefile.am): Likewise.
60012         * modules/snprintf (Makefile.am): Likewise.
60013         * modules/stdlib-safer (Makefile.am): Likewise.
60014         * modules/stpcpy (Makefile.am): Likewise.
60015         * modules/stpncpy (Makefile.am): Likewise.
60016         * modules/strcase (Makefile.am): Likewise.
60017         * modules/strcasestr (Makefile.am): Likewise.
60018         * modules/strchrnul (Makefile.am): Likewise.
60019         * modules/strcspn (Makefile.am): Likewise.
60020         * modules/strdup (Makefile.am): Likewise.
60021         * modules/strerror (Makefile.am): Likewise.
60022         * modules/strftime (Makefile.am): Likewise.
60023         * modules/strndup (Makefile.am): Likewise.
60024         * modules/strnlen (Makefile.am): Likewise.
60025         * modules/strpbrk (Makefile.am): Likewise.
60026         * modules/strsep (Makefile.am): Likewise.
60027         * modules/strstr (Makefile.am): Likewise.
60028         * modules/strtod (Makefile.am): Likewise.
60029         * modules/strtoimax (Makefile.am): Likewise.
60030         * modules/strtok_r (Makefile.am): Likewise.
60031         * modules/strtol (Makefile.am): Likewise.
60032         * modules/strtoll (Makefile.am): Likewise.
60033         * modules/strtoul (Makefile.am): Likewise.
60034         * modules/strtoull (Makefile.am): Likewise.
60035         * modules/strtoumax (Makefile.am): Likewise.
60036         * modules/strverscmp (Makefile.am): Likewise.
60037         * modules/time_r (Makefile.am): Likewise.
60038         * modules/timegm (Makefile.am): Likewise.
60039         * modules/tmpfile-safer (Makefile.am): Likewise.
60040         * modules/unistd-safer (Makefile.am): Likewise.
60041         * modules/unlinkdir (Makefile.am): Likewise.
60042         * modules/userspec (Makefile.am): Likewise.
60043         * modules/utime (Makefile.am): Likewise.
60044         * modules/utimecmp (Makefile.am): Likewise.
60045         * modules/utimens (Makefile.am): Likewise.
60046         * modules/vasnprintf (Makefile.am): Likewise.
60047         * modules/vasprintf (Makefile.am): Likewise.
60048         * modules/vsnprintf (Makefile.am): Likewise.
60049         * modules/xalloc (Makefile.am): Likewise.
60050         * modules/xgetcwd (Makefile.am): Likewise.
60051         * modules/xnanosleep (Makefile.am): Likewise.
60052         * modules/xreadlink (Makefile.am): Likewise.
60053         * modules/xstrtod (Makefile.am): Likewise.
60054         * modules/xstrtol (Makefile.am): Likewise.
60055         * modules/xstrtold (Makefile.am): Likewise.
60056         * modules/yesno (Makefile.am): Likewise.
60057
60058 2006-10-12  Jim Meyering  <jim@meyering.net>
60059
60060         * m4/getloadavg.m4: Revert the change below.
60061
60062         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
60063         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
60064         fail with a symlink, which is what coreutils' ./bootstrap now
60065         creates by default.
60066
60067 2006-10-12  Bruno Haible  <bruno@clisp.org>
60068
60069         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
60070         mingw.
60071         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
60072         MSVC and mingw explicitly.
60073
60074 2006-10-11  Simon Josefsson  <jas@extundo.com>
60075             Bruno Haible  <bruno@clisp.org>
60076
60077         Add support for multiple gnulib-tool invocations in the scope of a
60078         single configure.ac file.
60079         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
60080         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
60081         with the same contents as the _LIBADD variable.
60082         (func_emit_initmacro_start, func_emit_initmacro_end,
60083         func_emit_initmacro_done): New functions.
60084         (func_import, func_create_testdir): Invoke them. Allow the identifiers
60085         gl_LIBOBJS and gl_LTLIBOBJS.
60086
60087 2006-10-11  Bruno Haible  <bruno@clisp.org>
60088
60089         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
60090         (func_create_testdir): Don't create po/Makefile.am, don't invoke
60091         autoreconf. Instead, invoke autopoint explicitly but move back the
60092         *.m4 files from gnulib.
60093
60094 2006-10-11  Bruno Haible  <bruno@clisp.org>
60095
60096         * gnulib-tool (func_usage): Make module names after --create-testdir
60097         optional.
60098         (func_create_testdir): If no module was specified, use nearly all
60099         modules.
60100
60101 2006-10-12  Jim Meyering  <jim@meyering.net>
60102
60103         Big performance improvement for fts-based tools that use FTS_NOSTAT.
60104         Avoid spurious inode-mismatch problems on non-POSIX file systems.
60105         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
60106         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
60107         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
60108         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
60109         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
60110         (fts_set_stat_required): New function.
60111         (fts_open): Defer the calls to fts_stat, if possible or requested.
60112         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
60113         into fts_stat itself.
60114         (fts_read): Perform any required (deferred) fts_stat call.
60115         (fts_build): Likewise, for the directory we're about to open and read.
60116         In the readdir loop, carefully decide whether each entry will require
60117         an eventual call to fts_stat, using dirent.d_type info if available.
60118         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
60119         a command line argument into this function.  Update all callers.
60120         Map a return value of FTS_DOT to FTS_D for a command line argument.
60121         * modules/fts (Depends-on): Add d-type.  Alphabetize.
60122         Thanks to Miklos Szeredi for his tenacity and for the initial
60123         bug report about "find" failing on a FUSE-based file system.
60124
60125         * lib/fts.c (fts_open): Use consistent indentation.
60126
60127 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60128
60129         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
60130         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
60131         reported by Jim Meyering.  All uses of cache variables renamed
60132         to match Autoconf's.
60133         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
60134         the other one.
60135
60136         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60137         Fix misspelling in diagnostic.
60138
60139 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60140
60141         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
60142         defined.  Problem reported by Matthew Woehlke.
60143
60144         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
60145         Add support for Tandem NonStop R series.
60146         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
60147         Use new macro.
60148
60149         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
60150         (has_trailing_slash): Omit size arg; all callers changed.
60151         Omit 'inline', since it doesn't help performance and we'd
60152         need to configure it.
60153         Don't count //, ///, etc. as having a trailing slash.
60154         As a side effect, this removes a C99ism reported by Matthew Woehlke.
60155         (rpl_rename_dest_slash): On failure, use rename's errno rather
60156         than (in some cases) an incorrect or junk errno.
60157         Simplify code by removing need to compute length; this does
60158         cause it to make two passes instead of one over the file name,
60159         but it's worth it.
60160
60161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
60162         change, since Autoconf's version may no longer be appropriate now
60163         that we are using CVS Autoconf's version.  Add support for Tandem.
60164
60165 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60166             Bruno Haible  <bruno@clisp.org>
60167
60168         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
60169         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
60170         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
60171         gl_AC_TYPE_LONG_LONG.
60172
60173         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
60174         instead of HAVE_LONG_LONG.
60175         * lib/printf-args.c (printf_fetchargs): Likewise.
60176         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60177         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60178         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
60179         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
60180         gl_AC_TYPE_LONG_LONG.
60181
60182 2006-10-11  Bruno Haible  <bruno@clisp.org>
60183
60184         * m4/longlong.m4: Add comments.
60185         * m4/ulonglong.m4: Likewise.
60186
60187 2006-10-10  Bruno Haible  <bruno@clisp.org>
60188
60189         Make it possible to #define stpcpy, strdup to aliases.
60190         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
60191         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
60192
60193 2006-10-10  Bruno Haible  <bruno@clisp.org>
60194
60195         Make it possible to #define gcd to an alias.
60196         * lib/gcd.c: Include config.h.
60197
60198 2006-10-10  Bruno Haible  <bruno@clisp.org>
60199
60200         Make it possible to #define c_isascii to an alias.
60201         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
60202         defined. Undefine the macros before defining them, to avoid gcc
60203         warnings.
60204         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
60205         define NO_C_CTYPE_MACROS early.
60206
60207 2006-10-10  Bruno Haible  <bruno@clisp.org>
60208
60209         Make it possible to #define set_program_name to an alias.
60210         * lib/progname.c: Don't undefine set_program_name; instead, undefine
60211         ENABLE_RELOCATABLE early.
60212
60213 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60214
60215         Port to Tandem NSK OSS, which has 64-bit signed int but at most
60216         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
60217         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
60218         More generally, don't assume that 64-bit signed int is available
60219         if unsigned int is, and vice versa.
60220         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
60221         unsigned symbols, not on their signed counterparts.
60222         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
60223         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
60224         (UINT64_C, UINTMAX_C):
60225         Likewise.
60226         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
60227         unsigned counterparts.
60228         (Have_long_long, Unsigned): New macros.
60229         (Int): Renamed from INT.
60230         (strtoimax): Use the new macros.
60231         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
60232         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
60233         * modules/inttypes (inttypes.h): Substitute
60234         HAVE_UNSIGNED_LONG_LONG_INT.
60235         * modules/stdint (stdint.h): Likewise.
60236         (Files): Add m4/ulonglong.m4.
60237
60238 2006-10-10  Bruno Haible  <bruno@clisp.org>
60239
60240         Fix a gcc -Wshadow warning.
60241         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60242         to 'bucket'.
60243         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60244         gl_linked_indexof_from_to): Likewise.
60245         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60246         Likewise.
60247         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60248         Likewise.
60249         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60250         Reported by Eric Blake.
60251
60252 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60253
60254         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60255         for NetBSD.  Problem reported by Bruno Haible.
60256
60257 2006-10-09  Jim Meyering  <jim@meyering.net>
60258
60259         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60260         Patch from Bruno Haible.
60261
60262 2006-10-09  Jim Meyering  <jim@meyering.net>
60263
60264         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60265         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60266         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60267
60268 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60269
60270         Don't include <config.h> twice; this doesn't work in some cases,
60271         e.g., when config.h has "#define intmax_t long long int" and
60272         we include <config.h>, <inttypes.h>, <config.h> in that order.
60273         Problem reported by Matthew Woehlke in:
60274         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60275         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60276         * lib/fts-cycle.c: Don't include config.h.
60277         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60278         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60279         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60280         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60281         inttypes.h.
60282         * lib/xstrtoumax.c: Likewise.
60283         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60284         __strtol and the like, so that this module is more like its siblings.
60285         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60286         Remove; no longer needed now that we assume gnulib inttypes.h.
60287
60288 2006-10-08  Bruno Haible  <bruno@clisp.org>
60289
60290         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60291         option.
60292
60293 2006-10-07  Jim Meyering  <jim@meyering.net>
60294
60295         * modules/inttypes (inttypes.h): Revert what seems to have been
60296         an inadvertent part of today's change: use "|", not "/" in the
60297         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60298
60299 2006-10-07  Bruno Haible  <bruno@clisp.org>
60300
60301         * modules/sublist: New file.
60302
60303 2006-10-07  Bruno Haible  <bruno@clisp.org>
60304
60305         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60306         * modules/argz (argz.h): Likewise.
60307         * modules/arpa_inet (arpa/inet.h): Likewise.
60308         * modules/byteswap (byteswap.h): Likewise.
60309         * modules/configmake (configmake.h): Likewise.
60310         * modules/fcntl (fcntl.h): Likewise.
60311         * modules/fnmatch (fnmatch.h): Likewise.
60312         * modules/getopt (getopt.h): Likewise.
60313         * modules/glob (glob.h): Likewise.
60314         * modules/inttypes (inttypes.h): Likewise.
60315         * modules/netinet_in (netinet/in.h): Likewise.
60316         * modules/poll (poll.h): Likewise.
60317         * modules/stdbool (stdbool.h): Likewise.
60318         * modules/stdint (stdint.h): Likewise.
60319         * modules/sys_select (sys/select.h): Likewise.
60320         * modules/sys_socket (sys/socket.h): Likewise.
60321         * modules/sys_stat (sys/stat.h): Likewise.
60322         * modules/sysexits (sysexits.h): Likewise.
60323         * modules/unistd (unistd.h): Likewise.
60324         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60325         Add a "DO NOT EDIT" comment to the generated file.
60326         (func_import): Likewise for gnulib-comp.m4.
60327
60328 2006-10-07  Bruno Haible  <bruno@clisp.org>
60329
60330         * lib/gl_sublist.h: New file.
60331         * lib/gl_sublist.c: New file.
60332
60333 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60334
60335         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60336         name (relative to the original working directory) and the file
60337         name component (relative to the temporary working directory).  All
60338         callers changed.
60339         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60340         * lib/mkdir-p.c (make_dir_parents): Likewise.
60341         * lib/mkdir-p.h (make_dir_parents): Likewise.
60342
60343 2006-10-06  Eric Blake  <ebb9@byu.net>
60344
60345         Define several macros for use by the clean-temp module.
60346         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60347         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60348         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60349
60350         * lib/clean-temp.h (close_stream_temp): New declaration.
60351         * lib/clean-temp.c (includes): Pull in headers according to what
60352         other modules are in use.
60353         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60354
60355 2006-10-06  Bruno Haible  <bruno@clisp.org>
60356
60357         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60358         instead of fopen, fwriteerror.
60359
60360 2006-10-06  Bruno Haible  <bruno@clisp.org>
60361
60362         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60363         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60364         int.
60365         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60366         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60367         Return an error indicator.
60368         Suggested by Eric Blake.
60369
60370 2006-10-06  Bruno Haible  <bruno@clisp.org>
60371
60372         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60373         Reported by Eric Blake.
60374
60375 2006-10-06  Bruno Haible  <bruno@clisp.org>
60376
60377         * modules/closeout (Description): Mention stderr too.
60378
60379 2006-10-06  Bruno Haible  <bruno@clisp.org>
60380         and Paul Eggert  <eggert@cs.ucla.edu>
60381
60382         * lib/closeout.c (close_stdout): Also close stderr.
60383         * lib/closeout.h: Update comment.
60384
60385 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60386
60387         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60388         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60389         * lib/dirchownmod.c: Include lchown.h.
60390         * lib/lchown.c: Don't include files that lchown.h now includes.
60391         Don't declare chown, since lchown.h now does that.
60392         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60393         (lchown): Define to rpl_chown if lchown is declared but
60394         does not exist.  Declare using a prototype if lchown is not
60395         declared.  Add a copyright notice.
60396         * lib/mkstemp.h: Include <unistd.h>.
60397         * lib/openat.c: Include lchown.h.
60398
60399         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60400         we now test for that separately.
60401         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60402         rather than O_NOFOLLOW, when testing whether it's possible to
60403         avoid a race condition reliably.
60404         * lib/savewd.c (savewd_chdir): Likewise.
60405
60406         Remove macros that are no longer needed now that stdint.h is
60407         reliable.
60408         * lib/fsusage.c (UINTMAX_MAX): Remove.
60409         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60410         * lib/utimecmp.c (SIZE_MAX): Remove.
60411
60412         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60413
60414         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60415         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60416         O_NOATIME works.
60417
60418 2006-10-05  Bruno Haible  <bruno@clisp.org>
60419
60420         * lib/gl_list.h (gl_sortedlist_search_from_to,
60421         gl_sortedlist_indexof_from_to): New declarations.
60422         (gl_list_implementation): New fields sortedlist_search_from_to,
60423         sortedlist_indexof_from_to.
60424         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60425         inline functions.
60426         * lib/gl_list.c (gl_sortedlist_search_from_to,
60427         gl_sortedlist_indexof_from_to): New functions.
60428         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60429         function.
60430         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60431         (gl_array_sortedlist_search_from_to): New function.
60432         (gl_array_list_implementation): Update.
60433         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60434         function.
60435         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60436         (gl_carray_sortedlist_search_from_to): New function.
60437         (gl_carray_list_implementation): Update.
60438         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60439         gl_linked_sortedlist_indexof_from_to): New functions.
60440         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60441         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60442         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60443         gl_tree_sortedlist_indexof_from_to): New functions.
60444         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60445         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60446         Update.
60447         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60448         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60449         Update.
60450
60451 2006-10-05  Bruno Haible  <bruno@clisp.org>
60452
60453         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60454         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60455         (struct gl_list_implementation): Add fields search_from_to,
60456         indexof_from_to. Remove fields search, indexof.
60457         (gl_list_search): Use the search_from_to method.
60458         (gl_list_search_from, gl_list_search_from_to): New functions.
60459         (gl_list_indexof): Use the indexof_from_to method.
60460         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60461         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60462         (gl_list_search_from, gl_list_search_from_to): New functions.
60463         (gl_list_indexof): Use the indexof_from_to method.
60464         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60465         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60466         gl_array_indexof. Add start_index, end_index arguments.
60467         (gl_array_search_from_to): Renamed from gl_array_search. Add
60468         start_index, end_index arguments.
60469         (gl_array_remove, gl_array_list_implementation): Update.
60470         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60471         gl_carray_indexof. Add start_index, end_index arguments.
60472         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60473         start_index, end_index arguments.
60474         (gl_carray_remove, gl_carray_list_implementation): Update.
60475         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60476         gl_linked_search. Add start_index, end_index arguments.
60477         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60478         start_index, end_index arguments.
60479         (gl_linked_remove): Update.
60480         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60481         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60482         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60483         field to 'size_t'.
60484         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60485         gl_tree_search. Add start_index, end_index arguments.
60486         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60487         start_index, end_index arguments.
60488         (gl_tree_remove): Update.
60489         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60490         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60491         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60492         function.
60493         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60494         gl_tree_search. Add start_index, end_index arguments.
60495         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60496         start_index, end_index arguments.
60497         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60498         Update.
60499         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60500
60501 2006-10-05  Bruno Haible  <bruno@clisp.org>
60502
60503         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60504
60505         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60506         fwriteerror_temp): New declarations.
60507         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60508         (descriptors): New variable.
60509         (cleanup): First, close the descriptors.
60510         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60511         fclose_temp, fwriteerror_temp): New functions.
60512
60513 2006-10-04  Jim Meyering  <jim@meyering.net>
60514
60515         * lib/fts.c (fts_open): Tiny comment change.
60516
60517 2006-10-04  Bruno Haible  <bruno@clisp.org>
60518
60519         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60520         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60521         gl_LOCK_BODY.
60522         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60523         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60524         gl_LOCK_EARLY_BODY.
60525         (gl_LOCK): Require gl_LOCK_BODY.
60526
60527 2006-10-04  Bruno Haible  <bruno@clisp.org>
60528
60529         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60530         (gl_oset_search_atleast): New declaration.
60531         (struct gl_oset_implementation): Add field 'search_atleast'.
60532         (gl_oset_search_atleast): New inline function.
60533         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60534         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60535         (gl_array_oset_implementation): Update.
60536         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60537         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60538         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60539
60540 2006-10-04  Bruno Haible  <bruno@clisp.org>
60541
60542         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60543
60544 2006-10-03  Bruno Haible  <bruno@clisp.org>
60545
60546         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60547         from gl_avltreehash_list_implementation.
60548
60549 2006-10-03  Bruno Haible  <bruno@clisp.org>
60550
60551         * lib/gl_oset.c (gl_oset_add): Fix return type.
60552
60553 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60554
60555         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60556
60557 2006-10-02  Eric Blake  <ebb9@byu.net>
60558
60559         * modules/strnlen (Depends-on): Add extensions.
60560
60561 2006-10-02  Eric Blake  <ebb9@byu.net>
60562
60563         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60564         definition in 2.60+.
60565
60566 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60567
60568         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60569         checks.
60570
60571 2006-10-02  Bruno Haible  <bruno@clisp.org>
60572
60573         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60574         to the AUTOMAKE_OPTIONS.
60575         Reported by Jim Meyering.
60576
60577 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60578
60579         Work around bug in Solaris 10 /proc file system:
60580         /proc/self/fd/NNN/.. isn't the parent directory of
60581         the directory whose file descriptor is NNN.  This needs to
60582         be worked around at run time, not compile time, since a
60583         program might be built on Solaris 8, where things work, and
60584         run on Solaris 10.
60585         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60586         to use the following interface instead:
60587         (OPENAT_BUFFER_SIZE): New macro.
60588         (openat_proc_name): New function.
60589         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60590         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60591         Likewise.
60592         * lib/openat-proc.c: New file.
60593         * modules/openat (Files): Add lib/openat-proc.c.
60594         (Depends-on): Add same-inode, stdbool.
60595         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60596
60597 2006-09-29  Bruno Haible  <bruno@clisp.org>
60598
60599         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60600         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60601         argument. Set stdout_closed before testing for ferror, not after.
60602         (fwriteerror, fwriteerror_no_ebadf): New functions.
60603
60604 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60605
60606         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60607
60608 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60609
60610         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60611         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60612
60613 2006-09-28  Jim Meyering  <jim@meyering.net>
60614
60615         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60616         Include <unistd.h>.
60617
60618 2006-09-28  Bruno Haible  <bruno@clisp.org>
60619
60620         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60621         * modules/linkedhash-list (Depends-on): Likewise.
60622         * modules/rbtreehash-list (Depends-on): Likewise.
60623
60624 2006-09-28  Bruno Haible  <bruno@clisp.org>
60625
60626         * lib/strndup.h: Simplify the redefinition of strndup.
60627         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60628         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60629
60630 2006-09-28  Bruno Haible  <bruno@clisp.org>
60631
60632         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60633         * lib/gl_linkedhash_list.c: Likewise.
60634         * lib/gl_rbtreehash_list.c: Likewise.
60635
60636 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60637
60638         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60639         getaddrinfo.
60640
60641         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60642         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60643         it causes <stdio_ext.h> to cause a compile-time error.
60644         Problem reported by Nelson H. F. Beebe.
60645         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60646         of HAVE_DECL___PENDING.
60647
60648         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60649         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60650         declaration.
60651
60652 2006-09-27  Jim Meyering  <jim@meyering.net>
60653
60654         This file could end up with a definition for a function
60655         named __strndup, rather than rpl_strndup on a system with
60656         incomplete weak_alias support.
60657         * lib/strndup.c (strndup): Rename from __strndup.
60658         Remove #defines that used to map __strndup to strndup.
60659         Don't use K&R prototypes.
60660         Remove LIBC-related code, since this file is not sync'd with glibc.
60661         * lib/strndup.h: Revamp, accordingly.
60662         * m4/strndup.m4: Modernize.
60663
60664 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60665
60666         * modules/savewd (Depends-on): Add 'raise'.
60667         * lib/savewd.c: Include <signal.h>, for 'raise'.
60668
60669 2006-09-26  Jim Meyering  <jim@meyering.net>
60670
60671         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60672         when we detect Darwin 8.7.0's acl_get_file bug.
60673         Rearrange to perform the new (below) run-test while $LIBS
60674         contains any acl-related library.  Set USE_ACL at the end.
60675         (gl_ACL_GET_FILE): New function.
60676
60677 2006-09-26  Eric Blake  <ebb9@byu.net>
60678
60679         * lib/verror.c: Include <config.h> unconditionally.
60680
60681 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60682
60683         * modules/clock-time (Maintainer): Add self.
60684         * modules/getlogin_r (Depends-on): Add extensions.
60685
60686 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60687
60688         * modules/clock-time: New module.
60689         * modules/nanosleep (Depends-on): Add clock-time.
60690         * modules/gethrxtime (Depends-on): Likewise.
60691         * modules/gettime (Depends-on): Likewise.
60692         * modules/settime (Depends-on): Likewise.
60693
60694         * modules/fts-lgpl: Depend on openat.
60695         * modules/mkancesdirs: Depend on savewd.
60696         * modules/mkdir-p: Likewise.
60697
60698 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60699
60700         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60701
60702         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60703         `gl_have_arbitrary_file_name_length_limit' to
60704         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60705         actually works between configure runs.
60706
60707 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60708             Bruno Haible  <bruno@clisp.org>
60709
60710         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60711
60712 2006-09-25  Jim Meyering  <jim@meyering.net>
60713
60714         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60715         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60716
60717 2006-09-25  Eric Blake  <ebb9@byu.net>
60718
60719         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60720         exec's in 2006-09-18 patch when shuffling fds.
60721
60722 2006-09-25  Bruno Haible  <bruno@clisp.org>
60723
60724         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60725         Reported by Jim Meyering.
60726
60727 2006-09-24  Jim Meyering  <jim@meyering.net>
60728
60729         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60730         compare a pointer against a literal "0".  That caused failures with
60731         at least HP-UX's hpcc.
60732
60733 2006-09-22  Simon Josefsson  <jas@extundo.com>
60734
60735         * modules/gc-sha1:
60736         * modules/gc-md4:
60737         * modules/gc-hmac-sha1:
60738         * modules/gc-hmac-md5:
60739         * modules/gc-des:
60740         * modules/gc-arcfour: Distribute more files.
60741
60742 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60743
60744         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60745         (gl_linked_iterator_from_to): Initialize struct completely.
60746         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60747         (gl_tree_iterator_from_to): Likewise
60748         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60749         * lib/gl_array_list.c [lint] (gl_array_iterator)
60750         (gl_array_iterator_from_to): Likewise.
60751         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60752         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60753         (gl_carray_iterator_from_to): Likewise.
60754
60755         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60756         * lib/md4.c (md4_process_block): Remove unused variable.
60757         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60758         parentheses for clarity.
60759
60760 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60761
60762         * modules/bison-i18n (Depends-on): Add gettext.
60763
60764 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60765
60766         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60767         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60768         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60769         also add missing comma that caused broken test.
60770         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60771         stdlib.h, for `abort'.
60772         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60773         variables.
60774         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60775         include unistd.h if present, for `rmdir'.
60776         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60777         variables.
60778         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60779         in the process include standard headers for prototypes.
60780         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60781         gets declared on GNU/Linux.
60782         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60783         unistd.h, for `rmdir'.
60784         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60785
60786         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60787         always true.
60788         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60789
60790         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60791
60792 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60793
60794         * gnulib-tool (func_version): Create output all at once.  This
60795         may help avoid triggering unnecessary SIGPIPEs, and at any
60796         rate it doesn't hurt.
60797
60798 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60799             Bruno Haible  <bruno@clisp.org>
60800
60801         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60802         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60803         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60804
60805         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60806         (gl_FUNC_VASPRINTF): Invoke it.
60807
60808 2006-09-22  Bruno Haible  <bruno@clisp.org>
60809
60810         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60811         getloadavg.c as first argument.
60812
60813 2006-09-22  Bruno Haible  <bruno@clisp.org>
60814
60815         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60816         at the beginning of the gl_INIT macro.
60817         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60818         gl_GETLOADAVG.
60819
60820 2006-09-22  Bruno Haible  <bruno@clisp.org>
60821
60822         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60823         module.
60824         Suggested by Ralf Wildenhues.
60825
60826 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60827
60828         Import this patch from libc:
60829
60830         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60831
60832         * lib/regex_internal.c (re_string_reconstruct): Handle
60833         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60834         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60835         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60836         re_string_context_at.
60837
60838         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60839         now requires it.
60840         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60841         gl_REGEX now does it for us.
60842         (gl_REGEX): Add test taken from
60843         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60844
60845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60846         Check that large offsets work.  Modernize Autoconf usages.
60847         Prefer "yes" to mean a good thing rather than a bad.
60848         Don't put "#define mkstemp" in config.h, as this might interfere
60849         with standard system headers that "#define mkstemp mkstemp64".
60850
60851         * modules/mkstemp (Depends-on): Add extensions, so that
60852         mkstemp is visible on some platforms.
60853         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60854         (Include): Change to "mkstemp.h" from <stdlib.h>.
60855         (Files): Add mkstemp.h.
60856
60857         * lib/mkstemp.h: New file, since some standard headers
60858         #define mkstemp.
60859         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60860         Include "mkstemp.h".
60861         Make the _LIBC code resemble glibc original more,
60862         e.g., use K&R style.
60863         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60864         (mkstemp): Remove, since mkstemp.h does this for us.
60865         * lib/stdlib--.h: Include mkstemp.h.
60866
60867         Import this patch from libc:
60868
60869         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60870
60871         * lib/tempname.c (__gen_tempname): Change attempts_min
60872         into a macro.  Use preprocessor to decide how to initialize
60873         attempts [Coverity CID 67].
60874
60875 2006-09-20  Bruno Haible  <bruno@clisp.org>
60876
60877         * lib/mkdtemp.c: Import from libc.
60878         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60879                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60880                 attempts_min into a macro.  Use preprocessor to decide how to
60881                 initialize attempts [Coverity CID 67].
60882         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60883                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60884                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60885
60886 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60887
60888         * gnulib-tool (func_exit): New function, to allow to pass the
60889         exit status portably through the trap.  Use everywhere.
60890         (--help, --version): Signal a write error.
60891         (trap): catch SIGPIPE, for write errors.
60892         Exit at the end of the trap, with the correct exit status.
60893
60894 2006-09-19  Karl Berry  <karl@gnu.org>
60895
60896         * doc/gnulib.texi: note about the license texinfo files.
60897
60898 2006-09-19  Eric Blake  <ebb9@byu.net>
60899
60900         * gnulib-tool: Avoid space-tab.
60901
60902 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60905         that prevented coreutils 6.1 from building.  Problem reported
60906         by Petter Reinholdtsen.
60907
60908 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60909
60910         * gnulib-tool (avoidlist): Fix typo that broke options like
60911         --avoid=lock that are used by coreutils bootstrap.
60912
60913 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60914
60915         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60916         more systematically.
60917
60918 2006-09-18  Jim Meyering  <jim@meyering.net>
60919
60920         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60921
60922 2006-09-18  Bruno Haible  <bruno@clisp.org>
60923
60924         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60925
60926 2006-09-18  Bruno Haible  <bruno@clisp.org>
60927
60928         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60929         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60930         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60931         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60932         * m4/gettext.m4: Require autoconf >= 2.52.
60933         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60934         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60935         of gl_cv_header_inttypes_h.
60936
60937 2006-09-18  Bruno Haible  <bruno@clisp.org>
60938
60939         * lib/javaversion.c: Include configmake.h.
60940
60941 2006-09-18  Bruno Haible  <bruno@clisp.org>
60942
60943         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60944         avoid that the while loops be executed in a subshell.
60945
60946 2006-09-18  Bruno Haible  <bruno@clisp.org>
60947
60948         * MODULES.html.sh (func_module): Break long lines.
60949         Suggested by Bruce Korb <bkorb@gnu.org>.
60950
60951 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60952
60953         Speed up by a factor of 1.12.
60954         * gnulib-tool (nl): New variable.
60955         (func_import): Rewrite include directive extraction to only read each
60956         directive once.
60957
60958 2006-09-17  Bruno Haible  <bruno@clisp.org>
60959
60960         * modules/javaversion (Makefile.am): Remove DEFS setting.
60961         (Depends-on): Add configmake, for PKGDATADIR definition.
60962
60963 2006-09-17  Bruno Haible  <bruno@clisp.org>
60964
60965         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60966
60967 2006-09-17  Bruno Haible  <bruno@clisp.org>
60968
60969         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60970         (func_modules_transitive_closure, func_modules_add_dummy,
60971         func_modules_to_filelist, func_import, func_create_testdir,
60972         func_create_megatestdir, ...): Use it wherever possible.
60973         Suggested by Ralf Wildenhues.
60974
60975 2006-09-16  Karl Berry  <karl@gnu.org>
60976
60977         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60978         to avoid sectioning errors.
60979         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60980         [ifinfo]: blank line after @center-ed titles.
60981         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60982         Spell FSF address consistently with others.
60983         (These changes approved by rms.)
60984
60985 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60986
60987         Speed up by a factor of 1.61.
60988         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60989         already checked module names again.
60990
60991 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60992
60993         Speed up by a factor of 1.13.
60994         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60995         for new_files, and the input to func_add_or_update.
60996
60997 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60998
60999         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
61000         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
61001
61002 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61003
61004         * modules/mkancesdirs (Depends-on): Add fcntl.
61005         * modules/savewd: New file.
61006         * MODULES.html.sh (File system functions): Add savewd.
61007
61008         * modules/configmake (Makefile.am): Add support for the
61009         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
61010
61011 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61012
61013         * m4/savewd.m4: New file.
61014
61015 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61016
61017         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
61018         (dirchownmod): New arg FD.  All callers changed.
61019         Use FD rather than opening the directory ourself, as opening is
61020         now the caller's responsibility.
61021         * lib/dirchownmod.h: Likewise.
61022         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
61023         hosts that require <sys/types.h> before <sys/stat.h>.  Include
61024         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
61025         (test_dir): Remove.
61026         (mkancesdirs): Return length of prefix of FILE that has already
61027         been made, or -2 if there is a child doing the work.  Redo
61028         algorithm so that it is O(N) rather than O(N**2).  Optimize away
61029         ".", and treat ".." specially since it might stray back into
61030         already-created areas.  Use a subprocess if necessary.  New arg
61031         WD; all users changed.  MAKE_DIR function should now return 1
61032         if it creates a directory that is not readable.  Return -2 if
61033         a child process is spun off.
61034         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
61035         Adjust signature to match code.
61036         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
61037         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
61038         all users changed.
61039         * lib/savewd.c, lib/savewd.h: New files.
61040
61041 2006-09-15  Jim Meyering  <jim@meyering.net>
61042
61043         * modules/rename-dest-slash: New module.
61044         * MODULES.html.sh (posix_compat): Add it here.
61045
61046         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
61047
61048 2006-09-15  Jim Meyering  <jim@meyering.net>
61049
61050         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
61051         file.
61052
61053         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
61054
61055 2006-09-15  Jim Meyering  <jim@meyering.net>
61056
61057         * lib/rename-dest-slash.c (has_trailing_slash): Use
61058         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
61059         (rpl_rename_dest_slash): Perform the cheaper trailing slash
61060         test before testing whether SRC is a directory.
61061         Suggestions from Bruno Haible.
61062
61063         Avoid a warning about an unused variable.
61064         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
61065         into the #ifdef block where it's used.
61066
61067         * lib/rename-dest-slash.c: New file.
61068
61069 2006-09-14  Bruno Haible  <bruno@clisp.org>
61070
61071         * lib/allocsa.c: Include <config.h> unconditionally.
61072         * lib/asnprintf.c: Likewise.
61073         * lib/asprintf.c: Likewise.
61074         * lib/c-strcasecmp.c: Likewise.
61075         * lib/c-strcasestr.c: Likewise.
61076         * lib/c-strncasecmp.c: Likewise.
61077         * lib/c-strstr.c: Likewise.
61078         * lib/classpath.c: Likewise.
61079         * lib/clean-temp.c: Likewise.
61080         * lib/concatpath.c: Likewise.
61081         * lib/copy-file.c: Likewise.
61082         * lib/csharpcomp.c: Likewise.
61083         * lib/csharpexec.c: Likewise.
61084         * lib/execute.c: Likewise.
61085         * lib/fatal-signal.c: Likewise.
61086         * lib/findprog.c: Likewise.
61087         * lib/fwriteerror.c: Likewise.
61088         * lib/gl_array_list.c: Likewise.
61089         * lib/gl_array_oset.c: Likewise.
61090         * lib/gl_avltree_list.c: Likewise.
61091         * lib/gl_avltree_oset.c: Likewise.
61092         * lib/gl_avltreehash_list.c: Likewise.
61093         * lib/gl_carray_list.c: Likewise.
61094         * lib/gl_linked_list.c: Likewise.
61095         * lib/gl_linkedhash_list.c: Likewise.
61096         * lib/gl_list.c: Likewise.
61097         * lib/gl_oset.c: Likewise.
61098         * lib/gl_rbtree_list.c: Likewise.
61099         * lib/gl_rbtree_oset.c: Likewise.
61100         * lib/gl_rbtreehash_list.c: Likewise.
61101         * lib/imaxabs.c: Likewise.
61102         * lib/imaxdiv.c: Likewise.
61103         * lib/javacomp.c: Likewise.
61104         * lib/javaexec.c: Likewise.
61105         * lib/javaversion.c: Likewise.
61106         * lib/linebreak.c: Likewise.
61107         * lib/localcharset.c: Likewise.
61108         * lib/lock.c: Likewise.
61109         * lib/mbchar.c: Likewise.
61110         * lib/mbswidth.c: Likewise.
61111         * lib/mkdtemp.c: Likewise.
61112         * lib/pipe.c: Likewise.
61113         * lib/printf-args.c: Likewise.
61114         * lib/printf-parse.c: Likewise.
61115         * lib/progname.c: Likewise.
61116         * lib/progreloc.c: Likewise.
61117         * lib/readlink.c: Likewise.
61118         * lib/sh-quote.c: Likewise.
61119         * lib/stpcpy.c: Likewise.
61120         * lib/stpncpy.c: Likewise.
61121         * lib/strcasecmp.c: Likewise.
61122         * lib/strcasestr.c: Likewise.
61123         * lib/strcspn.c: Likewise.
61124         * lib/striconv.c: Likewise.
61125         * lib/strncasecmp.c: Likewise.
61126         * lib/strnlen1.c: Likewise.
61127         * lib/strstr.c: Likewise.
61128         * lib/strtok_r.c: Likewise.
61129         * lib/tls.c: Likewise.
61130         * lib/tmpdir.c: Likewise.
61131         * lib/unicodeio.c: Likewise.
61132         * lib/unsetenv.c: Likewise.
61133         * lib/vasnprintf.c: Likewise.
61134         * lib/vasprintf.c: Likewise.
61135         * lib/wait-process.c: Likewise.
61136         * lib/xallocsa.c: Likewise.
61137         * lib/xsetenv.c: Likewise.
61138         * lib/xstriconv.c: Likewise.
61139
61140 2006-09-13  Simon Josefsson  <jas@extundo.com>
61141
61142         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
61143         that internally, suggested by Ralf Wildenhues
61144         <Ralf.Wildenhues@gmx.de>.
61145
61146 2006-09-13  Simon Josefsson  <jas@extundo.com>
61147
61148         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
61149         @LIBOBJS@.
61150         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61151
61152 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61153
61154         * lib/_fpending.c: Include <config.h> unconditionally, since we no
61155         longer worry about uses that don't define HAVE_CONFIG_H.
61156         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
61157         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
61158         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
61159         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
61160         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
61161         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
61162         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
61163         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
61164         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
61165         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
61166         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
61167         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
61168         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
61169         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
61170         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
61171         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
61172         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
61173         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
61174         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
61175         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
61176         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
61177         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
61178         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
61179         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
61180         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
61181         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
61182         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
61183         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
61184         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
61185         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
61186         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
61187         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
61188         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
61189         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
61190         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
61191         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
61192         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
61193         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
61194         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
61195         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
61196         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
61197         Likewise.
61198
61199 2006-09-13  Eric Blake  <ebb9@byu.net>
61200
61201         * lib/getopt.c: Fix typo in last commit.
61202
61203 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61204
61205         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
61206         dgettext.
61207
61208 2006-09-12  Jim Meyering  <jim@meyering.net>
61209
61210         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
61211         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
61212         Reported by Nelson H. F. Beebe.
61213
61214 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61215
61216         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
61217         program_invocation_name and program_invocation_short_name are
61218         initialized.
61219         * lib/argp-namefrob.h: Move declarations of program_invocation_name
61220         and program_invocation_short_name to argp.h, so they are visible
61221         to user programs.
61222         * lib/argp.h: Likewise
61223
61224 2006-09-10  Bruno Haible  <bruno@clisp.org>
61225
61226         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61227         m4/inttypes_h.m4, m4/uintmax_t.m4.
61228
61229 2006-09-10  Bruno Haible  <bruno@clisp.org>
61230
61231         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
61232         gl_AC_TYPE_UINTMAX_T.
61233
61234 2006-09-10  Bruno Haible  <bruno@clisp.org>
61235
61236         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
61237
61238 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61239
61240         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61241         convention.  Text proposed by Bruno Haible.
61242         (struct argp_option): Document the use of N_() wrappers.
61243
61244         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61245         '\v', and translate the two parts separately, instead of feeding
61246         the whole string to gettext.  This allows to exclude
61247         '\v' from the strings visible to the translator by writing doc
61248         strings as N_("..") "\v" N_("..").
61249
61250 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61251
61252         * config/srclist.txt: Undo latest change; the bug was fixed.
61253
61254 2006-09-09  Bruno Haible  <bruno@clisp.org>
61255
61256         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61257         assignments if building a library without libtool.
61258         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61259         in func_emit_lib_Makefile_am.
61260         (func_import): When building a static library libfoo.a, arrange to
61261         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61262         (func_create_testdir): Likewise.
61263         * modules/gc (configure.ac, Makefile.am): If building statically,
61264         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61265         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61266         * modules/striconv (configure.ac, Makefile.am): Likewise.
61267         Based on a suggestion by Ralf Wildenhues.
61268
61269 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61270
61271         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61272         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61273         Also:
61274
61275         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61276         Add year_2050_test to catch glibc bug 2821
61277         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61278
61279         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61280         Prefer #ifdef to #if.
61281
61282         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61283         Return from 'main' instead of calling 'exit'.
61284
61285 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61286
61287         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61288         returned the maximum time_t value rather than (time_t) -1.
61289         Problem originally reported by William Bardwell
61290         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61291
61292         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61293         Moved to here ...
61294         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61295         ... from here.
61296
61297 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61298
61299         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61300         2821 is fixed.
61301
61302 2006-09-08  Jim Meyering  <jim@meyering.net>
61303
61304         Don't make generated files read-only.  That would bother too many
61305         people.  However, do retain the ability to work when targets are
61306         read-only: remove the destination and temporary files before writing
61307         them (when generated via sed or echo), or by using the -f option for
61308         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61309         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61310         * modules/byteswap, modules/configmake, modules/fcntl:
61311         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61312         * modules/localcharset, modules/netinet_in, modules/poll:
61313         * modules/stdbool, modules/stdint, modules/sys_select:
61314         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61315
61316 2006-09-08  Jim Meyering  <jim@meyering.net>
61317
61318         Avoid new build failure on FreeBSD 6.0.
61319         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61320         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61321         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61322
61323 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61324
61325         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61326
61327 2006-09-07  Jim Meyering  <jim@meyering.net>
61328
61329         Fix global typo in last change: use chmod u-w, not chmod u-x.
61330         Spotted by Paul Eggert and Bruce Korb.
61331         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61332         * modules/byteswap, modules/configmake, modules/fcntl:
61333         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61334         * modules/localcharset, modules/netinet_in, modules/poll:
61335         * modules/stdbool, modules/stdint, modules/sys_select:
61336         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61337
61338 2006-09-06  Jim Meyering  <jim@meyering.net>
61339
61340         Make generated files be read-only.
61341         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61342         Ensure that each generated file is now read-only.
61343         * modules/argz: Likewise.
61344         * modules/arpa_inet: Likewise.
61345         * modules/byteswap: Likewise.
61346         * modules/configmake: Likewise.
61347         * modules/fcntl: Likewise.
61348         * modules/fnmatch: Likewise.
61349         * modules/getopt: Likewise.
61350         * modules/glob: Likewise.
61351         * modules/inttypes: Likewise.
61352         * modules/netinet_in: Likewise.
61353         * modules/poll: Likewise.
61354         * modules/stdbool: Likewise.
61355         * modules/stdint: Likewise.
61356         * modules/sys_select: Likewise.
61357         * modules/sys_socket: Likewise.
61358         * modules/sys_stat: Likewise.
61359         * modules/sysexits: Likewise.
61360         * modules/localcharset: Same as above, but continue using temporary
61361         file named "t-$@" (why different?) rather than the "$@-t" used
61362         everywhere else.
61363
61364         * modules/sysexits (Makefile.am): Replace literal occurrences
61365         of "sysexit.h" more readable, and more consistent, "$@".
61366
61367 2006-09-06  Bruno Haible  <bruno@clisp.org>
61368
61369         * modules/striconv: New file.
61370         * modules/xstriconv: New file.
61371         * MODULES.html.sh (Internationalization functions): Add striconv,
61372         xstriconv.
61373
61374 2006-09-06  Bruno Haible  <bruno@clisp.org>
61375
61376         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61377         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61378         not using libtool correctly.
61379
61380 2006-09-06  Bruno Haible  <bruno@clisp.org>
61381
61382         * lib/striconv.h: New file.
61383         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61384         iconvstring.c.
61385         * lib/xstriconv.h: New file.
61386         * lib/xstriconv.c: New file.
61387
61388 2006-09-06  Bruno Haible  <bruno@clisp.org>
61389
61390         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61391         lib_..._LDFLAGS.
61392
61393 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61394
61395         * lib/argz_.h: Sync from Libtool.
61396
61397         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61398                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61399
61400         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61401
61402 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61403
61404         * modules/trim: New file.
61405
61406 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61407
61408         * lib/trim.h: New file.
61409         * lib/trim.c: New file.
61410
61411 2006-09-05  Bruno Haible  <bruno@clisp.org>
61412
61413         * MODULES.html.sh (String handling): Add trim.
61414
61415 2006-09-04  Karl Berry  <karl@gnu.org>
61416
61417         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61418         until next release.
61419
61420 2006-09-03  Bruno Haible  <bruno@clisp.org>
61421
61422         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61423         correctly.
61424
61425 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61426
61427         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61428         not gl_GETLOADAVG.  Omit unneeded semicolons.
61429         Problems reported by Ralf Wildenhues in
61430         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61431         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61432         at the end, which is the usual gnulib style.
61433
61434         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61435         of doing all the work ourselves.
61436         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61437         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61438
61439 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61440
61441         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61442         Problem reported by Ralf Wildenhues in
61443         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61444
61445         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61446         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61447
61448 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61449
61450         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61451         yesterday's patch by changing test -n to test -z.
61452
61453 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61454
61455         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61456         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61457         the former is now obsolescent.
61458
61459         * modules/chdir-long (Depends-on): Add fcntl.
61460
61461 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61462
61463         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61464         obsolescent, and programs should use gnulib instead.
61465         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61466         but with prefixes changed.
61467
61468 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61471         or stdbool.h, because they might not exist while configuring.
61472
61473         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61474         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61475         does that for us.
61476         (O_DIRECTORY): Remove.
61477
61478 2006-08-31  Eric Blake  <ebb9@byu.net>
61479
61480         * gnulib-tool: Don't let emacs change spaces to TAB.
61481
61482 2006-08-31  Bruno Haible  <bruno@clisp.org>
61483
61484         * gnulib-tool: When calling func_import more than once, do it in a
61485         subshell.
61486         Reported by Eric Blake <ebb9@byu.net>.
61487
61488 2006-08-31  Bruno Haible  <bruno@clisp.org>
61489
61490         * gnulib-tool (nl): Remove variable.
61491         (sed_transform_lib_file): Use more robust test for config-h module.
61492         (func_import): Fix typo in 2006-08-25 patch.
61493
61494 2006-08-31  Bruno Haible  <bruno@clisp.org>
61495
61496         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61497         specified, augment Makefile.am variables instead of assigning them.
61498
61499 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61500
61501         Work around a bug in both the Linux and SunOS 64-bit kernels:
61502         nanosleep mishandles sleeps for longer than 2**31 seconds.
61503         Problem reported by Frank v Waveren in
61504         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61506         Check for nanosleep bug.
61507         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61508
61509 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61510
61511         Work around a bug in both the Linux and SunOS 64-bit kernels:
61512         nanosleep mishandles sleeps for longer than 2**31 seconds.
61513         Problem reported by Frank v Waveren in
61514         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61515         * lib/nanosleep.c (BILLION): New constant.
61516         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61517         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61518         implementation.
61519
61520 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61521
61522         * modules/nanosleep (Depends-on): Add gettime.
61523
61524 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61525         and Simon Josefsson  <jas@extundo.com>
61526         and Oskar Liljeblad  <oskar@osk.mine.nu>
61527
61528         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61529         * gnulib-tool (func_import): New license type 'unmodifiable license
61530         text'.
61531         * modules/fdl: Use it.  Longer description.
61532         * module/gpl, module/lgpl: New files.
61533
61534 2006-08-30  Jim Meyering  <jim@meyering.net>
61535
61536         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61537         shadowing the parameter.
61538
61539 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61540
61541         Sync from Libtool:
61542
61543         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61544
61545         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61546         sharing with gnulib.  Report by Eric Blake.
61547
61548 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61549
61550         * modules/isapipe: New file.
61551         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61552
61553 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61554
61555         * modules/configmake (Makefile.am): Add a comment, and omit
61556         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61557         by Bruno Haible.
61558
61559 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61560
61561         * m4/isapipe.m4: New file.
61562
61563 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61564
61565         * lib/isapipe.c, lib/isapipe.h: New files.
61566
61567 2006-08-29  Jim Meyering  <jim@meyering.net>
61568
61569         * modules/configmake (Makefile.am): Make configmake.h depend on
61570         Makefile.  Otherwise, a stale configmake.h could hang around.
61571
61572 2006-08-29  Eric Blake  <ebb9@byu.net>
61573
61574         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61575         resolution of upstream bug 3044.
61576
61577 2006-08-29  Bruno Haible  <bruno@clisp.org>
61578
61579         * modules/localcharset (Depends-on): Add configmake.
61580         (Makefile.am): Remove setting of LIBDIR through DEFS.
61581
61582 2006-08-29  Bruno Haible  <bruno@clisp.org>
61583
61584         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61585         defined.
61586
61587 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61588
61589         * modules/fcntl: New file.
61590         * modules/chdir-safer (Depends-on): Add fcntl.
61591         * modules/fts: Likewise.
61592         * modules/mkdir-p: Likewise.
61593
61594         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61595         This undoes the most recent change, since we're now addressing the
61596         problem in a different way.
61597
61598         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61599         into output, since the output might be called Makefile.am even
61600         if $makefile_name is something different.
61601         (func_import): Use $makefile_am rather than
61602         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61603         empty.
61604
61605         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61606
61607 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61608
61609         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61610         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61611         recent change to stdint.m4, since we're now addressing the problem in a
61612         different way.
61613
61614 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61615
61616         * m4/fcntl_h.m4: New file.
61617
61618 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61619
61620         * lib/fcntl_.h: New file.
61621         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61622         the fcntl module.
61623         * lib/dirchownmod.c: Likewise.
61624         * lib/fts.c: Likewise.
61625
61626         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61627         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61628         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61629         just before including <inttypes.h>, to avoid circular inclusion.
61630
61631 2006-08-28  Jim Meyering  <jim@meyering.net>
61632
61633         * doc/visibility.texi: Actually read and correct the grammar of the
61634         sentence affected by yesterday's change.
61635
61636 2006-08-28  Eric Blake  <ebb9@byu.net>
61637
61638         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61639         needs wrapper.
61640
61641 2006-08-28  Eric Blake  <ebb9@byu.net>
61642
61643         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61644
61645 2006-08-28  Eric Blake  <ebb9@byu.net>
61646
61647         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61648
61649 2006-08-28  Bruno Haible  <bruno@clisp.org>
61650
61651         * modules/c-strstr: New file, from GNU gettext.
61652         * MODULES.html.sh (String handling): Add c-strstr.
61653
61654 2006-08-28  Bruno Haible  <bruno@clisp.org>
61655
61656         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61657         macros.
61658         Reported by Eric Blake.
61659
61660 2006-08-28  Bruno Haible  <bruno@clisp.org>
61661
61662         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61663         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61664         * lib/vasprintf.c: Include errno.h, limits.h.
61665         (EOVERFLOW): New fallback definition.
61666         (vasprintf): Test here whether the string length is > INT_MAX.
61667         * lib/vsnprintf.c: Include errno.h, limits.h.
61668         (EOVERFLOW): New fallback definition.
61669         (vsnprintf): Fix bug when generated string was too long for the buffer.
61670         Test here whether the string length is > INT_MAX.
61671
61672 2006-08-28  Bruno Haible  <bruno@clisp.org>
61673
61674         * lib/inttypes_.h (SCNX*): Remove definitions.
61675         Reported by Eric Blake.
61676
61677 2006-08-28  Bruno Haible  <bruno@clisp.org>
61678
61679         * lib/c-strstr.h: New file, from GNU gettext.
61680         * lib/c-strstr.c: New file, from GNU gettext.
61681
61682 2006-08-28  Bruno Haible  <bruno@clisp.org>
61683
61684         * gnulib-tool: Reorder some statements.
61685
61686 2006-08-28  Bruno Haible  <bruno@clisp.org>
61687
61688         * gnulib-tool: New option --makefile-name.
61689         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61690         $makefile_name.
61691         (func_import): Write $makefile_name to the cache file, and read it from
61692         there unless explicitly specified. Use $makefile_name as file name
61693         instead of Makefile.am. Adjust the recommendations accordingly.
61694
61695 2006-08-28  Bruno Haible  <bruno@clisp.org>
61696
61697         * gnulib-tool (func_verify_module): Check against misapplying patch.
61698
61699 2006-08-28  Bruno Haible  <bruno@clisp.org>
61700
61701         * gnulib-tool (func_relativize, func_relconcat): New functions.
61702         Give an error if --local-dir is given with --update.
61703         Remove trailing slashes from $local_gnulib_dir.
61704         (func_import): Store the relativized $local_gnulib_dir in
61705         gnulib-cache.m4, and read it from there if not specified explicitly.
61706
61707 2006-08-28  Bruno Haible  <bruno@clisp.org>
61708
61709         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61710         is the current directory. Respect also $local_gnulib_dir.
61711
61712 2006-08-28  Bruno Haible  <bruno@clisp.org>
61713             Simon Josefsson  <jas@extundo.com>
61714
61715         BeOS portability.
61716         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61717
61718 2006-08-27  Jim Meyering  <jim@meyering.net>
61719
61720         * doc/visibility.texi: Remove duplicate word: "pointer".
61721
61722 2006-08-26  Bruno Haible  <bruno@clisp.org>
61723
61724         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61725         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61726         (Makefile.am): Create inttypes.h from inttypes_.h.
61727         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61728
61729         * modules/imaxabs: New file.
61730
61731         * modules/imaxdiv: New file.
61732
61733 2006-08-26  Bruno Haible  <bruno@clisp.org>
61734
61735         * m4/inttypes.m4: New file.
61736         * m4/_inttypes_h.m4: Remove file.
61737         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61738         PRI_MACROS_BROKEN.
61739         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61740
61741         * m4/imaxabs.m4: New file.
61742
61743         * m4/imaxdiv.m4: New file.
61744
61745 2006-08-26  Bruno Haible  <bruno@clisp.org>
61746
61747         * lib/inttypes_.h: New file.
61748         * lib/inttypes.h: Remove file.
61749         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61750
61751         * lib/imaxabs.c: New file.
61752
61753         * lib/imaxdiv.c: New file.
61754
61755 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61756
61757         New config-h module, so that "make" output needn't be cluttered
61758         by -DHAVE_CONFIG_H.
61759         * MODULES.html.sh (Support for building libraries and executables):
61760         Add config-h.
61761         * modules/config-h: New file.
61762         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61763         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61764         the config-h module is used.
61765
61766         New configmake module, so that "make" output needn't be cluttered
61767         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61768         * MODULES.html.sh (Support for building libraries and executables):
61769         Add configmake.
61770         * modules/configmake: New file.
61771
61772 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61773
61774         * m4/config-h.m4: New file.
61775
61776 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61777
61778         * config/srclist.txt: Add elisp-comp.
61779
61780 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61781
61782         * MODULES.html.sh (Support for building libraries and executables):
61783         Add elisp-comp.
61784         * build-aux/elisp-comp: New file.
61785         * modules/elisp-comp: New file.
61786
61787 2006-08-24  Bruno Haible  <bruno@clisp.org>
61788
61789         * gnulib-tool (func_create_testdir): Use non-default values of
61790         sourcebase and m4base.
61791
61792 2006-08-24  Bruno Haible  <bruno@clisp.org>
61793
61794         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61795         HTML structure.
61796
61797 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61798
61799         * modules/openat (Depends-on): Add lchown.
61800
61801 2006-08-23  Bruno Haible  <bruno@clisp.org>
61802
61803         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61804         of gl_LOCK_EARLY instead of gl_LOCK.
61805
61806 2006-08-23  Bruno Haible  <bruno@clisp.org>
61807
61808         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61809         on OSF/1 to no.
61810         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61811
61812 2006-08-23  Bruno Haible  <bruno@clisp.org>
61813
61814         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61815         as unusable.
61816
61817         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61818         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61819         (gl_LOCK): New macro.
61820
61821 2006-08-22  Simon Josefsson  <jas@extundo.com>
61822
61823         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61824         to md5 module.
61825
61826 2006-08-22  Simon Josefsson  <jas@extundo.com>
61827
61828         * MODULES.html.sh: Add "Support for maintaining and release
61829         projects".
61830
61831         * build-aux/gnupload: New file, from coreutils.
61832
61833 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61834
61835         Avoid the need for AC_LIBSOURCES in m4 macros.
61836         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61837         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61838         * modules/check-version (EXTRA_DIST): Add check-version.h.
61839         * modules/crc (EXTRA_DIST): Add crc.h.
61840         * modules/des (EXTRA_DIST): Add des.h.
61841         * modules/gc (EXTRA_DIST): Add gc.h.
61842         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61843         * modules/getline (EXTRA_DIST): Add getline.h.
61844         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61845         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61846         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61847         * modules/md2 (EXTRA_DIST): Add md2.h.
61848         * modules/md4 (EXTRA_DIST): Add md4.h.
61849         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61850         * modules/read-file (EXTRA_DIST): Add read-file.h.
61851         * modules/readline (EXTRA_DIST): Add readline.h.
61852         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61853         rijndael-api-fst.h.
61854
61855 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61856
61857         * m4/rijndael.m4 (gl_ARCFOUR):
61858         * m4/arctwo.m4 (gl_ARCTWO):
61859         * m4/check-version.m4 (gl_CHECK_VERSION):
61860         * m4/crc.m4 (gl_CRC):
61861         * m4/des.m4 (gl_DES):
61862         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61863         * m4/gc.m4 (gl_GC):
61864         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61865         * m4/getline.m4 (gl_FUNC_GETLINE):
61866         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61867         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61868         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61869         * m4/md2.m4 (gl_MD2):
61870         * m4/md4.m4 (gl_MD4):
61871         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61872         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61873         * m4/readline.m4 (gl_FUNC_READLINE):
61874         * m4/rijndael.m4 (gl_RIJNDAEL):
61875         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61876         to get the necessary .h files and whatnot.
61877
61878 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61879
61880         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61881         gnulib rather than the other way around.
61882         * config/srclistvars.sh (COREUTILS): Remove.
61883
61884 2006-08-22  Jim Meyering  <jim@meyering.net>
61885
61886         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61887
61888         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61889
61890 2006-08-22  Eric Blake  <ebb9@byu.net>
61891
61892         * modules/regexprops-generic: New file.
61893         * MODULES.html.sh (Support for building documentation): List it.
61894
61895 2006-08-22  Eric Blake  <ebb9@byu.net>
61896
61897         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61898         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61899         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61900         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61901
61902 2006-08-22  Bruno Haible  <bruno@clisp.org>
61903
61904         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61905         and lib_LTLIBRARIES like the other lib_* variables.
61906
61907 2006-08-22  Bruno Haible  <bruno@clisp.org>
61908
61909         * build-aux/x-to-1.in: New file, from GNU gettext.
61910
61911 2006-08-22  Bruno Haible  <bruno@clisp.org>
61912
61913         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61914         <utmpx.h> exists.
61915
61916 2006-08-22  Bruno Haible  <bruno@clisp.org>
61917
61918         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61919         <utmpx.h> exists.
61920
61921 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61922
61923         BeOS portability.
61924         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61925         exist.
61926         Problem reported by Bruno Haible.
61927
61928 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61929
61930         Avoid the need for AC_LIBSOURCES in m4 macros.
61931         * modules/acl (EXTRA_DIST): Add acl.h.
61932         * modules/argmatch (Files): Add m4/argmatch.m4.
61933         (configure.ac): Add gl_ARGMATCH.
61934         (EXTRA_DIST): Renamed from lib_SOURCES, for
61935         consistency with the other modules.  Remove argmatch.c.
61936         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61937         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61938         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61939         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61940         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61941         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61942         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61943         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61944         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61945         * modules/closeout (EXTRA_DIST): Add closeout.h.
61946         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61947         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61948         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61949         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61950         dirname.h; remove basename.c and stripslash.c.
61951         * modules/exclude (EXTRA_DIST): Add exclude.h.
61952         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61953         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61954         * modules/file-type (EXTRA_DIST): Add file-type.h.
61955         * modules/filemode (EXTRA_DIST): Add filemode.h.
61956         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61957         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61958         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61959         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61960         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61961         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61962         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61963         * modules/getdate (EXTRA_DIST): Add getdate.c.
61964         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61965         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61966         * modules/getpass (EXTRA_DIST): Add getpass.h.
61967         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61968         * modules/group-member (EXTRA_DIST): Add group-member.h.
61969         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61970         * modules/hash (EXTRA_DIST): Add hash.h.
61971         * modules/human (EXTRA_DIST): Add human.h.
61972         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61973         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61974         * modules/lchown (EXTRA_DIST): Add lchown.h.
61975         * modules/long-options (EXTRA_DIST): Add long-options.h.
61976         * modules/lstat (EXTRA_DIST): Add lstat.h.
61977         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61978         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61979         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61980         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61981         * modules/memxor (EXTRA_DIST): Add memxor.h.
61982         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61983         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61984         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61985         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61986         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61987         * modules/physmem (EXTRA_DIST): Add physmem.h.
61988         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61989         * modules/posixver (EXTRA_DIST): Add posixver.h.
61990         * modules/quote (EXTRA_DIST): Add quote.h.
61991         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61992         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61993         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61994         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61995         regex_internal.h regexec.c.
61996         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61997         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61998         * modules/same (EXTRA_DIST): Add same.h.
61999         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
62000         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
62001         * modules/savedir (EXTRA_DIST): Add savedir.h.
62002         * modules/sha1 (EXTRA_DIST): Add sha1.h.
62003         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
62004         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
62005         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
62006         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
62007         * modules/strdup (EXTRA_DIST): Add strdup.h.
62008         * modules/strftime (EXTRA_DIST): Add strftime.h.
62009         * modules/strndup (EXTRA_DIST): Add strndup.h.
62010         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
62011         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
62012         * modules/time_r (EXTRA_DIST): Add time_r.h.
62013         * modules/timespec (EXTRA_DIST): Add timespec.h.
62014         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62015         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
62016         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
62017         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
62018         * modules/userspec (EXTRA_DIST): Add userspec.h.
62019         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
62020         * modules/utimens (EXTRA_DIST): Add utimens.h.
62021         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
62022         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
62023         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
62024         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
62025         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
62026         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
62027         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
62028         * modules/yesno (EXTRA_DIST): Add yesno.h.
62029
62030 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62031
62032         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
62033
62034         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
62035         * m4/dev-ino.m4, same-inode.m4: Remove.
62036
62037         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
62038         * m4/acl.m4 (AC_FUNC_ACL):
62039         * m4/backupfile.m4 (gl_BACKUPFILE):
62040         * m4/c-strtod.m4 (gl_C99_STRTOLD):
62041         * m4/canon-host.m4 (gl_CANON_HOST):
62042         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62043         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
62044         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
62045         * m4/cloexec.m4 (gl_CLOEXEC):
62046         * m4/close-stream.m4 (gl_CLOSE_STREAM):
62047         * m4/closeout.m4 (gl_CLOSEOUT):
62048         * m4/dirfd.m4 (gl_FUNC_DIRFD):
62049         * m4/dirname.m4 (gl_DIRNAME):
62050         * m4/exclude.m4 (gl_EXCLUDE):
62051         * m4/exitfail.m4 (gl_EXITFAIL):
62052         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
62053         * m4/file-type.m4 (gl_FILE_TYPE):
62054         * m4/filemode.m4 (gl_FILEMODE):
62055         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
62056         * m4/fpending.m4 (gl_FUNC_FPENDING):
62057         * m4/fprintftime.m4 (gl_FPRINTFTIME):
62058         * m4/fts.m4 (gl_FUNC_FTS):
62059         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
62060         * m4/getdate.m4 (gl_GETDATE):
62061         * m4/gethrxtime.m4 (gl_GETHRXTIME):
62062         * m4/getpagesize.m4 (gl_GETPAGESIZE):
62063         * m4/getpass.m4 (gl_FUNC_GETPASS):
62064         * m4/gettime.m4 (gl_GETTIME):
62065         * m4/getugroups.m4 (gl_GETUGROUPS):
62066         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
62067         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
62068         * m4/hard-locale.m4 (gl_HARD_LOCALE):
62069         * m4/hash.m4 (gl_HASH):
62070         * m4/idcache.m4 (gl_IDCACHE):
62071         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
62072         * m4/lchown.m4 (gl_FUNC_LCHOWN):
62073         * m4/long-options.m4 (gl_LONG_OPTIONS):
62074         * m4/lstat.m4 (gl_FUNC_LSTAT):
62075         * m4/md5.m4 (gl_MD5):
62076         * m4/memcasecmp.m4 (gl_MEMCASECMP):
62077         * m4/memcoll.m4 (gl_MEMCOLL):
62078         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
62079         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
62080         * m4/memxor.m4 (gl_MEMXOR):
62081         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
62082         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
62083         * m4/modechange.m4 (gl_MODECHANGE):
62084         * m4/mountlist.m4 (gl_MOUNTLIST):
62085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62086         * m4/openat.m4 (gl_FUNC_OPENAT):
62087         * m4/pathmax.m4 (gl_PATHMAX):
62088         * m4/physmem.m4 (gl_PHYSMEM):
62089         * m4/posixtm.m4 (gl_POSIXTM):
62090         * m4/posixver.m4 (gl_POSIXVER):
62091         * m4/quote.m4 (gl_QUOTE):
62092         * m4/quotearg.m4 (gl_QUOTEARG):
62093         * m4/readtokens.m4 (gl_READTOKENS):
62094         * m4/readutmp.m4 (gl_READUTMP):
62095         * m4/regex.m4 (gl_REGEX):
62096         * m4/safe-read.m4 (gl_SAFE_READ):
62097         * m4/safe-write.m4 (gl_SAFE_WRITE):
62098         * m4/same.m4 (gl_SAME):
62099         * m4/save-cwd.m4 (gl_SAVE_CWD):
62100         * m4/savedir.m4 (gl_SAVEDIR):
62101         * m4/settime.m4 (gl_SETTIME):
62102         * m4/sha1.m4 (gl_SHA1):
62103         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
62104         * m4/stat-macros.m4 (gl_STAT_MACROS):
62105         * m4/stat-time.m4 (gl_STAT_TIME):
62106         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
62107         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
62108         * m4/strdup.m4 (gl_FUNC_STRDUP):
62109         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
62110         * m4/strndup.m4 (gl_FUNC_STRNDUP):
62111         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
62112         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
62113         * m4/time_r.m4 (gl_TIME_R):
62114         * m4/timespec.m4 (gl_TIMESPEC):
62115         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
62116         * m4/unlinkdir.m4 (gl_UNLINKDIR):
62117         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
62118         * m4/userspec.m4 (gl_USERSPEC):
62119         * m4/utimecmp.m4 (gl_UTIMECMP):
62120         * m4/utimens.m4 (gl_UTIMENS):
62121         * m4/xalloc.m4 (gl_XALLOC):
62122         * m4/xgetcwd.m4 (gl_XGETCWD):
62123         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
62124         * m4/xreadlink.m4 (gl_XREADLINK):
62125         * m4/xstrtod.m4 (gl_XSTRTOD):
62126         * m4/yesno.m4 (gl_YESNO):
62127         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62128         to get the necessary .h files and whatnot.
62129
62130 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
62131             Bruno Haible  <bruno@clisp.org>
62132
62133         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
62134         /bin/sh understanding of '!' conditional negation.
62135
62136 2006-08-21  Jim Meyering  <jim@meyering.net>
62137
62138         * modules/openat (Depends-on): Really alphabetize.
62139
62140         * modules/acl (Depends-on): Add error and quote.
62141
62142         * check-module (find_included_lib_files): Add at-func.c to the
62143         ok-to-include-more-than-once white list.
62144
62145         * modules/openat (Depends-on): Add lstat.  Alphabetize.
62146
62147 2006-08-21  Bruno Haible  <bruno@clisp.org>
62148
62149         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62150         Emit a pkgdata_DATA variable only if some snippets add contents to it.
62151         Reported by Martin Lambers <marlam@marlam.de>.
62152
62153 2006-08-21  Bruno Haible  <bruno@clisp.org>
62154
62155         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
62156         specify an installation location, don't emit a noinst_LIBRARIES or
62157         noinst_LTLIBRARIES assignment.
62158
62159 2006-08-21  Bruno Haible  <bruno@clisp.org>
62160
62161         BeOS portability.
62162         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
62163         BeOS has mbrtowc() but no <wctype.h>.
62164
62165 2006-08-21  Bruno Haible  <bruno@clisp.org>
62166
62167         BeOS portability.
62168         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
62169         exist.
62170
62171 2006-08-21  Bruno Haible  <bruno@clisp.org>
62172
62173         BeOS portability.
62174         * lib/mbchar.h: Include <wctype.h> only if it exists.
62175
62176 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62177
62178         Remove files that are no longer needed by their respective modules.
62179         * m4/obstack.m4: Remove.
62180         * m4/strerror_r.m4: Remove.
62181         * m4/uint32_t.m4: Remove.
62182         * m4/uintptr_t.m4: Remove.
62183         * m4/ullong_max.m4: Remove.
62184         * m4/xstrtoimax.m4: Remove.
62185         * m4/xstrtoumax.m4: Remove.
62186
62187         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
62188         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
62189         dependencies now capture this.
62190
62191         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
62192         Do not use AC_LIBSOURCES, since gnulib modules now do this.
62193         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
62194         * m4/human.m4 (gl_HUMAN): Likewise.
62195         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
62196         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
62197
62198         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
62199
62200         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
62201         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
62202         stdint.
62203         * m4/human.m4 (gl_HUMAN): Likewise.
62204         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
62205         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
62206         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62207         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62208         * m4/xstrtol (gl_XSTRTOL): Likewise.
62209
62210         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
62211         AC_TYPE_LONG_LONG_INT.
62212         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62213         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
62214         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
62215         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62216
62217         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
62218         on stdbool.
62219
62220         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
62221         (gl_PREREQ_XSTRTOUL): Remove.
62222
62223         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
62224
62225         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
62226         mode.
62227
62228 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62229
62230         Add and change modules to make it easier for coreutils to use
62231         gnulib-tool.
62232         * modules/backupfile (Files): Remove m4/d-ino.m4.
62233         (Depends-on): Add d-ino.
62234         * modules/cycle-check (Depends-on): Add stdint.
62235         (lib_SOURCES): Add cycle-check.h.
62236         * modules/d-ino: New module.
62237         * modules/d-type: New module.
62238         * modules/error (Files): Remove m4/strerror_r.m4.
62239         * modules/filemode (Files): Add m4/st_dm_mode.m4.
62240         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62241         m4/inttypes_h.m4, m4/uintmax_t.m4.
62242         (Depends-on): Add stdint.
62243         (lib_SOURCES): Add fsusage.h.
62244         * modules/getcwd (Files): Remove d-ino.m4.
62245         (Depends-on): Add d-ino.
62246         * modules/getndelim2 (Depends-on): Add stdint.
62247         * modules/glob (Files): Remove m4/d-type.m4.
62248         (Depends-on): Add d-type.
62249         * modules/host-os: New module.
62250         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62251         m4/inttypes_h.m4, m4/uintmax_t.m4.
62252         * Depends-on: Add stdint.
62253         (lib_SOURCES): Add human.h.
62254         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62255         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62256         m4/uintmax_t.m4, m4/ulonglong.m4.
62257         (Depends-on): Add stdint.
62258         (EXTRA_DIST): Add inttostr.h.
62259         * modules/lchmod: New module.
62260         * modules/link-follow: New module.
62261         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62262         (Depends-on): Add lchmod.
62263         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62264         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62265         (Depends-on): Add stdint.
62266         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62267         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62268         (Depends-on): Add stdint.
62269         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62270         * modules/perl: New module.
62271         * modules/regex (Depends-on): Add stdint.
62272         * modules/rmdir-errno: New module.
62273         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62274         m4/intmax_t.m4.
62275         (Depends-on): Add stdint.
62276         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62277         m4/uintmax_t.m4.
62278         (Depends-on): Add stdint.
62279         * modules/unlink-busy: New module.
62280         * modules/utimecmp (Depends-on): Add stdint.
62281         * modules/uptime: New module.
62282         * modules/winsz-ioctl: New module.
62283         * modules/winsz-termios: New module.
62284         * modules/xnanosleep (Depends-on): Add nanosleep.
62285         * modules/ullong_max: Remove.
62286         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62287         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62288         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62289         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62290         (Depends-on): Add inttypes.
62291         (lib_SOURCES): Add xstrtol.h.
62292         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62293         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62294         * MODULES.html.sh: Move 'assert' into the assert section.
62295         Move 'dummy' into the linking section.
62296         Remove ullong_max.
62297         Add section for compatibility checks for POSIX:2001 functions,
62298         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62299         winsz-ioctl, and winsz-termios into it.
62300         Add lchmod.
62301         Add top-level Misc section and put host-os, perl, and uptime
62302         into it.
62303
62304 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62305
62306         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62307         now assume the stdint module.  Do not include inttypes.h.
62308         * lib/fsusage.h: Likewise.
62309         * lib/getndelim2.c: Likewise.
62310         * lib/human.h: Likewise.
62311         * lib/inttostr.h: Likewise.
62312         * lib/obstack.c: Likewise.
62313         * lib/regex_internal.h: Likewise.
62314         * lib/tempname.c: Likewise.
62315         * lib/utimecmp.c: Likewise.
62316         * lib/xstrtol.h: Likewise.
62317
62318         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62319
62320         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62321         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62322         * lib/xtime.h: Likewise.
62323
62324 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62325
62326         * modules/openat (Files): Add lib/fchmodat.c.
62327         Fixes problem reported by Jay Youngman.
62328
62329 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62330
62331         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62332         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62333
62334 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62335             Bruno Haible  <bruno@clisp.org>
62336
62337         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62338         and is a script that invokes bison. Tighten the code. Add comments.
62339
62340 2006-08-18  Jim Meyering  <jim@meyering.net>
62341
62342         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62343         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62344         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62345         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62346
62347 2006-08-18  Bruno Haible  <bruno@clisp.org>
62348
62349         * modules/bison-i18n: New file.
62350         * MODULES.html.sh (Internationalization functions): Add it.
62351
62352 2006-08-18  Bruno Haible  <bruno@clisp.org>
62353
62354         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62355         sys/statvfs.h. When getmntinfo was found, check its declaration and
62356         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62357
62358 2006-08-18  Bruno Haible  <bruno@clisp.org>
62359
62360         * m4/bison-i18n.m4: New file, from bison.
62361
62362 2006-08-18  Bruno Haible  <bruno@clisp.org>
62363
62364         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62365         (ME_DUMMY): Treat "kernfs" as a dummy.
62366         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62367
62368 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62369
62370         Update from coreutils.
62371
62372         2006-08-15  Jim Meyering  <jim@meyering.net>
62373
62374         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62375
62376         2006-01-17  Jim Meyering  <jim@meyering.net>
62377
62378         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62379
62380         2006-01-11  Jim Meyering  <jim@meyering.net>
62381
62382         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62383         Check for the lchmod function.
62384
62385 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62386
62387         Update from coreutils.
62388
62389         * lib/__fpending.h: Add copyright notice.
62390         * lib/fprintftime.h: Likewise.
62391         * lib/savedir.c: Use (C) in copyright notice.
62392         * lib/savedir.h: Likewise.
62393
62394         2006-08-15  Jim Meyering  <jim@meyering.net>
62395
62396         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62397         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62398         in support of the EXPECTED_ERRNO macro.
62399         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62400         definitions.  Instead, define the appropriate symbols and include
62401         "at-func.c".
62402         * lib/mkdirat.c (mkdirat): Likewise.
62403         * lib/fchmodat.c (fchmodat): Likewise.
62404         (ENOSYS): Remove definition.
62405         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62406         it.  Don't include "unistd--.h" -- it wasn't ever used.
62407
62408         2006-01-17  Jim Meyering  <jim@meyering.net>
62409
62410         Rewrite fts.c not to change the current working directory,
62411         by using openat, fstatat, fdopendir, etc..
62412
62413         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62414         (HAVE_OPENAT_SUPPORT): Define.
62415         [_LIBC] (fchdir): Don't undef or define; no longer used.
62416         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62417         Now, this `function' always succeeds, and consumes its file descriptor
62418         parameter -- so callers must not close such FDs.  Update callers.
62419         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62420         (diropen): Add parameter, SP.  Adjust all callers.
62421         Implement using diropen_fd, rather than open.
62422         (fts_open): Initialize new member, fts_cwd_fd.
62423         Remove fts_rft-setting code.
62424         (fts_close): Close fts_cwd_fd, if necessary.
62425         (__opendir2): Define in terms of opendir or opendirat,
62426         depending on whether the FST_NOCHDIR flag is set.
62427         (fts_build): Since fts_safe_changedir consumes its FD, and since
62428         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62429         and close the dup'd file descriptor upon failure.
62430         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62431         (fts_safe_changedir): Tweak semantics to reflect that this function
62432         now calls cwd_advance_fd and hence consumes its FD argument.
62433         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62434         [struct FTS] (fts_rft): Remove now-unused member.
62435         [struct FTS] (fts_cycle.state): Improve comment.
62436
62437         * lib/openat.c (openat_needs_fchdir): New function.
62438         * lib/openat.h (openat_needs_fchdir): Declare it.
62439
62440 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62441
62442         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62443         Problem and fix reported by Pádraig Brady in
62444         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62445
62446 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62447
62448         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62449
62450 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62451
62452         * lib/memcoll.c (memcoll): Optimize for the common case where the
62453         arguments are bytewise equal.
62454
62455 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62456
62457         * doc/regexprops-generic.texi: Add a copyright notice.
62458
62459 2006-08-15  Bruno Haible  <bruno@clisp.org>
62460
62461         * modules/tmpdir (License): Change to LGPL.
62462
62463 2006-08-15  Bruno Haible  <bruno@clisp.org>
62464
62465         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62466         module.
62467
62468 2006-08-14  Simon Josefsson  <jas@extundo.com>
62469
62470         * config/srclist.txt: Add gnupload.
62471
62472 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62473
62474         Change copyright notice from LGPL 2 to GPL 2, since that's the
62475         standard form used in the gnulib repository.
62476         * tests/test-lock.c: Likewise.
62477         * tests/test-stdint.c: Likewise.
62478         * tests/test-tls.c: Likewise.
62479
62480         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62481         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62482         Add copyright notice.
62483
62484         * check-module: Add copyright notice.  Output a copyright
62485         notice if "--version" is specified.
62486         * modules/COPYING: New file.
62487         * tests/test-getaddrinfo.c: Add copyright notice.
62488         * tests/test-verify.c: Likewise.
62489
62490 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62491
62492         Change copyright notice from LGPL 2 to GPL 2, since that's the
62493         standard form used in the gnulib repository.
62494         * lib/lock.c: LGPL -> GPL.
62495         * lib/lock.h: Likewise.
62496         * lib/strnlen1.c: Likewise.
62497         * lib/strnlen1.h: Likewise.
62498         * lib/tls.c: Likewise.
62499         * lib/tls.h: Likewise.
62500         * lib/tmpdir.c: Likewise.
62501
62502         * lib/TODO: Remove; this belongs only in coreutils.
62503
62504 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62505
62506         Add copyright notices to long-enough files that lack them, since
62507         otherwise the files aren't clearly free.  Use the same notice that
62508         getdate.texi already uses.
62509         * doc/alloca-opt.texi: Add copyright notice.
62510         * doc/alloca.texi: Likewise.
62511         * doc/ctime.texi: Likewise.
62512         * doc/functions.texi: Likewise.
62513         * doc/gcd.texi: Likewise.
62514         * doc/gnulib-tool.texi: Likewise.
62515         * doc/inet_ntoa.texi: Likewise.
62516         * doc/visibility.texi: Likewise.
62517
62518         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62519         * doc/quote.texi: Add copyright notice.
62520
62521         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62522         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62523         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62524         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62525         is now obsolete, and give a pointer to the Sun list.
62526         Add copyright notice.
62527
62528 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62529
62530         * config/srclistvars.sh: Add copyright notice.
62531
62532 2006-08-14  Eric Blake  <ebb9@byu.net>
62533
62534         Import the following change from libc:
62535
62536         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62537
62538         Upstream bug 2997.
62539         * lib/misc/error.c: Add space between program name and message if file
62540         name is missing.
62541
62542 2006-08-12  Karl Berry  <karl@gnu.org>
62543
62544         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62545         remove, these originate in gnulib now.
62546
62547 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62548
62549         * doc/Makefile (standards.info standards.html standards.dvi):
62550         Also depend on make-stds.texi.
62551
62552 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62553
62554         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62555         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62556
62557         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62558         in wchar_t.  Problem reported by Eric Blake.
62559
62560         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62561         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62562         Also, help the compiler to keep LEN in a register.
62563
62564 2006-08-11  Eric Blake  <ebb9@byu.net>
62565
62566         * users.txt: Sort.  Add tar.
62567
62568 2006-08-11  Bruno Haible  <bruno@clisp.org>
62569
62570         * users.txt: New file.
62571
62572 2006-08-11  Bruno Haible  <bruno@clisp.org>
62573
62574         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62575         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62576
62577 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62578
62579         * modules/snprintf (Depends-on): Remove minmax.
62580         (Maintainer): Add self and Bruno.
62581
62582 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62583
62584         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62585         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62586         (EOVERFLOW): Define if the system does not.
62587         Do not include "minmax.h"; it wasn't used.
62588         (snprintf): Don't assume size_t promotes to an unsigned type.
62589         Fix bug when generated string was too long for the buffer: the
62590         buffer's contents are supposed to be the initial prefix of the
62591         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62592         exceeds INT_MAX; do the check ourselves.
62593
62594         Import the following changes from libc:
62595
62596         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62597
62598         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62599         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62600         set wc to the byte which couldn't be converted.
62601         (re_string_reconstruct): Don't clear valid_raw_len before calling
62602         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62603         tip_context using re_string_context_at.
62604
62605         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62606
62607         * lib/posix/regex.h: g++ still cannot handled [restrict].
62608
62609         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62610
62611         * lib/posix/regex.h: Remove special handling for VMS.
62612
62613 2006-08-10  Jim Meyering  <jim@meyering.net>
62614
62615         * modules/same-inode: New module.
62616         * modules/dev-ino: New module.
62617         * modules/cycle-check: Depend on these modules, rather than simply
62618         including their .h files.
62619         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62620         required via m4/cycle-check.m4.
62621         * modules/same: Depend on new same-inode module, rather than
62622         including same-inode.h.
62623         * modules/chdir-safer: New file.
62624
62625         * modules/chown (Depends-on): Add stat-macros.
62626
62627 2006-08-10  Jim Meyering  <jim@meyering.net>
62628
62629         * m4/cycle-check.m4: New file.
62630         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62631         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62632
62633 2006-08-10  Eric Blake  <ebb9@byu.net>
62634
62635         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62636         in from original proposal.
62637
62638 2006-08-10  Eric Blake  <ebb9@byu.net>
62639         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62640
62641         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62642         namespace.
62643
62644 2006-08-10  Bruno Haible  <bruno@clisp.org>
62645
62646         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62647         as well.
62648
62649 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62650
62651         Sync from coreutils.
62652
62653         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62654
62655         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62656         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62657
62658 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62659
62660         * modules/restrict: Remove; no longer needed now that we assume
62661         Autoconf 2.59 or later.
62662         * MODULES.html.sh: Remove 'restrict'.
62663         * modules/argp (Depends-on): Remove 'restrict'.
62664         * modules/base64 (Depends-on): Likewise.
62665         * modules/gc (Depends-on): Likewise.
62666         * modules/getaddrinfo (Depends-on): Likewise.
62667         * modules/glob (Depends-on): Likewise.
62668         * modules/inet_ntop (Depends-on): Likewise.
62669         * modules/inet_pton (Depends-on): Likewise.
62670         * modules/memxor (Depends-on): Likewise.
62671         * modules/regex (Depends-on): Likewise.
62672         * modules/strtok_r (Depends-on): Likewise.
62673         * modules/time_r (Depends-on): Likewise.
62674
62675 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62676
62677         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62678         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62679         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62680         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62681         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62682         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62683         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62684         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62685
62686         Merge from coreutils.
62687         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62688         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62689         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62690         * m4/time_r.m4 (gl_TIME_R): Likewise.
62691
62692 2006-08-09  Karl Berry  <karl@gnu.org>
62693
62694         * config/srclist.txt: no more gettext-tools, per Bruno.
62695
62696 2006-08-08  Eric Blake  <ebb9@byu.net>
62697
62698         * modules/verror: New module.
62699         * MODULES.html.sh: Document it.
62700
62701 2006-08-08  Eric Blake  <ebb9@byu.net>
62702
62703         * lib/verror.h, lib/verror.c: New files.
62704
62705 2006-08-08  Eric Blake  <ebb9@byu.net>
62706
62707         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62708         verror_at_line output complies with GNU Coding Standards even when
62709         file is NULL.
62710
62711 2006-08-07  Bruno Haible  <bruno@clisp.org>
62712
62713         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62714         versions of AIX.
62715         Reported by Ralf Wildenhues.
62716
62717 2006-08-07  Bruno Haible  <bruno@clisp.org>
62718
62719         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62720         in an AC_DEFUN. Needed so that the autoconf snippets can use
62721         AC_REQUIRE.
62722
62723 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62724
62725         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62726         Initialize pkgdata_DATA.
62727         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62728         overriding it.
62729
62730 2006-08-06  Eric Blake  <ebb9@byu.net>
62731
62732         * lib/error.h: Fold in some upstream changes from glibc.
62733         * lib/error.c: Likewise.
62734
62735 2006-08-04  Bruno Haible  <bruno@clisp.org>
62736
62737         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62738         Make the mostlyclean-local rule depend on mostlyclean-generic.
62739         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62740
62741 2006-07-31  Bruno Haible  <bruno@clisp.org>
62742
62743         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62744         <stdlib.h>, <string.h>.
62745
62746 2006-07-30  Bruno Haible  <bruno@clisp.org>
62747
62748         * modules/readlink (License): Change to LGPL.
62749
62750 2006-07-30  Bruno Haible  <bruno@clisp.org>
62751
62752         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62753         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62754         set PKGDATADIR to point to it.
62755
62756 2006-07-30  Bruno Haible  <bruno@clisp.org>
62757
62758         * modules/csharpexec (configure.ac): Comment out macro invocation.
62759         * modules/javaexec (configure.ac): Likewise.
62760         * modules/javacomp-script (configure.ac): Likewise.
62761
62762         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62763
62764 2006-07-30  Bruno Haible  <bruno@clisp.org>
62765
62766         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62767         linked-list.
62768
62769 2006-07-30  Bruno Haible  <bruno@clisp.org>
62770
62771         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62772
62773 2006-07-30  Bruno Haible  <bruno@clisp.org>
62774
62775         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62776         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62777         get removed.
62778
62779 2006-07-29  Bruno Haible  <bruno@clisp.org>
62780
62781         Make it possible for gnulib-tool to work with locally modified or
62782         augmented gnulib repositories.
62783         * gnulib-tool (func_usage): Document --local-dir option.
62784         (local_gnulib_dir): New variable.
62785         Handle --local-dir option.
62786         (func_lookup_file): New function.
62787         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62788         (func_get_description, func_get_filelist, func_get_description,
62789         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62790         func_get_automake_snippet, func_get_include_directive,
62791         func_get_license, func_get_maintainer): Use func_lookup_file.
62792         (func_import, func_create_testdir): Use func_lookup_file.
62793
62794 2006-07-29  Bruno Haible  <bruno@clisp.org>
62795
62796         * modules/setenv (Depends-on): Add unistd.
62797
62798 2006-07-29  Bruno Haible  <bruno@clisp.org>
62799
62800         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62801
62802 2006-07-29  Bruno Haible  <bruno@clisp.org>
62803
62804         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62805
62806 2006-07-29  Bruno Haible  <bruno@clisp.org>
62807
62808         * gnulib-tool (import, update): If there is no Makefile.am, look at
62809         aclocal.m4, instead of bailing out.
62810
62811 2006-07-29  Bruno Haible  <bruno@clisp.org>
62812
62813         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62814         Categorize the options by when they are useful.
62815
62816 2006-07-29  Bruno Haible  <bruno@clisp.org>
62817
62818         * gnulib-tool (func_usage): Document option --no-libtool.
62819         Handle option --no-libtool.
62820         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62821         for changed semantics of $libtool variable.
62822         (func_import): Likewise. If libtool is not used, show this through
62823         an option --no-libtool.
62824         (func_create_testdir): Update.
62825
62826 2006-07-29  Bruno Haible  <bruno@clisp.org>
62827
62828         * gnulib-tool (func_import): Extend error message about missing
62829         --doc-base.
62830
62831 2006-07-29  Bruno Haible  <bruno@clisp.org>
62832
62833         * gnulib-tool (func_import): Don't create the $docbase directory if
62834         there is no file to store there.
62835
62836 2006-07-29  Bruno Haible  <bruno@clisp.org>
62837
62838         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62839         relevant, look for configure.ac there, not in the current directory.
62840         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62841
62842 2006-07-29  Bruno Haible  <bruno@clisp.org>
62843
62844         * gnulib-tool (SORT): New variable.
62845         (func_usage): Undocument --assume-autoconf option.
62846         Remove --assume-autoconf option handling.
62847         (autoconf_minversion): Determine from the contents of configure.ac.
62848         (func_import): Remove autoconf_minversion handling.
62849         Suggested by Eric Blake.
62850
62851 2006-07-29  Bruno Haible  <bruno@clisp.org>
62852
62853         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62854
62855 2006-07-29  Bruno Haible  <bruno@clisp.org>
62856
62857         * config/srclist.txt (*setenv.[ch]): Remove rules.
62858
62859 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62860
62861         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62862
62863 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62864
62865         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62866         arpa/inet.h.
62867
62868 2006-07-28  Simon Josefsson  <jas@extundo.com>
62869
62870         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62871         * modules/inet_pton (Depends-on): Likewise.
62872
62873 2006-07-28  Simon Josefsson  <jas@extundo.com>
62874
62875         * m4/netinet_in_h.m4: New file.
62876
62877 2006-07-28  Simon Josefsson  <jas@extundo.com>
62878
62879         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62880         #include's.
62881
62882 2006-07-28  Simon Josefsson  <jas@extundo.com>
62883
62884         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62885         #include's.
62886
62887 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62888
62889         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62890         setgid on directories only if they set these bits.
62891         * lib/modechange.h: Remove obsolete comment about masks.
62892
62893 2006-07-28  Eric Blake  <ebb9@byu.net>
62894
62895         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62896         macro expansion.
62897
62898 2006-07-28  Bruno Haible  <bruno@clisp.org>
62899
62900         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62901
62902 2006-07-28  Bruno Haible  <bruno@clisp.org>
62903
62904         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62905
62906 2006-07-28  Bruno Haible  <bruno@clisp.org>
62907
62908         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62909         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62910         Define fallbacks.
62911         Avoids link error on FreeBSD 4.x.
62912         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62913
62914         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62915         encoding.
62916         * lib/mbswidth.c (iswcntrl): Likewise.
62917
62918 2006-07-27  Bruno Haible  <bruno@clisp.org>
62919
62920         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62921         test.
62922
62923 2006-07-27  Bruno Haible  <bruno@clisp.org>
62924
62925         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62926         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62927         defined.
62928
62929 2006-07-26  Eric Blake  <ebb9@byu.net>
62930
62931         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62932
62933 2006-07-26  Eric Blake  <ebb9@byu.net>
62934
62935         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62936         like mingw that lack mkstemp.
62937         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62938         avoid compilation warning on mingw.
62939
62940 2006-07-26  Bruno Haible  <bruno@clisp.org>
62941
62942         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62943         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62944         INT_FAST*_MIN, INTPTR_MIN.
62945
62946 2006-07-25  Bruno Haible  <bruno@clisp.org>
62947
62948         * modules/version-etc (Depends-on): Add stdarg.
62949
62950 2006-07-25  Bruno Haible  <bruno@clisp.org>
62951
62952         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62953         complex commands.
62954
62955 2006-07-25  Bruno Haible  <bruno@clisp.org>
62956
62957         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62958         defined in <stdarg.h> or config.h.
62959
62960 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62961
62962         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62963         (gl_STDIO_SAFER): Remove.
62964
62965 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62966
62967         * MODULES.html.sh (File stream based Input/Output):
62968         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62969         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62970         * modules/fopen-safer, modules/tmpfile-safer: New files.
62971         * modules/stdio-safer: Remove.
62972
62973 2006-07-24  Bruno Haible  <bruno@clisp.org>
62974
62975         * modules/tmpdir: New file.
62976         * MODULES.html.sh (File system functions): Add it.
62977
62978 2006-07-24  Bruno Haible  <bruno@clisp.org>
62979
62980         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62981         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62982
62983 2006-07-24  Bruno Haible  <bruno@clisp.org>
62984
62985         * modules/clean-temp: New file.
62986
62987 2006-07-24  Bruno Haible  <bruno@clisp.org>
62988
62989         * m4/tmpdir.m4: New file, from GNU gettext.
62990
62991 2006-07-24  Bruno Haible  <bruno@clisp.org>
62992
62993         * lib/tmpdir.h: New file, from GNU gettext.
62994         * lib/tmpdir.c: New file, from GNU gettext.
62995
62996 2006-07-24  Bruno Haible  <bruno@clisp.org>
62997
62998         * lib/clean-temp.h: New file, from GNU gettext.
62999         * lib/clean-temp.c: New file, from GNU gettext.
63000
63001 2006-07-23  Eric Blake  <ebb9@byu.net>
63002
63003         * modules/stdio-safer (Files): Add tmpfile-safer.c.
63004         (Depends-on): Add binary-io.
63005
63006 2006-07-23  Eric Blake  <ebb9@byu.net>
63007
63008         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
63009
63010 2006-07-23  Eric Blake  <ebb9@byu.net>
63011
63012         * lib/tmpfile-safer.c: New file.
63013         * lib/stdio-safer.h (fopen_safer): Add prototype.
63014         * lib/stdio--.h (tmpfile): Make safer.
63015
63016 2006-07-23  Bruno Haible  <bruno@clisp.org>
63017
63018         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
63019         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
63020         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
63021         gl_linked_remove_at): Use it.
63022
63023 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63024         and Simon Josefsson <jas@extundo.com>
63025
63026         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
63027
63028         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
63029
63030 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63031
63032         * modules/close-stream: New file.
63033         * modules/closeout (Description): Make it clear that it exits
63034         with a diagnostic on error.
63035         (Depends-on): Add close-stream.  Remove fpending, stdbool.
63036         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
63037
63038 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63039
63040         * m4/close-stream.m4: New file.
63041
63042 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63043
63044         * lib/close-stream.c, lib/close-stream.h: New files.
63045
63046 2006-07-22  Bruno Haible  <bruno@clisp.org>
63047
63048         Merge from GNU gettext 0.15.
63049
63050         2006-05-01  Bruno Haible  <bruno@clisp.org>
63051
63052                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
63053
63054         2006-07-22  Bruno Haible  <bruno@clisp.org>
63055
63056                 * modules/javaversion: New file.
63057                 * MODULES.html.sh (Java): Add javaversion.
63058
63059         2006-03-12  Bruno Haible  <bruno@clisp.org>
63060
63061                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
63062
63063         2005-12-04  Bruno Haible  <bruno@clisp.org>
63064
63065                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
63066                 (untested).
63067
63068         2006-06-21  Bruno Haible  <bruno@clisp.org>
63069
63070                 Avoid warnings from recent versions of mcs.
63071                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
63072                 -o, -L, -r any more. Use options documented since mcs-1.0
63073                 instead. Similarly for -g.
63074
63075         2005-12-04  Bruno Haible  <bruno@clisp.org>
63076
63077                 * build-aux/csharpcomp.sh.in: Suffix for resources is
63078                 .resources, not .resource.
63079
63080         2005-07-09  Bruno Haible  <bruno@clisp.org>
63081
63082                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
63083                 add a .dll suffix.
63084                 Reported by Mark Junker <mjscod@gmx.de>.
63085
63086         2006-07-22  Bruno Haible  <bruno@clisp.org>
63087
63088                 * modules/gettext: Upgrade to gettext-0.15.
63089                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
63090                 m4/visibility.m4.
63091                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
63092
63093 2006-07-22  Bruno Haible  <bruno@clisp.org>
63094
63095         Merge from GNU gettext 0.15.
63096
63097         2006-03-25  Bruno Haible  <bruno@clisp.org>
63098
63099                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
63100
63101         2006-07-21  Bruno Haible  <bruno@clisp.org>
63102
63103                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
63104                 "1.1".
63105
63106         2006-05-09  Bruno Haible  <bruno@clisp.org>
63107
63108                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
63109                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
63110                 for the conftestver execution.
63111
63112         2006-05-01  Bruno Haible  <bruno@clisp.org>
63113
63114                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
63115                 optional target-version argument. Verify that the compiler
63116                 groks source of the specified source-version, or add -source
63117                 option as necessary. Verify that the compiler produces
63118                 bytecode in the specified target-version, or add -target and
63119                 -source options as necessary. Make the result of the test
63120                 available as variable CONF_JAVAC. Also log error output in
63121                 config.log.
63122
63123         2006-03-11  Bruno Haible  <bruno@clisp.org>
63124
63125                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
63126
63127         2006-05-09  Bruno Haible  <bruno@clisp.org>
63128
63129                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
63130                 CLASSPATH_SEPARATOR to a semicolon.
63131
63132         2006-03-12  Bruno Haible  <bruno@clisp.org>
63133
63134                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
63135                 available as variable CONF_JAVA, for subsequent autoconf
63136                 tests. Also log error output in config.log.
63137
63138         2006-07-19  Bruno Haible  <bruno@clisp.org>
63139
63140                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
63141                 that getline works on glibc2 systems. Needed to avoid trouble
63142                 in relocatable.c.
63143                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
63144
63145         2005-12-04  Bruno Haible  <bruno@clisp.org>
63146
63147                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
63148                 launcher (untested).
63149
63150         2005-12-04  Bruno Haible  <bruno@clisp.org>
63151
63152                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
63153
63154         2006-07-22  Bruno Haible  <bruno@clisp.org>
63155
63156                 * gettext.m4: Update from GNU gettext-0.15.
63157                 * nls.m4: Likewise.
63158                 * po.m4: Likewise.
63159                 * inttypes-pri.m4: Likewise.
63160                 * inttypes-h.m4: Renamed from inttypes.m4.
63161                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
63162
63163 2006-07-22  Bruno Haible  <bruno@clisp.org>
63164
63165         Merge from GNU gettext 0.15.
63166
63167         2005-07-05  Bruno Haible  <bruno@clisp.org>
63168
63169                 * printf-args.c (printf_fetchargs): Work around broken
63170                 definition of wint_t on mingw.
63171
63172         2005-02-12  Bruno Haible  <bruno@clisp.org>
63173
63174                 * xallocsa.h: Add extern "C" for C++.
63175
63176         2006-05-17  Bruno Haible  <bruno@clisp.org>
63177
63178                 Cygwin portability.
63179                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
63180
63181         2006-04-30  Bruno Haible  <bruno@clisp.org>
63182
63183                 * progreloc.c: Include <mach-o/dyld.h> if available.
63184                 (find_executable): Use _NSGetExecutablePath when possible.
63185
63186         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63187
63188                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
63189                 function.
63190
63191         2005-12-29  Bruno Haible  <bruno@clisp.org>
63192
63193                 * progreloc.c (set_program_name_and_installdir): Fix
63194                 compilation error.
63195
63196         2005-12-04  Bruno Haible  <bruno@clisp.org>
63197
63198                 Cygwin portability.
63199                 * progreloc.c: Include <windows.h> also on Cygwin.
63200                 (find_executable): Add support for Cygwin.
63201                 (set_program_name_and_installdir): Handle also platforms with
63202                 nonempty EXEEXT.
63203
63204         2006-07-11  Bruno Haible  <bruno@clisp.org>
63205
63206                 * javacomp.c: Fix a comment.
63207                 Reported by Jim Meyering.
63208
63209         2006-04-30  Bruno Haible  <bruno@clisp.org>
63210
63211                 * javacomp.h (compile_java_class): Add source_version,
63212                 target_version arguments.
63213                 * javacomp.c: Rewritten to choose only a compiler that
63214                 respects the specified source_version and target_version.
63215
63216         2006-06-27  Bruno Haible  <bruno@clisp.org>
63217
63218                 Assume correct S_ISDIR macro.
63219                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
63220
63221         2006-07-22  Bruno Haible  <bruno@clisp.org>
63222
63223                 * javaversion.h: New file, from GNU gettext.
63224                 * javaversion.c: New file, from GNU gettext.
63225                 * javaversion.java: New file, from GNU gettext.
63226                 * javaversion.class: New file, from GNU gettext.
63227
63228         2006-05-17  Bruno Haible  <bruno@clisp.org>
63229
63230                 Cygwin portability.
63231                 * javaexec.c (execute_java_class): Test for jview program
63232                 also on Cygwin.
63233
63234         2006-04-09  Bruno Haible  <bruno@clisp.org>
63235
63236                 * fatal-signal.c: Don't include string.h.
63237                 (at_fatal_signal): Use a copying loop instead of memcpy.
63238
63239         2005-12-04  Bruno Haible  <bruno@clisp.org>
63240
63241                 * csharpexec.c: Add support for 'clix' launcher (untested).
63242                 (execute_csharp_using_sscli): New function.
63243                 (execute_csharp_program): Call it.
63244
63245         2006-06-21  Bruno Haible  <bruno@clisp.org>
63246
63247                 Avoid warnings from recent versions of mcs.
63248                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63249                 -o, -L, -r any more. Use options documented since mcs-1.0
63250                 instead. Similarly for -g.
63251
63252         2005-07-09  Bruno Haible  <bruno@clisp.org>
63253
63254                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63255                 add a .dll suffix.
63256                 Reported by Mark Junker <mjscod@gmx.de>.
63257
63258         2006-06-17  Bruno Haible  <bruno@clisp.org>
63259
63260                 * config.charset: Update for NetBSD 3.0.
63261
63262         2006-05-17  Bruno Haible  <bruno@clisp.org>
63263
63264                 Cygwin portability.
63265                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63266
63267         2006-05-16  Bruno Haible  <bruno@clisp.org>
63268
63269                 * localcharset.c [CYGWIN]: Include <windows.h>.
63270                 (get_charset_aliases): For Cygwin, return the same CPxxx
63271                 aliases list as under WIN32.
63272                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63273                 the environment variables. Fall back to GetACP().
63274
63275         2006-04-05  Bruno Haible  <bruno@clisp.org>
63276
63277                 * config.charset: Update Juan Manuel Guerrero's address.
63278
63279         2005-02-12  Bruno Haible  <bruno@clisp.org>
63280
63281                 * allocsa.h: Add extern "C" for C++.
63282
63283         2005-02-10  Bruno Haible  <bruno@clisp.org>
63284
63285                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63286                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63287
63288         2006-07-22  Bruno Haible  <bruno@clisp.org>
63289
63290                 * gettext.h: Update to GNU gettext-0.15.
63291
63292 2006-07-22  Bruno Haible  <bruno@clisp.org>
63293
63294         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63295         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63296         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63297
63298 2006-07-21  Eric Blake  <ebb9@byu.net>
63299
63300         * modules/stdlib-safer: New file.
63301         * MODULES.html.sh (File stream based Input/Output): Add
63302         stdlib-safer.
63303
63304 2006-07-21  Eric Blake  <ebb9@byu.net>
63305
63306         * lib/stdlib-safer.h: New file from coreutils, required by
63307         stdlib--.h.
63308
63309 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63310
63311         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63312
63313 2006-07-20  Bruno Haible  <bruno@clisp.org>
63314
63315         * gnulib-tool: Recognize new option --assume-autoconf.
63316         (autoconf_minversion): New variable.
63317         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63318
63319 2006-07-20  Bruno Haible  <bruno@clisp.org>
63320
63321         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63322
63323 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63324
63325         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63326         Reindent and repaginate.
63327
63328 2006-07-19  Derek Price  <derek@ximbiot.com>
63329
63330         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63331         Correct grammar.
63332
63333 2006-07-17  Bruno Haible  <bruno@clisp.org>
63334
63335         * modules/list: New file.
63336         * modules/array-list: New file.
63337         * modules/carray-list, modules/carray-list-tests: New files.
63338         * modules/linked-list, modules/linked-list-tests: New files.
63339         * modules/avltree-list, modules/avltree-list-tests: New files.
63340         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63341         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63342         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63343         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63344         * modules/oset: New file.
63345         * modules/array-oset: New file.
63346         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63347         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63348         * tests/test-carray_list.c: New file.
63349         * tests/test-linked_list.c: New file.
63350         * tests/test-avltree_list.c: New file.
63351         * tests/test-rbtree_list.c: New file.
63352         * tests/test-linkedhash_list.c: New file.
63353         * tests/test-avltreehash_list.c: New file.
63354         * tests/test-rbtreehash_list.c: New file.
63355         * tests/test-avltree_oset.c: New file.
63356         * tests/test-rbtree_oset.c: New file.
63357         * MODULES.html.sh (Container data structures): New section.
63358
63359 2006-07-17  Bruno Haible  <bruno@clisp.org>
63360
63361         * m4/gl_list.m4: New file.
63362
63363 2006-07-17  Bruno Haible  <bruno@clisp.org>
63364
63365         * lib/gl_list.h: New file.
63366         * lib/gl_list.c: New file.
63367         * lib/gl_array_list.h: New file.
63368         * lib/gl_array_list.c: New file.
63369         * lib/gl_carray_list.h: New file.
63370         * lib/gl_carray_list.c: New file.
63371         * lib/gl_linked_list.h: New file.
63372         * lib/gl_linked_list.c: New file.
63373         * lib/gl_anylinked_list1.h: New file.
63374         * lib/gl_anylinked_list2.h: New file.
63375         * lib/gl_avltree_list.h: New file.
63376         * lib/gl_avltree_list.c: New file.
63377         * lib/gl_anyavltree_list1.h: New file.
63378         * lib/gl_anyavltree_list2.h: New file.
63379         * lib/gl_rbtree_list.h: New file.
63380         * lib/gl_rbtree_list.c: New file.
63381         * lib/gl_anyrbtree_list1.h: New file.
63382         * lib/gl_anyrbtree_list2.h: New file.
63383         * lib/gl_anytree_list1.h: New file.
63384         * lib/gl_anytree_list2.h: New file.
63385         * lib/gl_linkedhash_list.h: New file.
63386         * lib/gl_linkedhash_list.c: New file.
63387         * lib/gl_anyhash_list1.h: New file.
63388         * lib/gl_anyhash_list2.h: New file.
63389         * lib/gl_avltreehash_list.h: New file.
63390         * lib/gl_avltreehash_list.c: New file.
63391         * lib/gl_rbtreehash_list.h: New file.
63392         * lib/gl_rbtreehash_list.c: New file.
63393         * lib/gl_anytreehash_list1.h: New file.
63394         * lib/gl_anytreehash_list2.h: New file.
63395
63396         * lib/gl_oset.h: New file.
63397         * lib/gl_oset.c: New file.
63398         * lib/gl_array_oset.h: New file.
63399         * lib/gl_array_oset.c: New file.
63400         * lib/gl_avltree_oset.h: New file.
63401         * lib/gl_avltree_oset.c: New file.
63402         * lib/gl_rbtree_oset.h: New file.
63403         * lib/gl_rbtree_oset.c: New file.
63404         * lib/gl_anytree_oset.h: New file.
63405
63406 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63407
63408         * m4/mkancesdirs.m4: New file.
63409         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63410         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63411         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63412         it.
63413
63414 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63415
63416         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63417         * lib/mkancesdirs.h: New files.
63418         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63419         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63420         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63421         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63422         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63423         callers changed.  Revamp internals significantly, by not
63424         attempting to create directories that are temporarily more
63425         permissive than the final results.  Do not attempt to use
63426         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63427         This removes some race conditions, fixes some bugs, and simplifies
63428         things.  Use new dirchownmod function to do owner and mode changes.
63429         * lib/mkdir-p.h: Likewise.
63430         * lib/modechange.c (octal_to_mode): New function.
63431         (struct mode_change): New member mentioned.
63432         (make_node_op_equals): New arg mentioned.  All callers changed.
63433         (mode_compile): Keep track of which mode bits the user has explicitly
63434         mentioned.
63435         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63436         New arg PMODE_BITS, to keep track of which mode bits the user
63437         mentioned; it treats S_ISUID and S_ISGID speciall.
63438         All callers changed.
63439         * lib/modechange.h: Likewise.
63440
63441 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63442
63443         * MODULES.html.sh: Add mkancestors.
63444         * modules/mkancesdirs: New module.
63445         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63446         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63447         The chdir-safer and afs files are now orphans; I'll remove them
63448         unless someone speaks up.
63449         Add lib/dirchownmod.c, lib/dirchownmod.h.
63450         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63451         Add lchown, mkancesdirs.
63452         (Maintainer): Add self.
63453
63454 2006-07-15  Karl Berry  <karl@gnu.org>
63455
63456         * gnulib-tool: help message wording/arrangement.
63457
63458 2006-07-14  Simon Josefsson  <jas@extundo.com>
63459
63460         * doc/gnulib.texi (Libtool and Windows): New section.
63461
63462 2006-07-12  Simon Josefsson  <jas@extundo.com>
63463
63464         * modules/gendocs (License): Fix license, approved by Karl.
63465
63466 2006-07-12  Eric Blake  <ebb9@byu.net>
63467
63468         * MODULES.html.sh: Add gendocs.
63469
63470 2006-07-11  Eric Blake  <ebb9@byu.net>
63471
63472         * modules/fdl: New module, to install doc/fdl.texi.
63473         * MODULES.html.sh: Add new section for documentation modules.
63474         * gnulib-tool: Avoid space-tab.
63475         (--doc-base): New option, to manage files from doc.
63476
63477 2006-07-11  Eric Blake  <ebb9@byu.net>
63478
63479         * m4/absolute-header.m4: Fix comments to match recent change.
63480
63481 2006-07-11  Eric Blake  <ebb9@byu.net>
63482
63483         * gnulib-tool: List --doc-base before --tests-base.
63484
63485 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63486
63487         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63488
63489 2006-07-11  Bruno Haible  <bruno@clisp.org>
63490
63491         * README: Mention where to put documentation.
63492
63493 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63494
63495         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63496
63497 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63498
63499         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63500         to stdint.m4.
63501
63502 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63503
63504         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63505         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63506         "no/such/file/stdint.h" when there is no such file, so that
63507         the resulting C code can be parsed by dodgy compilers.
63508         Problems reported by Bob Proulx.
63509
63510 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63511
63512         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63513         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63514         macros into the GNU _D_EXACT_NAMLEN.
63515         * lib/savedir.c:  Likewise.
63516         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63517
63518 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63519         and Paul Eggert  <eggert@cs.ucla.edu>
63520
63521         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63522         * m4/savedir.m4:
63523         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63524         macros into the GNU _D_EXACT_NAMLEN.
63525
63526 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63527
63528         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63529         around the absolute name, to work around a problem with the HP-UX
63530         11.23 native C compiler, reported by Bob Proulx.
63531
63532 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63533
63534         * doc/maintain.texi, make-stds.texi: Sync from
63535         <http://savannah.gnu.org/projects/gnustandards>.
63536
63537 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63538
63539         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63540
63541 2006-07-09  Jim Meyering  <jim@meyering.net>
63542
63543         * m4/glob.m4: Remove a doubled word in a comment.
63544
63545 2006-07-09  Jim Meyering  <jim@meyering.net>
63546
63547         * lib/argp-pv.c: Remove a doubled word in a comment.
63548         * lib/check-version.c (check_version): Likewise.
63549         * lib/javacomp.c (compile_java_class): Likewise.
63550
63551 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63552
63553         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63554         for the benefit of people using Autoconf 2.60.  If you want to
63555         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63556         (or m4/onceonly.m4, if pre-2.57) manually.
63557
63558 2006-07-08  Jim Meyering  <jim@meyering.net>
63559
63560         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63561         comment.
63562         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63563         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63564         comment.
63565
63566 2006-07-08  Jim Meyering  <jim@meyering.net>
63567
63568         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63569
63570 2006-07-07  Simon Josefsson  <jas@extundo.com>
63571
63572         * tests/test-crc.c: Change expected crc value, the test vector
63573         were probably computed using the old broken crc.c?
63574
63575 2006-07-06  Simon Josefsson  <jas@extundo.com>
63576
63577         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63578         now the canonical place for the M4 file).
63579
63580         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63581         from the sys_socket dependency now.
63582
63583         * modules/inet_pton (Files): Ditto.
63584
63585         * modules/inet_ntop (Files): Ditto.
63586
63587 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63588
63589         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63590         not gl_PREREQ_GETUSERSHELL.
63591
63592 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63593
63594         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63595         with only one argument, for Autoconf 2.60.
63596         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63597         expand to nothing, so add a shell command to avoid syntax error.
63598         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63599
63600 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63601
63602         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63603
63604 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63605
63606         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63607         no longer needed.  Check for isblank decl.
63608         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63609         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63610         of existence.
63611
63612 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63613
63614         * lib/getloadavg.c: Use __VMS, not VMS.
63615         * lib/getopt.c: Likewise.
63616         * lib/getpagesize.h: Likewise.
63617         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63618         and probably does not work.
63619
63620 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         * lib/.cppi-disable: Add wcwidth.
63623         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63624         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63625         (ISGRAPH): Remove.  All uses changed to isgraph.
63626         (FOLD) [!defined _LIBC]: Remove special case.
63627         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63628         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63629         HAVE_ISBLANK.
63630         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63631         case.
63632
63633 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63634
63635         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63636         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63637         brackets.  Other minor changes to suppress some compiler
63638         warnings.
63639
63640 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63641         and Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63644         of invoking obsolescent AC_HEADER_DIRENT macro.
63645         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63646         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63647         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63648         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63649         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63650         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63651         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63652         * m4/readdir.m4: Remove; no longer needed.
63653
63654 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63655         and Paul Eggert  <eggert@cs.ucla.edu>
63656
63657         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63658         Don't worry about this obsolete case any more.
63659         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63660         directories.
63661         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63662         worry about this obsolete case any more.
63663         * lib/fts.c: Likewise.
63664         * lib/getcwd.c: Likewise.
63665         * lib/glob.h: Likewise.
63666         * lib/savedir.c: Likewise.
63667
63668 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63669
63670         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63671         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63672         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63673         needed.
63674         All uses removed.
63675         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63676         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63677         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63678         needed.
63679         * m4/getdate.m4 (gl_GETDATE): Likewise.
63680         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63681         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63682         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63683         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63684         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63685         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63686         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63687         needed.
63688
63689 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63690
63691         * lib/memcasecmp.c: Include <limits.h>.
63692         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63693         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63694         Don't assume isdigit succeeds only on '0' through '9'.
63695
63696 2006-07-05  Eric Blake  <ebb9@byu.net>
63697
63698         * modules/getaddrinfo (Depends-on): Add snprintf.
63699
63700 2006-07-05  Eric Blake  <ebb9@byu.net>
63701
63702         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63703         to avoid 'header present but could not be compiled' on cygwin.
63704
63705 2006-07-05  Eric Blake  <ebb9@byu.net>
63706
63707         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63708         missing from netdb.h.
63709         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63710
63711 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63712
63713         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63714         no longer needed.
63715         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63716         * m4/getdate.m4 (gl_GETDATE): Likewise.
63717         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63718         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63719         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63720         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63721         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63722
63723 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63724
63725         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63726         All uses of is_space replaced by isspace.
63727         * lib/exit.h: Don't talk about STDC_HEADERS.
63728         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63729         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63730         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63731         replaced by isprint etc.
63732         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63733         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63734         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63735         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63736         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63737         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63738
63739 2006-07-05  Bruno Haible  <bruno@clisp.org>
63740
63741         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63742         the function exists, before testing against AIX.
63743         Reported by Martin Lambers <marlam@marlam.de>.
63744
63745 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63746
63747         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63748         From Mark D. Baushke.
63749
63750 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63751
63752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63753         to the absolute name, not just one, to bypass Sun C 5.8's
63754         "warning: #include of /usr/include/... may be non-portable".
63755
63756 2006-07-04  Eric Blake  <ebb9@byu.net>
63757
63758         * modules/dirname-tests: New test module.
63759         * tests/test-dirname.c: New file, replacing dirname.c
63760         TEST_DIRNAME section that was recently deleted.
63761
63762 2006-07-04  Bruno Haible  <bruno@clisp.org>
63763
63764         Assume ANSI C header files and <ctype.h> functions.
63765         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63766         (mbsnwidth): Use isprint, iscntrl instead.
63767
63768 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63769
63770         Merge from coreutils.
63771         * MODULES.html.sh: Add xstrtold.
63772         * modules/xstrtold: New file.
63773         * modules/cycle-check (Files): Add lib/same-inode.h.
63774         * modules/dirname (Files): Add m4/double-slash-root.m4.
63775         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63776         * modules/mkdir-p (Files): Add lib/same-inode.h.
63777         * modules/same (Files): Add lib/same-inode.h.
63778
63779 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63780
63781         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63782         This is to keep the terminology clean; POSIX talks about
63783         "absolute pathnames", not "full pathnames", but the GNU
63784         Coding Standards say to use "path" for something else;
63785         so use "absolute" to keep both sides happy.
63786         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63787         Set gl_absolute_header, not gl_full_header_path.
63788         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63789         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63790         All uses changed.
63791
63792         Merge from coreutils.
63793
63794         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63795
63796         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63797         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63798         want to require the building of c-strtod.o.
63799         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63800         needs -lm directly.
63801         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63802
63803         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63804
63805         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63806         --as-needed option if available.  Problem reported by Albert Chin in
63807         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63808         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63809         cc merely issues a bunch of annoying warnings for --as-needed
63810         (this problem was reported by Bob Proulx).  Also, try linking with
63811         -lm to detect a bug in binutils 2.16 (this problem was reported
63812         by Ralf Wildenhues).
63813
63814         2006-06-18  Jim Meyering  <jim@meyering.net>
63815
63816         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63817         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63818         macro.
63819         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63820         also check for glibc-2.4's abort-inducing bug.
63821
63822         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63823         Low-probability clean-up should be to use rmdir to get rid of
63824         the just-created directory, not unlink.
63825
63826         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63827         configure fail, and request a bug report to inform us about it.
63828         Add a comment that, barring reports to the contrary, in 2007 we'll
63829         assume ftruncate is universally available.
63830
63831         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63832
63833         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63834
63835         2006-03-12  Jim Meyering  <jim@meyering.net>
63836
63837         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63838         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63839         * m4/same.m4 (gl_SAME): Likewise.
63840         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63841
63842         2006-03-11  Eric Blake  <ebb9@byu.net>
63843
63844         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63845         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63846         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63847         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63848
63849 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63850
63851         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63852         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63853         reported by Mark D. Baushke, one in
63854         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63855
63856         Merge from coreutils.
63857
63858         * lib/.cppi-disable: Add stdint_.h.
63859         * lib/.cvsignore: Add stdint.h.
63860
63861         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63862
63863         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63864         both double and long double versions.
63865         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63866         * lib/xstrtold.c: New file.
63867         * lib/xstrtod.h (xstrtold): New decl.
63868
63869         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63870
63871         * lib/filemode.c (setst): Remove.
63872         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63873         (arguably) clearer, and the generated code is a bit smaller on my
63874         Debian GNU/Linux stable x86 host.
63875
63876         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63877
63878         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63879         Assume that filemode.h includes sys/types.h and sys/stat.h.
63880         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63881         (ftypelet): Reorder to put common cases first, for efficiency.
63882         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63883         to do 'M'.
63884         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63885         of 10, for compatibility with FreeBSD.  All callers changed.
63886         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63887         types that can't be deduced solely from st_mode.  First arg is now a
63888         const pointer.
63889         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63890         (strmode): Renamed from mode_string.
63891         (filemodestring): New decl.
63892         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63893         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63894         needed.
63895         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63896
63897         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63898
63899         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63900         fsusage.h now does that.  Include fsusage.h first, to test interface.
63901         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63902         at most one method (the old code could have generated decls that
63903         didn't conform to C89, not that this was ever exercised).
63904         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63905
63906         2006-03-19  Jim Meyering  <jim@meyering.net>
63907
63908         Work even in a chroot where d_ino values for entries in "/"
63909         don't match the stat.st_ino values for the same names.
63910         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63911         number, iterate through all entries again, using lstat instead.
63912         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63913         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63914
63915         * lib/getcwd.c (__getcwd): Clarify a comment.
63916         Use memcpy in place of a call to strcpy.
63917
63918         2006-03-12  Jim Meyering  <jim@meyering.net>
63919
63920         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63921         matches that of the current directory (which we're about to chdir ".."
63922         out of), then save the dev-ino of the parent, instead.
63923
63924         * lib/same-inode.h (SAME_INODE): New file/macro.
63925         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63926         Include "same-inode.h", instead.
63927         * lib/same.c: Likewise.
63928         * lib/cycle-check.h: Include "same-inode.h".
63929         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63930         * lib/cycle-check.c (SAME_INODE): Remove definition.
63931         * lib/root-dev-ino.h: Include "same-inode.h".
63932
63933         2006-03-11  Eric Blake  <ebb9@byu.net>
63934
63935         * lib/same.c (same_name): s/base_name/last_component/
63936         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63937         * lib/filenamecat.c (file_name_concat): Likewise.
63938
63939         2006-03-11  Eric Blake  <ebb9@byu.net>,
63940                     Paul Eggert  <eggert@cs.ucla.edu>
63941
63942         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63943         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63944         drive prefix.
63945         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63946         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63947         (last_component): New method.
63948         * lib/dirname.c (dir_len): Determine when drive letters need a
63949         subsequent slash.  Preserve // when it is special.
63950         (dir_name): Don't append dot when drive letter is absolute.
63951         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63952         * lib/basename.c (base_name): New semantics - malloc the result.
63953         Preserve // when it is special.  Preserve relative files that look
63954         like drive letters.
63955         (base_len): Preserve // when it is special.
63956         (last_component): New method, similar to old base_name semantics.
63957         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63958         base_name.  Strip redundant slashes from ///.
63959
63960 2006-07-03  Jim Meyering  <jim@meyering.net>
63961
63962         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63963         macro is used before the first cycle_check call.
63964
63965 2006-07-03  Eric Blake  <ebb9@byu.net>
63966
63967         * modules/dirname (Depends-on): Add xstrndup.
63968
63969 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63970
63971         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63972         test cases, so that config.log is a bit easier to follow.
63973
63974 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63975
63976         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63977         both are 64 bits, since this seems to be the tradition, and this
63978         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63979         we ever run into a host that prefers long long to long in this
63980         case, we'll need another configure-time test.  Problem reported by
63981         Jim Meyering.
63982
63983 2006-07-02  Eric Blake  <ebb9@byu.net>
63984
63985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63986
63987 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63988
63989         * modules/inttypes (Depends-on): No longer depends on stdint.
63990         * modules/stdint (Description): Say more about assumptions.
63991         Say that the fast types might differ.  Say macros are used.
63992         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63993         (Makefile.am): Revise list of substituted symbols to match
63994         new stdint.m4.
63995         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63996         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63997         * tests/test-stdint.c (verify_same_types)
63998         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63999         the code conforms to C99/C89.
64000         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
64001         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
64002
64003 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64004
64005         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
64006         but fix a bug, by requiring at least 64 bits.
64007         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64008         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
64009         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
64010         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64011
64012         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
64013         changes.  Make 2.59 a prerequisite.  Check and substitute for
64014         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
64015         inttypes.h.  Do not use special include files; just use the
64016         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
64017         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
64018         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
64019         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
64020         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
64021         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
64022         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
64023         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
64024         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
64025         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
64026         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
64027         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
64028         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
64029         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
64030         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
64031         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
64032         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
64033         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
64034         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
64035         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
64036         WINT_MAX.  Check for C99 conformance more strictly, by detecting
64037         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
64038         not check for things that C99 does not require, e.g., int8_t.  If
64039         a test isn't needed unless <stdint.h> isn't working, and is
64040         unlikely to be needed for any other reason, then don't do it
64041         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
64042         size_t, since we assume C89 freestanding at least.  Do not check
64043         for sig_atomic_t, wchar_t, or wint_t, since the code now does
64044         the right thing even if the types are not defined.  Instead use:
64045         (gl_STDINT_TYPE_PROPERTIES): New macro.
64046         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
64047         testing whether <sys/types.h> clashes, as Autoconf does this for
64048         us now.  All uses removed.
64049         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
64050         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
64051         (gl_CHECK_TYPE_SAME):
64052         Remove; no longer needed.
64053         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
64054         exists, since we'll return 0 anyway in that case.
64055         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
64056
64057 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64058
64059         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
64060         possible collision with system files.
64061         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
64062         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
64063         WCHAR_MIN and WCHAR_MAX in this case.
64064         (<stddef.h>): Do not include; no longer needed.
64065         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
64066         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
64067         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
64068         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
64069         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
64070         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
64071         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
64072         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
64073         !defined(__c99))]: Include in this case too, since it's harmless
64074         now.
64075         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
64076         dangerous to do so.
64077         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
64078         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
64079         (_STDINT_MIN, _STDINT_MAX): New macros.
64080         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
64081         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
64082         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
64083         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
64084         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
64085         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
64086         macros, not typedefs; this simplifies things quite a bit.
64087         Use long int for all types narrower than int64_t.
64088         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
64089         Define in terms of long long int or int64_t or long int,
64090         not int64_t or int32_t.  This saves some compile-time testing.
64091         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
64092         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
64093         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
64094         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
64095         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
64096         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
64097         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
64098         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
64099         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
64100         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
64101         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64102         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64103         undef any previous version and define our own version, for
64104         simplicity and consistency with the new macros for types.
64105         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64106         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64107         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
64108         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
64109         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
64110         @WINT_T_SUFFIX@ to keep things simple here.
64111         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
64112         Simplify by assuming typical 8/16/32/64 host, since we're
64113         already doing that elsewhere anyway.
64114         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
64115         and assume long long int is 64 bits if available.  This
64116         speeds up 'configure'.
64117
64118 2006-07-01  Eric Blake  <ebb9@byu.net>
64119
64120         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
64121         Reported by Andreas Buening.
64122
64123 2006-07-01  Eric Blake  <ebb9@byu.net>
64124
64125         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
64126
64127 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64128
64129         * lib/getaddrinfo.c: fixed typo
64130
64131 2006-06-29  Jim Meyering  <jim@meyering.net>
64132
64133         * modules/strftime (Maintainer): Add my name, since with the
64134         FPRINTFTIME changes strftime.c has forked from glibc.
64135
64136 2006-06-29  Eric Blake  <ebb9@byu.net>
64137
64138         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
64139
64140 2006-06-29  Eric Blake  <ebb9@byu.net>
64141
64142         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
64143
64144 2006-06-29  Eric Blake  <ebb9@byu.net>
64145
64146         * lib/stat_.h: New file.
64147
64148 2006-06-29  Eric Blake  <ebb9@byu.net>
64149
64150         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
64151         unused static function.
64152
64153 2006-06-29  Eric Blake  <ebb9@byu.net>
64154
64155         * doc/functions.texi (Function Portability): Document missing lstat
64156         on mingw.
64157
64158 2006-06-29  Eric Blake  <ebb9@byu.net>
64159
64160         * MODULES.html.sh: Add sys_stat.
64161         * modules/sys_stat: New module.
64162         * modules/mkstemp (Depends-on): Add sys_stat.
64163
64164 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64165
64166         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
64167
64168 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64169
64170         * m4/c-bs-a.m4: Removed.
64171
64172 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64173
64174         * lib/strftime.c: Assume strftime() exists.
64175
64176 2006-06-29  Derek Price  <derek@ximbiot.com>
64177
64178         * modules/c-bs-a: Removed - \a is C89.
64179         * MODULES.html.sh: Remove c-bs-a.
64180
64181 2006-06-29  Bruno Haible  <bruno@clisp.org>
64182
64183         * modules/wcwidth (License): Change to LGPL.
64184
64185 2006-06-28  Simon Josefsson  <jas@extundo.com>
64186
64187         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
64188         on _WIN32.
64189
64190         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
64191         getnameinfo.
64192
64193 2006-06-28  Simon Josefsson  <jas@extundo.com>
64194
64195         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
64196
64197 2006-06-28  Simon Josefsson  <jas@extundo.com>
64198
64199         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
64200         functions there.  It will succeed on Windows XP, but on Windows
64201         2000 and (presumably) earlier, it will fail, and use the internal
64202         re-implementation.
64203         (use_win32_p): New function.
64204         (getaddrinfo): Use strtoul on servname, to support numeric ports.
64205         Support AI_NUMERICSERV to disable getservbyname.
64206         (getnameinfo): New function, only supports
64207         NI_NUMERICHOST|NI_NUMERICSERV for now.
64208
64209         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
64210         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
64211         getnameinfo.
64212
64213 2006-06-28  Eric Blake  <ebb9@byu.net>
64214
64215         * modules/wcwidth: New file.
64216         * modules/mbchar (Depends-on): Add wcwidth.
64217         * modules/mbswidth (Depends-on): Add wcwidth.
64218         * MODULES.html.sh: Add wcwidth.
64219
64220 2006-06-28  Eric Blake  <ebb9@byu.net>
64221
64222         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
64223         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
64224
64225 2006-06-28  Eric Blake  <ebb9@byu.net>
64226
64227         * lib/xvasprintf.h: Fix comments.
64228
64229 2006-06-28  Eric Blake  <ebb9@byu.net>
64230
64231         * lib/mbchar.h (wcwidth): Include wcwidth.h.
64232         * lib/mbswidth.c (wcwidth): Move from here...
64233         * lib/wcwidth.h: ...to this new file.
64234
64235 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64236
64237         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
64238
64239         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
64240         it's obsolete.
64241         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64242
64243 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64244
64245         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64246         Autoconf 2.60 says this stuff was obsolete.
64247
64248 2006-06-28  Bruno Haible  <bruno@clisp.org>
64249
64250         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64251
64252 2006-06-28  Bruno Haible  <bruno@clisp.org>
64253
64254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64255         gt_TYPE_WCHAR_T.
64256
64257 2006-06-28  Bruno Haible  <bruno@clisp.org>
64258
64259         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64260         declaration for wcwidth.
64261         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64262
64263 2006-06-28  Bruno Haible  <bruno@clisp.org>
64264
64265         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64266         (mkdir): Define using _mkdir.
64267
64268 2006-06-28  Bruno Haible  <bruno@clisp.org>
64269
64270         * lib/getaddrinfo.h: Fix POSIX URL.
64271         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64272         _WIN32.
64273         (use_win32_p): Make static.
64274         (getaddrinfo): Reject service name if it is empty or does not consist
64275         solely of decimal digits, or if its value is > 65535.
64276         (getnameinfo): Remove useless casts.
64277
64278 2006-06-27  Simon Josefsson  <jas@extundo.com>
64279
64280         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64281         Eggert and Martin Lambers.
64282
64283 2006-06-27  Simon Josefsson  <jas@extundo.com>
64284
64285         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64286         Eggert and Martin Lambers.
64287
64288 2006-06-27  Bruno Haible  <bruno@clisp.org>
64289
64290         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64291         result to 0, not to empty.
64292         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64293
64294 2006-06-27  Bruno Haible  <bruno@clisp.org>
64295
64296         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64297
64298 2006-06-26  Simon Josefsson  <jas@extundo.com>
64299
64300         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64301         present.
64302
64303 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64304
64305         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64306         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64307         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64308
64309 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64310
64311         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64312
64313 2006-06-26  Bruno Haible  <bruno@clisp.org>
64314
64315         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64316
64317 2006-06-26  Bruno Haible  <bruno@clisp.org>
64318
64319         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64320
64321 2006-06-26  Bruno Haible  <bruno@clisp.org>
64322
64323         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64324         SGI C compiler in pre-C99 mode.
64325         Suggested by Mark D. Baushke and Larry Jones.
64326
64327 2006-06-26  Bruno Haible  <bruno@clisp.org>
64328
64329         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64330         WCHAR_MAX.
64331         Reported by Mark D. Baushke and Larry Jones.
64332
64333 2006-06-26  Bruno Haible  <bruno@clisp.org>
64334
64335         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64336         in pre-C99 mode.
64337         Suggested by Mark D. Baushke and Larry Jones.
64338
64339 2006-06-23  Simon Josefsson  <jas@extundo.com>
64340             Bruno Haible  <bruno@clisp.org>
64341
64342         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64343         Emit mostlyclean-local rule.
64344         (func_emit_tests_Makefile_am): Likewise.
64345         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64346
64347 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64348
64349         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64350
64351 2006-06-23  Bruno Haible  <bruno@clisp.org>
64352
64353         * tests/test-stdint.c: Update to match ISO C 99 Technical
64354         Corrigendum 1.
64355
64356 2006-06-23  Bruno Haible  <bruno@clisp.org>
64357
64358         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64359
64360 2006-06-23  Bruno Haible  <bruno@clisp.org>
64361
64362         * lib/stdint_.h: Treat IRIX like OpenBSD.
64363
64364 2006-06-23  Bruno Haible  <bruno@clisp.org>
64365
64366         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64367         ISO C 99 Technical Corrigendum 1.
64368
64369 2006-06-22  Simon Josefsson  <jas@extundo.com>
64370
64371         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64372         MinGW.
64373
64374 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64375
64376         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64377         needed.  Some compiler complained about some of them.  Problem reported
64378         by Larry Jones in
64379         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64380
64381 2006-06-21  Simon Josefsson  <jas@extundo.com>
64382
64383         * tests/test-getaddrinfo.c: New file.
64384
64385         * modules/getaddrinfo-tests: New file.
64386
64387         * MODULES.html.sh: Add inet_pton.
64388
64389         * modules/inet_pton: New file.
64390
64391 2006-06-21  Simon Josefsson  <jas@extundo.com>
64392
64393         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64394         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64395         of using the (limited) gnulib implementation on Windows XP.
64396
64397         * m4/inet_pton.m4: New file.
64398
64399 2006-06-21  Simon Josefsson  <jas@extundo.com>
64400
64401         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64402         variable.
64403
64404         * lib/socket_.h: Don't define WINVER.
64405
64406         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64407         slightly modified to work in gnulib.
64408
64409 2006-06-21  Simon Josefsson  <jas@extundo.com>
64410
64411         * doc/gnulib.texi (Windows sockets): Add.
64412
64413 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64414
64415         * lib/read-file.c (fread_file): Start with buffer allocation of
64416         0 bytes rather than 1 byte; this simplifies the code.
64417         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64418         code to free buffer and save/restore errno.
64419         (internal_read_file): Remove unused local.
64420
64421 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64422
64423         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64424         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64425         Problem reported by Denis Excoffier in
64426         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64427
64428 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64429
64430         * modules/sys_socket, modules/socklen: Include sys/types since
64431         FreeBSD 4.x's sys/socket.h needs it.
64432
64433 2006-06-19  Simon Josefsson  <jas@extundo.com>
64434
64435         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64436
64437 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64438
64439         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64440
64441 2006-06-19  Bruno Haible  <bruno@clisp.org>
64442
64443         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64444         and FULL_PATH_INTTYPES_H in angle brackets.
64445         Reported by Mark D. Baushke <mdb@gnu.org>.
64446
64447 2006-06-17  Eric Blake  <ebb9@byu.net>
64448
64449         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64450         errno.
64451
64452 2006-06-17  Bruno Haible  <bruno@clisp.org>
64453
64454         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64455         <sys/inttypes.h>.
64456
64457 2006-06-17  Bruno Haible  <bruno@clisp.org>
64458
64459         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64460         whether errno is declared. Assume <errno.h> declares errno.
64461
64462 2006-06-17  Bruno Haible  <bruno@clisp.org>
64463
64464         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64465
64466 2006-06-17  Bruno Haible  <bruno@clisp.org>
64467
64468         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64469         problem on Solaris 2.5.1.
64470
64471 2006-06-16  Eric Blake  <ebb9@byu.net>
64472
64473         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64474         * lib/unicodeio.c [!defined errno]: Likewise.
64475         * lib/strtol.c [!defined errno]: Likewise.
64476         * lib/strtod.c [!defined errno]: Likewise.
64477
64478 2006-06-15  Eric Blake  <ebb9@byu.net>
64479
64480         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64481
64482 2006-06-15  Eric Blake  <ebb9@byu.net>
64483
64484         * config/srclist.txt (ssize_t.m4): Lose sync.
64485
64486 2006-06-15  Bruno Haible  <bruno@clisp.org>
64487
64488         * modules/stdint (Files): Include m4/full-header-path.m4,
64489         m4/size_max.m4, m4/wchar_t.m4.
64490         (Makefile.am): Many more substitutions.
64491         * modules/stdint-tests: New file.
64492         * tests/test-stdint.c: New file.
64493
64494 2006-06-15  Bruno Haible  <bruno@clisp.org>
64495
64496         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64497         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64498         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64499         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64500         gl_CHECK_TYPE_SAME): New macros.
64501
64502 2006-06-15  Bruno Haible  <bruno@clisp.org>
64503
64504         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64505
64506 2006-06-15  Bruno Haible  <bruno@clisp.org>
64507
64508         * lib/stdint_.h: Rewritten to be fully auto-configured.
64509         Fixes bug on HP-UX/IA64.
64510
64511 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         * lib/getdate.y (__attribute__): Don't define if already defined.
64514         Problem reported by Larry Jones.
64515         * lib/utimens.c (__attribute__): Likewise.
64516
64517 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64518
64519         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64520         reported by Andreas Schwab.
64521
64522 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64523             Bruno Haible  <bruno@clisp.org>
64524
64525         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64526         check for the declaration of strnlen and a run test that exposes the
64527         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64528         rpl_strndup.
64529
64530 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64531             Bruno Haible  <bruno@clisp.org>
64532
64533         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64534
64535 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64536
64537         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64538         compile test, for Tru64 4.0D.
64539
64540 2006-05-28  Karl Berry  <karl@gnu.org>
64541
64542         * config/srclist.txt (printf-args.c): lose sync.
64543
64544 2006-05-26  Martin Lambers  <marlam@marlam.de>
64545
64546         * lib/getpass.c: Updates the test for the native W32 API, and adds
64547         missing includes, thus fixing compilation warnings.
64548
64549 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64550
64551         * lib/exclude.c (exclude_fnmatch): New function.
64552         (excluded_file_name): Call exclude_fnmatch.
64553         * lib/exclude.h (excluded_file_name): New prototype
64554
64555 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64556
64557         * lib/tempname.c (small_open, large_open): New macros.
64558         (__open, __open64) [!_LIBC]: Remove.
64559         (__gen_tempname): Use small_open and large_open instead of __open
64560         and __open64.  This fixes a portability bug on HP-UX 11.11i
64561         reported by Simon Wing-Tang in
64562         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64563
64564 2006-05-24  Bruno Haible  <bruno@clisp.org>
64565
64566         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64567         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64568         Reported by Thorsten Maerz <torte@netztorte.de> via
64569         Aaron Stone <aaron@serendipity.cx>.
64570
64571 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64572
64573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64574         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64575         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64576         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64577         not really conditional on the cache.
64578         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64579
64580 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64581
64582         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64583         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64584         (my_usleep): Don't mishandle maximum value.
64585
64586 2006-05-19  Jim Meyering  <jim@meyering.net>
64587
64588         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64589
64590 2006-05-17  Bruno Haible  <bruno@clisp.org>
64591
64592         Cygwin portability.
64593         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64594
64595 2006-05-17  Bruno Haible  <bruno@clisp.org>
64596
64597         * lib/stdint_.h: Fix recognition of Cygwin.
64598
64599 2006-05-15  Bruno Haible  <bruno@clisp.org>
64600
64601         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64602         on libtool patch by Ralf Wildenhues.
64603
64604 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64605
64606         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64607         test for C99 conformance; (bool) 0.5 is an integer constant
64608         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64609         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64610
64611 2006-05-11  Simon Josefsson  <jas@extundo.com>
64612
64613         * m4/xvasprintf.m4: Fix obvious typo.
64614
64615 2006-05-11  Jim Meyering  <jim@meyering.net>
64616
64617         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64618         James Lemley.
64619
64620 2006-05-10  Simon Josefsson  <jas@extundo.com>
64621
64622         * lib/md4.c: Typo fix, update copyright years.
64623         (K1, K2): Don't use L because it turn computations into 64-bit on
64624         64-bit platforms.
64625
64626 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64627
64628         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64629         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64630         unwanted sign propagation, e.g., on hosts with 64-bit int.
64631         There still are some problems with reeelly weird theoretical hosts
64632         (e.g., 33-bit int) but it's not worth worrying about now.
64633         * lib/sha1.c (rol): Likewise.
64634         (K1, K2, K3, K4): Remove unnecessary L suffix.
64635
64636 2006-05-10  Bruno Haible  <bruno@clisp.org>
64637
64638         * lib/des.c: Cast to avoid warnings.
64639
64640 2006-05-09  Bruno Haible  <bruno@clisp.org>
64641
64642         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64643         (Depends-on): Depend also on xsize, stdarg.
64644         (configure.ac): Add gl_XVASPRINTF.
64645
64646 2006-05-09  Bruno Haible  <bruno@clisp.org>
64647
64648         * m4/xvasprintf.m4: New file.
64649
64650 2006-05-09  Bruno Haible  <bruno@clisp.org>
64651
64652         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64653         (EOVERFLOW): Define fallback value.
64654         (xstrcat): New function.
64655         (xvasprintf): Recognize the special case of a string concatenation.
64656
64657 2006-05-08  Eric Blake  <ebb9@byu.net>
64658
64659         * gnulib-tool (func_version): Base copyright year on CVS date.
64660         (func_emit_copyright_notice): New function.
64661         (func_emit_lib_Makefile_am): Use it.
64662         (func_emit_tests_Makefile_am): Likewise.
64663         (func_import): Likewise.
64664
64665 2006-05-08  Bruno Haible  <bruno@clisp.org>
64666
64667         * modules/stdarg: New file.
64668         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64669
64670 2006-05-08  Bruno Haible  <bruno@clisp.org>
64671
64672         * m4/stdarg.m4: New file, from GNU gettext.
64673
64674 2006-05-08  Bruno Haible  <bruno@clisp.org>
64675
64676         * config/srclist.txt (build-aux/config.rpath): different from latest
64677         release.
64678
64679 2006-05-08  Bruno Haible  <bruno@clisp.org>
64680
64681         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64682
64683 2006-05-05  Jim Meyering  <jim@meyering.net>
64684
64685         * m4/warning.m4: New file, derived from bison's file by the same name.
64686
64687 2006-05-03  Bruno Haible  <bruno@clisp.org>
64688
64689         * lib/stdint_.h: Shorter URL.
64690         * lib/inttypes.h: Likewise.
64691
64692 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64693
64694         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64695
64696 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64697
64698         * lib/verify.h: Document the internals better.  Most of this change
64699         was written by Bruno Haible.
64700
64701 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64702
64703         * doc/verify.texi: New file, partly based on a proposal by
64704         Bruno Haible.
64705
64706 2006-05-02  Bruno Haible  <bruno@clisp.org>
64707
64708         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64709         test from here...
64710         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64711
64712 2006-04-29  Bruno Haible  <bruno@clisp.org>
64713
64714         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64715         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64716
64717 2006-04-29  Bruno Haible  <bruno@clisp.org>
64718
64719         * gnulib-tool: Make --update option actually work.
64720
64721 2006-04-29  Bruno Haible  <bruno@clisp.org>
64722
64723         * doc/gcd.texi: New file.
64724         * doc/gnulib.texi: Include it.
64725
64726 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64727
64728         * lib/getdate.y (get_date): When adding relative date, start with the
64729         initial time, not with the result of the first mktime call.
64730
64731 2006-04-25  Bruno Haible  <bruno@clisp.org>
64732
64733         * gnulib-tool (func_import): Output the include directives in three
64734         blocks, sorted separately.
64735         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64736
64737 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64738
64739         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64740         to define main with arguments, for C++.  Reported by Eric Blake.
64741         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64742         Prefer 'int main ()' to 'int main (void)', for C++.
64743         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64744         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64745         for 'main', for C99 and C++.
64746
64747 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64748
64749         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64750         Don't assume that exit status -1 is valid.
64751         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64752         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64753         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64754         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64755         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64756         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64757         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64758         functions can be used without declaring them, or that you can
64759         exit with status -1.
64760         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64761
64762 2006-04-24  Karl Berry  <karl@gnu.org>
64763
64764         * config/srclist.txt (longdouble.m4): sync lost.
64765
64766 2006-04-24  Eric Blake  <ebb9@byu.net>
64767
64768         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64769
64770 2006-04-24  Bruno Haible  <bruno@clisp.org>
64771
64772         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64773         poll() implementation in AIX.
64774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64775
64776 2006-04-24  Bruno Haible  <bruno@clisp.org>
64777
64778         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64779         assigned exactly once.
64780
64781 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64782             Bruno Haible  <bruno@clisp.org>
64783
64784         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64785         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64786         for AM_CPPFLAGS.
64787
64788 2006-04-23  Bruno Haible  <bruno@clisp.org>
64789
64790         * modules/copy-file: Depend on unistd.
64791         * modules/execute: Likewise.
64792         * modules/fatal-signal: Likewise.
64793         * modules/findprog: Likewise.
64794         * modules/mkdtemp : Likewise.
64795         * modules/pipe: Likewise.
64796         * modules/wait-process: Likewise.
64797
64798 2006-04-23  Bruno Haible  <bruno@clisp.org>
64799
64800         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64801         condition was already detected.
64802         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64803
64804 2006-04-23  Bruno Haible  <bruno@clisp.org>
64805
64806         * lib/copy-file.c: Include <unistd.h> unconditionally.
64807         * lib/execute.c: Likewise.
64808         * lib/fatal-signal.c: Likewise.
64809         * lib/findprog.c: Likewise.
64810         * lib/mkdtemp.c: Likewise.
64811         * lib/pipe.h: Likewise.
64812         * lib/pipe.c: Likewise.
64813         * lib/wait-process.h: Likewise.
64814
64815 2006-04-23  Bruno Haible  <bruno@clisp.org>
64816
64817         * gnulib-tool (func_usage): Fix --import description. Document
64818         --update.
64819         (func_import): Create temporary file in a temporary directory, if
64820         --dry-run is specified. Silence errors from 'grep' when there are no
64821         m4 files in $m4dir.
64822         (func_create_testdir): Silence errors from 'grep' when there are no
64823         m4 files in $m4dir.
64824         Reported by Karl Berry <karl@freefriends.org>.
64825
64826 2006-04-20  Bruno Haible  <bruno@clisp.org>
64827
64828         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64829         one argument, so that the code will be portable to Autoconf 2.60.
64830         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64831         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64832         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64833
64834 2006-04-19  Derek Price  <derek@ximbiot.com>
64835             Eric Blake  <ebb9@byu.net>
64836
64837         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64838         rather than "/full/path.h".  Update comment to match.  Shorten &
64839         generalize m4_translit call via AS_TR_CPP.
64840
64841 2006-04-19  Derek Price  <derek@ximbiot.com>
64842             Eric Blake  <ebb9@byu.net>
64843
64844         * lib/inttypes.h: Correct grammar in comment.
64845
64846 2006-04-18  Derek Price  <derek@ximbiot.com>
64847             Paul Eggert  <eggert@cs.ucla.edu>
64848
64849         * modules/inttypes: New file.
64850         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64851
64852 2006-04-18  Derek Price  <derek@ximbiot.com>
64853             Paul Eggert  <eggert@cs.ucla.edu>
64854
64855         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64856         New files.
64857
64858 2006-04-18  Derek Price  <derek@ximbiot.com>
64859             Paul Eggert  <eggert@cs.ucla.edu>
64860
64861         * lib/inttypes.h: New file.
64862         * lib/strtoimax.c: Assume <inttypes.h>.
64863
64864 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64865
64866         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64867         isn't mounted.  Problem reported by Kir Kolyshkin.
64868
64869 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64870
64871         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64872         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64873         Derek R. Price.
64874         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64875         implementation.
64876
64877 2006-04-12  Eric Blake  <ebb9@byu.net>
64878
64879         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64880         is now done automatically by the corresponding Autoconf macro.
64881
64882 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64883
64884         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64885         time_r.h.
64886
64887 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64888
64889         Merge regex changes from libc, removing some of our
64890         POSIX-conformance changes that were rejected and redoing them in a
64891         less-intrusive way.
64892
64893         * lib/regcomp.c (re_compile_internal, init_dfa):
64894         Length arg is now size_t, not Idx.  All uses changed.
64895         (peek_token): Forward decl now says internal_function.
64896         (__re_error_msgid, __re_error_msgid_idx):
64897         Now static rather than extern with attribute_hidden.
64898         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64899         For some reason libc prefers K&R style defns for external functions.
64900         (regerror) [!defined _LIBC]: Likewise.
64901         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64902         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64903         (build_range_exp, build_collating_symbol):
64904         Use K&R-style defn.
64905         (re_compile_fastmap): Use '\0' to memset, not 0.
64906         (utf8_sb_map): Make the calculations more obvious.
64907         (init_dfa, parse_bracket_exp, build_charclass_op):
64908         Call calloc and cast result, as glibc does.
64909         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64910         (build_range_exp, build_collating_symbol):
64911         Now internal functions.
64912
64913         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64914
64915         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64916         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64917         Don't depend on VMS; depend on __VMS instead, for POSIX
64918         namespace cleanness.
64919         (regoff_t): Define to ssize_t, not long int.
64920
64921         Remove the REG_ macros named below.  Instead, make the old names
64922         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64923         __USE_GNU_REGEX.
64924         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64925         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64926         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64927         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64928         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64929         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64930         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64931         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64932         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64933         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64934         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64935         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64936         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64937         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64938         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64939         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64940         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64941         (REG_NREGS):
64942         Remove.  All uses replaced by the old RE_* names.
64943         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64944         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64945         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64946         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64947         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64948         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64949         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64950         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64951         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64952         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64953         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64954         Don't bother having these macros be independent of each others'
64955         values, since they no longer exist in the POSIX name space.
64956
64957         Rename the following member names back to their old names,
64958         unless !__USE_GNU_REGEX.  All uses changed back.
64959         (buffer): Renamed from re_buffer.
64960         (allocated): Renamed from re_allocated.
64961         (used): Renamed from re_used.
64962         (syntax): Renamed from re_syntax.
64963         (fastmap): Renamed from re_fastmap.
64964         (translate): Renamed from re_translate.
64965         (can_be_null): Renamed from re_can_be_null.
64966         (regs_allocated): Renamed from re_regs_allocated.
64967         (fastmap_accurate): Renamed from re_fastmap_accurate.
64968         (no_sub): Renamed from re_no_sub.
64969         (not_bol): Renamed from re_not_bol.
64970         (not_eol): Renamed from re_not_eol.
64971         (newline_anchor): Renamed from re_newline_anchor.
64972         (num_regs): Renamed from rm_num_regs.
64973         (start): Renamed from rm_start.
64974         (end): Renamed from rm_end.
64975
64976         (free_state): Move up a bit.
64977
64978         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64979         #define to be empty.
64980         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64981         when that is what is intended.
64982         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64983         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64984         (MAX): New macro.
64985         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64986         All uses changed back to re_malloc, etc.  It's now the caller's
64987         responsibility to check for overflow; all callers changed.
64988         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64989         (re_x2nrealloc): Remove.
64990         (free_state): Remove decl.
64991
64992         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64993         (re_set_registers, re_exec):
64994         Use K&R-style defn.
64995
64996         2006-01-31  Roland McGrath  <roland@redhat.com>
64997
64998         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64999         Reported by Mike Frysinger <vapier@gentoo.org>.
65000
65001         2006-01-15  Andreas Jaeger  <aj@suse.de>
65002
65003         [BZ #1950]
65004         * lib/regex_internal.c (re_string_reconstruct): Adjust for
65005         build_wcs_upper_buffer change.
65006         (build_wcs_upper_buffer): Change return type.
65007
65008         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
65009
65010         * lib/regex_internal.h: Include <stdint.h> if available.
65011
65012         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
65013
65014         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
65015
65016         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65017
65018         * lib/regcomp.c: Adjust for changed secondary hash function.
65019
65020         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
65021
65022         * lib/regex.h: Pretty printing.
65023         Clean up namespace a bit.
65024
65025         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
65026
65027         * lib/regexec.c (update_cur_sifted_state, check_arrival,
65028         check_arrival_add_next_nodes): Avoid using uninitialized variable.
65029
65030         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65031                     Ulrich Drepper  <drepper@redhat.com>
65032
65033         [BZ #1302]
65034         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
65035         changed.
65036         (bitset_word_t): Renamed from bitset_word.  All uses changed.
65037
65038         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
65039
65040         [BZ #281]
65041         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
65042         * lib/regcomp.c: Remove unnecessary uses of
65043         unsigned RE_TRANSLATE_TYPE.
65044         * lib/regex_internal.h: Likewise.
65045         * lib/regex_internal.c: Likewise.
65046         * lib/regexec.c: Likewise.
65047         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
65048
65049         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
65050
65051         * lib/regexec.c (find_recover_state): Remove unnecessary
65052         initialization.
65053         (transit_state_bkref): Make DFA a const pointer.
65054         (get_subexp): Likewise.
65055         (check_arrival): Likewise.
65056         (update_cur_sifted_state): Likewise.
65057         (re_search_internal): Likewise.
65058         (prune_impossible_nodes): Likewise.
65059         (acquire_init_state_context): Likewise.
65060         (proceed_next_node): Likewise.
65061         (set_regs): Likewise.
65062         (free_fail_stack_return): Likewise.
65063         (check_arrival_expand_ecl): Mark DFA parameter as const.
65064         (check_arrival_expand_ecl_sub): Likewise.
65065         (check_subexp_limits): Likewise.
65066         (sub_epsilon_src_nodes):  Likewise.
65067         (add_epsilon_src_nodes):  Likewise.
65068         (merge_state_array): Likewise.
65069         (update_regs): Likewise.
65070         (build_trtable): Likewise.
65071         (sift_states_backward): Mark MCTX parameter as const.
65072         (build_sifted_states): Likewise.
65073         (update_cur_sifted_state): Likewise.
65074         (sift_states_mkref): Likewise.
65075         (check_arrival_expand_ecl): Mark eclosure as const.
65076         (check_dst_limits_calc_pos_1): Likewise.
65077         * lib/regex_internal.h (re_match_context_t): Make dfa a const
65078         pointer.
65079
65080         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
65081
65082         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
65083         (transit_state_sb): Likewise.
65084         (transit_state_mb): Likewise.
65085         (sift_states_iter_mb): Likewise.
65086         (check_arrival_add_next_nodes): Likewise.
65087         (check_node_accept_bytes): Change first parameter to pointer-to-const.
65088         [_LIBC] (re_search_2_stub): Use mempcpy.
65089
65090         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
65091         mbrtowc for very simple UTF-8 case.
65092
65093         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
65094         a pointer-to-const.
65095         (re_acquire_state_context): Likewise.
65096         * lib/regex_internal.h: Adjust prototypes.
65097
65098         * lib/regex.c: Prevent using C++ compilers.
65099
65100         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
65101         (re_acquire_state_context): Likewise.
65102
65103 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65104
65105         * modules/regex (Depends-on): Add ssize_t.
65106
65107 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65108
65109         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
65110         translation table.
65111
65112 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65113
65114         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
65115
65116 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
65117             Bruno Haible  <bruno@clisp.org>
65118
65119         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
65120         <sys/types.h> and <inttypes.h>.
65121
65122 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65123
65124         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
65125         `__error_t_defined', so argp.h will not typedef the former.
65126
65127 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65128
65129         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
65130         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
65131         glibc names.  Even if glibc is changed to conform to POSIX, the
65132         traditional names will be available anyway, since regex depends on
65133         the extensions module.  Also, fix a longstanding typo in the
65134         implementation of Spencer ERE test #75 from grep 2.3.  Problems
65135         reported by Emanuele Giaquinta.  Also, change sense of cached
65136         variable, so that the message makes sense.
65137
65138 2006-03-24  Simon Josefsson  <jas@extundo.com>
65139
65140         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
65141         including some doc fixes.
65142         (base64_encode_alloc): Fix +1 bug on allocation failures.
65143
65144 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65145
65146         * lib/base64.c (base64_encode): Do not read past end of array with
65147         unsanitized input on systems with CHAR_BIT > 8.
65148
65149 2006-03-24  Eric Blake  <ebb9@byu.net>
65150
65151         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
65152
65153 2006-03-22  Karl Berry  <karl@gnu.org>
65154
65155         * config/srclist.txt (*setenv.[ch]): get from coreutils.
65156         * config/srclistvars.sh (COREUTILS): new var.
65157
65158 2006-03-17  Jim Meyering  <jim@meyering.net>
65159
65160         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
65161         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
65162
65163 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65164
65165         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
65166         no longer needs it.  Instead, check that regoff_t is as least
65167         as wide as ptrdiff_t.
65168
65169         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
65170         so that our regex.h stays compatible with the installed regex.
65171         This is helpful for installers who configure --without-included-regex.
65172         Problem reported by Emanuele Giaquinta.
65173
65174 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65175
65176         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
65177         Typedef to long int, not to off_, as POSIX will likely change
65178         in that direction.
65179
65180 2006-03-15  Eric Blake  <ebb9@byu.net>
65181
65182         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
65183
65184 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65185
65186         * lib/argp-help.c (validate_uparams): Fix typo
65187         * lib/argp-parse.c (argp_default_options): Consistently begin help
65188         messages with a lowercase letter.
65189
65190 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
65191
65192         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
65193         overrun buffers and shouldn't be used (much as gets shouldn't be
65194         used).
65195         * lib/time_r.c (asctime_r, ctime_r): Likewise.
65196
65197 2006-03-08  Simon Josefsson  <jas@extundo.com>
65198
65199         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
65200         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65201
65202 2006-03-08  Simon Josefsson  <jas@extundo.com>
65203
65204         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
65205         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65206
65207 2006-03-08  Simon Josefsson  <jas@extundo.com>
65208
65209         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
65210         signal that configure disabled the device.
65211
65212 2006-03-08  Simon Josefsson  <jas@extundo.com>
65213
65214         * build-aux/maint.mk: Fix refresh-po, to handle no translated
65215         languages.
65216
65217 2006-03-07  Simon Josefsson  <jas@extundo.com>
65218
65219         * modules/getopt (Depends-on): Add unistd.
65220
65221         * modules/unistd: New file.
65222
65223 2006-03-07  Simon Josefsson  <jas@extundo.com>
65224
65225         * modules/gc-random: New file.
65226
65227 2006-03-07  Simon Josefsson  <jas@extundo.com>
65228
65229         * m4/unistd_h.m4: New file.
65230
65231 2006-03-07  Simon Josefsson  <jas@extundo.com>
65232
65233         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
65234         test to be side-effect free by storing the result in the cache
65235         variable gl_cv_lib_readline, and moving the assignment of
65236         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
65237         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65238
65239 2006-03-07  Simon Josefsson  <jas@extundo.com>
65240
65241         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65242         error on missing devices (the functions will return an error).
65243
65244         * m4/gc.m4: Move random stuff to gc-random.m4
65245
65246 2006-03-07  Simon Josefsson  <jas@extundo.com>
65247
65248         * lib/unistd_.h: New file.
65249
65250 2006-03-07  Simon Josefsson  <jas@extundo.com>
65251
65252         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65253
65254 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65257         Problem reported by Juan Manuel Guerrero.
65258
65259 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65260
65261         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65262         the unistd module.
65263         * lib/getlogin_r.c: Likewise.
65264         * lib/getlogin_r.h: Likewise.
65265         * lib/glob.c: Likewise.
65266         * lib/pagealign_alloc.c: Likewise.
65267         * lib/unistd_.h: Remove; no longer needed.
65268
65269 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65270
65271         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65272         Add unistd.
65273         * modules/c-stack (Depends-on): Add unistd.
65274         * modules/getlogin_r: Likewise.
65275         * modules/glob: Likewise.
65276         * modules/pagealign_alloc: Likewise.
65277         * modules/unistd (Files): Remove lib/unistd_.h.
65278         (EXTRA_DIST): Remove.
65279         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65280         need unistd_.h.
65281         (MOSTLYCLEANFILES): Remove unistd.h-t.
65282
65283 2006-03-03  Simon Josefsson  <jas@extundo.com>
65284
65285         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65286
65287 2006-03-03  Simon Josefsson  <jas@extundo.com>
65288
65289         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65290         libidn and bison.
65291
65292 2006-03-03  Simon Josefsson  <jas@extundo.com>
65293
65294         * build-aux/maint.mk: Add indent target.
65295
65296 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65297
65298         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65299         our replacement poll.h in any case, to avoid a differing
65300         declaration from a system header.  Seen on AIX.
65301
65302 2006-03-01  Simon Josefsson  <jas@extundo.com>
65303
65304         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65305         <kasal@ucw.cz>.
65306
65307 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65308
65309         * modules/gettime (Depends-on): Add extensions module.
65310         * modules/nanosleep (Depends-on): Likewise.
65311         * modules/settime (Depends-on): Likewise.
65312
65313 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65314
65315         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65316         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65317         pedantically.
65318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65319         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65320
65321         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65322         not "==".  Reported by Ralf Wildenhues.
65323
65324 2006-03-01  Karl Berry  <karl@gnu.org>
65325
65326         * doc/Copyright/request-*: new files, synced from gnuorg.
65327
65328 2006-03-01  Karl Berry  <karl@gnu.org>
65329
65330         * config/srclist.txt (Copyright/*): new entries.
65331
65332 2006-02-28  Simon Josefsson  <jas@extundo.com>
65333
65334         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65335
65336 2006-02-27  Simon Josefsson  <jas@extundo.com>
65337
65338         * lib/base64.h: Indent #define's.  From Jim Meyering
65339         <jim@meyering.net>.
65340
65341 2006-02-27  Jim Meyering  <jim@meyering.net>
65342
65343         Revert the change of 2006-02-24, so these files can continue
65344         to be sync'd from gettext.
65345         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65346         of `config.h'.
65347
65348 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65349
65350         * modules/intprops: New file.
65351         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65352         Add intprops.
65353         * modules/getloadavg (Files): Remove lib/intprops.h.
65354         (Depends-on): Add intprops.
65355         * modules/human: Likewise.
65356         * modules/inttostr: Likewise.
65357         * modules/openat: Likewise.
65358         * modules/sig2str: Likewise.
65359         * modules/userspec: Likewise.
65360         * modules/utimecmp: Likewise.
65361         * modules/xnanosleep: Likewise.
65362         * modules/xstrtol: Likewise.
65363
65364 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65365
65366         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65367         * modules/lock-tests (TESTS): Use $(EXEEXT).
65368         * modules/tls-tests: Likewise.
65369         * modules/argp-tests: Likewise.
65370         (check_PROGRAMS): New var, replacing...
65371         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65372
65373 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65374
65375         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65376         `config.h'.
65377
65378 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65379
65380         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65381
65382 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65383
65384         Sync from coreutils.
65385         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65386         gl_CHDIR_SAFER.
65387
65388 2006-02-22  Jim Meyering  <jim@meyering.net>
65389
65390         Sync from coreutils.
65391         * m4/chdir-safer.m4: New file.
65392
65393 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65394
65395         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65396         AT_FDCWD exceeds INT_MAX.
65397         * lib/openat.h (AT_FDCWD): Likewise.
65398
65399 2006-02-17  Eric Blake  <address@hidden>
65400
65401         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65402
65403 2006-02-16  Simon Josefsson  <jas@extundo.com>
65404
65405         * modules/getaddrinfo (Depends-on): Add sys_socket.
65406
65407 2006-02-15  Simon Josefsson  <jas@extundo.com>
65408
65409         * build-aux/maint.mk: Add dsyntax-check rule.
65410
65411 2006-02-15  Eric Blake  <ebb9@byu.net>
65412
65413         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65414         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65415         'present but cannot compile' warnings on cygwin.
65416         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65417         use ws2tcpip.h if sys/socket.h works.
65418         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65419         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65420
65421 2006-02-14  Simon Josefsson  <jas@extundo.com>
65422
65423         * modules/maintainer-makefile (Files): Rename.
65424
65425         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65426         and (the local) Makefile.cfg to maint-cfg.mk.
65427
65428         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65429         to the latter.
65430
65431         * modules/maintainer-makefile: New module.
65432
65433         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65434         severaly stripped to make it possible to build it up from scratch
65435         with reliable tests.
65436
65437         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65438         fixes to permit overriding the default actions when configure and
65439         makefile are not available.
65440
65441 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65442
65443         Sync from coreutils.
65444         * modules/lstat (Depends-on): Don't depend on xalloc.
65445         (License): Change from GPL to LGPL, since this is now simply a
65446         replacement for a libc function.
65447
65448 2006-02-14  Jim Meyering  <jim@meyering.net>
65449
65450         Sync from coreutils.
65451
65452         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65453         failure on deficient systems, and simplify gnulib lgpl dependencies.
65454         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65455         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65456
65457         * lib/xalloc-die.c: Remove unused definition of N_.
65458
65459 2006-02-14  Jim Meyering  <jim@meyering.net>
65460
65461         Sync from coreutils.
65462         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65463         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65464         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65465         double-quote uses of that variable, to accommodate the rare case in
65466         which getmntent is available in none of the libraries checked.  This
65467         happens at least on FreeBSD 5.0.
65468
65469 2006-02-13  Simon Josefsson  <jas@extundo.com>
65470
65471         * gnulib-tool (Usage): Fix --import, from
65472         karl@freefriends.org (Karl Berry).
65473
65474 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65475
65476         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65477
65478 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65479
65480         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65481         "autoupdate" on 2005-12-12.
65482
65483 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65484
65485         * modules/closeout (Depends-on): Remove atexit.
65486
65487 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65490         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65491
65492 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65493
65494         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65495         __EXTENSIONS__ if this causes compilation to fail.  Problem
65496         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65497         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65498
65499 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65500
65501         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65502         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65503         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65504         All uses changed.
65505
65506 2006-01-26  Simon Josefsson  <jas@extundo.com>
65507
65508         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65509         prototype is visible on mingw32.
65510
65511         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65512         for mingw32.
65513
65514         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65515         mingw32).
65516
65517 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65518
65519         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65520         attempt to open for write; this always fails, at least on POSIX
65521         hosts.  This reinstates the 2006-01-09 change, which was
65522         inadvertently removed.
65523
65524 2006-01-26  Bruno Haible  <bruno@clisp.org>
65525
65526         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65527         Reported by Paul Eggert.
65528
65529 2006-01-26  Bruno Haible  <bruno@clisp.org>
65530             Paul Eggert  <eggert@cs.ucla.edu>
65531
65532         * lib/stdbool_.h (_Bool)
65533         [(! (defined __cplusplus || defined __BEOS__)
65534           && !defined __GNUC__
65535           && !(defined __HP_cc || defined __xlc__
65536                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65537                || defined __sgi))]:
65538         #define to signed char in these cases too; this simplifies
65539         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65540         etc., separately) and makes it more conservative.
65541
65542 2006-01-25  Simon Josefsson  <jas@extundo.com>
65543
65544         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65545         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65546         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65547
65548 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65549
65550         * lib/argp-namefrob.h: Bugfix. Remove stray #
65551
65552 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65555         so that we test the test.
65556         Check for yet another HP-UX cc bug involving *bool |= bool.
65557
65558 2006-01-25  Karl Berry  <karl@gnu.org>
65559
65560         * config/srclist.txt (vasnprintf.c): sync lost.
65561
65562 2006-01-25  Jim Meyering  <jim@meyering.net>
65563
65564         Sync from the stable (b5) branch of coreutils:
65565
65566         * lib/fts.c (fts_children): Don't let close() clobber errno from
65567         failed fchdir().
65568
65569         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65570         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65571         a dangling symlink.  That can also happen at least for ELOOP.
65572         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65573         FYI, this bug predates the inclusion of fts.c in coreutils.
65574
65575         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65576         in their own block, so pre-c99 compilers don't object.
65577
65578         Avoid the double-free (first in fts_read, second in fts_close) that
65579         would occur when an `active' directory is made inaccessible (e.g.,
65580         via chmod a-x) during a traversal.
65581         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65582         before returning.  Reproduce this failure by
65583         mkdir -p a/b; cd a; chmod a-x . b
65584         Reported by Stavros Passas.
65585
65586 2006-01-25  Jim Meyering  <jim@meyering.net>
65587
65588         * lib/fileblocks.c: Remove more useless parentheses.
65589         * lib/readutmp.h: Likewise.
65590
65591 2006-01-25  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65594         warnings.
65595         Reported by Paul Eggert.
65596
65597 2006-01-25  Bruno Haible  <bruno@clisp.org>
65598
65599         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65600         rid of a trap command. For Solaris sh.
65601         Reported by Mark D. Baushke <mdb@gnu.org>.
65602
65603 2006-01-24  Simon Josefsson  <jas@extundo.com>
65604
65605         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65606         Bruno.
65607
65608 2006-01-24  Karl Berry  <karl@gnu.org>
65609
65610         * config/srclist.txt (argp-namefrob.h): sync lost.
65611
65612 2006-01-24  Jim Meyering  <jim@meyering.net>
65613
65614         * modules/openat (Files): Add lib/intprops.h.
65615         From Mark D. Baushke.
65616
65617 2006-01-24  Jim Meyering  <jim@meyering.net>
65618
65619         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65620         Reported by Mark D. Baushke.
65621
65622 2006-01-24  Jim Meyering  <jim@meyering.net>
65623
65624         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65625
65626 2006-01-24  Bruno Haible  <bruno@clisp.org>
65627
65628         * modules/strnlen (Maintainer): Change from glibc to all.
65629
65630 2006-01-24  Bruno Haible  <bruno@clisp.org>
65631
65632         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65633         Patch by Paul Eggert.
65634
65635 2006-01-24  Bruno Haible  <bruno@clisp.org>
65636
65637         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65638         already has it.
65639         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65640         2005-11-26.
65641
65642         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65643         'signed char' to avoid problems with the built-in _Bool type.
65644         Reported by Paul Eggert on 2005-11-26.
65645
65646 2006-01-24  Bruno Haible  <bruno@clisp.org>
65647
65648         * gnulib-tool (func_import): Avoid constructing complicated sed
65649         expressions inside backquote.
65650         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65651
65652 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65653
65654         These changes imported from libc.
65655         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65656         test and two separate function calls.
65657         * lib/strndup.c (__strndup): Add libc_hidden_def.
65658
65659 2006-01-23  Simon Josefsson  <jas@extundo.com>
65660
65661         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65662         Remove the test_*_SOURCES variable: automake infers it by default.
65663         * modules/tls-tests: Likewise.
65664
65665 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65666
65667         Work around porting bugs reported by Dieter in
65668         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65669         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65670         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65671         Include "getopt.h" first, to check interface.
65672         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65673         !HAVE_DECL_GETENV.
65674         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65675         (__strndup): Revert to K&R-style function dfns, the glibc style.
65676         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65677         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65678         Include strnlen.h first, to get prototype properly.
65679         (strnlen): Renamed from __strnlen.
65680         Remove weak alias.
65681
65682 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65683
65684         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65685
65686 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65687
65688         * config/srclist.txt: Adjust to reflect glibc reorganization.
65689         This affects only comments.
65690
65691 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65692
65693          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65694          Reported by Bruce Korb <bkorb@gnu.org>.
65695
65696 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65697
65698         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65699         to pacify gcc -Wswitch-default.
65700
65701 2006-01-22  Bruno Haible  <bruno@clisp.org>
65702
65703         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65704         temporary buffer for sprintf, take into account the precision also
65705         for 'd', 'i', 'u', 'o', 'x', 'X'.
65706
65707 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65708
65709         * modules/argp-tests: New module
65710         * tests/test-argp.c: New file
65711         * tests/test-argp-2.sh: New file
65712
65713 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65714
65715         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65716         (__argp_base_name): Removed
65717         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65718         typo.
65719         (__argp_base_name): Provide macro definition or extern declaration
65720         depending on the configuration
65721
65722 2006-01-20  Simon Josefsson  <jas@extundo.com>
65723
65724         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65725
65726 2006-01-20  Simon Josefsson  <jas@extundo.com>
65727
65728         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65729
65730 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65731
65732         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65733         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65734         Suggested by Bruno Haible.
65735
65736 2006-01-20  Karl Berry  <karl@gnu.org>
65737
65738         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65739         until changes propagate, I guess.
65740
65741 2006-01-19  Simon Josefsson  <jas@extundo.com>
65742
65743         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65744
65745 2006-01-19  Simon Josefsson  <jas@extundo.com>
65746
65747         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65748
65749 2006-01-19  Simon Josefsson  <jas@extundo.com>
65750
65751         * gnulib-tool: Set check_PROGRAMS.
65752
65753         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65754         modules/des-tests, modules/gc-arcfour-tests,
65755         modules/gc-arctwo-tests, modules/gc-des-tests,
65756         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65757         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65758         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65759         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65760         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65761         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65762         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65763         test_*_SOURCES.
65764
65765 2006-01-18  Simon Josefsson  <jas@extundo.com>
65766
65767         * modules/socklen (Depends-on): Depend on sys_socket.
65768
65769 2006-01-18  Simon Josefsson  <jas@extundo.com>
65770
65771         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65772         modules/des-tests, modules/gc-arcfour-tests,
65773         modules/gc-arctwo-tests, modules/gc-des-tests,
65774         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65775         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65776         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65777         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65778         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65779         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65780         $(EXEEXT) to automake TESTS variable, for mingw32.
65781
65782 2006-01-17  Simon Josefsson  <jas@extundo.com>
65783
65784         * modules/socklen (Include): Need sys/socket.h.
65785
65786 2006-01-17  Bruno Haible  <bruno@clisp.org>
65787
65788         * modules/ssize_t (Include): Add <sys/types.h>.
65789
65790 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65791
65792         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65793         it's not portable and it doesn't work with cross-compiles.
65794         Problem reported by Bruno Haible.  Fix missing-$ typo in
65795         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65796         -zignore from being used with Sun's C compiler.
65797
65798 2006-01-12  Simon Josefsson  <jas@extundo.com>
65799
65800         * lib/base64.c: Fix warning, reported by Bruno Haible
65801         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65802
65803 2006-01-12  Bruno Haible  <bruno@clisp.org>
65804
65805         * modules/ldd: New file.
65806         * build-aux/ldd.sh.in: New file.
65807         * MODULES.html.sh (Support for building libraries and executables): Add
65808         ldd.
65809
65810 2006-01-12  Bruno Haible  <bruno@clisp.org>
65811
65812         * m4/ldd.m4: New file.
65813
65814 2006-01-12  Bruno Haible  <bruno@clisp.org>
65815
65816         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65817         endless loop while replacing $auxdir with build-aux.
65818
65819 2006-01-11  Simon Josefsson  <jas@extundo.com>
65820
65821         * lib/stdint_.h (SIZE_MAX): Add missing (.
65822
65823 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         Sync from coreutils.
65826         * lib/md5.c: Fix commentary typos.
65827         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65828         * lib/md5.h (__attribute__): Remove; unused.
65829         * lib/sha1.c: Fix commentary to match md5 better.
65830         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65831         so that we don't need to worry about alignment.  All uses changed.
65832         This merges the 2005-10-28 md5 change into sha1.
65833
65834 2006-01-11  Jim Meyering  <jim@meyering.net>
65835
65836         Sync from coreutils.
65837         * lib/md5.c (OP): Fix spacing.
65838
65839 2006-01-11  Bruno Haible  <bruno@clisp.org>
65840
65841         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65842         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65843         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65844
65845 2006-01-11  Bruno Haible  <bruno@clisp.org>
65846
65847         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65848         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65849         the "early" section as well.
65850
65851 2006-01-11  Bruno Haible  <bruno@clisp.org>
65852
65853         Avoid "ar: no archive members specified" error on MacOS X.
65854         * gnulib-tool (func_modules_add_dummy): New function.
65855         (func_import, func_create_testdir): Invoke it.
65856
65857 2006-01-11  Bruno Haible  <bruno@clisp.org>
65858
65859         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65860         with $auxdir in AC_CONFIG_FILES statements.
65861
65862 2006-01-11  Bruno Haible  <bruno@clisp.org>
65863
65864         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65865         Initialize also noinst_HEADERS to empty.
65866
65867 2006-01-11  Bruno Haible  <bruno@clisp.org>
65868
65869         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65870         variables.
65871         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65872         autoreconf.
65873
65874 2006-01-11  Bruno Haible  <bruno@clisp.org>
65875
65876         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65877         overridable by the user.
65878         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65879
65880 2006-01-10  Simon Josefsson  <jas@extundo.com>
65881
65882         * modules/sys_socket: New file.
65883
65884 2006-01-10  Simon Josefsson  <jas@extundo.com>
65885
65886         * m4/sys_socket_h.m4: New file.
65887
65888 2006-01-10  Simon Josefsson  <jas@extundo.com>
65889
65890         * lib/socket_.h: New file.
65891
65892 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65893
65894         * modules/readutmp (Maintainer): Add myself.
65895
65896 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65897
65898         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65899         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65900         People who are still concerned with buggy memcmp implementations
65901         can invoke gl_FUNC_MEMCMP themselves.
65902
65903 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65904
65905         * lib/regex_internal.h (BITSET_WORD_BITS):
65906         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65907         preprocessor mishandles large unsigned values as if they were signed.
65908         Problem reported by Claudio Fontana in
65909         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65910
65911 2006-01-10  Jim Meyering  <jim@meyering.net>
65912
65913         Avoid the double-free (first in fts_read, second in fts_close) that
65914         would occur when an `active' directory is made inaccessible (e.g.,
65915         via chmod a-x) during a traversal.
65916         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65917         before returning.  Reproduce this failure by
65918         mkdir -p a/b; cd a; chmod a-x . b
65919         Reported by Stavros Passas.
65920
65921         Sync from coreutils.
65922         * lib/sha1.c: Tweak grammar in a comment.
65923
65924 2006-01-10  Jim Meyering  <jim@meyering.net>
65925
65926         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65927         Patch by Joerg Sonnenberger.
65928
65929 2006-01-10  Bruno Haible  <bruno@clisp.org>
65930
65931         * modules/readutmp: Depend on module free.
65932         * modules/strtok_r: Depend on module restrict.
65933
65934 2006-01-10  Bruno Haible  <bruno@clisp.org>
65935
65936         * modules/gettext (configure.ac): Add an invocation of
65937         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65938
65939 2006-01-10  Bruno Haible  <bruno@clisp.org>
65940
65941         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65942         Reported by Werner Lemberg <wl@gnu.org>.
65943
65944 2006-01-10  Bruno Haible  <bruno@clisp.org>
65945
65946         * lib/localcharset.c: Update from GNU gettext.
65947
65948 2006-01-10  Bruno Haible  <bruno@clisp.org>
65949
65950         * lib/argp.h (__const): Remove macro. Use const instead.
65951         * lib/argp-fmtstream.h (__const): Likewise.
65952         * lib/glob_.h (__const): Remove macro.
65953         * lib/glob-libc.h: Use const instead of __const.
65954
65955 2006-01-10  Bruno Haible  <bruno@clisp.org>
65956
65957         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65958         variable.
65959         Needed to avoid an automake error regarding the 'gettext' module.
65960
65961 2006-01-09  Simon Josefsson  <jas@extundo.com>
65962
65963         * modules/inet_ntop (Depends-on): Add restrict.
65964
65965 2006-01-09  Simon Josefsson  <jas@extundo.com>
65966
65967         * modules/gc-rijndael-tests (License): Put under LGPL.
65968
65969         * modules/gc-des-tests (License): Likewise.
65970
65971         * modules/gc-arcfour-tests (License): Likewise.
65972
65973         * modules/gc-arctwo-tests (License): Likewise.
65974
65975         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65976
65977         * modules/gc-hmac-sha1-tests (Files): Likewise.
65978
65979         * modules/gc-hmac-md5-tests (License): Likewise.
65980
65981         * modules/gc-sha1-tests (License): Likewise.
65982
65983         * modules/gc-md5-tests (License): Likewise.
65984
65985         * modules/gc-md4-tests (License): Likewise.
65986
65987         * modules/gc-md2-tests (License): Likewise.
65988
65989         * modules/gc-tests (License): Likewise.
65990
65991         * modules/des-tests (License): Likewise.
65992
65993         * modules/md4-tests (License): Likewise.
65994
65995         * modules/md2-tests (License): Likewise.
65996
65997 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65998
65999         Sync from coreutils:
66000
66001         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
66002         * modules/lib-ignore: New file.
66003         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
66004         chdir-safer.m4, lchmod.m4.
66005         * modules/openat: Add mkdirat.c, openat-priv.h.
66006
66007 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66008
66009         Sync from coreutils.
66010         * m4/lib-ignore.m4: New file.
66011         * m4/lchmod.m4: New file.
66012
66013 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66014
66015         Sync from coreutils.
66016         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
66017         for write access: POSIX says that must fail.
66018         * lib/fts.c (diropen): Likewise.
66019         * lib/save-cwd.c (save_cwd): Likewise.
66020         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
66021         well, for minor improvements on hosts that lack O_DIRECTORY.
66022         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
66023         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
66024         Fall back on chown if open failed with EACCES.
66025
66026         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
66027         Report an error at compile-time if only a 1-second nominal clock
66028         resolution is found.
66029
66030         * lib/lchmod.h: New file.
66031         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
66032         (make_dir_parents): Use lchown rather than chown, and
66033         lchmod rather than chmod.
66034
66035         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
66036         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
66037         "proc" reported by n0dalus.
66038
66039         * lib/mountlist.c: Include <limits.h>.
66040         (dev_from_mount_options)
66041         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
66042         New function.  It no longer assumes "dev=" has the System V meaning
66043         on Linux (since it doesn't).  It also parses "dev=" more carefully.
66044         (read_file_system_list)
66045         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
66046         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
66047         dev= in that case.
66048
66049         * lib/posixtm.h (PDS_PRE_2000): New macro.
66050         * lib/posixtm.c (year): Arg is now syntax_bits rather than
66051         allow_century.  All usages changed.  Reject dates outside the range
66052         1969-1999 if PDS_PRE_2000 is used.
66053
66054 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66055
66056         Sync from coreutils.
66057         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
66058         (Time of day items): Mention the possibility of leap seconds.
66059         Problem reported by Dr. David Alan Gilbert.
66060
66061 2006-01-09  Jim Meyering  <jim@meyering.net>
66062
66063         Sync from coreutils.
66064
66065         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
66066
66067         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
66068
66069         * lib/modechange.c (mode_compile): Reject an invalid mode string
66070         that starts with an octal digit.  From Andreas Gruenbacher.
66071
66072         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
66073         and dup to open_safer and dup_safer, respectively.
66074         (openat_permissive): Fix typo in comment.
66075
66076         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
66077         "gettext.h"; either no longer needed or are guaranteed by openat.h.
66078         (_): Remove; no longer needed.
66079         (openat): Renamed from rpl_openat; no need for rpl_openat
66080         since openat.h renames openat for us.
66081         Replace most of the body with a call to openat_permissive,
66082         to avoid duplicate code.
66083         Port to (probably hypothetical) environments were mode_t is
66084         wider than int.
66085         (openat_permissive): Require mode arg, so that we can check
66086         types better.  Put it just after flags.  Change cwd failure
66087         indicator from pointer-to-bool to pointer-to-errno-value.
66088         All callers changed.
66089         Invoke openat_save_fail and/or openat_restore_fail if
66090         cwd_errno is null, so that openat can call us.
66091         (openat_permissive, fdopendir, fstatat, unlinkat):
66092         Simplify errno handling to avoid some duplicate code,
66093         as it's OK to set errno on success.
66094         * lib/openat.h: Revamp code so that function macros depend on
66095         __OPENAT_PREFIX only, not also on AT_FDCWD.
66096         (openat_ro): Remove.  Caller changed to use openat_permissive.
66097         (openat_permissive): Now a macro, if not a function.
66098         (openat_restore_fail, openat_save_fail): Now always functions,
66099         since mkdirat needs them even if __OPENAT_PREFIX is defined.
66100
66101         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
66102         and openat.c.
66103         * lib/mkdirat.c: Include openat-priv.h.
66104         Remove definitions of macros defined therein.
66105         * lib/openat.c: Likewise.
66106
66107         * lib/mkdirat.c (mkdirat): New file and function.
66108         * lib/openat.h (mkdirat): Declare.
66109
66110         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
66111
66112         * lib/openat.h (openat_permissive): Declare.
66113         (openat_ro): Define.
66114
66115         * lib/openat.c (EXPECTED_ERRNO): New macro.
66116         (openat_permissive): New function -- used in remove.c rewrite.
66117         (all functions): Set errno just before returning, only if there
66118         was an actual failure.
66119         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
66120
66121         Emulate openat-family functions using Linux's procfs, if possible.
66122         Idea and some code based on Ulrich Drepper's glibc changes.
66123
66124         * lib/openat.c: (BUILD_PROC_NAME): New macro.
66125         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
66126         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
66127         before falling back on save_cwd and restore_cwd.
66128         (fdopendir, fstatat, unlinkat): Likewise.
66129
66130         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
66131         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
66132
66133         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
66134         as second argument to va_arg.  Otherwise, some versions of gcc
66135         warn that `if this code is reached, the program will abort'.
66136
66137 2006-01-09  Jim Meyering  <jim@meyering.net>
66138
66139         Sync from coreutils.
66140         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
66141         Require openat-priv.h.
66142
66143 2006-01-09  Bruno Haible  <bruno@clisp.org>
66144
66145         * modules/strnlen (Include): Use strnlen.h.
66146
66147 2006-01-09  Bruno Haible  <bruno@clisp.org>
66148
66149         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
66150
66151 2006-01-09  Bruno Haible  <bruno@clisp.org>
66152
66153         * lib/sysexit_.h (EX_OK): New macro.
66154         Suggested by Martin Lambers <marlam@marlam.de>.
66155
66156 2006-01-09  Bruno Haible  <bruno@clisp.org>
66157
66158         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
66159         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
66160
66161 2006-01-09  Bruno Haible  <bruno@clisp.org>
66162
66163         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
66164         numbers.
66165
66166 2006-01-09  Bruno Haible  <bruno@clisp.org>
66167
66168         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
66169         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
66170         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
66171         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
66172
66173 2006-01-09  Bruno Haible  <bruno@clisp.org>
66174
66175         * build-aux/javacomp.sh.in: New file, moved from lib/.
66176         * modules/javacomp-script (Files): Update.
66177         (configure.ac): Add AC_CONFIG_FILES invocation.
66178         (EXTRA_DIST): Remove variable.
66179
66180         * build-aux/javaexec.sh.in: New file, moved from lib/.
66181         * modules/javaexec (Files): Update.
66182         (configure.ac): Add AC_CONFIG_FILES invocation.
66183         (EXTRA_DIST): Remove javaexec.sh.in.
66184
66185         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
66186         * modules/csharpcomp-script (Files): Update.
66187         (configure.ac): Add AC_CONFIG_FILES invocation.
66188         (EXTRA_DIST): Remove variable.
66189
66190         * build-aux/csharpexec.sh.in: New file, moved from lib/.
66191         * modules/csharpexec (Files): Update.
66192         (configure.ac): Add AC_CONFIG_FILES invocation.
66193         (EXTRA_DIST): Remove csharpexec.sh.in.
66194
66195 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66196
66197         Sync from coreutils.
66198
66199         Add POSIX ACL support
66200         * lib/acl.h (copy_acl, set_acl): Add declarations.
66201         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
66202         systems other than Linux.
66203         (chmod_or_fchmod): New function: use fchmod when possible,
66204         and chmod otherwise.
66205         (file_has_acl): Add a POSIX ACL implementation, with a
66206         Linux-specific subcase.
66207         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
66208         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
66209         acls are unsupported.
66210         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
66211         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
66212         are unsupported.
66213
66214 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66215
66216         Sync from coreutils.
66217         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
66218
66219 2006-01-07  Bruno Haible  <bruno@clisp.org>
66220
66221         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
66222         gl_EARLY.
66223
66224 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66225
66226         * lib/strftime.c (tzname): Don't declare if it is already #defined.
66227         Problem reported for Mingw by Mark Junker.
66228
66229 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66230
66231         * README: Gnulib normally doesn't generate a tarball.
66232
66233 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
66234
66235         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
66236         long int, not int, for nanosecond counts, so that people who are
66237         used to POSIX struct timespec won't be surprised.  Reported by Jim
66238         Meyering.
66239
66240 2005-12-28  Bruno Haible  <bruno@clisp.org>
66241
66242         * build-aux/config.rpath: Update from GNU gettext.
66243
66244 2005-12-16  Jim Meyering  <jim@meyering.net>
66245
66246         * modules/fprintftime: New module.
66247         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66248
66249 2005-12-16  Jim Meyering  <jim@meyering.net>
66250
66251         * m4/fprintftime.m4: New file.
66252
66253 2005-12-16  Jim Meyering  <jim@meyering.net>
66254
66255         * lib/fprintftime.c, lib/fprintftime.h: New files.
66256
66257 2005-12-15  Simon Josefsson  <jas@extundo.com>
66258
66259         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66260         new m4/socklen.m4.
66261
66262 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66263
66264         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66265         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66266
66267 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66268
66269         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66270         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66271         struct uparams is valid. Fall back to the default values if it is
66272         not.
66273
66274 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66275
66276         * modules/argp (Files): Add argp-pin.c
66277         (Depends-on): dirname
66278         (lib_SOURCES): Add argp-pin.c
66279
66280 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66281
66282         * m4/argp.m4:  Check if program_invocation_name and
66283         program_invocation_short_name are declared and define appropriate
66284         macros if they are not.
66285
66286 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66287
66288         * lib/argp-help.c (__argp_base_name): New function
66289         (__argp_short_program_name): Rewrite using __argp_base_name
66290         * lib/argp-namefrob.h: Define program_invocation_name and
66291         program_invocation_short_name if requested
66292         (__argp_base_name): Add prototype
66293         * lib/argp-parse.c (argp_def): Use gettext wrappers
66294         (argp_default_parser): Use __argp_base_name
66295         * lib/argp-pin.c: New file. Defines program_invocation_name and
66296         program_invocation_short_name on systems that lack them.
66297
66298 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66299
66300         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66301         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66302         porting problem reported by Georg Schwarz in
66303         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66304
66305 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66306
66307         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66308         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66309         porting problem reported by Georg Schwarz in
66310         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66311
66312 2005-12-05  Bruno Haible  <bruno@clisp.org>
66313
66314         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66315         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66316         Reported by Mark Junker <mjscod@gmx.de>.
66317
66318 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66321         Use implementation from Albert Chin, with some
66322         comments/corrections by Stepan Kasal and myself.
66323
66324 2005-12-02  Bruno Haible  <bruno@clisp.org>
66325
66326         * gnulib-tool (func_import): Accept GPLed build tool modules when
66327         --lgpl is given.
66328         * modules/csharpcomp-script: New file.
66329         * modules/csharpcomp: Depend on it.
66330         * modules/javacomp-script: New file.
66331         * modules/javacomp: Depend on it.
66332         Suggested by Simon Josefsson.
66333
66334 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66335
66336         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66337         statement, to work around an HP-UX 10.20 compiler bug reported by
66338         Peter O'Gorman.
66339
66340 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66341
66342         * modules/savedir (Depends-on): Add openat.
66343
66344 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66345
66346         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66347         (uintmax_t) [defined uintmax_t]: Do not declare.
66348         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66349         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66350         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66351         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66352         sake of portability to weird hosts that C allows (though we don't
66353         know of any practical examples).
66354
66355         * lib/savedir.h (fdsavedir): New decl.
66356         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66357         contains most of the former guts of savedir.
66358         (savedir): Use savedirstream.
66359         Include "openat.h".
66360
66361 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66362
66363         * modules/obstack (Files): Add m4/ulonglong.m4.
66364         Problem reported by Davide Angelocola.
66365
66366 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66367
66368         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66369         coreutils no longer futzes with rounding modes.
66370
66371 2005-11-14  Jim Meyering  <jim@meyering.net>
66372
66373         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66374         replacement of mkstemp.
66375
66376 2005-11-10  Simon Josefsson  <jas@extundo.com>
66377
66378         * lib/readline.c: Remove EOL.
66379
66380 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66381
66382         * modules/gethrxtime (Depends-on): Add gettime.
66383
66384 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66385
66386         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66387         or gettimeofday; no longer needed.
66388
66389 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66390
66391         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66392         time business.
66393         (gethrxtime) [! (HAVE_NANOUPTIME
66394         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66395         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66396         our own approximation.
66397
66398 2005-11-08  Eric Blake  <ebb9@byu.net>
66399
66400         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66401
66402 2005-11-08  Eric Blake  <ebb9@byu.net>
66403
66404         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66405
66406 2005-11-04  Bruno Haible  <bruno@clisp.org>
66407
66408         * gnulib-tool: Implement --update mode.
66409
66410 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         Fix porting problem reported by Theodoros V. Kalamatianos.
66413         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66414         Don't assume that futimes failing means we must fail.
66415
66416 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66419         variables to suggest the intended function of the PATH_MAX check.
66420
66421 2005-10-30  Kean Johnston  <jkj@sco.com>
66422
66423         Trivial changes to support SCO systems.
66424         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66425         as PATH_MAX.
66426         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66427         where __ptr is null when no I/O is pending.
66428
66429 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66430
66431         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66432         leave errno alone.  Problem reported by Dmitry V. Levin.
66433
66434 2005-10-28  Simon Josefsson  <jas@extundo.com>
66435
66436         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66437         Test more.
66438
66439         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66440
66441         * modules/md2, modules/md2-tests: New files.
66442
66443 2005-10-28  Simon Josefsson  <jas@extundo.com>
66444
66445         * m4/inet_ntop.m4: More tests.
66446
66447         * m4/gc-md2.m4, md2.m4: New file.
66448
66449 2005-10-28  Simon Josefsson  <jas@extundo.com>
66450
66451         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66452         "restrict" keywords, as per POSIX.  Protect the function
66453         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66454         Don't use K&R prototypes.  Check the sprintf return values.
66455         Re-define EAFNOSUPPORT if not present.  Indent.
66456
66457         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66458         suggested by Bruno Haible <bruno@clisp.org>.
66459
66460         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66461
66462         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66463
66464         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66465         libgcrypt).
66466
66467         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66468
66469         * lib/md2.h, lib/md2.c: New files.
66470
66471 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66472
66473         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66474         errno alone.  Problem reported by Frederic Jolliton.
66475
66476 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66477
66478         * modules/verify (License): Change from GPL to LGPL.  This is a
66479         tiny module and there are apparently near-equivalents that are
66480         under the BSD license.
66481
66482 2005-10-24  Simon Josefsson  <jas@extundo.com>
66483
66484         * modules/sha1: Relicense to LGPL.
66485
66486 2005-10-24  Simon Josefsson  <jas@extundo.com>
66487
66488         * lib/md4.h: Shrink buffer size, now that we changed the type.
66489
66490 2005-10-23  Simon Josefsson  <jas@extundo.com>
66491
66492         * gnulib-tool (func_import): Fix --tests-base.
66493
66494 2005-10-22  Simon Josefsson  <jas@extundo.com>
66495
66496         * modules/arcfour (Depends-on): Need stdint.
66497
66498 2005-10-22  Simon Josefsson  <jas@extundo.com>
66499
66500         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66501         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66502
66503 2005-10-22  Simon Josefsson  <jas@extundo.com>
66504
66505         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66506         suggested by Bruno Haible <bruno@clisp.org>.
66507
66508 2005-10-22  Simon Josefsson  <jas@extundo.com>
66509
66510         * lib/crc.h: Include stddef.h, for size_t.
66511
66512 2005-10-22  Simon Josefsson  <jas@extundo.com>
66513
66514         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66515         arcfour_context struct (simplify test vector testing in GNU
66516         Shishi).
66517
66518 2005-10-21  Simon Josefsson  <jas@extundo.com>
66519
66520         * modules/des, modules/des-tests: New files.
66521
66522         * modules/gc-des, modules/gc-des-tests: New files.
66523
66524         * tests/test-des.c, tests/test-gc-des.c: New file.
66525
66526 2005-10-21  Simon Josefsson  <jas@extundo.com>
66527
66528         * modules/arctwo, modules/arctwo-tests: New files.
66529
66530         * tests/test-arctwo.c: New file.
66531
66532         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66533
66534         * tests/test-gc-arctwo.c: New file.
66535
66536 2005-10-21  Simon Josefsson  <jas@extundo.com>
66537
66538         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66539         Bruno Haible <bruno@clisp.org>.
66540
66541         * m4/gc-des.m4: New file.
66542
66543 2005-10-21  Simon Josefsson  <jas@extundo.com>
66544
66545         * m4/arctwo.m4: New file.
66546
66547         * m4/gc-arctwo.m4: New file.
66548
66549 2005-10-21  Simon Josefsson  <jas@extundo.com>
66550
66551         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66552         block.
66553
66554 2005-10-21  Simon Josefsson  <jas@extundo.com>
66555
66556         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66557         <bruno@clisp.org>.
66558
66559         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66560
66561         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66562         Bruno Haible <bruno@clisp.org>.
66563
66564         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66565         <bruno@clisp.org>.
66566
66567 2005-10-21  Simon Josefsson  <jas@extundo.com>
66568
66569         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66570
66571 2005-10-21  Simon Josefsson  <jas@extundo.com>
66572
66573         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66574
66575 2005-10-21  Simon Josefsson  <jas@extundo.com>
66576
66577         * lib/des.h, lib/des.c: New files.
66578
66579         * lib/gc-gnulib.c: Support DES.c
66580
66581 2005-10-21  Simon Josefsson  <jas@extundo.com>
66582
66583         * lib/arctwo.h, lib/arctwo.c: New files.
66584
66585         * lib/gc-gnulib.c: Support ARCTWO.
66586
66587 2005-10-21  Simon Josefsson  <jas@extundo.com>
66588
66589         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66590         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66591
66592 2005-10-21  Simon Josefsson  <jas@extundo.com>
66593
66594         * gnulib-tool (func_import, func_create_testdir): Define automake
66595         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66596         Makefile.am snippet),
66597         suggested by Bruno Haible <bruno@clisp.org>.
66598
66599         * modules/gc (Makefile.am): Use it.
66600
66601 2005-10-21  Bruno Haible  <bruno@clisp.org>
66602
66603         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66604         patch.
66605
66606 2005-10-19  Simon Josefsson  <jas@extundo.com>
66607
66608         * tests/test-gc-rijndael.c: New file.
66609
66610         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66611
66612 2005-10-19  Simon Josefsson  <jas@extundo.com>
66613
66614         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66615         interface too.
66616
66617 2005-10-19  Simon Josefsson  <jas@extundo.com>
66618
66619         * tests/test-gc-arcfour.c: New file.
66620
66621         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66622
66623 2005-10-19  Simon Josefsson  <jas@extundo.com>
66624
66625         * modules/gc-md4, modules/gc-md4-tests: New file.
66626
66627         * tests/test-gc-md4.c: New file.
66628
66629 2005-10-19  Simon Josefsson  <jas@extundo.com>
66630
66631         * m4/gc-md4.m4: New file.
66632
66633 2005-10-19  Simon Josefsson  <jas@extundo.com>
66634
66635         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66636         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66637         <kasal@ucw.cz>.
66638
66639 2005-10-19  Simon Josefsson  <jas@extundo.com>
66640
66641         * m4/gc-arcfour.m4: New file.
66642
66643         * m4/gc-rijndael.m4: New file.
66644
66645 2005-10-19  Simon Josefsson  <jas@extundo.com>
66646
66647         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66648
66649 2005-10-19  Simon Josefsson  <jas@extundo.com>
66650
66651         * lib/gc-gnulib.c: Support ARCFOUR.
66652
66653 2005-10-19  Simon Josefsson  <jas@extundo.com>
66654
66655         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66656         support.
66657
66658         * lib/gc.h: Add ECB enum type.
66659
66660         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66661
66662 2005-10-18  Simon Josefsson  <jas@extundo.com>
66663
66664         * tests/test-md5.c: New file.
66665
66666         * modules/md5-tests: New file.
66667
66668 2005-10-18  Simon Josefsson  <jas@extundo.com>
66669
66670         * tests/test-md4.c: New file.
66671
66672         * modules/md4, modules/md4-tests: New files.
66673
66674 2005-10-18  Simon Josefsson  <jas@extundo.com>
66675
66676         * m4/md4.m4: New file.
66677
66678 2005-10-18  Simon Josefsson  <jas@extundo.com>
66679
66680         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66681
66682 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66683
66684         * gnulib-tool (func_create_testdir): Omit the second check whether
66685         BUILT_SOURCES in nonempty.
66686
66687 2005-10-17  Simon Josefsson  <jas@extundo.com>
66688
66689         * tests/test-rijndael.c: New file.
66690
66691 2005-10-17  Simon Josefsson  <jas@extundo.com>
66692
66693         * modules/sha1: Depend on stdint instead of md5.
66694
66695         * modules/md5: Depend on stdint, remove uint32_t.
66696
66697 2005-10-17  Simon Josefsson  <jas@extundo.com>
66698
66699         * modules/gc-sha1-tests: New file.
66700
66701         * tests/test-gc-sha1.c: New file.
66702
66703 2005-10-17  Simon Josefsson  <jas@extundo.com>
66704
66705         * m4/md5.m4: Remove call to uint32_t.m4.
66706
66707 2005-10-17  Simon Josefsson  <jas@extundo.com>
66708
66709         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66710
66711         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66712         md5.h.
66713
66714         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66715
66716         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66717
66718 2005-10-17  Simon Josefsson  <jas@extundo.com>
66719
66720         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66721
66722 2005-10-17  Simon Josefsson  <jas@extundo.com>
66723
66724         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66725
66726 2005-10-17  Simon Josefsson  <jas@extundo.com>
66727
66728         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66729
66730         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66731
66732 2005-10-17  Bruno Haible  <bruno@clisp.org>
66733
66734         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66735         that it can also be used in a test.
66736
66737 2005-10-16  Bruno Haible  <bruno@clisp.org>
66738
66739         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66740         TESTS_ENVIRONMENT, so that individual tests can augment it.
66741
66742         * gnulib-tool (func_create_testdir): Use an intermediate target for
66743         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66744         macros, like $(ALLOCA_H), which cannot be passed through the command
66745         line.
66746
66747 2005-10-15  Simon Josefsson  <jas@extundo.com>
66748
66749         * modules/rijndael-tests: New file.
66750
66751         * modules/rijndael: New file.
66752
66753 2005-10-15  Simon Josefsson  <jas@extundo.com>
66754
66755         * m4/rijndael.m4: New file.
66756
66757 2005-10-15  Simon Josefsson  <jas@extundo.com>
66758
66759         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66760
66761         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66762
66763 2005-10-14  Simon Josefsson  <jas@extundo.com>
66764
66765         * tests/test-arcfour.c: New file.
66766
66767         * modules/arcfour, modules/arcfour-tests: New files.
66768
66769 2005-10-14  Simon Josefsson  <jas@extundo.com>
66770
66771         * m4/arcfour.m4: New file.
66772
66773 2005-10-14  Simon Josefsson  <jas@extundo.com>
66774
66775         * lib/arcfour.h, lib/arcfour.c: New files.
66776
66777 2005-10-14  Roland McGrath  <roland@redhat.com>
66778
66779         Import from libc.  [BZ #1331]
66780         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66781         macro argument.
66782         Reported by Matej Vela <vela@debian.org>.
66783
66784 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66785
66786         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66787         include <wchar.h>; no longer needed.
66788
66789 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66790
66791         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66792
66793 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66794         and  Ulrich Drepper  <drepper@redhat.com>
66795
66796         Import from libc.
66797         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66798         instead of inline stream orientation test and two separate
66799         function calls.  Pay no attention to USE_IN_LIBIO.
66800
66801 2005-10-13  Simon Josefsson  <jas@extundo.com>
66802
66803         * modules/gc-hmac-md5-tests: New file.
66804
66805         * tests/test-gc-hmac-sha1.c: New file.
66806
66807         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66808
66809         * modules/gc-hmac-md5-tests: New file.
66810
66811         * tests/test-gc-md5.c: New file.
66812
66813         * modules/gc-md5-tests: New file.
66814
66815 2005-10-13  Simon Josefsson  <jas@extundo.com>
66816
66817         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66818         Move memory allocation outside of loop.
66819
66820 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66821
66822         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66823         intermediate directory is in a read-only file system.  Problem
66824         reported by Eric Blake.
66825
66826 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66827
66828         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66829
66830 2005-10-12  Simon Josefsson  <jas@extundo.com>
66831
66832         * tests/test-hmac-sha1.c: New file.
66833
66834         * modules/hmac-sha1-tests: New file.
66835
66836         * modules/hmac-sha1: New file.
66837
66838 2005-10-12  Simon Josefsson  <jas@extundo.com>
66839
66840         * modules/gc-sha1: New file.
66841
66842 2005-10-12  Simon Josefsson  <jas@extundo.com>
66843
66844         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66845
66846         * tests/test-gc-pbkdf2-sha1.c: New file.
66847
66848 2005-10-12  Simon Josefsson  <jas@extundo.com>
66849
66850         * modules/gc-md5, modules/gc-hmac-md5: New files.
66851
66852         * modules/gc (Files): Remove md5, memxor and hmac files.
66853
66854 2005-10-12  Simon Josefsson  <jas@extundo.com>
66855
66856         * m4/gc-pbkdf2-sha1.m4: New file.
66857
66858         * m4/gc-hmac-sha1.m4: New file.
66859
66860         * m4/gc-sha1: New file.
66861
66862         * m4/hmac-sha1.m4: New file.
66863
66864 2005-10-12  Simon Josefsson  <jas@extundo.com>
66865
66866         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66867
66868         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66869
66870 2005-10-12  Simon Josefsson  <jas@extundo.com>
66871
66872         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66873         suggested by Bruno Haible <bruno@clisp.org>.
66874
66875 2005-10-12  Simon Josefsson  <jas@extundo.com>
66876
66877         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66878
66879 2005-10-12  Simon Josefsson  <jas@extundo.com>
66880
66881         * lib/gc-pbkdf2-sha1.c: New file.
66882
66883         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66884
66885 2005-10-12  Simon Josefsson  <jas@extundo.com>
66886
66887         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66888
66889         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66890
66891 2005-10-12  Simon Josefsson  <jas@extundo.com>
66892
66893         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66894         GC_USE_HMAC_MD5, respectively.
66895
66896         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66897         (gc_md5): Fix typo.
66898
66899         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66900
66901         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66902
66903         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66904
66905 2005-10-12  Bruno Haible  <bruno@clisp.org>
66906
66907         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66908         Reported by Stepan Kasal <kasal@ucw.cz>.
66909
66910 2005-10-11  Simon Josefsson  <jas@extundo.com>
66911
66912         * tests/test-crc.c: New file.
66913
66914         * modules/crc, modules/crc-tests: New files.
66915
66916 2005-10-11  Simon Josefsson  <jas@extundo.com>
66917
66918         * m4/crc.m4: New file.
66919
66920 2005-10-11  Simon Josefsson  <jas@extundo.com>
66921
66922         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66923
66924         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66925
66926         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66927
66928 2005-10-11  Simon Josefsson  <jas@extundo.com>
66929
66930         * lib/crc.h, lib/crc.c: New files.
66931
66932         * lib/gc.h (gc_hash_buffer): Add doc.
66933
66934 2005-10-11  Bruno Haible  <bruno@clisp.org>
66935
66936         * modules/c-strcasestr: New file.
66937         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66938
66939 2005-10-11  Bruno Haible  <bruno@clisp.org>
66940
66941         * modules/c-strcase: New file.
66942         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66943
66944 2005-10-11  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/strcasecmp.c: Include limits.h.
66947         (strcasecmp): Avoid integer overflow on exotic platforms.
66948         * lib/strncasecmp.c: Include limits.h.
66949         (strncasecmp): Avoid integer overflow on exotic platforms.
66950         Reported by Paul Eggert.
66951
66952 2005-10-11  Bruno Haible  <bruno@clisp.org>
66953
66954         * lib/c-strcasestr.h: New file, from GNU gettext.
66955         * lib/c-strcasestr.c: New file, from GNU gettext.
66956
66957 2005-10-11  Bruno Haible  <bruno@clisp.org>
66958
66959         * lib/c-strcase.h: New file, from GNU gettext.
66960         * lib/c-strcasecmp.c: New file, from GNU gettext.
66961         * lib/c-strncasecmp.c: New file, from GNU gettext.
66962
66963 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66964
66965         * modules/mempcpy (License): GPL -> LGPL.
66966         * modules/strchrnul (License): Likewise.
66967         * modules/sysexits (License): Likewise.
66968
66969 2005-10-08  Simon Josefsson  <jas@extundo.com>
66970
66971         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66972
66973 2005-10-07  Simon Josefsson  <jas@extundo.com>
66974
66975         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66976
66977 2005-10-06  Simon Josefsson  <jas@extundo.com>
66978
66979         * tests/test-hmac-md5.c: New file.
66980
66981         * modules/hmac-md5-tests: New file.
66982
66983         * modules/hmac-md5: New file.
66984
66985 2005-10-06  Simon Josefsson  <jas@extundo.com>
66986
66987         * m4/hmac-md5.m4: New file.
66988
66989         * m4/memxor.m4: Require gl_C_RESTRICT.
66990
66991 2005-10-06  Simon Josefsson  <jas@extundo.com>
66992
66993         * lib/memxor.c (memxor): Avoid casts and warnings.
66994
66995 2005-10-06  Simon Josefsson  <jas@extundo.com>
66996
66997         * lib/hmac-md5.c: New file.
66998
66999         * lib/hmac.h: New file.
67000
67001 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67002
67003         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
67004         promotes to int, not unsigned int, to catch the AIX 5.3
67005         compiler bug.
67006
67007 2005-10-05  Simon Josefsson  <jas@extundo.com>
67008
67009         * modules/memxor: New file.
67010
67011         * modules/iconv (Files): Move config.rpath to havelib, it is used
67012         there.
67013
67014         * modules/havelib (Files): Add config.rpath.
67015
67016 2005-10-05  Simon Josefsson  <jas@extundo.com>
67017
67018         * m4/memxor.m4: New file.
67019
67020 2005-10-05  Simon Josefsson  <jas@extundo.com>
67021
67022         * lib/memxor.c (memxor): Fix compiler error.
67023
67024         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
67025         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
67026
67027         * lib/memxor.h, lib/memxor.c: New files.
67028
67029         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
67030         we assume all systems have it, suggested by Jim Meyering
67031         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
67032         any systems lack sys/socket.h; mingw32 is known to lack it, but we
67033         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
67034         same reasons.
67035
67036 2005-10-05  Simon Josefsson  <jas@extundo.com>
67037
67038         * config/srclist.txt: Add glibc bug 1423 for md5.h.
67039
67040 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67041
67042         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
67043         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
67044         needed, since the source code now assumes these .h files.
67045
67046 2005-10-05  Derek Price  <derek@ximbiot.com>
67047
67048         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
67049
67050 2005-10-05  Bruno Haible  <bruno@clisp.org>
67051
67052         * modules/stdint (License): Change to LGPL.
67053
67054 2005-10-04  Simon Josefsson  <jas@extundo.com>
67055
67056         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
67057         D. Baushke" <mdb@gnu.org>.
67058
67059 2005-10-04  Bruno Haible  <bruno@clisp.org>
67060
67061         * lib/verify.h (verify_true): Provide alternative definition for C++.
67062
67063 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
67064
67065         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
67066         (SSIZE_MAX): New macro, if not already defined.
67067         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
67068         than 2 GiB.
67069
67070 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67071
67072         Sync from coreutils.
67073         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
67074         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
67075         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
67076         ULLONG_MAX doesn't work with 2.7.2.1.
67077
67078 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67079
67080         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
67081         From Ben Pfaff.
67082
67083         * modules/exclude (Depends-on): Depend on verify.
67084         * modules/strtoimax (Depends-on): Likewise.
67085         * modules/utimecmp (Depends-on): Likewise.
67086
67087 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67088
67089         * lib/exclude.c: Include verify.h.
67090         (verify): Remove.  All callers changed to use verify.h's version.
67091         * lib/strtoimax.c: Likewise.
67092         * lib/utimecmp.c: Likewis.e
67093
67094         Sync from coreutils.
67095         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
67096         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
67097         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
67098         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
67099         bother returning ENOSYS if settimeofday or stime fails; just let
67100         them return whatever errno they want to return.
67101         * lib/utimens.c: Include unistd.h, for dup2.
67102         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
67103         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
67104
67105 2005-10-02  Jim Meyering  <jim@meyering.net>
67106
67107         Sync from coreutils.
67108         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
67109         from glibc-2.2.5 that fails for read-only files.
67110
67111 2005-10-02  Jim Meyering  <jim@meyering.net>
67112
67113         Sync from coreutils.
67114         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
67115         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
67116         `#if HAVE_CONFIG_H'.
67117         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
67118         Remove AT_FDCWD test.
67119         Do not consume the fd unless successful.
67120         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
67121         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
67122         block, so that we don't even try to compile it if settimeofday is
67123         available.  This works around a compilation failure on OSF1 V5.1,
67124         due to stime requiring a `long int*' while tv_sec is `int'.
67125
67126 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
67127
67128         Sync from coreutils.
67129         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
67130         against `yes', rather than just testing for nonempty.
67131
67132 2005-10-01  Simon Josefsson  <jas@extundo.com>
67133
67134         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
67135         and Darwin.
67136
67137         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
67138         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
67139         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
67140         freeaddrinfo and gai_strerror are declared by the POSIX headers.
67141         Check if struct addrinfo is declared.
67142
67143 2005-10-01  Simon Josefsson  <jas@extundo.com>
67144
67145         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
67146         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
67147         AI_* and EAI_* definitions.  Protect function declarations.
67148
67149 2005-10-01  Jim Meyering  <jim@meyering.net>
67150
67151         Sync from coreutils.
67152
67153         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
67154         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
67155         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
67156         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67157         in the inet and nsl libraries.  Required on Solaris 5.7.
67158
67159 2005-10-01  Jim Meyering  <jim@meyering.net>
67160
67161         Sync from coreutils.
67162         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67163         in the inet and nsl libraries.  Required on Solaris 5.7.
67164
67165 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
67166
67167         * lib/getdelim.c (getdelim): Remove unused variables.
67168
67169 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67170
67171         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
67172         so that the code works even with ancient cpp.  Portability problem
67173         with GCC 2.7.2.1 reported by Thomas M.Ott.
67174
67175 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67176
67177         * modules/regex (Depends-on): Add strcase.
67178
67179         * modules/gethostname (Licence): Change from GPL to LGPL, since
67180         gethostname.c is a trivial implementation of a standard library
67181         function.
67182         * modules/poll (License): Change from GPL to LGPL, since it's
67183         derived from LGPL code.
67184
67185 2005-09-27  Jim Meyering  <jim@meyering.net>
67186
67187         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
67188         HAVE_CONFIG_H.
67189
67190         * lib/intprops.h (signed_type_or_expr__): Define.
67191         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
67192         for unsigned types.
67193
67194 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67195
67196         * lib/verify.h (verify_expr): Remove, replacing with:
67197         (verify_true): New macro that returns true instead of void.
67198         (verify_type__): Remove.
67199         (verify): Use verify_true rather than verify_type__.
67200
67201 2005-09-26  Bruno Haible  <bruno@clisp.org>
67202
67203         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
67204         is necessary.
67205         (lib_SOURCES): Remove mbchar.c.
67206         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
67207         (Files): Add m4/mbrtowc.m4.
67208         * modules/mbiter: Likewise.
67209         * modules/mbuiter: Likewise.
67210
67211 2005-09-26  Bruno Haible  <bruno@clisp.org>
67212
67213         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
67214         compile mbchar.c if they are not both present.
67215         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
67216         * m4/mbiter.m4 (gl_MBITER): Likewise.
67217         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
67218         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
67219         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
67220
67221 2005-09-25  Jim Meyering  <jim@meyering.net>
67222
67223         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
67224         also uses socklen_t.
67225
67226 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
67227
67228         * lib/utimens.c (ENOSYS): Define if not already defined.
67229         (futimens): Support having a null PATH if the file descriptor
67230         is nonnegative.
67231
67232         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
67233         Remove.
67234         (__attribute): Define to empty unless GCC 3.1 or later.
67235         This works around a core dump on OpenBSD 3.4, which has GCC
67236         2.95.3, which dumps core when given __attribute__(()).  It also
67237         simplifies other tests, since we really don't want to bother with
67238         worrying about which ancient version of GCC supported what.
67239         Original problem reported by Yoann Vandoorselaere, with part of
67240         the fix suggested by Derek Price.
67241
67242 2005-09-24  Jim Meyering  <jim@meyering.net>
67243
67244         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67245         so we can once again use a positive bitfield width of 1 -- now we
67246         don't have to explain why we were using a bitfield width of 2.
67247
67248 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67249
67250         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67251         and similarly for the other external symbols.  Problem reported
67252         by James Gallager.
67253
67254         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67255         bug reported by Jim Meyering.
67256
67257         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67258         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67259         not needed, since socklen is a prerequisite module.
67260
67261 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67262
67263         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67264         Problem reported by Eric Blake.
67265         (getaddrinfo): Initialize se so that it's not garbage.
67266         Redo internal storage allocation so that it doesn't make unportable
67267         assumptions about alignment.
67268         Fix a memory leak.
67269
67270         * lib/utimens.c (futimens): Use futimesat if available.
67271         Prefer it to futimes since it doesn't have the futimes bug.
67272
67273         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67274         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67275         Instead, declare a function that returns a pointer to an array,
67276         and use verify_type__ to declare the size of the array.
67277         Problem and germ of a solution reported by Bruno Haible.
67278         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67279         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67280
67281 2005-09-23  Jim Meyering  <jim@meyering.net>
67282
67283         Sync from coreutils.
67284         Correct build failure (socklen_t not defined) on at least
67285         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67286         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67287
67288 2005-09-23  Jim Meyering  <jim@meyering.net>
67289
67290         * modules/getaddrinfo (Depends-on): Add socklen.
67291
67292 2005-09-23  Bruno Haible  <bruno@clisp.org>
67293
67294         * tests/test-verify.c: New file.
67295
67296 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67297
67298         Sync from coreutils.
67299
67300         * modules/argmatch (Depends-on): Add verify.
67301         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67302         unistd-safer.
67303         * modules/save-cwd (Depends-on): Likewise.
67304
67305         * modules/openat (Files): Add lib/openat-die.c.
67306         (Depends-on): Remove error, exitfail.
67307         Add dirname.
67308
67309         * modules/verify: New file.
67310         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67311         with "verify" module.
67312
67313 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67314
67315         Sync from coreutils.
67316
67317         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67318         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67319         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67320         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67321         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67322         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67323         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67324         Don't bother checking for string.h, stdlib.h, unistd.h.
67325         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67326         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67327         module's job.
67328         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67329         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67330
67331         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67332         (gl_GETDATE): Use it.
67333
67334         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67335
67336 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67337
67338         Sync from coreutils.
67339
67340         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67341         stat-time.h.
67342         * lib/argmatch.h: Include verify.h
67343         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67344         (ARGMATCH_ASSERT): Remove; unused.
67345         * lib/canonicalize.c: Assume STDC_HEADERS.
67346         * lib/exclude.c: Include "strcase.h".
67347         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67348         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67349         and stdio-safer.h.
67350         (getusershell): Call fopen, not fopen_safer.
67351         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67352         Do not include unistd-safer.h.
67353         (save_cwd): Don't call fd_safer; no longer needed
67354         now that we include fcntl--.h.
67355
67356         * lib/getdate.y (relative_time): New type.
67357         (RELATIVE_TIME_0): New constant.
67358         (parser_control): Use relative_time instead of doing it ourselves.
67359         (%union): Add new relative_time rel member.
67360         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67361         Now typeless.
67362         (relunit, relunit_snumber): Now of type rel.
67363         (zone, rel, relunit, get_date): Adjust to above changes.
67364
67365         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67366         Do not include unistd-safer.h.
67367         (getloadavg): Don't call fd_safer; no longer needed
67368         now that we include fcntl--.h.
67369
67370         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67371         (make_dir_parents): Treat ENOSYS like EEXIST.
67372
67373         Improve quality of diagnostics on restore_cwd failure.
67374         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67375         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67376         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67377         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67378         each time through the loop.  Do not diagnose restore_cwd failure;
67379         that is the caller's job (and perhaps the caller does not care).
67380
67381         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67382         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67383         If the file already exists but is not a directory, don't bother
67384         to try to make its parents.
67385         Close potential file descriptor leak if we can't chdir("/") (!).
67386         Don't always return true if chdir($PWD) fails; return true only
67387         if the requested action was done successfully (except for the
67388         chdir($PWD)).
67389         Don't log final directory unless we actually made it.
67390         Refactor to avoid duplicate code to fix up permissions.
67391         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67392
67393         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67394         to make it a bit faster and (I hope) clearer.
67395         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67396         Fix bug in formats like %2N.
67397
67398         * lib/verify.h: New file.
67399
67400 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67401
67402         Sync from coreutils.
67403         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67404
67405 2005-09-22  Jim Meyering  <jim@meyering.net>
67406
67407         Sync from coreutils.
67408
67409         * m4/lstat.m4 (gl_FUNC_LSTAT):
67410         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67411         Remove obsolete comment.
67412         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67413         * m4/xstrtod.m4: Likewise.
67414
67415         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67416
67417 2005-09-22  Jim Meyering  <jim@meyering.net>
67418
67419         Sync from coreutils.
67420
67421         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67422
67423         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67424         the .tm_year member, since otherwise gcc-4.0 would now warn about
67425         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67426
67427         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67428         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67429
67430         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67431         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67432         when run in a time zone for which daylight savings time is in effect
67433         for the starting date.
67434
67435         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67436         stop us from restricting permissions of just-created absolute-named
67437         directories.
67438         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67439         to restore initial working directory.
67440         * lib/mkdir-p.c (make_dir_parents): New parameter:
67441         different_working_dir, to tell caller if/when we change the working
67442         directory and are unable to return to the initial one.
67443         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67444         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67445         `return false'.  This fixes a bug introduced on 2004-07-30.
67446
67447         * lib/openat.c (fdopendir): Be sure to close the supplied
67448         file descriptor before returning.  This makes our replacement
67449         implementation a little closer to Solaris's, where fdopendir
67450         ties the file descriptor to the returned DIR* pointer.
67451         * lib/openat.c (unlinkat): New function.
67452         * lib/openat.h (unlinkat): Add prototype.
67453         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67454         (openat_restore_fail): Rename from openat_restore_die.
67455         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67456
67457         Provide an alternative to exiting immediately upon save_cwd or
67458         restore_cwd failure.  Now, an application can arrange e.g.,
67459         to perform a longjump in that case.
67460         * lib/openat.c: Include dirname.h.
67461         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67462         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67463         and openat_restore_die rather than calling error directly.
67464         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67465
67466         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67467         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67468         define.
67469
67470         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67471         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67472                             int utc, int nanoseconds);
67473         Background:
67474         date should not have to allocate a megabyte of virtual memory to
67475         handle a format argument like +%1048575T.  When implemented with
67476         strftime, it must allocate such a buffer, use strftime to fill it
67477         in, print it, then free it.
67478         With fprintftime, it simply prints everything and exits.
67479         With no need for memory allocation, that's one fewer way to fail.
67480         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67481         optional field width, not before, so we accept %9:z, not %:9z.
67482         (my_strftime): Be sure to use L_('x') for literals.
67483
67484         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67485         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67486         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67487         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67488         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67489         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67490         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67491         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67492         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67493         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67494         * lib/xgethostname.c, lib/xreadlink.c:
67495         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67496
67497         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67498         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67499         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67500         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67501         and don't include <sys/file.h>).
67502
67503 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67504
67505         Sync from coreutils.
67506
67507         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67508         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67509         [!LDAV_DONE]: Avoid unused variable warning.
67510
67511 2005-09-21  Bruno Haible  <bruno@clisp.org>
67512
67513         * lib/unicodeio.h (unicode_to_mb): New declaration.
67514
67515 2005-09-20  Derek Price  <derek@ximbiot.com>
67516
67517         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67518         getaddrinfo.h.
67519
67520 2005-09-20  Bruno Haible  <bruno@clisp.org>
67521
67522         * gnulib-tool: Remove trailing slashes from the values specified for
67523         --source-base, --m4-base, --tests-base, --aux-dir.
67524         Suggested by Simon Josefsson <jas@extundo.com>.
67525
67526 2005-09-20  Bruno Haible  <bruno@clisp.org>
67527
67528         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67529         func_modules_to_filelist, func_import, func_create_testdir): Make all
67530         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67531         change when gnulib-tool is invoked in a different locale.
67532
67533 2005-09-19  Simon Josefsson  <jas@extundo.com>
67534
67535         * m4/socklen.m4: Fix typo.
67536
67537 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67538
67539         Use a consistent style for including <config.h>.
67540         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67541         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67542         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67543         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67544         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67545         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67546         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67547         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67548         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67549         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67550         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67551         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67552         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67553         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67554         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67555         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67556         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67557         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67558         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67559         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67560         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67561         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67562         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67563         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67564         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67565         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67566         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67567         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67568         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67569         lib/xstrtoumax.c, lib/yesno.c:
67570         Standardize inclusion of config.h.
67571         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67572         lib/inttostr.h:  Removed inclusion of config.h from header files.
67573         * lib/inttostr.c:  Adjusted in-tree users.
67574         * lib/timespec.h: Remove superfluous warning to include config.h.
67575         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67576         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67577         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67578         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67579         config.h with HAVE_CONFIG_H.
67580
67581 2005-09-19  Jim Meyering  <jim@meyering.net>
67582
67583         * modules/pathmax (License): Change to LGPL.
67584
67585 2005-09-19  Derek Price  <derek@ximbiot.com>
67586
67587         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67588
67589 2005-09-19  Bruno Haible  <bruno@clisp.org>
67590
67591         * gnulib-tool (import): Provide default for --tests-base.
67592
67593 2005-09-19  Bruno Haible  <bruno@clisp.org>
67594
67595         * doc/quote.texi: New file, extracted from gnulib.texi.
67596         * doc/ctime.texi: New file, extracted from gnulib.texi.
67597         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67598         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67599         * doc/gnulib.texi: Include them.
67600
67601 2005-09-18  Bruno Haible  <bruno@clisp.org>
67602
67603         Portability fix.
67604         * gnulib-tool (func_readlink): New function.
67605         (func_ln_if_changed): Use it.
67606
67607 2005-09-18  Bruno Haible  <bruno@clisp.org>
67608
67609         * gnulib-tool: Support --with-tests also with --import.
67610         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67611         (func_import): Use variables $testsbase and $inctests. Emit a
67612         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67613         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67614         SUBDIRS += $testsdir.
67615         (func_create_testdir): Update.
67616
67617 2005-09-18  Bruno Haible  <bruno@clisp.org>
67618
67619         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67620         instead of $dry_run.
67621         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67622         (func_ln_if_changed): Don't handle dry-run here.
67623         (func_import): In dry-run mode, detect more precisely which actions
67624         would be performed, and don't use "...ing" verbs.
67625
67626 2005-09-18  Bruno Haible  <bruno@clisp.org>
67627
67628         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67629         (func_import): Use join on two temporary files instead of three nested
67630         loops, in order to determine which files are new or old.
67631
67632 2005-09-18  Bruno Haible  <bruno@clisp.org>
67633
67634         * gnulib-tool (func_import): Comment out code that spits out the
67635         new files with --dry-run.
67636
67637 2005-09-18  Bruno Haible  <bruno@clisp.org>
67638
67639         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67640
67641 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67642
67643         * lib/stat-time.h: New file.
67644         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67645         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67646         in a different way.
67647         (timespec_cmp): New function.
67648         * lib/utimecmp.c: Include stat-time.h.
67649         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67650         members exist, not on the obsolescent ST_MTIM_NSEC.
67651         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67652
67653 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67654
67655         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67656
67657 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67658
67659         * MODULES.html.sh (File system functions): Add stat-time.
67660         * modules/stat-time: New file.
67661         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67662         is now done in a different way, by the stat-time module.
67663         * modules/utimecmp (Depends-on): Add stat-time.
67664
67665 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67666
67667         * m4/st_mtim.m4: Remove.  Superseded by...
67668         * m4/stat-time.m4: New file.
67669         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67670         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67671
67672 2005-09-15  Derek Price  <derek@ximbiot.com>
67673
67674         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67675
67676 2005-09-15  Derek Price  <derek@ximbiot.com>
67677
67678         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67679         * lib/regex_internal.c: Ditto, using this...
67680         (__GNUC_PREREQ): ...new macro.
67681         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67682         using...
67683         (__GNUC_PREREQ): ...this new macro.
67684
67685         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67686
67687 2005-09-15  Derek Price  <derek@ximbiot.com>
67688             Paul Eggert  <eggert@cs.ucla.edu>
67689
67690         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67691         changes, consolidating in...
67692         * lib/regex_internal.h: ...this file.
67693
67694 2005-09-13  Jim Meyering  <jim@meyering.net>
67695
67696         * lib/canon-host.c: Filter through gnu indent and reword comments
67697         slightly.
67698         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67699
67700 2005-09-13  Derek Price  <derek@ximbiot.com>
67701
67702         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67703         failure.
67704         Reported by Jim Meyering  <jim@meyering.net>.
67705
67706 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67707
67708         * lib/base64.c: Typo.
67709         (base64_encode): Put b64str in initialized data section.
67710
67711 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67712
67713         Merge glibc and coreutils changes into gnulib, plus a few
67714         extra fixes.
67715         * lib/md5.c: Use #error rather than a string.
67716         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67717         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67718         (__attribute__): Define to empty for non recent-GCC.
67719         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67720         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67721         Renamed from their non-__ counterparts, with new macros replacing
67722         them if not _LIBC.  Add __THROW attribute.
67723         (rol): Remove.
67724         (struct md5_ctx): Align buffer if using GCC.
67725         * lib/sha1.h (struct sha1_ctx): Likewise.
67726         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67727         The old name was backwards.
67728         (NOTSWAP): Remove; not used.
67729         (rol): New macro, moved here from md5.h.
67730         (sha1_process_block): Remove a FIXME that doesn't make sense.
67731
67732 2005-09-12  Derek Price  <derek@ximbiot.com>
67733
67734         Return usable errors from canon-host.
67735         * lib/canon-host.h: New file.
67736         * lib/canon-host.c (canon_host): Wrap...
67737         (canon_host_r): ...this new function, which now relies exclusively on
67738         getaddrinfo.
67739         (ch_strerror): New function.
67740         (last_cherror): New global.
67741         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67742         interface.
67743         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67744         void *.
67745         (freeaddrinfo): Free ai->ai_canonname when set.
67746
67747 2005-09-12  Derek Price  <derek@ximbiot.com>
67748
67749         Make canon-host require getaddrinfo.
67750         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67751         AC_LIBSOURCE canon-host.h.  Call...
67752         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67753         gl_GETADDRINFO.
67754         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67755
67756 2005-09-12  Derek Price  <derek@ximbiot.com>
67757
67758         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67759         LGPL.
67760         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67761
67762 2005-09-12  Derek Price  <derek@ximbiot.com>
67763
67764         * lib/gai_strerror.c: Include config.h when available.  Include
67765         getaddrinfo.h before other headers to test interface.
67766         Reported by Larry Jones <lawrence.jones@ugs.com>.
67767
67768 2005-09-12  Derek Price  <derek@ximbiot.com>
67769             Paul Eggert  <eggert@cs.ucla.edu>
67770
67771         * modules/glob (Files): Add glob-libc.h.
67772
67773 2005-09-12  Derek Price  <derek@ximbiot.com>
67774             Paul Eggert  <eggert@cs.ucla.edu>
67775
67776         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67777         glob_.h, glob-libc.h.
67778         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67779
67780 2005-09-12  Derek Price  <derek@ximbiot.com>
67781             Paul Eggert  <eggert@cs.ucla.edu>
67782
67783         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67784         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67785         protecting things that should be done only in gnulib contexts.
67786         * lib/glob_.h: New file, containing only the glob things needed for
67787         gnulib.
67788         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67789         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67790         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67791         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67792         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67793         and to respect the namespace rules better.
67794
67795 2005-09-08  Simon Josefsson  <jas@extundo.com>
67796
67797         * modules/socklen: New file.
67798
67799 2005-09-08  Simon Josefsson  <jas@extundo.com>
67800
67801         * m4/socklen.m4: New file.
67802
67803 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67804
67805         * modules/utimens (Files): Add m4/utimbuf.m4, since
67806         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67807         Reported by Sergey Poznyakoff.
67808
67809 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67810
67811         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67812         definitions, since that's the preferred style in glibc.
67813         Fix a minor spacing issue, and update copyright notice to match
67814         glibc's.
67815
67816 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67817
67818         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67819
67820 2005-09-06  Simon Josefsson  <jas@extundo.com>
67821
67822         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67823         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67824
67825 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67826
67827         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67828         warning.
67829
67830 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67831
67832         * config/srclist.txt: Add glibc bug 1302.
67833
67834 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         Change bitset word type from unsigned int to unsigned long int,
67837         as this has better performance on typical 64-bit hosts.
67838         Port bitset code to hosts with unusual word sizes.
67839         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67840         (build_collating_symbol):
67841         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67842         argument is a bitset.  This is merely a style issue, but it makes
67843         it clearer that an entire array is expected.
67844         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67845         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67846         Port to the case where bitset_word is not the same as unsigned int.
67847         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67848         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67849         Likewise.
67850         * lib/regexec.c (check_dst_limits_calc_pos_1,
67851         check_subexp_matching_top):
67852         (build_trtable, group_nodes_into_DFAstates):
67853         Likewise.
67854         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67855         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67856         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67857         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67858         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67859         * lib/regcomp.c (optimize_subexps, lower_subexp):
67860         Work even if bitset_word has holes in its bitwise representation.
67861         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67862         * lib/regexec.c (check_dst_limits_calc_pos_1,
67863         check_subexp_matching_top):
67864         Likewise.
67865         * lib/regex_internal.c (re_string_reconstruct):
67866         Don't assume UCHAR_MAX == 255.
67867         * lib/regex_internal.h (bitset_set_all): Likewise.
67868         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67869         All uses changed.
67870         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67871         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67872         All uses changed.
67873         (BITSET_WORD_MAX): New macro.
67874         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67875         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67876         (bitset_empty, bitset_copy):
67877         Prefer sizeof (bitset) to multiplying it out ourselves.
67878         (bitset_not_merge): Remove; unused.
67879         (bitset_contain): Return bool, not unsigned int with one bit on.
67880         All callers changed.
67881         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67882         alignment than re_node_set; do this by defining a new internal
67883         type struct dests_alloc and using it to allocate memory.
67884
67885 2005-09-05  Bruno Haible  <bruno@clisp.org>
67886
67887         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67888         links.
67889
67890 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67891
67892         * modules/size_max (Makefile.am): Add size_max.h
67893
67894 2005-09-04  Derek Price  <derek@ximbiot.com>
67895
67896         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67897
67898 2005-09-03  Simon Josefsson  <jas@extundo.com>
67899
67900         * gnulib-tool: Fix typo.
67901
67902 2005-09-03  Simon Josefsson  <jas@extundo.com>
67903
67904         * config/srclist.txt: Add glibc bug 1293.
67905
67906 2005-09-03  Derek Price  <derek@ximbiot.com>
67907
67908         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67909         From Larry Jones <lawrence.jones@ugs.com>.
67910
67911 2005-09-02  Simon Josefsson  <jas@extundo.com>
67912
67913         * modules/socklen: New file.
67914
67915 2005-09-02  Simon Josefsson  <jas@extundo.com>
67916
67917         * modules/havelib: New module.
67918
67919         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67920         Use havelib.
67921
67922 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67923
67924         Check for arithmetic overflow when calculating sizes, to prevent
67925         some buffer-overflow issues.  These patches are conservative, in the
67926         sense that when I couldn't determine whether an overflow was possible,
67927         I inserted a run-time check.
67928         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67929         macros.
67930         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67931         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67932         (re_xnrealloc, re_x2nrealloc): New inline functions.
67933         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67934         parse_bracket_exp):
67935         (build_equiv_class, build_charclass): Check for arithmetic overflow
67936         in size expression calculations.
67937         * lib/regex_internal.c (re_string_realloc_buffers):
67938         (build_wcs_upper_buffer, re_node_set_add_intersect):
67939         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67940         (re_dfa_add_node, register_state): Likewise.
67941         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67942         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67943         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67944         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67945
67946 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67947
67948         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67949         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67950
67951 2005-09-02  Bruno Haible  <bruno@clisp.org>
67952
67953         Support for lib vs. lib64 distinction on biarch platforms.
67954         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67955         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67956         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67957
67958 2005-09-02  Bruno Haible  <bruno@clisp.org>
67959
67960         * gnulib-tool (import): In the other first-use case, provide defaults
67961         as well.
67962
67963 2005-09-02  Bruno Haible  <bruno@clisp.org>
67964
67965         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67966         patches not yet found in the latest gettext release.
67967
67968 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67969
67970         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67971         to avoid a collision with bits/local_lim.h in glibc.
67972         All uses changed.  Problem reported by Dmitry V. Levin in
67973         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67974
67975         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67976         bugs in int versus size_t comparisons.
67977         (re_string_context_at): Fix bug where the code assumed that
67978         Idx is signed.
67979
67980         Use bool where appropriate.
67981         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67982         All callers changed.
67983         (calc_eclosure_iter): Likewise, for ROOT arg.
67984         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67985         (build_charclass_op): Likewise, for NON_MATCH arg.
67986         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67987         (re_string_construct_common): Likewise, for ICASE arg.
67988         * lib/regexec.c (re_search_2_stub, re_search_stub):
67989         Likewise, for RET_LEN arg.
67990         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67991         (set_regs): Likewise, for FL_BACKTRACK arg.
67992         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67993         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67994         (calc_eclosure_iter, parse_bracket_exp):
67995         Use bool for internal variables that are booleans.
67996         * lib/regexec.c (re_search_internal, check_matching,
67997         proceed_next_node):
67998         (set_regs, build_sifted_states, sift_states_bkref):
67999         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
68000         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68001         (find_collation_sequence_value):
68002         Likewise.
68003         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
68004         (re_node_set_compare):
68005         Return bool, not int. All callers changed.
68006         * lib/regexec.c (check_halt_node_context, check_dst_limits):
68007         (build_trtable, check_node_accept): Likewise.
68008         * lib/regex_internal.h: Include stdbool.h.
68009
68010         Fix bugs uncovered when converting to bool.
68011         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
68012         failure instead of charging ahead blindly.
68013         * lib/regex_internal.c (register_state): Likewise.
68014         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
68015         for freeing internal storage.
68016         (group_nodes_into_DFA_states): Use unsigned int, not int, for
68017         bitset pieces used as boolean, to avoid undefined behavior
68018         on hosts that do int overflow checking.
68019
68020 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68021
68022         * config/srclist.txt: Add glibc bugs 1285-1287.
68023
68024 2005-09-01  Jim Meyering  <jim@meyering.net>
68025
68026         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
68027         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
68028         Require gl_STAT_MACROS, too.
68029
68030 2005-09-01  Bruno Haible  <bruno@clisp.org>
68031
68032         * gnulib-tool (import): In the first-use case, provide defaults.
68033
68034 2005-09-01  Bruno Haible  <bruno@clisp.org>
68035
68036         * gnulib-tool (func_import): Remove the .tmp files.
68037
68038 2005-09-01  Bruno Haible  <bruno@clisp.org>
68039
68040         * gnulib-tool (func_import): Fix handling of symbolic links.
68041
68042 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68043
68044         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
68045         old glibc regex code mishandles strings longer than 2**31 bytes.
68046         This patch fixes this when the regex code is used in gnulib
68047         (i.e., outside glibc).
68048
68049         This patch should not affect the use of the regex code inside
68050         glibc.  No doubt this problem also needs to be handled for glibc
68051         as well, but the result will be an incompatible change to the
68052         glibc ABI, and the old ABI will have to be supported too.  That
68053         can be the the subject for another patch.
68054
68055         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
68056         governing whether the rest of this patch is active.  By default,
68057         the macro is disabled and the patch has no effect.
68058         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
68059         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
68060         (struct re_pattern_buffer, re_search, re_search_2, re_match):
68061         (re_match_2, re_set_registers): Use the new types.
68062         * lib/regex_internal.h (Idx, re_hashval_t): New types.
68063         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
68064         New macros.
68065         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
68066         (re_string_context_at, bin_tree_t, re_dfastate_t):
68067         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
68068         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
68069         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
68070         (re_string_char_size_at, re_string_wchar_at):
68071         (re_string_elem_size_at):
68072         Use the new types and macros to port to 64-bit hosts.
68073         Use unsigned types for internal values, so that the code
68074         mostly works even for arrays larger than SSIZE_MAX.
68075         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
68076         (search_duplicated_node, calc_eclosure_iter, fetch_number):
68077         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
68078         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
68079         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
68080         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
68081         (calc_inveclosure, parse_dup_op, build_range_exp):
68082         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
68083         (fetch_number, create_token_tree, mark_opt_subexp):
68084         Likewise.
68085         * lib/regex_internal.c (re_string_construct_common,
68086         create_ci_newstate):
68087         (create_cd_newstate, re_string_allocate, re_string_construct):
68088         (re_string_realloc_buffers, build_wcs_upper_buffer):
68089         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68090         (re_string_reconstruct, re_string_peek_byte_case):
68091         (re_string_fetch_byte_case, re_string_context_at):
68092         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68093         (re_node_set_init_copy, re_node_set_add_intersect):
68094         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68095         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68096         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68097         (re_acquire_state, re_acquire_state_context, register_state):
68098         Likewise.
68099         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
68100         search_cur_bkref_entry):
68101         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
68102         (re_search_internal, re_search_2_stub, re_search_stub)
68103         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
68104         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
68105         (update_cur_sifted_state, check_dst_limits):
68106         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68107         (check_subexp_limits, sift_states_bkref, merge_state_array):
68108         (check_subexp_matching_top, get_subexp, get_subexp_sub):
68109         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
68110         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68111         (expand_bkref_cache, check_node_accept_bytes):
68112         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
68113         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
68114         (acquire_init_state_context, check_halt_node_context):
68115         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
68116         (sift_states_backward, clean_state_log_if_needed):
68117         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
68118         (find_recover_state, transit_state_sb, transit_state_mb):
68119         (transit_state_bkref, build_trtable, match_ctx_clean):
68120         Likewise.
68121         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
68122         to work around an assumption that REG_MISSING is negative.
68123
68124         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
68125         (seek_collating_symbol_entry) [defined _LIBC]:
68126         (lookup_collation_sequence_value) [defined _LIBC]:
68127         (build_range_exp, build_collating_symbol) [defined _LIBC]:
68128         Use prototypes rather than old-style function definitions.
68129         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
68130         (transit_state_sb) [0]:
68131         (find_collation_sequence_value) [defined _LIBC]: Likewise.
68132
68133         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
68134         rm_eo.
68135
68136         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
68137         (optimize_subexps, lower_subexp):
68138         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
68139         since the signed shift might overflow.  Use 1u<<31 instead.
68140         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68141         Likewise.
68142         * lib/regexec.c (check_dst_limits_calc_pos_1,
68143         check_subexp_matching_top): Likewise.
68144
68145         * lib/regcomp.c (optimize_subexps, lower_subexp):
68146         Use CHAR_BIT rather than 8, for clarity.
68147         * lib/regexec.c (check_dst_limits_calc_pos_1):
68148         (check_subexp_matching_top): Likewise.
68149         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
68150         have to worry about portability issues when shifting it left.
68151         Remove no-longer-needed test for table_size > 0.
68152         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
68153         in a word, as the resulting behavior is undefined.
68154         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
68155         in one case, a <= should have been an <, and in another case the
68156         whole test was missing.
68157         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
68158         the standard name CHAR_BIT.
68159         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
68160         this is not true on one's complement and signed-magnitude hosts.
68161
68162         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
68163         next_last_offset.
68164         (struct re_dfa_t): Remove unused member states_alloc.
68165         * lib/regcomp.c (init_dfa): Don't initialize unused members.
68166
68167 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
68170         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
68171         and large-file glibc and in 32-bit large-file Solaris.
68172
68173 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68174
68175         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
68176         lengths fit in regoff_t; this isn't true if regoff_t is the same
68177         width as size_t.
68178         * lib/regex.c (re_search_internal): 5th arg is LAST_START
68179         (= START + RANGE) instead of RANGE.  This avoids overflow
68180         problems when regoff_t is the same width as size_t.
68181         All callers changed.
68182         (re_search_2_stub): Check for overflow when adding the
68183         sizes of the two strings.
68184         (re_search_stub): Check for overflow when adding START
68185         to RANGE; if it occurs, substitute the extreme value.
68186
68187 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68188
68189         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
68190
68191 2005-08-31  Jim Meyering  <jim@meyering.net>
68192
68193         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
68194         a pointer-to-const.
68195         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
68196         (register_state): Likewise.
68197         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
68198         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68199         (group_nodes_into_DFAstates): Likewise.
68200
68201 2005-08-31  Jim Meyering  <jim@meyering.net>
68202
68203         * check-module: Add a FIXME comment.
68204
68205 2005-08-31  Eric Blake  <ebb9@byu.net>
68206
68207         * modules/unistd-safer (Files): Add unistd--.h.
68208         * modules/stdio-safer (Files): Add stdio--.h.
68209
68210 2005-08-31  Derek Price  <derek@ximbiot.com>
68211
68212         * lib/getdelim.c (getdelim): Return EOF on EOF.
68213         Reported by Larry Jones <lawrence.jones@ugs.com>.
68214
68215 2005-08-31  Bruno Haible  <bruno@clisp.org>
68216
68217         Avoid unnecessary diffs in the generated lib/Makefile.am.
68218         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
68219         the generated files.
68220         (func_import): Don't set cmd.
68221
68222 2005-08-31  Bruno Haible  <bruno@clisp.org>
68223
68224         * lib/strstr.c: Include <stddef.h>, for NULL.
68225         * lib/strcasestr.c: Likewise.
68226         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68227
68228 2005-08-31  Bruno Haible  <bruno@clisp.org>
68229
68230         * gnulib-tool: New option --macro-prefix.
68231         (func_import): Use macro_prefix.
68232         (import): Handle option --macro-prefix.
68233
68234 2005-08-31  Bruno Haible  <bruno@clisp.org>
68235
68236         * gnulib-tool (import): Rename most ac_* variables to cached_*.
68237         Also use new variables cached_lgpl, cached_libtool.
68238
68239 2005-08-31  Bruno Haible  <bruno@clisp.org>
68240
68241         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68242         always instantiating them.
68243
68244 2005-08-31  Bruno Haible  <bruno@clisp.org>
68245
68246         * gnulib-tool (func_import): Read the previous cached settings
68247         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68248         earlier added by gnulib but are now dropped. Warn when a gnulib file
68249         overwrites a non-gnulib file.
68250
68251 2005-08-31  Bruno Haible  <bruno@clisp.org>
68252
68253         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68254         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68255         projects that don't keep autogenerated files in CVS. Put into
68256         actioncmd only the specified modules, not the transitive closure.
68257
68258 2005-08-31  Bruno Haible  <bruno@clisp.org>
68259
68260         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68261         Create directories that shall be filled.
68262         (import): Don't look for gl_* macros in configure.ac. Recurse across
68263         all directories containing a gnulib-cache.m4 files, if meaningful.
68264
68265 2005-08-31  Bruno Haible  <bruno@clisp.org>
68266
68267         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68268         (import): Set seen_libtool when we see gl_LIBTOOL.
68269
68270 2005-08-31  Bruno Haible  <bruno@clisp.org>
68271
68272         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68273         declaration macro definitions from generated gnulib.m4.
68274
68275 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68276
68277         * lib/iconvme.h: Add prototype for iconv_alloc.
68278
68279 2005-08-29  Simon Josefsson  <jas@extundo.com>
68280
68281         * lib/iconvme.c: Fix errno.
68282
68283 2005-08-29  Bruno Haible  <bruno@clisp.org>
68284
68285         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68286         that it works when the directory contains spaces.
68287
68288 2005-08-29  Bruno Haible  <bruno@clisp.org>
68289
68290         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68291
68292 2005-08-29  Bruno Haible  <bruno@clisp.org>
68293
68294         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68295         Emit more advice.
68296
68297 2005-08-29  Bruno Haible  <bruno@clisp.org>
68298         and Stepan Kasal  <kasal@ucw.cz>
68299
68300         * check-module: If more parameters are given, check each of them
68301         separately; add more exceptions, as noted by Jim Meyering.
68302         (check_module): New procedure.
68303         (%exempt_header): Now contains all exceptions.
68304
68305 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68306
68307         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68308
68309 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68310
68311         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68312
68313 2005-08-28  Bruno Haible  <bruno@clisp.org>
68314
68315         * m4/gnulib-tool.m4: New file.
68316
68317 2005-08-27  Jim Meyering  <jim@meyering.net>
68318
68319         * modules/unistd-safer (Files): Add pipe-safer.c.
68320         * modules/fcntl-safer (Files): Add creat-safer.c.
68321
68322 2005-08-27  Jim Meyering  <jim@meyering.net>
68323
68324         * m4/stdlib-safer.m4: New file.  From coreutils.
68325         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68326         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68327         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68328         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68329         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68330
68331 2005-08-27  Jim Meyering  <jim@meyering.net>
68332
68333         * lib/fopen-safer.c: Merge minor changes from coreutils.
68334         * lib/dup-safer.c: Likewise.
68335         * lib/fd-safer.c: Likewise.
68336
68337         Merge from coreutils.
68338         * lib/stdio--.h: New file.
68339         * lib/stdlib--.h: New file.
68340         * lib/mkstemp-safer.c: New file.
68341
68342         GNU tar needs these.
68343         * lib/pipe-safer.c: New file.
68344         * lib/creat-safer.c: New file.
68345         * lib/fcntl--.h (creat): Define to creat_safer.
68346         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68347         * lib/unistd--.h (pipe): Define to pipe_safer.
68348         * lib/unistd-safer.h: Declare pipe_safer.
68349
68350 2005-08-26  Simon Josefsson  <jas@extundo.com>
68351
68352         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68353         Haible <bruno@clisp.org>.
68354
68355 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68356
68357         * lib/regex_internal.h: Remove all references to
68358         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68359         or better.
68360         (bitset_not, bitset_merge, bitset_not_merge):
68361         (bitset_mask, re_string_allocate, re_string_construct):
68362         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68363         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68364         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68365         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68366         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68367         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68368         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68369         (re_acquire_state_context):
68370         Remove unnecessary forward decls.
68371         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68372         Put __attribute at function definition,
68373         now that the function decl has been removed.
68374         * lib/regex_internal.c (re_string_peek_byte_case):
68375         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68376         Likewise.
68377
68378 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68379
68380         * m4/regex.m4: Add AC_PREREQ(2.50).
68381         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68382
68383 2005-08-25  Simon Josefsson  <jas@extundo.com>
68384
68385         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68386         __fsetlocking.
68387
68388 2005-08-25  Simon Josefsson  <jas@extundo.com>
68389
68390         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68391         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68392         GLIBC specific code.
68393
68394 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68395
68396         Make regex safe for g++.  This fixes one real bug (an "err"
68397         that should have been "*err").  g++ problem reported by
68398         Sam Steingold.
68399         * lib/regex_internal.h (re_calloc): New macro, consistent with
68400         re_malloc etc.  All callers of calloc changed to use re_calloc.
68401         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68402         not int.  All callers changed.
68403         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68404         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68405         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68406         (find_recover_state): Change "err" to "*err"; this fixes what
68407         appears to be a real bug.
68408         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68409         versus int.
68410
68411 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68412
68413         * modules/regex (Depends-on): Add malloc, since the code
68414         assumes that !malloc(0) means failure.
68415
68416 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68419
68420         alloca modernization/simplification for regex.
68421         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68422         needs to be at the start of the file, and can be moved into
68423         regex_internal.h and simplified.
68424         * lib/regex_internal.h: Include <alloca.h>.
68425         (__libc_use_alloca) [!defined _LIBC]: New macro.
68426         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68427         now works outside glibc.
68428
68429 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68430
68431         * config/srclist.txt: Add glibc bugs 1241, 1245.
68432
68433 2005-08-25  Jim Meyering  <jim@meyering.net>
68434
68435         * lib/open-safer.c: Include <config.h>.
68436         Otherwise, we'd lose LARGEFILE support in any file using
68437         e.g. "fcntl--.h"
68438
68439 2005-08-25  Bruno Haible  <bruno@clisp.org>
68440
68441         * m4/minmax.m4: Require autoconf 2.52.
68442         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68443         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68444         alternatives of translit over the alphabet.
68445         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68446
68447 2005-08-24  Simon Josefsson  <jas@extundo.com>
68448
68449         * tests/test-getpass.c: New file.
68450
68451 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68452
68453         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68454         for GNU regex features.
68455
68456 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68457
68458         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68459         * lib/regex.h (regerror): Likewise.
68460
68461         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68462         requires this.  (The code never needed it.)
68463
68464         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68465         All uses of recently-renamed identifiers changed to use the new,
68466         POSIX-compliant names.  The code will build and run just fine
68467         without these changes, but it's better to eat our own dog food
68468         and use the standard-conforming names.
68469
68470         * lib/regex.h: Fix a multitude of POSIX name space violations.
68471         These changes have an effect only for programs that define
68472         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68473         do not change anything for programs compiled in the normal way.
68474         Also, there is no effect on the ABI.
68475
68476         (_REGEX_SOURCE): New macro.
68477         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68478         defined and _GNU_SOURCE is not; this fixes a name space violation.
68479
68480         Rename the following macros to obey POSIX requirements.
68481         The old names are still visible as macros if _REGEX_SOURCE is defined.
68482         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68483         RE_BACKSLASH_ESCAPE_IN_LISTS.
68484         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68485         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68486         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68487         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68488         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68489         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68490         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68491         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68492         (REG_INTERVALS): renamed from RE_INTERVALS.
68493         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68494         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68495         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68496         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68497         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68498         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68499         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68500         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68501         RE_UNMATCHED_RIGHT_PAREN_ORD.
68502         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68503         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68504         (REG_DEBUG): renamed from RE_DEBUG.
68505         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68506         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68507         unusual, since we can't clash with the POSIX REG_ICASE.
68508         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68509         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68510         (REG_NO_SUB): renamed from RE_NO_SUB.
68511         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68512         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68513         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68514         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68515         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68516         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68517         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68518         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68519         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68520         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68521         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68522         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68523         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68524         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68525         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68526         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68527         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68528         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68529         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68530         (REG_FIXED): Renamed from REGS_FIXED.
68531         (REG_NREGS): Renamed from RE_NREGS.
68532
68533         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68534         of other REG_* macros, since POSIX says the user is allowed to
68535         #undef these macros selectively.
68536
68537         (reg_errcode_t): Update comment stating what other tables need
68538         to be consistent.
68539
68540         Rename the following enum values to obey POSIX requirements.
68541         The old names are still visible as macros.
68542         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68543         is not defined, since GNU is supposed to be a superset of POSIX as
68544         much as possible, and since we want reg_errcode_t to be a signed
68545         type for implementation consistency.
68546         (_REG_NOERROR): Renamed from REG_NOERROR.
68547         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68548         (_REG_BADPAT): Renamed from REG_BADPAT.
68549         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68550         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68551         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68552         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68553         (_REG_EBRACK): Renamed from REG_EBRACK.
68554         (_REG_EPAREN): Renamed from REG_EPAREN.
68555         (_REG_EBRACE): Renamed from REG_EBRACE.
68556         (_REG_BADBR): Renamed from REG_BADBR.
68557         (_REG_ERANGE): Renamed from REG_ERANGE.
68558         (_REG_ESPACE): Renamed from REG_ESPACE.
68559         (_REG_BADRPT): Renamed from REG_BADRPT.
68560         (_REG_EEND): Renamed from REG_EEND.
68561         (_REG_ESIZE): Renamed from REG_ESIZE.
68562         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68563         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68564         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68565         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68566         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68567
68568         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68569         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68570         changed.  But support the old name if the new one is not defined
68571         and if _REGEX_SOURCE.
68572
68573         Change the following member names in struct re_pattern_buffer.
68574         The old names are still supported if !_REGEX_SOURCE.
68575         The new names are always supported, regardless of _REGEX_SOURCE.
68576         (re_buffer): Renamed from buffer.
68577         (re_allocated): Renamed from allocated.
68578         (re_used): Renamed from used.
68579         (re_syntax): Renamed from syntax.
68580         (re_fastmap): Renamed from fastmap.
68581         (re_translate): Renamed from translate.
68582         (re_can_be_null): Renamed from can_be_null.
68583         (re_regs_allocated): Renamed from regs_allocated.
68584         (re_fastmap_accurate): Renamed from fastmap_accurate.
68585         (re_no_sub): Renamed from no_sub.
68586         (re_not_bol): Renamed from not_bol.
68587         (re_not_eol): Renamed from not_eol.
68588         (re_newline_anchor): Renamed from newline_anchor.
68589
68590         Change the following member names in struct re_registers.
68591         The old names are still supported if !_REGEX_SOURCE.
68592         The new names are always supported, regardless of _REGEX_SOURCE.
68593         (rm_num_regs): Renamed from num_regs.
68594         (rm_start): Renamed from start.
68595         (rm_end): Renamed from end.
68596
68597         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68598         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68599         Prepend __ to parameter names.
68600
68601         Undo yesterday's changes.
68602
68603 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68606         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68607         lib/regex.c.
68608
68609 2005-08-24  Jim Meyering  <jim@meyering.net>
68610
68611         Sync from coreutils.
68612         * m4/fcntl-safer.m4: New file.
68613
68614         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68615         and object files for this module.
68616
68617 2005-08-24  Jim Meyering  <jim@meyering.net>
68618
68619         Sync from coreutils.
68620         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68621
68622 2005-08-24  Jim Meyering  <jim@meyering.net>
68623
68624         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68625         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68626
68627 2005-08-24  Jim Meyering  <jim@meyering.net>
68628
68629         * modules/fcntl-safer: New module.
68630         * modules/fts (Depends-on): Add fcntl-safer.
68631         * MODULES.html.sh (File descriptor based Input/Output):
68632         Add fcntl-safer.
68633
68634 2005-08-24  Bruno Haible  <bruno@clisp.org>
68635
68636         Support for unit test modules.
68637         * modules/README: Mention tests modules.
68638         * modules/TEMPLATE-TESTS: New file.
68639         * gnulib-tool: New options --extract-tests-module, --with-tests and
68640         --tests-base (unused for the moment).
68641         (testsbase, inctests): New variables.
68642         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68643         (func_verify_module): Exclude TEMPLATE-TESTS.
68644         (func_verify_nontests_module, func_verify_tests_module): New functions.
68645         (func_get_dependencies): Add implicit dependency for tests modules.
68646         (func_get_tests_module): New function.
68647         (func_modules_transitive_closure): When --with-tests was specified,
68648         include the unit tests as well, unless explicitly avoided.
68649         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68650         (func_emit_tests_Makefile_am): New function.
68651         (func_create_testdir): When --with-tests was specified, emit a
68652         tests/ directory.
68653         * MODULES.html.sh (Future developments): Update.
68654
68655 2005-08-24  Bruno Haible  <bruno@clisp.org>
68656
68657         * modules/tls-tests: New file.
68658         * tests/test-tls.c: New file, from GNU gettext.
68659
68660 2005-08-24  Bruno Haible  <bruno@clisp.org>
68661
68662         * modules/lock-tests: New file.
68663         * tests/test-lock.c: New file, from GNU gettext.
68664
68665 2005-08-24  Bruno Haible  <bruno@clisp.org>
68666
68667         * lib/lock.h: Add multiple inclusion guard.
68668         * lib/tls.h: Add multiple inclusion guard.
68669
68670 2005-08-24  Bruno Haible  <bruno@clisp.org>
68671
68672         * gnulib-tool: Add support for the --aux-dir option to
68673         --create-testdir, --create-megatestdir, --test, --megatest.
68674         (func_create_testdir, func_create_megatestdir): Optionally emit a
68675         AC_CONFIG_AUX_DIR directive.
68676         (create-testdir, create-megatestdir, test, megatest): Provide a
68677         default value for $auxdir.
68678
68679 2005-08-24  Bruno Haible  <bruno@clisp.org>
68680
68681         * gnulib-tool (import): Use compound statement instead of subshell
68682         where possible.
68683
68684 2005-08-24  Bruno Haible  <bruno@clisp.org>
68685
68686         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68687
68688 2005-08-24  Bruno Haible  <bruno@clisp.org>
68689
68690         * gnulib-tool (func_version): Update.
68691
68692 2005-08-24  Bruno Haible  <bruno@clisp.org>
68693
68694         * gnulib-tool (func_import, func_create_testdir,
68695         func_create_megatestdir): Quote all autoconf macro arguments.
68696
68697 2005-08-24  Bruno Haible  <bruno@clisp.org>
68698
68699         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68700         option --force, because --force causes the aclocal.m4 of each
68701         subdirectory to be newer than the corresponding config.h.in.
68702
68703 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68704
68705         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68706         All contents moved to gl_REGEX.
68707         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68708         assume that it does.
68709
68710 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68711
68712         * lib/regex.h (REG_NOSYS)
68713         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68714         Define, since POSIX requires it as of 2001.
68715         (_REG_ENOSYS)
68716         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68717         New private symbol, used to keep the enum signed in all cases.
68718         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68719         Youngman in
68720         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68721
68722         * lib/regex_internal.c (re_string_skip_chars, register_state):
68723         (calc_state_hash):
68724         Remove forward decls; no longer needed now that we use prototypes.
68725         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68726         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68727         (clean_state_log_if_needed): Likewise.
68728
68729 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68730
68731         * config/srclist.txt: Add glibc bugs 1231-1233.
68732
68733 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68734
68735         Fix problems reported by Sam Steingold in
68736         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68737         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68738         assumed that reg_errcode_t is a signed type, which is not
68739         necessarily true if _XOPEN_SOURCE is not defined.
68740         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68741         since some compilers warn about it otherwise.
68742
68743 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68744
68745         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68746         (init_word_char, create_initial_state, duplicate_node_closure):
68747         (fetch_token, peek_token_bracket, build_range_exp):
68748         (build_collating_symbol): Remove forward decls; no longer needed
68749         now that we use prototypes.
68750
68751         * lib/regcomp.c:
68752         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68753         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68754         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68755         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68756         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68757         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68758         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68759         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68760         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68761         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68762         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68763         (build_charclass, build_charclass_op, fetch_number, create_tree):
68764         (create_token_tree, mark_opt_subexp, duplicate_tree):
68765         Use prototypes rather than old-style definitions.
68766
68767         * lib/regex_internal.c:
68768         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68769         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68770         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68771         (re_string_reconstruct, re_string_peek_byte_case):
68772         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68773         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68774         (re_node_set_init_copy, re_node_set_add_intersect):
68775         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68776         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68777         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68778         (re_acquire_state, re_acquire_state_context, register_state):
68779         (create_ci_newstate, create_cd_newstate, free_state):
68780         Likewise.
68781         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68782         re_search_2):
68783         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68784         (re_search_internal, prune_impossible_nodes):
68785         (acquire_init_state_context, check_matching, static):
68786         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68787         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68788         (update_regs, sift_states_backward, build_sifted_states):
68789         (clean_state_log_if_needed, merge_state_array):
68790         (update_cur_sifted_state, add_epsilon_src_nodes):
68791         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68792         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68793         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68794         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68795         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68796         (check_arrival, check_arrival_add_next_nodes):
68797         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68798         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68799         (check_node_accept_bytes, check_node_accept, extend_buffers):
68800         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68801         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68802         (sift_ctx_init):
68803         Likewise.
68804
68805         * lib/regex_internal.h:
68806         (re_string_allocate, re_string_construct, re_string_reconstruct):
68807         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68808         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68809         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68810         (re_string_context_at, re_string_peek_byte_case):
68811         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68812         is defined, since we now use prototypes always.
68813
68814         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68815         C89 or better.  All uses removed.
68816
68817 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68818
68819         * config/srclist.txt: Add glibc bugs 1220-1227.
68820
68821 2005-08-20  Jim Meyering  <jim@meyering.net>
68822
68823         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68824         of unused local, dfa.
68825
68826 2005-08-20  Bruno Haible  <bruno@clisp.org>
68827
68828         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68829
68830 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68831
68832         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68833         (re_node_set_insert_last, re_dfa_add_node):
68834         Rename local variables to avoid GCC shadowing warnings.
68835
68836 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68837
68838         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68839         [defined lint]: Suppress bogus uninitialized-variable warnings.
68840
68841         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68842         and let the caller return REG_ESPACE if out of space.  This
68843         removes an uninitialied-variable warning with GCC 4.0.1, and also
68844         avoids taking the address of a local variable.  All callers
68845         changed.
68846
68847 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68848
68849         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68850         $LIBCSRC/posix/regexec.c.
68851         Add glibc bug 1217 for regcomp.c.
68852
68853 2005-08-19  Jim Meyering  <jim@meyering.net>
68854
68855         * lib/regexec.c (proceed_next_node): Redo local variables to
68856         avoid GCC shadowing warnings.
68857
68858 2005-08-18  Bruno Haible  <bruno@clisp.org>
68859
68860         * lib/strstr.c (strstr): Fix return value in multibyte case.
68861         * lib/strcasestr.c (strcasestr): Likewise.
68862
68863 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68864
68865         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68866
68867 2005-08-17  Jim Meyering  <jim@meyering.net>
68868
68869         Make the %s format (seconds since the epoch) work for a negative
68870         number and when used with a zero-padded field width, e.g. %015s.
68871
68872         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68873         label so that it precedes the code to set `digits'.  Otherwise,
68874         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68875         print `00-22'.  Now, it prints `-0022', as it should.
68876
68877 2005-08-17  Bruno Haible  <bruno@clisp.org>
68878
68879         * modules/strstr (Files): Add m4/mbrtowc.m4.
68880         (Depends-on): Add mbuiter.
68881
68882 2005-08-17  Bruno Haible  <bruno@clisp.org>
68883
68884         * modules/strcasestr: New file.
68885         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68886         strcasestr.
68887
68888 2005-08-17  Bruno Haible  <bruno@clisp.org>
68889
68890         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68891
68892 2005-08-17  Bruno Haible  <bruno@clisp.org>
68893
68894         * modules/mbuiter: New file.
68895         * MODULES.html.sh (Extended multibyte and wide character utilities):
68896         Add mbuiter.
68897
68898 2005-08-17  Bruno Haible  <bruno@clisp.org>
68899
68900         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68901         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68902
68903 2005-08-17  Bruno Haible  <bruno@clisp.org>
68904
68905         * m4/strcasestr.m4: New file.
68906
68907 2005-08-17  Bruno Haible  <bruno@clisp.org>
68908
68909         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68910         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68911
68912 2005-08-17  Bruno Haible  <bruno@clisp.org>
68913
68914         * lib/strcasestr.h: New file.
68915         * lib/strcasestr.c: New file.
68916
68917 2005-08-17  Bruno Haible  <bruno@clisp.org>
68918
68919         * lib/strcasecmp.c: Use mbuiter.h.
68920
68921 2005-08-17  Bruno Haible  <bruno@clisp.org>
68922
68923         * lib/mbuiter.h: New file.
68924
68925 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68926
68927         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68928         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68929         and gl_GETOPT are both invoked via different paths (as happens
68930         with GNU tar CVS because it uses both argp and getopt), the former
68931         wins.
68932
68933 2005-08-16  Bruno Haible  <bruno@clisp.org>
68934
68935         * modules/tls: New file.
68936         * MODULES.html.sh (Multithreading): Add tls.
68937
68938 2005-08-16  Bruno Haible  <bruno@clisp.org>
68939
68940         * modules/strnlen1: New file.
68941         * MODULES.html.sh (String handling): Add strnlen1.
68942
68943 2005-08-16  Bruno Haible  <bruno@clisp.org>
68944
68945         * modules/strcase (Files): Add m4/mbrtowc.m4.
68946         (Depends-on): Add strnlen1, mbchar.
68947
68948 2005-08-16  Bruno Haible  <bruno@clisp.org>
68949
68950         * modules/mbiter: New file.
68951         * MODULES.html.sh (Extended multibyte and wide character utilities):
68952         Add mbiter.
68953
68954 2005-08-16  Bruno Haible  <bruno@clisp.org>
68955
68956         * modules/mbfile: New file.
68957         * MODULES.html.sh (Extended multibyte and wide character utilities):
68958         Add mbfile.
68959
68960 2005-08-16  Bruno Haible  <bruno@clisp.org>
68961
68962         * modules/mbchar: New file.
68963         * MODULES.html.sh (Extended multibyte and wide character utilities):
68964         New section.
68965
68966 2005-08-16  Bruno Haible  <bruno@clisp.org>
68967
68968         * m4/tls.m4: New file, from GNU gettext.
68969
68970 2005-08-16  Bruno Haible  <bruno@clisp.org>
68971
68972         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68973         always.
68974         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68975
68976 2005-08-16  Bruno Haible  <bruno@clisp.org>
68977
68978         * m4/mbiter.m4: New file.
68979
68980 2005-08-16  Bruno Haible  <bruno@clisp.org>
68981
68982         * m4/mbfile.m4: New file.
68983
68984 2005-08-16  Bruno Haible  <bruno@clisp.org>
68985
68986         * m4/mbchar.m4: New file.
68987
68988 2005-08-16  Bruno Haible  <bruno@clisp.org>
68989
68990         * lib/tls.h: New file, from GNU gettext.
68991         * lib/tls.c: New file, from GNU gettext.
68992
68993 2005-08-16  Bruno Haible  <bruno@clisp.org>
68994
68995         * lib/strnlen1.h: New file.
68996         * lib/strnlen1.c: New file.
68997
68998 2005-08-16  Bruno Haible  <bruno@clisp.org>
68999
69000         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
69001         (mbi_init): Update.
69002         (mbi_avail, mbi_advance): Let the iteration end before the terminating
69003         NUL byte, not after it.
69004
69005 2005-08-16  Bruno Haible  <bruno@clisp.org>
69006
69007         * lib/strcase.h (strcasecmp): Add note in comments.
69008         * lib/strncasecmp.c: Use code from strcasecmp.c.
69009         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
69010         (strcasecmp): Work correctly in multibyte locales.
69011
69012 2005-08-16  Bruno Haible  <bruno@clisp.org>
69013
69014         * lib/mbiter.h: New file.
69015
69016 2005-08-16  Bruno Haible  <bruno@clisp.org>
69017
69018         * lib/mbfile.h: New file.
69019
69020 2005-08-16  Bruno Haible  <bruno@clisp.org>
69021
69022         * lib/mbchar.h: New file.
69023         * lib/mbchar.c: New file.
69024
69025 2005-08-16  Bruno Haible  <bruno@clisp.org>
69026
69027         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
69028         the valid ones. Makes the comparison operations transitive:
69029         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
69030         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
69031
69032 2005-08-15  Simon Josefsson  <jas@extundo.com>
69033
69034         * modules/ssize_t (License): Change to 'unlimited'.
69035
69036         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
69037
69038 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69039
69040         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
69041         Add comments for each pending glibc patch.
69042
69043 2005-08-15  Bruno Haible  <bruno@clisp.org>
69044
69045         * lib/regex.h (__restrict_arr): Don't define to __restrict if
69046         __cplusplus is defined.
69047
69048 2005-08-14  Jim Meyering  <jim@meyering.net>
69049
69050         Sync from coreutils.
69051
69052         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
69053         Use the hash-table-based cycle-detection code not just when
69054         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
69055         Reported by James Youngman in
69056         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
69057         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
69058         FTS_TIGHT_CYCLE_CHECK.
69059         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
69060         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
69061         once again.
69062         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
69063         * lib/fts.c (fd_safer): Remove decl.
69064         Include fcntl--.h rather than unistd-safer.h
69065         (fts_safe_changedir): Don't call fd_safer; no longer needed
69066         now that we include fcntl--.h.
69067
69068 2005-08-12  Simon Josefsson  <jas@extundo.com>
69069
69070         * modules/getndelim2: Use ssize_t module.
69071         * modules/getnline: Likewise.
69072         * modules/safe-read: Likewise.
69073         * modules/xreadlink: Likewise.
69074
69075         * modules/ssize_t: New file.
69076
69077 2005-08-12  Simon Josefsson  <jas@extundo.com>
69078
69079         * m4/readline.m4: Look for termcap, curses or ncurses if required.
69080
69081 2005-08-12  Simon Josefsson  <jas@extundo.com>
69082
69083         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69084         ssize_t.
69085
69086 2005-08-12  Simon Josefsson  <jas@extundo.com>
69087
69088         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
69089         readline, getdelim and check_version.
69090         (Support for systems lacking ISO C 99: Sizes of integer types):
69091         Add size_max.
69092
69093 2005-08-12  Bruno Haible  <bruno@clisp.org>
69094
69095         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
69096
69097 2005-08-11  Simon Josefsson  <jas@extundo.com>
69098
69099         * modules/readline: New file.
69100
69101         * modules/strnlen (Files): Add strnlen.h.
69102
69103 2005-08-11  Simon Josefsson  <jas@extundo.com>
69104
69105         * m4/readline.m4: New file.
69106
69107 2005-08-11  Simon Josefsson  <jas@extundo.com>
69108
69109         * lib/readline.h, readline.c: New file.
69110
69111 2005-08-11  Simon Josefsson  <jas@extundo.com>
69112
69113         * doc/gnulib.texi (Initial import, Finishing touches): Mention
69114         gl_AVOID.
69115
69116 2005-08-11  Bruno Haible  <bruno@clisp.org>
69117
69118         * lib/strnlen.h (strnlen): Change parameter name to match comment.
69119
69120 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
69121
69122         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
69123
69124 2005-08-10  Simon Josefsson  <jas@extundo.com>
69125
69126         * tests/test-iconvme.c: New file.
69127
69128 2005-08-10  Simon Josefsson  <jas@extundo.com>
69129
69130         * m4/strnlen.m4: New file.
69131
69132         * m4/strndup.m4: Don't check for strnlen declaration, done in
69133         strnlen.m4.
69134
69135 2005-08-10  Simon Josefsson  <jas@extundo.com>
69136
69137         * lib/strndup.c: Use strnlen.h.
69138
69139         * lib/strnlen.h: New file.
69140
69141 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69142
69143         * README: Typos.
69144
69145 2005-08-02  Simon Josefsson  <jas@extundo.com>
69146
69147         * modules/readline: New file.
69148
69149 2005-08-02  Simon Josefsson  <jas@extundo.com>
69150
69151         * modules/getdelim: New file.
69152
69153         * modules/getline: Rewrite, don't use getndelim2.
69154
69155 2005-08-02  Simon Josefsson  <jas@extundo.com>
69156
69157         * m4/getline.m4: Separate out getdelim stuff into separate module.
69158
69159         * m4/getdelim.m4: New file.
69160
69161 2005-08-02  Simon Josefsson  <jas@extundo.com>
69162
69163         * lib/getline.h, getline.c: Rewrite.
69164
69165         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
69166
69167 2005-07-31  Bruno Haible  <bruno@clisp.org>
69168
69169         * lib/lock.h (gl_lock_initializer): New macro.
69170         (gl_lock_define_initialized): Use it.
69171         (gl_rwlock_initializer): New macro.
69172         (gl_rwlock_define_initialized): Use it.
69173         (gl_recursive_lock_initializer): New macro.
69174         (gl_recursive_lock_define_initialized): Use it.
69175
69176 2005-07-30  Karl Berry  <karl@gnu.org>
69177
69178         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
69179         Report from Ben Pfaff, regarding getopt.
69180
69181 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
69182
69183         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
69184         normal way.
69185         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
69186         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
69187         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
69188         (gl_GETOPT): Use the new macros.  Most of the implementation
69189         is moved to the new macros.  This is for programs like Emacs
69190         that don't want all the functionality of gl_GETOPT.
69191
69192 2005-07-26  Bruno Haible  <bruno@clisp.org>
69193
69194         * m4/lock.m4: Update from GNU gettext.
69195
69196 2005-07-26  Bruno Haible  <bruno@clisp.org>
69197
69198         * lib/lock.h: Update from GNU gettext.
69199         * lib/lock.c: Update from GNU gettext.
69200
69201 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
69204         obsolescent AC_TRY_RUN.  Include the default includes files, for
69205         'exit'.
69206
69207 2005-07-24  Bruno Haible  <bruno@clisp.org>
69208
69209         * modules/visibility: New file.
69210         * MODULES.html.sh (Misc): Add visibility.
69211
69212 2005-07-24  Bruno Haible  <bruno@clisp.org>
69213
69214         * m4/visibility.m4: New file.
69215
69216 2005-07-24  Bruno Haible  <bruno@clisp.org>
69217
69218         * doc/visibility.texi: New file.
69219
69220 2005-07-22  Bruno Haible  <bruno@clisp.org>
69221
69222         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
69223         $(ALLOCA_H), redundant through BUILT_SOURCES.
69224         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
69225         redundant through BUILT_SOURCES.
69226         * modules/byteswap (Makefile.am): Remove explicit dependency on
69227         $(BYTESWAP_H), redundant through BUILT_SOURCES.
69228         * modules/fnmatch (Makefile.am): Remove explicit dependency on
69229         $(FNMATCH_H), redundant through BUILT_SOURCES.
69230         * modules/getopt (Makefile.am): Remove explicit dependency on
69231         $(GETOPT_H), redundant through BUILT_SOURCES.
69232         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
69233         redundant through BUILT_SOURCES.
69234         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
69235         redundant through BUILT_SOURCES.
69236         * modules/stdbool (Makefile.am): Remove explicit dependency on
69237         $(STDBOOL_H), redundant through BUILT_SOURCES.
69238         * modules/stdint (Makefile.am): Remove explicit dependency on
69239         $(STDINT_H), redundant through BUILT_SOURCES.
69240         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69241         Remove explicit dependency on $(SYSEXITS_H).
69242         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69243
69244 2005-07-18  Simon Josefsson  <jas@extundo.com>
69245
69246         * lib/check-version.c (check_version): Accept identical versions too.
69247
69248 2005-07-18  Bruno Haible  <bruno@clisp.org>
69249
69250         * modules/lock: New file.
69251         * MODULES.html.sh (Multithreading): New section.
69252
69253 2005-07-18  Bruno Haible  <bruno@clisp.org>
69254
69255         * m4/lock.m4: New file, from GNU gettext.
69256
69257 2005-07-18  Bruno Haible  <bruno@clisp.org>
69258
69259         * lib/lock.h: New file, from GNU gettext.
69260         * lib/lock.c: New file, from GNU gettext.
69261
69262 2005-07-18  Bruno Haible  <bruno@clisp.org>
69263
69264         * lib/lock.h (gl_once_t): New type.
69265         (gl_once_define, gl_once): New macros.
69266         * lib/lock.c (fresh_once): New variable.
69267         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69268         functions.
69269
69270 2005-07-16  Simon Josefsson  <jas@extundo.com>
69271
69272         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69273         workaround, suggested by Bruno.
69274
69275 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69276
69277         * modules/xalloc (Depends-on): Add xalloc-die.
69278         * modules/xvasprintf (Depends-on): Add xalloc-die.
69279
69280 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69281
69282         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69283         with a minor change.
69284
69285 2005-07-15  Bruno Haible  <bruno@clisp.org>
69286
69287         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69288         When using lib/poll.c, define poll as rpl_poll.
69289
69290 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69291
69292         * modules/argp (Depends-on): Remove unlocked-io.
69293
69294 2005-07-14  Derek Price  <derek@ximbiot.com>
69295
69296         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69297         for glob symlink bug.
69298
69299 2005-07-14  Bruno Haible  <bruno@clisp.org>
69300
69301         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69302         Instead, test for *_unlocked function declarations directly.
69303
69304 2005-07-11  Simon Josefsson  <jas@extundo.com>
69305
69306         * modules/size_max: New file.
69307
69308         * modules/xsize: Depend on size_max module for size_max.m4.
69309
69310 2005-07-11  Simon Josefsson  <jas@extundo.com>
69311
69312         * lib/size_max.h: New file.
69313
69314 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69315
69316         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69317         copyright symbol and the year.
69318         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69319         (version_etc_va): Use parameterized copyright notice.
69320         Reword to conform to the current GNU coding standards.
69321
69322 2005-07-11  Karl Berry  <karl@gnu.org>
69323
69324         * doc/gnulib.texi (Quoting): new node.
69325         (Initial import): more info, from Patrice.
69326
69327 2005-07-11  Bruno Haible  <bruno@clisp.org>
69328
69329         * gnulib-tool (func_usage): Document option --avoid.
69330         (Command line options): Handle --avoid.
69331         (func_acceptable): New function.
69332         (func_modules_transitive_closure): Use it.
69333
69334 2005-07-11  Bruno Haible  <bruno@clisp.org>
69335
69336         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69337         Reported by Jim Meyering.
69338
69339 2005-07-10  Bruno Haible  <bruno@clisp.org>
69340
69341         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69342         Needed when size_t is smaller than 'unsigned int'.
69343         Reported by Paul Eggert.
69344
69345 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69346
69347         * modules/argp (Depends-on): Add unlocked-io
69348
69349 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69350
69351         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69352         block of defines.
69353
69354 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69355
69356         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69357         fix now.
69358
69359 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69360         and Paul Eggert  <eggert@cs.ucla.edu>
69361
69362         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69363         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69364
69365 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69366
69367         * modules/regex (Files): Add lib/regex_internal.c,
69368         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69369         (Depends-on): Add extensions.
69370         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69371
69372 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69373
69374         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69375         pathconf.
69376         * m4/same.m4 (gl_SAME): Likewise.
69377         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69378
69379         * m4/regex.m4: Adjust to new libc regex implementation.
69380         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69381         all the .c and .h parts of (the new) regex.
69382         Quote the m4 stuff better.
69383         Check for RE_ICASE bug of old gnulib.
69384         Check for REG_STARTEND of recent libc.
69385         Rename local variables from jm_* to gl_*.
69386         Quote operand of "test -f".
69387         Say "recent enough" version of libc, not "version 2".
69388         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69389         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69390         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69391         Remove check for btowc, isascii.
69392         Require AM_LANGINFO_CODESET.
69393
69394 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69395
69396         * lib/regex.c, regex.h: Sync from libc.
69397         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69398         * lib/regexec.c:
69399         New files, synced from libc, except that regex_internal.h
69400         currently has a small porting fix.
69401
69402 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69403
69404         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69405         regex_internal.c, regexec.c.
69406         Add regex_internal.h too, but as a comment, since the libc version
69407         is currently broken in gnulib mode.
69408
69409 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69410
69411         Support programs like Emacs that use gnulib but not gettext.
69412         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69413         * modules/gettext-h: New file.
69414         * modules/gettext (Files): Remove lib/gettext.h.
69415         (Depends-on): Add gettext-h.
69416         (Makefile.am): Remove lib_SOURCES.
69417         * modules/argmatch, modules/c-stack, modules/closeout:
69418         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69419         * modules/execute, modules/file-type, modules/getaddrinfo:
69420         * modules/getopt, modules/human, modules/javacomp:
69421         * modules/javaexec, modules/mkdir-p, modules/obstack:
69422         * modules/openat, modules/pagealign_alloc, modules/pipe:
69423         * modules/quotearg, modules/regex, modules/rpmatch:
69424         * modules/unicodeio, modules/userspec, modules/version-etc:
69425         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69426         * modules/xsetenv:
69427         Depend on gettext-h, not gettext.
69428
69429 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69430
69431         * gnulib-tool (func_import): Add support for 'public domain' license.
69432         * modules/alloca, modules/atexit, modules/memmove:
69433         Now public domain, not GPL.
69434         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69435         * modules/realloc, modules/strerror, modules/strtod:
69436         Now LGPL, not GPL.
69437
69438 2005-07-05  Bruno Haible  <bruno@clisp.org>
69439
69440         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69441         autoconf CVS. Needed for mingw.
69442
69443 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69444
69445         Remove the dependency of the strftime module on the tzset module.
69446         * modules/strftime (Depends-on): Remove dependency on tzset.
69447
69448 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69449
69450         Remove the dependency of the strftime module on the tzset module.
69451         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69452         gl_FUNC_TZSET_CLOBBER.
69453
69454 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         Remove the dependency of the strftime module on the tzset module.
69457         * lib/strftime.c (my_strftime)
69458         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69459         Copy the input structure, to work around some of the bug with
69460         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69461         Solaris releases, you should also use the tzset module, but we won't
69462         require it as a dependency any more since we don't want LGPLed code
69463         to depend on GPLed code.
69464
69465 2005-07-02  Jim Meyering  <jim@meyering.net>
69466
69467         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69468         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69469         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69470         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69471
69472 2005-07-02  Jim Meyering  <jim@meyering.net>
69473
69474         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69475
69476 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69477
69478         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69479         declares only 'struct timespec;' (!).
69480
69481 2005-07-01  Jim Meyering  <jim@meyering.net>
69482
69483         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69484         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69485         * lib/save-cwd.c, tempname.c:
69486         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69487         and don't include <sys/file.h>).
69488
69489 2005-06-29  Jim Meyering  <jim@meyering.net>
69490
69491         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69492         type name.  Use the variable name instead.
69493         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69494         Likewise.
69495
69496 2005-06-28  Simon Josefsson  <jas@extundo.com>
69497
69498         * modules/check-version (Files): Add check-version.m4.
69499
69500 2005-06-28  Simon Josefsson  <jas@extundo.com>
69501
69502         * m4/check-version.m4: New file, suggested by Jim Meyering
69503         <jim@meyering.net>.
69504
69505 2005-06-28  Simon Josefsson  <jas@extundo.com>
69506
69507         * lib/check-version.h, lib/check-version.c: New files.
69508
69509 2005-06-28  Simon Josefsson  <jas@extundo.com>
69510
69511         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69512         collision with global variable.  Better indentation.  Don't
69513         increment buffer pointer beyond buffer end.  Based on comments
69514         from Paul Eggert <eggert@cs.ucla.edu>.
69515
69516         * lib/base64.h: Indent.
69517
69518 2005-06-28  Simon Josefsson  <jas@extundo.com>
69519
69520         * doc/gnulib.texi (Library version handling): New section.
69521
69522 2005-06-28  Jim Meyering  <jim@meyering.net>
69523
69524         * check-module (find_included_lib_files): Hard-code another
69525         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69526         but modules/fts-lgpl (correctly) does not list those files.
69527
69528         * modules/canonicalize (Files): Add lib/pathmax.h.
69529
69530 2005-06-25  Simon Josefsson  <jas@extundo.com>
69531
69532         * modules/check-version: New file.
69533
69534 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69537         initializer of struct addrinfo, as an indication that we don't
69538         care how many members the structure has.
69539
69540 2005-06-24  Derek Price  <derek@ximbiot.com>
69541         and Bruno Haible  <bruno@clisp.org>
69542
69543         Remove stat module & update lstat.
69544         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69545         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69546         * m4/stat.m4: Remove this file.
69547
69548 2005-06-24  Derek Price  <derek@ximbiot.com>
69549         and Bruno Haible  <bruno@clisp.org>
69550
69551         Remove stat module & update lstat.
69552         * lib/stat.c: Remove this file...
69553         (slash_aware_lstat): ...moving this content and its support...
69554         * lib/lstat.c (rpl_lstat): ...into here.
69555         * lib/lstat.h: New file.
69556
69557 2005-06-24  Derek Price  <derek@ximbiot.com>
69558         and Bruno Haible  <bruno@clisp.org>
69559
69560         Remove stat module & update lstat.
69561         * config/srclist.txt (libc sources): Remove stat.
69562
69563 2005-06-24  Derek Price  <derek@ximbiot.com>
69564         and Bruno Haible  <bruno@clisp.org>
69565
69566         Remove stat module & update lstat.
69567         * MODULES.html.sh (stat): Remove.
69568         * MODULES.html: Regenerated.
69569         * modules/lstat (Description): Correct function name.
69570         (Files): Add "lstat.h".
69571         (Depends-on): Remove stat, add xalloc, stat-macros.
69572         * modules/stat: Remove this file.
69573         (Include): Add "lstat.h", remove <sys/stat.h>.
69574
69575 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69576
69577         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69578         (ranged_convert): Don't save conversion in a temporary struct.
69579         This causes a warning with GCC 4.0.0, and anyway in the typical
69580         case it's not worth the extra 100 bytes or so of code.
69581         (ranged_convert, __mktime_internal): When calling a function via a
69582         pointer P, use P () rather than (*P) (), as we now assume C89 or
69583         better.
69584
69585 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69586
69587         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69588         "who -r" failed to give output.  Problem reported by Tim Waugh.
69589
69590         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69591         (xcalloc): Use it to avoid needless tests.
69592         Problem reported by Jim Meyering.
69593
69594 2005-06-20  Derek Price  <derek@ximbiot.com>
69595
69596         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69597         unnecessary for Autoconfs > 2.59c.
69598
69599 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69600
69601         * lib/argp.h (__option_is_short): Check upper limit of
69602         __key. Isprint() requires its argument to have the value
69603         of an unsigned char or EOF.
69604
69605 2005-06-16  Jim Meyering  <jim@meyering.net>
69606
69607         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69608         when either N or S is zero.
69609
69610 2005-06-16  Derek Price  <derek@ximbiot.com>
69611
69612         * m4/bison.m4: Declare YACC & YFLAGS precious.
69613
69614 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69615
69616         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69617         multibyte string or pattern, fall back on unibyte matching.
69618         Problem reported by James Youngman.
69619
69620 2005-06-08  Bruno Haible  <bruno@clisp.org>
69621
69622         * modules/csharpcomp: New file.
69623         * MODULES.html.sh (C#): Add csharpcomp.
69624
69625 2005-06-08  Bruno Haible  <bruno@clisp.org>
69626
69627         * m4/csharpcomp.m4: New file, from GNU gettext.
69628
69629 2005-06-08  Bruno Haible  <bruno@clisp.org>
69630
69631         * lib/csharpcomp.h: New file, from GNU gettext.
69632         * lib/csharpcomp.c: New file, from GNU gettext.
69633         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69634
69635 2005-06-08  Bruno Haible  <bruno@clisp.org>
69636
69637         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69638         warning on mingw.
69639
69640 2005-06-07  Derek Price  <derek@ximbiot.com>
69641
69642         Sync from CVS.
69643         * lib/glob_.h: Indent nested #ifdef.
69644
69645 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69646
69647         Sync from coreutils.
69648         Use "file name" when talking about file names, instead of "filename"
69649         or "path", as per the GNU coding standards.
69650         * lib/mkdir-p.c: Renamed from makepath.c.
69651         (make_dir_parents): Renamed from make_path.  All callers changed.
69652         * lib/mkdir-p.h: Likewise.  All includers changed.
69653         * lib/filenamecat.c: Renamed from path-concat.c.
69654         (file_name_concat): Renamed from path_concat.  All callers changed.
69655         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69656         * lib/filenamecat.h: Likewise.  All includers changed.
69657         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69658         in comments or local variable names.
69659         * lib/basename.c: Likewise.
69660         * lib/canonicalize.c, canonicalize.h: Likewise.
69661         * lib/dirname.c, dirname.h: Likewise.
69662         * lib/euidaccess.c: Likewise.
69663         * lib/exclude.c: Likewise
69664         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69665         * lib/fsusage.c, fsuage.h: Likewise.
69666         * lib/fts.c, fts_.h: Likewise.
69667         * lib/getcwd.c: Likewise.
69668         * lib/getloadavg.c: Likewise.
69669         * lib/mkstemp.c: Likewise.
69670         * lib/mountlist.c, mountlist.h: Likewise.
69671         * lib/openat.c, openat.h: Likewise.
69672         * lib/readlink-stub.c: Likewise.
69673         * lib/readutmp.c, readutmp.h: Likewise.
69674         * lib/rename.c: Likewise.
69675         * lib/rmdir.c: Likewise.
69676         * lib/same.c: Likewise.
69677         * lib/savedir.c: Likewise.
69678         * lib/stripslash.c: Likewise.
69679         * lib/tempname.c: Likewise.
69680         * lib/xreadlink.c: Likewise.
69681         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69682         All uses changed.
69683         * lib/exclude.h: Likewise.
69684
69685         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69686         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69687         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69688         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69689         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69690         files have been getting away with it for years (MORE/BSD 4.3
69691         is extinct now).
69692         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69693         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69694
69695         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69696         Define to 256, not 255, as per modern POSIX.
69697
69698 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69699
69700         Sync from coreutils.
69701         Use "file name" when talking about file names, instead of "filename"
69702         or "path", as per the GNU coding standards.
69703         * MODULES.html.sh: mkdir-p renamed from makepath.
69704         filenamecat renamed from path-concat.
69705         * modules/filenamecat: Renamed from modules/path-concat.
69706         (Files): filenamecat.h and filenamecat.c renamed from
69707         path-concat.h and path-concat.c.
69708         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69709         (Include): filenamecat.h, not path-concat.h.
69710         * modules/mkdir-p: Renamed from modules/makepath.
69711         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69712         makepath.c.
69713         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69714         (Include): mkdir-p.h, not makepath.h.
69715
69716 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69717
69718         Sync from coreutils.
69719         * m4/mkdir-p.m4: Renamed from makepath.m4.
69720         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69721         Rename files from makepath.c to mkdir-p.c, and from
69722         makepath.h to mkdir-p.h.
69723         * m4/filenamecat.m4: Renamed from path-concat.m4.
69724         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69725         Rename files from path-concat.c to filenamecat.c,
69726         and from path-concat.h to filenamecat.h.
69727         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69728         "file name" in local variables or comments.
69729         * m4/rename.m4: Likewise.
69730
69731 2005-06-01  Bruno Haible  <bruno@clisp.org>
69732
69733         * modules/csharpexec: New file.
69734         * MODULES.html.sh (C#): New section.
69735
69736 2005-06-01  Bruno Haible  <bruno@clisp.org>
69737
69738         * m4/csharp.m4: New file, from GNU gettext.
69739         * m4/csharpexec.m4: New file, from GNU gettext.
69740
69741 2005-06-01  Bruno Haible  <bruno@clisp.org>
69742
69743         * lib/csharpexec.h: New file, from GNU gettext.
69744         * lib/csharpexec.c: New file, from GNU gettext.
69745         * lib/csharpexec.sh.in: New file, from GNU gettext.
69746
69747 2005-05-31  Derek Price  <derek@ximbiot.com>
69748             Paul Eggert  <eggert@cs.ucla.edu>
69749
69750         Sync from cvs.
69751         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69752
69753 2005-05-31  Derek Price  <derek@ximbiot.com>
69754             Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         Sync from cvs.
69757         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69758
69759 2005-05-29  Derek Price  <derek@ximbiot.com>
69760
69761         * config/srclist.txt (glob_.h, glob.c): Add these files.
69762
69763 2005-05-29  Derek Price  <derek@ximbiot.com>
69764
69765         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69766         * modules/glob: New file.
69767         * modules/getlogin_r: Add link to POSIX spec in description.
69768
69769 2005-05-29  Derek Price  <derek@ximbiot.com>
69770             Paul Eggert  <eggert@cs.ucla.edu>
69771
69772         * m4/glob.m4: New file.
69773
69774 2005-05-29  Derek Price  <derek@ximbiot.com>
69775             Paul Eggert  <eggert@cs.ucla.edu>
69776
69777         * lib/glob_.h, lib/glob.c: New files.
69778
69779 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69780
69781         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69782         * modules/fts-lgpl (Depends-on): Remove gettext.
69783
69784 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69785
69786         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69787         and don't require gt_INTTYPES_PRI.
69788
69789 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69790
69791         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69792
69793         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69794         the configuration hassle isn't worth it.
69795         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69796         (LONGEST_MODIFIER, PRIuMAX): Remove.
69797
69798 2005-05-27  Bruno Haible  <bruno@clisp.org>
69799
69800         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69801
69802 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69805         _POSIX_PTHREAD_SEMANTICS for Solaris.
69806
69807 2005-05-25  Derek Price  <derek@ximbiot.com>
69808
69809         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69810
69811 2005-05-25  Derek Price  <derek@ximbiot.com>
69812             Paul Eggert  <eggert@cs.ucla.edu>
69813
69814         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69815         * lib/getlogin_r.c, getlogin_r.h: New files.
69816
69817 2005-05-25  Bruno Haible  <bruno@clisp.org>
69818             Derek Price  <derek@ximbiot.com>
69819
69820         * lib/getlogin_r.h: Simplify API documentation.
69821
69822 2005-05-23  Derek Price  <derek@ximbiot.com>
69823
69824         * modules/minmax (Files): Add m4/minmax.m4.
69825         (configure.ac): Add gl_MINMAX.
69826
69827 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69828
69829         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69830         so that unistd-safer.h (GPL'ed code) need not be included.
69831
69832 2005-05-22  Bruno Haible  <bruno@clisp.org>
69833
69834         * m4/minmax.m4: New file.
69835         Based on a patch by Derek Price <derek@ximbiot.com>.
69836
69837 2005-05-22  Bruno Haible  <bruno@clisp.org>
69838
69839         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69840         (INT64_MIN): Fix definition.
69841         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69842
69843         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69844         NEED_SIGNED_INT_TYPES.
69845
69846         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69847         HAVE_SYSTEM_INTTYPES.
69848
69849 2005-05-22  Bruno Haible  <bruno@clisp.org>
69850
69851         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69852         Also include <sys/param.h> if it defines MIN, MAX.
69853         Based on a patch by Derek Price <derek@ximbiot.com>.
69854
69855 2005-05-21  Jim Meyering  <jim@meyering.net>
69856
69857         * modules/fts (Files): Add m4/inttypes-pri.m4.
69858         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69859
69860 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         New fts module.
69863         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69864         (setup_dir, free_dir): New functions.
69865         (enter_dir, leave_dir): Define trivial
69866         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69867         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69868         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69869         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69870         Move to fts-cycle.c.
69871         (fts_open): Use setup_dir.
69872         (fts_close): Use free_dir.
69873         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69874         This adds a label and some gotos, but the alternatives were messier.
69875         Check for memory allocation failure when entering a dir.
69876         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69877         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69878         (FTS): New member fts_cycle, that is a union that contains the
69879         old active_dir_ht and cycle_state.  All uses changed to mention
69880         fts_cycle.ht and fts_cycle.state.
69881         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69882         fts.c, with the following changes:
69883         (setup_dir, free_dir): New functions.
69884         (enter_dir): Now returns bool.  Return true if successful, false
69885         if memory exhausted.  All callers changed.
69886         Do not bother partly cleaning up on
69887         memory allocation failure; that is free_dir's job.
69888         However, free ad if hash_insert fails, to avoid memory leak.
69889         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69890         fts->fts_options to see which union member to use.
69891
69892 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69893
69894         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69895         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69896
69897 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69898
69899         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69900
69901 2005-05-20  Jim Meyering  <jim@meyering.net>
69902
69903         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69904         Now a macro, to pacify GCC.
69905
69906 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69907
69908         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69909         of -1.
69910
69911 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69912
69913         * lib/chown.c (rpl_chown): Return -1 on failure.
69914
69915 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69916
69917         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69918         Don't check for stddef.h.
69919         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69920         don't use its results.
69921         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69922         since we include them unconditionally.  Don't require
69923         AM_STDBOOL_H, since stdbool is a prerequisite.
69924         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69925         since we assume C89 or better.
69926         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69927         as we don't use their results.
69928         Don't check for fchdir, memmove, memset, strrchr, as we use
69929         them unconditionally.
69930         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69931         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69932
69933 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69934
69935         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69936         Include <stddef.h> unconditionally, since we assume C89 now.
69937         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69938         * lib/fts.c: Include fts_.h first, to check interface.
69939         Do not include intprops.h; no longer needed.
69940         Include cycle-check.h and hash.h, since fts_.h no longer does.
69941         Remove unnecessary casts of closedir to void.
69942         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69943         decide whether to decrement nlinks.
69944         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69945         (FTS): Use struct hash_table * instead of Hash_table, so that
69946         we no longer need to include hash.h here.
69947
69948 2005-05-18  Jim Meyering  <jim@meyering.net>
69949
69950         * modules/dirfd (License): Change to LGPL.  Most of the code
69951         is already in the public domain.
69952
69953 2005-05-18  Jim Meyering  <jim@meyering.net>
69954
69955         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69956         Reported by Yoann Vandoorselaere.
69957
69958 2005-05-17  Jim Meyering  <jim@meyering.net>
69959
69960         * m4/fts.m4: New file, from coreutils.
69961
69962 2005-05-17  Jim Meyering  <jim@meyering.net>
69963
69964         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69965
69966 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69967
69968         Sync from coreutils.
69969         * m4/unlinkdir.m4: New file.
69970
69971 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69972
69973         Sync from coreutils.
69974         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69975         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69976         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69977         White space changes only.
69978         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69979         special.
69980         * lib/yesno.c: Include getline.h, not ctype.h.
69981         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69982         Use getline to remove arbitrary restriction on response length.
69983
69984 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69985
69986         * config/srclist-update: Spell out "Street" in FSF postal
69987         mail address; this is the style the FSF seems to prefer.
69988
69989         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69990         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69991         this updates FSF postal mail address.
69992
69993         Sync from coreutils.
69994         * modules/unlinkdir: New file.
69995         * modules/yesno (Depends-on): Add getline.
69996         * MODULES.html.sh (File system functions): Add unlinkdir.
69997
69998 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69999
70000         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
70001         lib/strsep.h:
70002         Change the initial comment to refer to GPL, not LGPL.
70003         gnulib-tool will change it to LGPL as needed.
70004
70005         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
70006         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
70007         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
70008         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
70009         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
70010         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
70011         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
70012         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
70013         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
70014         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
70015         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
70016         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
70017         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
70018         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
70019         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
70020         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
70021         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
70022         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
70023         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
70024         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
70025         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
70026         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
70027         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
70028         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
70029         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
70030         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
70031         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
70032         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
70033         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
70034         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
70035         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
70036         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
70037         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
70038         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
70039         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
70040         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
70041         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
70042         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
70043         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
70044         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
70045         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
70046         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
70047         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
70048         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
70049         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
70050         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
70051         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
70052         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
70053         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
70054         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
70055         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70056         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
70057         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
70058         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
70059         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
70060         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
70061         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
70062         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
70063         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
70064         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
70065         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
70066         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
70067         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
70068         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
70069         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
70070         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
70071         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
70072         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
70073         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
70074         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
70075         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
70076         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
70077         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
70078         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
70079         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
70080         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
70081         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
70082         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
70083         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
70084         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
70085         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
70086         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
70087         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
70088         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
70089         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
70090         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
70091         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
70092         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
70093         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
70094         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
70095         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
70096         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
70097         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
70098         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
70099         lib/yesno.c, lib/yesno.h:
70100         Update FSF postal mail address.
70101
70102 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70103
70104         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
70105         tests/test-memmem.c, tests/test-stpncpy.c:
70106         Update FSF postal mail address.
70107
70108 2005-05-13  Bruno Haible  <bruno@clisp.org>
70109
70110         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
70111         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
70112         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
70113         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
70114         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
70115         Add support for 64-bit integers in the MSVC compiler.
70116
70117 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70118
70119         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
70120
70121 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
70122
70123         * gnulib-tool (func_import): Sort and uniquify recommended includes.
70124
70125 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         * doc/getdate.texi (General date syntax): Don't say that date
70128         date --iso-8601=ns generates acceptable dates; it doesn't yet.
70129         Problem reported by Nic Ferrier.
70130
70131 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70132
70133         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
70134         specified in ai_socktype. Fix invalid ai_protocol
70135         check. ai_protocol is usually set to 0 or depending on
70136         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
70137         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
70138         ai_socktype / ai_protocol in the returned addrinfo structure.
70139
70140 2005-05-10  Simon Josefsson  <jas@extundo.com>
70141
70142         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
70143         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70144
70145 2005-05-10  Karl Berry  <karl@gnu.org>
70146
70147         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
70148         (from http://www.gnu.org/licenses).
70149         * doc/COPYING.LIB: also rename to COPYING.LESSER.
70150         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
70151         fdl.texi suffices.
70152
70153 2005-05-10  Karl Berry  <karl@gnu.org>
70154
70155         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
70156         (COPYING.DOC): remove.
70157
70158         * config/srclist-update: new FSF address.
70159
70160 2005-05-10  Derek Price  <derek@ximbiot.com>
70161
70162         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
70163         possible.
70164
70165 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70166             Bruno Haible  <bruno@clisp.org>
70167
70168         * modules/inet_ntop: New file.
70169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70170         inet_ntop.
70171
70172 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70173             Bruno Haible  <bruno@clisp.org>
70174
70175         * m4/inet_ntop.m4: New file.
70176
70177 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70178             Bruno Haible  <bruno@clisp.org>
70179
70180         * lib/inet_ntop.h: New file.
70181         * lib/inet_ntop.c: New file, from glibc with modifications.
70182
70183 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
70184
70185         * modules/time_r (License): Change to LGPL.
70186         * modules/extensions (License): Change to LGPL.  Actually,
70187         the license is more permissive than that, but currently gnulib-tool
70188         doesn't know how to handle more-permissive licenses.
70189
70190         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
70191         Problem reported by Dave Love.
70192
70193 2005-05-08  Jim Meyering  <jim@meyering.net>
70194
70195         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
70196         blank.
70197
70198 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70199
70200         * modules/argmatch (Depends-on): Add stdbool.
70201         * modules/backupfile (Depends-on): Likewise.
70202         * modules/chdir-long (Depends-on): Likewise.
70203         * modules/closeout (Depends-on): Likewise.
70204         * modules/cycle-check (Depends-on): Likewise.
70205         * modules/dirname (Depends-on): Likewise.
70206         * modules/fnmatch (Depends-on): Likewise.
70207         * modules/fsusage (Depends-on): Likewise.
70208         * modules/fwriteerror (Depends-on): Likewise.
70209         * modules/getcwd (Depends-on): Likewise.
70210         * modules/getloadavg (Depends-on): Likewise.
70211         * modules/hard-locale (Depends-on): Likewise.
70212         * modules/makepath (Depends-on): Likewise.
70213         * modules/mountlist (Depends-on): Likewise.
70214         * modules/nanosleep (Depends-on): Likewise.
70215         * modules/posixtm (Depends-on): Likewise.
70216         * modules/quotearg (Depends-on): Likewise.
70217         * modules/readtokens (Depends-on): Likewise.
70218         * modules/readtokens0 (Depends-on): Likewise.
70219         * modules/readutmp (Depends-on): Likewise.
70220         * modules/save-cwd (Depends-on): Likewise.
70221         * modules/strftime (Depends-on): Likewise.
70222         * modules/userspec (Depends-on): Likewise.
70223         * modules/utimecmp (Depends-on): Likewise.
70224         * modules/xgetcwd (Depends-on): Likewise.
70225         * modules/xnanosleep (Depends-on): Likewise.
70226         * modules/xstrtod (Depends-on): Likewise.
70227         * modules/yesno (Depends-on): Likewise.
70228
70229 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
70230
70231         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
70232         needless checks.
70233
70234 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70235
70236         Merge from coreutils.  Among other things,
70237         add bulletproofing for cases where stdin, stdout, or stderr are closed.
70238         * lib/fd-safer.c: New file.
70239         * lib/fcntl-safer.h, open-safer.c: Remove.
70240         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70241         * lib/dup-safer.c: Include unistd-safer.h first.
70242         Don't include errno.h.
70243         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70244         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70245         * lib/file-type.c: Rely on file-type.h change.
70246         * lib/getloadavg.c: Include unistd-safer.h.
70247         (getloadavg): Use safer open.
70248         * lib/getusershell.c: Include "stdio-safer.h".
70249         (getusershell): Use safer fopen.
70250         * lib/long-options.c (long_options): Use NULL rather than 0.
70251         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70252         'free'.
70253         * lib/modechange.c: Likewise.
70254         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70255         (MODE_DONE): New constant.
70256         (struct mode_change): Remove 'next' member.
70257         (make_node_op_equals): New function; like the old one of the
70258         same name, except it allocates an array.
70259         (mode_compile, mode_create_from_ref): Use it.
70260         (mode_compile): Allocate result as an array, not a linked list.
70261         Parse octal string ourself, so that we catch mistakes like "+0".
70262         (mode_adjust): Arg is an array, not a linked list.
70263         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70264         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70265         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70266         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70267         Remove.  This is now stat-macros.h's job.
70268         (talloc): Remove.  All callers replaced by xalloc, so that
70269         our invokers don't have to worry about reporting memory failures.
70270         (make_node_op_equals): Remove.
70271         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70272         New constants.
70273         (struct mode_change): Moved here from modechange.h.
70274         (mode_append_entry): Remove.
70275         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70276         apps to have incorrect behavior.  Use simpler algorithm for head
70277         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70278         Detect more invalid usages rather than having somewhat-random behavior.
70279         Don't insert an "a=" action, as that leads to incorrect behavior.
70280         (mode_compile, mode_create_from_ref): Return NULL on error instead
70281         of an enum, since now there's only one way to have an error.  All
70282         callers changed.
70283         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70284         at the correct time.  Simplify calculation of "+u" and its ilk.
70285         Don't mishandle "+X".
70286         (mode_free): Remove "register" and localize decls.
70287         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70288         (struct mode_change): Move to modechange.c; callers don't
70289         need to see this stuff.
70290         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70291         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70292         (mode_change, mode_adjust): Reflect the new signatures noted above.
70293         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70294         that might redefine system include files.
70295         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70296         (my_usleep): Use NULL rather than (void *) 0.
70297         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70298         Use siginterrupt to specify that system calls should be interrupted.
70299         (rpl_nanosleep): Move initialization of suspended closer to call of
70300         my_usleep.
70301         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70302         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70303         (desirable_utmp_entry): New function.
70304         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70305         using x2nrealloc, to simplify logic.
70306         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70307         size calculation.  Do not assume utmp file is a regular file.
70308         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70309         (READ_UTMP_CHECK_PIDS): New constant.
70310         * lib/save-cwd.c: Include unistd-safer.h.
70311         (save_cwd): Use fd_safer.
70312         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70313         [!_LIBC] Include "stat-macros.h" instead.
70314         * lib/unistd-safer.h (fd_safer): New decl.
70315
70316 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70317
70318         * modules/getloadavg (Depends-on): Add unistd-safer.
70319         * modules/getusershell (Depends-on): Add stdio-safer.
70320         * modules/lstat (Depends-on): Remove xalloc.
70321         * modules/mkstemp (Depends-on): Add stat-macros.
70322         * modules/modechange (Depends-on): Remove xstrtol.
70323         Add stat-macros, xalloc.
70324         * modules/save-cwd (Depends-on): Add unistd-safer.
70325         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70326         * modules/unistd-safer (Files): Add lib/fd-safer.c
70327         (Makefile.am): Remove lib_SOURCES.
70328
70329         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70330         Remove fcntl-safer; unistd-safer supersedes it.
70331
70332 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70335         AC_HEADER_STAT.
70336         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70337         (gl_PREREQ_CHOWN): Remove.
70338         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70339         it.  Don't require AC_HEADER_STAT.
70340         (gl_PREREQ_LSTAT): Remove.
70341         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70342         Don't require AC_HEADER_STAT.
70343         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70344         (gl_PREREQ_RMDIR): Remove.
70345         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70346         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70347         the stat-macros module a prerequisite.
70348         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70349         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70350         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70351         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70352         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70353         variable names.
70354         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70355         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70356         variable prefixes.
70357         * m4/fcntl-safer.m4: Remove.
70358         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70359         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70360         Invoke gl_PREREQ_FD_SAFER.
70361         (gl_PREREQ_FD_SAFER): New macro.
70362         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70363         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70364         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70365         Remove duplicate call to AC_LIBOBJ(readutmp).
70366         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70367
70368         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70369         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70370
70371 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70372
70373         * MODULES.html.sh (Misc): Add byteswap.
70374
70375 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70376
70377         * modules/getcwd (Depends-on): Add extensions.
70378         * modules/openat (Depends-on): Likewise.
70379
70380 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70381
70382         * modules/byteswap: New file.
70383
70384 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70385
70386         * m4/byteswap.m4: New file.
70387
70388 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70389
70390         * lib/byteswap_.h: New file.
70391
70392 2005-04-25  Karl Berry  <karl@gnu.org>
70393
70394         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70395
70396 2005-04-25  Albert Chin  <china@thewrittenword.com>
70397
70398         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70399         Toolkit C bug.
70400
70401 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70402
70403         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70404         (func_ln_if_changed): Remove forcibly for no error message
70405         in case file does not exist.
70406
70407 2005-04-19  Simon Josefsson  <jas@extundo.com>
70408
70409         * gnulib-tool (Options): Make --symlink mean --symbolic.
70410
70411 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70412
70413         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70414
70415 2005-04-16  Simon Josefsson  <jas@extundo.com>
70416
70417         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70418
70419 2005-04-15  Simon Josefsson  <jas@extundo.com>
70420
70421         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70422
70423 2005-04-15  Simon Josefsson  <jas@extundo.com>
70424
70425         * gnulib-tool: Rename --symlink to --symbolic.
70426
70427 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70428
70429         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70430         symbolic links to files instead of copying/moving.  Add --aux-dir,
70431         specifying directory relative --dir where auxiliary build tools
70432         are placed.
70433
70434 2005-04-14  Bruno Haible  <bruno@clisp.org>
70435
70436         * modules/allocsa (License): Change to LGPL.
70437         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70438
70439 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70440
70441         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70442         that "UTC +1 second" continues to work.  Problem reported
70443         by Dmitry V. Levin.
70444         (relunit_snumber): New rule.
70445         (relunit): Use it.
70446
70447 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         * lib/getdate.y (universal_time_zone_table): New constant.
70450         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70451         universal_time_zone_table.
70452         (lookup_zone): Prefer universal_time_zone_table to
70453         local_time_zone_table, so that "GMT" time stamps are allowed in
70454         London during the summer.  Problem reported by Ian Abbott.
70455
70456 2005-04-12  Jim Meyering  <jim@meyering.net>
70457
70458         * lib/human.c (humblock): Set *options even when returning due to
70459         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70460         warning from gcc-4.
70461
70462 2005-04-09  Jim Meyering  <jim@meyering.net>
70463
70464         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70465         -Wuninitialized: initialize tm0.tm_year.
70466
70467 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70468
70469         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70470         count, since there's no maximum.  All uses changed.
70471         Add member dsts_seen.
70472         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70473         not being INT_MAX.
70474         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70475         Use pc_rels_seen to decide whther a date is absolute.
70476
70477         * lib/getdate.y (number): Don't overwrite year.
70478         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70479         check.
70480
70481 2005-04-02  Simon Josefsson  <jas@extundo.com>
70482
70483         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70484         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70485
70486 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70487
70488         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70489         where no absolute path name can be longer than PATH_MAX.
70490
70491 2005-03-27  Jim Meyering  <jim@meyering.net>
70492
70493         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70494
70495 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70496
70497         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70498         "one's complement" -> "ones' complement" in comment, as per Knuth.
70499         "value of type" -> "type or expression" in comment.
70500         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70501
70502 2005-03-26  Jim Meyering  <jim@meyering.net>
70503
70504         Comment nits.
70505         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70506         Correct typos: s/or/of/.
70507
70508 2005-03-26  Jim Meyering  <jim@meyering.net>
70509
70510         * modules/check-include-files: Move to ../ and rename to...
70511         * check-module: ...this.
70512
70513 2005-03-25  Jim Meyering  <jim@meyering.net>
70514
70515         * modules/xvasprintf (Files): Add xalloc.h.
70516
70517 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70518
70519         * modules/gettext (Files): config/config.rpath ->
70520         build-aux/config.rpath
70521         * modules/iconv (Files): Likewise.
70522         Problem reported by Oskar Liljeblad.
70523
70524 2005-03-23  Jim Meyering  <jim@meyering.net>
70525
70526         * modules/check-include-files: New script to check for
70527         missing dependencies, multiple includes, etc.
70528
70529         * modules/c-strtold (Depends-on): Add xalloc.
70530         * modules/c-strtod (Depends-on): Add xalloc.
70531         * modules/hash (Depends-on): Add xalloc.
70532         (Files): Remove lib/xalloc.h.
70533
70534         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70535         * modules/userspec (Files): Add lib/inttostr.h.
70536
70537 2005-03-23  Jim Meyering  <jim@meyering.net>
70538
70539         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70540
70541 2005-03-22  Jim Meyering  <jim@meyering.net>
70542
70543         * modules/stat-macros: New module.
70544         * modules/canonicalize, modules/euidaccess, modules/file-type,
70545         * modules/filemode, modules/lchown, modules/makepath,
70546         * modules/rmdir, modules/stat: Depend on new stat-macros module
70547         rather than listing lib/stat-macros.h manually.
70548         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70549
70550 2005-03-22  Jim Meyering  <jim@meyering.net>
70551
70552         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70553
70554 2005-03-22  Bruno Haible  <bruno@clisp.org>
70555
70556         * config/srclist.txt: Replace target directory 'config' with
70557         'build-aux'.
70558         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70559         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70560         ../build-aux/.
70561
70562 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70563
70564         * modules/chdir-long (Depends-on): Add mempcpy.
70565
70566         * modules/acl, modules/backupfile, modules/c-strtod,
70567         modules/c-strtold, modules/canon-host, modules/canonicalize,
70568         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70569         modules/exclude, modules/exitfail, modules/file-type,
70570         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70571         modules/getdate, modules/getline, modules/getpagesize,
70572         modules/getpass, modules/getugroups, modules/group-member,
70573         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70574         modules/inttostr, modules/long-options, modules/makepath,
70575         modules/md5, modules/memcasecmp, modules/memcoll,
70576         modules/modechange, modules/mountlist, modules/path-concat,
70577         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70578         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70579         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70580         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70581         modules/strftime, modules/strndup, modules/strverscmp,
70582         modules/timespec, modules/unlocked-io, modules/userspec,
70583         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70584         modules/yesno:
70585         Remove lib_SOURCES line from Makefile.am section, as this is now
70586         done automatically by the corresponding Autoconf macro.
70587
70588 2005-03-21  Jim Meyering  <jim@meyering.net>
70589
70590         Changes imported from coreutils.
70591
70592         * lib/cycle-check.c: Don't include xalloc.h.
70593
70594         * lib/path-concat.c: Don't include assert.h.
70595         (path_concat): Remove assertion that would have triggered
70596         for ABASE starting with more than one slash.
70597         Reported by Andreas Schwab.
70598
70599         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70600         properly when ABASE is an absolute file name.
70601         Correct the description of this function.
70602         Include <assert.h>.
70603         Add an assertion and a test driver.
70604         This fixes a bug introduced on 2004-07-02.
70605         Andreas Schwab reported the resulting failure of cp --parents:
70606         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70607
70608 2005-03-21  Jim Meyering  <jim@meyering.net>
70609
70610         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70611         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70612
70613 2005-03-21  Jim Meyering  <jim@meyering.net>
70614         and  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70617         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70618         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70619         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70620         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70621         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70622         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70623         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70624         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70625         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70626         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70627         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70628         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70629         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70630         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70631         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70632         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70633         for these modules.
70634
70635 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70636
70637         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70638         (which shouldn't happen), generate nothing instead of returning 0
70639         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70640
70641 2005-03-16  Bruno Haible  <bruno@clisp.org>
70642
70643         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70644         HAVE_LONGLONG_64BIT.
70645
70646 2005-03-16  Bruno Haible  <bruno@clisp.org>
70647
70648         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70649         HAVE_LONGLONG_64BIT.
70650
70651 2005-03-16  Bruno Haible  <bruno@clisp.org>
70652
70653         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70654         HAVE_LONGLONG_64BIT.
70655
70656 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70657
70658         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70659         reliably distinguish strftime failure from empty output on POSIX
70660         hosts.
70661
70662 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70663
70664         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70665         (iconv_string): Don't guess a size-zero buffer, as that might cause
70666         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70667         result would be 'too large', where 'too large' is (heuristically)
70668         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70669         overflow concerns.  This will prevent some unwanted malloc failures
70670         when the inputs are very large.
70671
70672 2005-03-15  Karl Berry  <karl@gnu.org>
70673
70674         * config/srclist.txt (config.rpath): from gettext.
70675         * config/config.rpath: update.
70676
70677 2005-03-15  Bruno Haible  <bruno@clisp.org>
70678
70679         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70680         to 'negate'.
70681
70682         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70683         variable.
70684
70685         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70686         results.
70687
70688 2005-03-14  Simon Josefsson  <jas@extundo.com>
70689
70690         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70691         <fx@gnu.org>.
70692
70693 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70694
70695         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70696         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70697         intprops.h.
70698         * lib/strtol.c: Likewise.
70699
70700 2005-03-14  Jim Meyering  <jim@meyering.net>
70701
70702         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70703         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70704         to be nonzero so that we (and caller) can detect the difference
70705         between a valid zero-length expansion and an error return, even
70706         when the underlying strftime fails before writing anything into
70707         that location.
70708
70709 2005-03-14  Bruno Haible  <bruno@clisp.org>
70710
70711         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70712         Update from GNU gettext 0.14.3.
70713
70714 2005-03-10  Jim Meyering  <jim@meyering.net>
70715
70716         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70717
70718 2005-03-10  Jim Meyering  <jim@meyering.net>
70719
70720         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70721         so that this module works on systems without fchdir.
70722
70723 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         Factor int-properties macros into a single file, except for
70726         glibc-related files.
70727         * lib/intprops.h: New file.
70728         * lib/getloadavg.c: Include it instead of limits.h.
70729         (INT_STRLEN_BOUND): Remove.
70730         * lib/human.c: Include intprops.h.
70731         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70732         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70733         302/1000.
70734         * lib/inttostr.h: Include intprops.h instead of limits.h.
70735         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70736         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70737         for consistency with intprops.h.
70738         (time_t_is_integer, twos_complement_arithmetic): Use them.
70739         * lib/sig2str.h: Include <signal.h>, intprops.h.
70740         (INT_STRLEN_BOUND): Remove.
70741         * lib/strftime.c (TYPE_SIGNED): Remove.
70742         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70743         * lib/strtol.c: Adjust comments to match intprops.h.
70744         * lib/userspec.c: Include intprops.h.
70745         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70746         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70747         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70748         instead of rolling our own expressions.
70749         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70750
70751         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70752         instead of int.
70753         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70754         the right thing even if adding 1900 would overflow.  Similarly
70755         for tm_mon + 1 and tm_yday + 1.
70756         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70757         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70758         (DO_SIGNED_NUMBER): New macro.
70759         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70760
70761 2005-03-07  Bruno Haible  <bruno@clisp.org>
70762
70763         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70764
70765 2005-03-07  Bruno Haible  <bruno@clisp.org>
70766
70767         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70768
70769 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70770
70771         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70772         (func_import): Only replace files via --import when they have actually
70773         changed.
70774
70775 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70776
70777         * m4/mmap-anon.m4: New file.
70778         * m4/pagealign_alloc.m4: New file.
70779
70780 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70781             Bruno Haible  <bruno@clisp.org>
70782
70783         * modules/pagealign_alloc: New file.
70784         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70785
70786 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70787             Bruno Haible  <bruno@clisp.org>
70788
70789         * lib/pagealign_alloc.h: New file.
70790         * lib/pagealign_alloc.c: New file.
70791
70792 2005-03-03  Bruno Haible  <bruno@clisp.org>
70793
70794         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70795         Use an all-permissive copyright notice, recommended by RMS.
70796
70797 2005-03-02  Bruno Haible  <bruno@clisp.org>
70798
70799         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70800         of AIX, the replacement has to be done only after <string.h> is
70801         included, therefore not in config.h. stpncpy.h does the replacement,
70802         and stpncpy.c uses it.
70803
70804 2005-03-02  Bruno Haible  <bruno@clisp.org>
70805
70806         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70807         stpncpy.c uses it.
70808
70809 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70810
70811         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70812         The workaround isn't strictly needed for POSIX conformance, and
70813         it's too much of a pain to configure and maintain.  We'll ask
70814         people to fix their kernels instead.
70815         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70816         (NANOSLEEP_BUG_WORKAROUND): Remove.
70817         (xnanosleep): Remove the workaround.
70818
70819 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70820
70821         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70822         Reported by Derek Price.
70823         (Include): Add "timespec.h".
70824
70825         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70826
70827 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70828
70829         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70830         to detect nanosleep bug.
70831
70832 2005-03-01  Bruno Haible  <bruno@clisp.org>
70833
70834         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70835
70836 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * modules/gethrxtime: New file.
70839         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70840         (Depends-on): Add gethrxtime.
70841         (configure.ac): Add gl_XNANOSLEEP.
70842         (Makefile.am): Remove lib_SOURCES line.
70843
70844 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70845
70846         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70847         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70848
70849 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70850
70851         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70852         * lib/timespec.h (gettime): Return void, since it always
70853         succeeds now.  All uses changed.
70854         * lib/gettime.c (gettime): Likewise.
70855         [HAVE_NANOTIME]: Prefer nanotime.
70856         Assume gettimeofday succeeds, as POSIX requires.
70857         Assime time () succeeds, since other code already does.
70858         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70859         (timespec_subtract): Remove.
70860         (NANOSLEEP_BUG_WORKAROUND): New constant.
70861         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70862         things considerably.  Use it only on GNU/Linux hosts, since the
70863         workaround shouldn't be needed elsewhere.
70864
70865 2005-02-24  Bruno Haible  <bruno@clisp.org>
70866
70867         * modules/gettext (Files): Add m4/glibc2.m4.
70868
70869 2005-02-24  Bruno Haible  <bruno@clisp.org>
70870
70871         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70872         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70873         * m4/progtest.m4:
70874         Update from GNU gettext 0.14.2.
70875         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70876
70877 2005-02-24  Bruno Haible  <bruno@clisp.org>
70878
70879         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70880         * lib/config.charset: Update from GNU gettext 0.14.2.
70881
70882 2005-02-24  Bruno Haible  <bruno@clisp.org>
70883
70884         * lib/gettext.h: Update from GNU gettext 0.14.2.
70885
70886 2005-02-23  Simon Josefsson  <jas@extundo.com>
70887
70888         * m4/iconvme.m4: New file.
70889
70890 2005-02-23  Jim Meyering  <jim@meyering.net>
70891
70892         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70893         change.
70894         Thanks to Bruno Haible for catching it.
70895
70896 2005-02-22  Simon Josefsson  <jas@extundo.com>
70897
70898         * modules/iconvme: New file.
70899
70900         * MODULES.html.sh: Add iconvme.
70901
70902 2005-02-22  Simon Josefsson  <jas@extundo.com>
70903
70904         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70905
70906 2005-02-22  Simon Josefsson  <jas@extundo.com>
70907
70908         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70909
70910 2005-02-22  Jim Meyering  <jim@meyering.net>
70911
70912         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70913         s/ifndef/ifdef/.
70914
70915 2005-02-20  Neil Conway  <neilc@samurai.com>
70916
70917         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70918         returned by OSX/Darwin if the specified buffer is not large
70919         enough for the hostname.
70920
70921 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70922
70923         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70924         pass it to _help, otherwise the latter coredumps trying to
70925         dereference state.root_argp.
70926
70927 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70928
70929         * modules/chdir-long (Depends-on): Add memrchr.
70930         * modules/memrchr (Files): Add lib/memrchr.h.
70931         (Include): "memrchr.h".
70932
70933 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70934
70935         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70936
70937 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70938
70939         * lib/memrchr.h: New file.
70940         * lib/chdir-long.c: Include it.
70941         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70942         Don't bother including stddef.h.
70943
70944 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70945
70946         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70947         inclusion.
70948         Include <sys/types.h>, for dev_t.
70949         (ME_DUMMY, ME_REMOTE): Move from here....
70950         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70951         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70952         Dmitry V. Levin.
70953         Include mountlist.h first, to test the interface.
70954
70955 2005-01-29  Bruno Haible  <bruno@clisp.org>
70956
70957         * lib/progname.c (program_name): Initialize.
70958         Needed when linking statically on MacOS X.
70959
70960 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70961
70962         Sync from coreutils.
70963         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70964         (Depends-on): Add c-strtod.
70965         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70966
70967 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70968
70969         Sync from coreutils.
70970         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70971
70972         Remove files that are specific to coreutils.
70973         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70974
70975 2005-01-28  Bruno Haible  <bruno@clisp.org>
70976
70977         * modules/javacomp: New file.
70978         * MODULES.html.sh (Java): Add javacomp.
70979
70980 2005-01-28  Bruno Haible  <bruno@clisp.org>
70981
70982         * m4/javacomp.m4: New file, from GNU gettext.
70983
70984 2005-01-28  Bruno Haible  <bruno@clisp.org>
70985
70986         * lib/javacomp.sh.in: New file, from GNU gettext.
70987         * lib/javacomp.h: New file, from GNU gettext.
70988         * lib/javacomp.c: New file, from GNU gettext.
70989
70990 2005-01-26  Simon Josefsson  <jas@extundo.com>
70991
70992         * lib/gai_strerror.c: Use GPL in header.
70993
70994 2005-01-26  Bruno Haible  <bruno@clisp.org>
70995
70996         * modules/javaexec: New file.
70997         * MODULES.html.sh (Java): Add javaexec.
70998
70999 2005-01-26  Bruno Haible  <bruno@clisp.org>
71000
71001         * m4/javaexec.m4: New file, from GNU gettext.
71002
71003 2005-01-26  Bruno Haible  <bruno@clisp.org>
71004
71005         * lib/javaexec.sh.in: New file, from GNU gettext.
71006         * lib/javaexec.h: New file, from GNU gettext.
71007         * lib/javaexec.c: New file, from GNU gettext.
71008
71009 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71010
71011         * modules/lchown (Depends-on): Remove lchown.h
71012
71013 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71014
71015         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
71016         must be defined if the header file was not found, in order
71017         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
71018
71019 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71020
71021         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
71022         initializers for struct pentry_state.
71023         (__argp_error): Check return value of __asprintf
71024         (__argp_failure): Translate error message
71025
71026         * lib/argp-parse.c: Removed braces around the expansion of N_()
71027
71028 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
71031         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
71032         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
71033         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
71034         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
71035         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
71036         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
71037         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
71038         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
71039         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
71040         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
71041         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
71042         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
71043         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
71044         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
71045         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
71046         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
71047         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
71048         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
71049         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
71050         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
71051         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
71052         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
71053         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
71054         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
71055         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
71056         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
71057         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
71058         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
71059         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
71060         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
71061         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
71062         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
71063         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
71064         xstrtol.m4, xstrtoumax.m4, yesno.m4:
71065         Use an all-permissive copyright notice, recommended by RMS.
71066
71067 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
71068
71069         * modules/chdir-long (Depends-on): Remove mempcpy.
71070
71071 2005-01-21  Jim Meyering  <jim@meyering.net>
71072
71073         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
71074         same value as for Solaris 9.
71075
71076         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
71077         component length.  This included changing the parameter to be
71078         of type `char *' rather than `char const *'.
71079         * lib/chdir-long.h (chdir_long): Update prototype.
71080
71081         * lib/openat.c (fdopendir, fstatat): New functions.
71082         * lib/openat.h: Include headers required for use of DIR and struct
71083         stat.
71084         [AT_SYMLINK_NOFOLLOW]: Define.
71085         (fdopendir, fstatat): Add prototypes.
71086
71087 2005-01-21  Bruno Haible  <bruno@clisp.org>
71088
71089         * modules/classpath: New file.
71090         * MODULES.html.sh (Java): Add classpath.
71091
71092 2005-01-21  Bruno Haible  <bruno@clisp.org>
71093
71094         * lib/classpath.h: New file, from GNU gettext.
71095         * lib/classpath.c: New file, from GNU gettext.
71096
71097 2005-01-20  Simon Josefsson  <jas@extundo.com>
71098
71099         * modules/version-etc-fsf: New file.
71100
71101 2005-01-20  Simon Josefsson  <jas@extundo.com>
71102
71103         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
71104         * lib/version-etc.c: Remove version_etc_copyright.
71105         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
71106         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
71107
71108 2005-01-20  Simon Josefsson  <jas@extundo.com>
71109
71110         * lib/base64.h (isbase64): Add.
71111
71112         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
71113         using a unsigned prototype, don't inline.
71114         (base64_decode): Use it.
71115
71116 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71117
71118         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
71119         it.
71120
71121 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71122
71123         * lib/save-cwd.c (save_cwd): Remove code to support the case
71124         where fchdir is missing or flaky.
71125
71126 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71127
71128         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
71129
71130 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71131
71132         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
71133         AC_LIBSOURCES now does this.
71134         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
71135         with new ullong_max module.
71136
71137 2005-01-19  Bruno Haible  <bruno@clisp.org>
71138
71139         * modules/sh-quote: New file.
71140         * MODULES.html.sh (Executing programs): Add sh-quote.
71141
71142 2005-01-19  Bruno Haible  <bruno@clisp.org>
71143
71144         * lib/sh-quote.h: New file, from GNU gettext.
71145         * lib/sh-quote.c: New file, from GNU gettext.
71146
71147 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         Merge from coreutils.
71150         * m4/ullong_max.m4: New file.
71151         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
71152         (gl_MACROS): Assume localeconv exists.
71153
71154 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71155
71156         Merge changes from coreutils, as described below in several
71157         changelogs dated today.
71158
71159         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
71160         (O_DIRECTORY): Remove; not needed here, since "." must be
71161         a directory.  All uses removed.
71162         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
71163         universal on Suns, and we also need to test for IRIX.
71164         Revamp code to use 'if' rather than '#if'.
71165         Avoid unnecessary comparison of cwd->desc to 0.
71166
71167         * lib/utimens.c (futimens): Robustify the previous patch, by checking
71168         for known valid error numbers rather than observed invalid ones.
71169
71170 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         * modules/ullong_max: New file.
71173
71174         * modules/chdir-long, modules/openat: New files.
71175         * modules/save-cwd (Depends-on): Depend on chdir-long.
71176         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
71177
71178 2005-01-18  Jim Meyering  <jim@meyering.net>
71179
71180         Merge from coreutils.
71181         * m4/chdir-long.m4, m4/openat.m4: New files.
71182         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
71183         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
71184         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
71185         is sane and DOES follow symlinks.  Besides, testing 20 different
71186         systems found no broken chown implementations.
71187         Prompted by a change in rsync's copy of this macro.
71188         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
71189
71190         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
71191
71192         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
71193         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
71194         NULL-means-set-to-current-time semantics.
71195         Remove temporary file immediately, rather than waiting
71196         for configure's at-exit trap code to do it.
71197
71198 2005-01-18  Jim Meyering  <jim@meyering.net>
71199
71200         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71201
71202         * lib/utimens.c (futimens): Account for the fact that futimes
71203         can also fail with errno == ENOSYS or errno == ENOENT.
71204         Patch from Dmitry V. Levin.
71205
71206         Change the name of the robust chdir function from chdir to chdir_long.
71207         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
71208         (restore_cwd): Use chdir_long, not chdir.
71209         * lib/chdir-long.c: Renamed from chdir.c.
71210         * lib/chdir-long.h: Renamed from chdir.h.
71211         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
71212         Hurd.
71213
71214 2005-01-18  Bruno Haible  <bruno@clisp.org>
71215
71216         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
71217         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
71218         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
71219         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
71220         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
71221         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
71222         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
71223         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
71224         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
71225         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
71226         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
71227         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
71228         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
71229         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
71230         Use an all-permissive copyright notice, recommended by RMS.
71231
71232 2005-01-18  Bob Proulx  <bob@proulx.com>
71233
71234         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
71235         simplify offsetof() macro construct to avoid compile failure with
71236         native HP-UX 11.0 ANSI C compiler.
71237
71238 2005-01-17  Bruno Haible  <bruno@clisp.org>
71239
71240         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71241         redundant because stpncpy.m4 takes care of it.
71242
71243 2005-01-17  Bruno Haible  <bruno@clisp.org>
71244
71245         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71246
71247 2005-01-17  Bruno Haible  <bruno@clisp.org>
71248
71249         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71250         used.
71251
71252 2005-01-17  Bruno Haible  <bruno@clisp.org>
71253
71254         * lib/fwriteerror.h (fwriteerror): Change specification to include
71255         fclose.
71256         * lib/fwriteerror.c: Include <stdbool.h>.
71257         (fwriteerror): At the end, close the file stream. Record whether
71258         stdout was already closed.
71259
71260 2005-01-17  Bruno Haible  <bruno@clisp.org>
71261
71262         * lib/execute.c (environ): Declare if needed.
71263         * lib/pipe.c (environ): Likewise.
71264         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71265
71266 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71267
71268         * modules/argp: Depend on vsnprintf
71269
71270 2005-01-10  Jim Meyering  <jim@meyering.net>
71271
71272         * modules/closeout (Depends-on): Add atexit.
71273
71274 2005-01-06  Bruno Haible  <bruno@clisp.org>
71275
71276         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71277
71278 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71279
71280         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71281         definitions to be after all include files, to avoid collisions.
71282         Problem reported by Bob Proulx.
71283
71284 2005-01-04  Jim Meyering  <jim@meyering.net>
71285
71286         Changes imported from coreutils.
71287         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71288         as the mkstemp template, use a temporary directory and an
71289         8.3-friendly template to avoid trouble on systems like DJGPP.
71290         Reported by Juan M. Guerrero via Stepan Kasal.
71291         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71292         close. Remove the temporary directory right away, rather than waiting
71293         for configure's at-exit trap code to do it.
71294         Suggestion from Stepan Kasal.
71295
71296 2005-01-01  Simon Josefsson  <jas@extundo.com>
71297
71298         * gnulib-tool: Print #include directives when --import'ing.
71299
71300 2004-12-28  Simon Josefsson  <jas@extundo.com>
71301
71302         * tests/test-base64.c: Include required header files.  Remove
71303         unused variables.
71304
71305 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * modules/error (Depends-on): Remove gettext.
71308
71309 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71310
71311         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71312         not needed.  This removes a dependency on the gettext module.
71313         [defined _LIBC]: Do not include <libintl.h>; not needed.
71314
71315 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71316
71317         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71318         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71319
71320 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71321
71322         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71323         HAVE_DECL_STRTOLD.
71324
71325 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71326
71327         * modules/getdate (Depends-on): Remove alloca-opt.
71328
71329 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71330
71331         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71332
71333 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71334
71335         * lib/argp-parse.c: Include <stddef.h>.
71336         (alignof, alignto): New macros.
71337         (parser_init): Don't assume that void * is aligned sufficiently
71338         for struct option.
71339
71340         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71341         need to extend the stack.
71342         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71343         large.
71344
71345 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71346
71347         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71348
71349 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71350
71351         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71352         (2004-10-24) change.  Apparently this was a false alarm.
71353
71354         * modules/getdate: Depend on alloca-opt, not alloca.
71355
71356 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71357
71358         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71359         Remove now-obsolete comment about AIX.
71360         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71361         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71362         (YYMAXDEPTH): New macro.
71363
71364 2004-12-18  Simon Josefsson  <jas@extundo.com>
71365
71366         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71367
71368 2004-12-18  Bruno Haible  <bruno@clisp.org>
71369
71370         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71371
71372 2004-12-18  Bruno Haible  <bruno@clisp.org>
71373
71374         * lib/fatal-signal.c (fatal_signals): Make non-const.
71375         (init_fatal_signals): New function.
71376         (uninstall_handlers, install_handlers): Ignore signals that were set to
71377         SIG_IGN.
71378         (at_fatal_signal): Call init_fatal_signals.
71379         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71380         SIG_IGN.
71381         Reported by Paul Eggert.
71382
71383 2004-12-18  Bruno Haible  <bruno@clisp.org>
71384
71385         * doc/alloca.texi: New file.
71386         * doc/alloca-opt.texi: New file.
71387
71388 2004-12-17  Jim Meyering  <jim@meyering.net>
71389
71390         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71391         Otherwise, install-sh could exit with improper exit status when
71392         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71393
71394 2004-12-16  Simon Josefsson  <jas@extundo.com>
71395
71396         * tests/test-base64.c: Add license.
71397
71398 2004-12-15  Stepan Kasal  <address@hidden>
71399
71400         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71401
71402 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * modules/getcwd (Files): Add m4/d-ino.m4.
71405         Suggested by Mark D. Baushke.
71406
71407 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71408
71409         * lib/getdate.y (textint): New member "negative".
71410         (time_zone_hhmm): New function.
71411         Expect 14 shift-reduce conflicts, not 13.
71412         (o_colon_minutes): New rule.
71413         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71414         (yylex): Set the "negative" member of signed numbers.
71415
71416 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71417
71418         * doc/getdate.texi (Time of day items, Time zone items):
71419         Describe new formats +00:00, UTC+00:00.
71420
71421 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71422
71423         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71424         spurious "-l"s.  Problem reported by Stepan Kasal.
71425
71426 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71427
71428         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71429         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71430
71431 2004-12-04  Simon Josefsson  <jas@extundo.com>
71432
71433         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71434         Vandoorselaere <yoann@prelude-ids.org>.
71435
71436 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         Changes imported from coreutils.
71439         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71440         exist.
71441         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71442
71443 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71444
71445         Changes imported from coreutils.
71446         * lib/hard-locale.c: Assume <locale.h> exists.
71447         Include "strdup.h".
71448         (GLIBC_VERSION): New macro.
71449         (hard_locale): Assume setlocale exists.
71450         Rewrite to avoid #ifdef.
71451         Use strdup rather than malloc + strcpy.
71452         * lib/human.c: Assume <locale.h> exists.
71453         (human_readable): Assume localeconv exists.
71454
71455 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71456
71457         * modules/hard-locale (Depends-on): Add strdup.
71458
71459 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71460
71461         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71462         convert T2, not T.  (Imported from libc.)
71463
71464 2004-11-30  Simon Josefsson  <jas@extundo.com>
71465
71466         * modules/restrict (License): Change to LGPL.
71467
71468 2004-11-30  Simon Josefsson  <jas@extundo.com>
71469
71470         * m4/restrict.m4: Add copyright and copying conditions.
71471
71472 2004-11-30  Simon Josefsson  <jas@extundo.com>
71473
71474         * m4/base64.m4: New file.
71475
71476 2004-11-30  Simon Josefsson  <jas@extundo.com>
71477
71478         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71479         base64.
71480
71481         * tests/test-base64.c: New file.
71482
71483         * modules/base64: New file.
71484
71485 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71486
71487         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71488         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71489
71490         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71491
71492 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71493
71494         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71495         (__getcwd.c): Don't restore errno; glibc doesn't.
71496         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71497         first, falling back to our code only if its results look suspicious.
71498         Ensure that the resulting buffer is only as large as necessary.
71499
71500         * lib/readutmp.c: Include readutmp.h first.
71501         Include <errno.h>, since readutmp.h no longer does that.
71502         * lib/readutmp.h: Don't include <errno.h>,
71503         <sys/param.h>, <time.h>; not needed to establish interface.
71504         (errno): Remove decl.
71505         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71506         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71507         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71508
71509 2004-11-28  Simon Josefsson  <jas@extundo.com>
71510
71511         * lib/base64.h, base64.c: New file.
71512
71513 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71514
71515         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71516
71517 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71518
71519         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71520         (Depends-on): Remove pathmax, same.  Add mempcpy.
71521         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71522         (Makefile.am): Append getcwd.h to lib_SOURCES.
71523         (Include): Add getcwd.h.
71524         (Maintainer): Change from Jim Meyering to "all, glibc",
71525         since getdate now uses intended-for-glibc code.
71526         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71527         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71528
71529 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71530
71531         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71532         HP's ANSI C compiler.
71533         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71534         Declaring int functions causes warnings on some modern systems and
71535         shouldn't be needed to compile on ancient ones.
71536         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71537         defined.
71538
71539         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71540         with the following changes.
71541         (__set_errno): Parenthesize properly.
71542         Include <stdbool.h>.
71543         (MIN, MAX, MATCHING_INO): New macros.
71544         (__getcwd): Define with prototype, not K&R form.
71545         Use heuristics to allocate default buffer on stack if possible.
71546         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71547         behavior, and to avoid the PATH_MAX limit when computing
71548         ../../../../...
71549         Use MATCHING_INO to compare inode number to file.
71550         Check for arithmetic overflow in size calculations.
71551         Fix bug in reallocation of dot array that caused getcwd to fail
71552         on directories nested deeper than 75.
71553         Be more careful about saving errno on error.
71554         Do not use realloc; use only free+malloc, as this is a bit
71555         more flexible and avoids a needless copy operation.
71556         Do not inspect st_dev and st_ino for symbolic links; POSIX
71557         doesn't specify the latter.
71558         Check for closedir errors.
71559         Avoid needless casts.
71560         Use "#ifdef weak_alias" around weak_alias, to be like other
71561         glibc code.
71562         The following changes to getcwd.c have effect only when used in
71563         gnulib; they have no effect inside glibc proper.
71564         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71565         as alloca isn't used.
71566         (alloca, __alloca): Likewise.
71567         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71568         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71569         unconditionally, as gnulib assumes C89 or better.
71570         Do not include <sys/param.h>.
71571         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71572         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71573         better.
71574         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71575         Include <dirent.h> in a way that is compatible with modern Autoconf.
71576         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71577         New macros, if not already defined.
71578         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71579         Use "_LIBC", not "defined _LIBC", for consistency.
71580         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71581         a mempcpy module.
71582         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71583         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71584         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71585         credit only to Jim Meyering and adjust the copyright dates.
71586         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71587         <stdlib.h>, <unistd.h>, "pathmax.h".
71588         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71589         (INITIAL_BUFFER_SIZE): Remove.
71590         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71591
71592 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71593
71594         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71595         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71596         Use the _ONCE methods, for efficiency.
71597         Check for fcntl.h.  In test program, include <errno.h>
71598         and <fcntl.h> if available.  Remove old K&R cruft from
71599         test program.  Check for common errors in GNU/Linux,
71600         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71601         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71602         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71603         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71604         name accordingly.
71605         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71606         accommodate new getcwd.c.
71607         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71608         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71609         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71610         that's all we need now.
71611
71612 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71613
71614         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71615         argp-parse.c depends on getopt internals, that means we should
71616         always use our getopt, to be on the safe side.
71617         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71618         order not to spoil the result of an eventual previous invocation
71619         of gl_GETOPT_SUBSTITUTE.
71620
71621 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71622
71623         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71624         redefinition warnings. To avoid them, include the defines
71625         in `#if !defined __need_getopt ... #endif'. The only place
71626         where __getopt_argv_const is used is in definitions
71627         of getopt_long and getopt_long_only below, which are as well
71628         protected by `#ifndef __need_getopt'.
71629         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71630         __need_getopt after including <stdio.h> and <unistd.h> These
71631         headers might have defined it.
71632
71633 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71634
71635         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71636
71637 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71638
71639         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71640         (futimens): New function, which uses futimes if available.
71641         (futimens, utimens): Support timespec==NULL, with same semantics
71642         as utime and utimens.
71643         * lib/utimens.h (futimens): New decl.
71644
71645 2004-11-23  Jim Meyering  <jim@meyering.net>
71646
71647         * lib/getopt_.h: Remove trailing blanks.
71648
71649 2004-11-23  Jim Meyering  <jim@meyering.net>
71650
71651         * lib/__fpending.c: Add comment.
71652
71653 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71654
71655         * modules/canonicalize (Depends-on): Add xreadlink.
71656         Problem reported by James Youngman.
71657
71658 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71661         New macros.
71662         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71663         optopt): Use them instead of invoking ## directly; otherwise, the
71664         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71665
71666 2004-11-19  Bruno Haible  <bruno@clisp.org>
71667
71668         * lib/strtok_r.c: Move comments from here...
71669         * lib/strtok_r.h: ... to here.
71670
71671 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71672
71673         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71674         implementations that mishandle size_t overflow.
71675
71676 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71677
71678         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71679         might fail.  Problem reported by Yoann Vandoorselaere.
71680         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71681         implementations that mishandle size_t overflow.
71682
71683 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71684
71685         * modules/canon-host (Depends-on): Add strdup.
71686
71687 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71688
71689         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71690
71691 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71692
71693         * lib/canon-host.c: Include "strdup.h".
71694         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71695         Use strdup instead of malloc/strcpy to duplicate strings.
71696
71697         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71698         (human_space_before_unit): New constant.
71699         * lib/human.c (human_readable): Support it.
71700
71701         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71702         (xgetcwd): Set errno correctly when failing.
71703         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71704         the failure is actually due to a PATH_MAX problem.
71705
71706         Further getopt changes to make it more likely that glibc will
71707         buy the changes back.
71708         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71709         (getopt): Use it, so to preserve glibc semantic
71710         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71711         when compiling for libc.
71712         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71713         (getopt_long, getopt_long_only): Use it.
71714
71715         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71716         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71717         (getopt): Argv is now char * const *, as per standard.
71718         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71719         not char *__getopt_argv_const *.
71720         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71721         _getopt_long_only_r): Likewise.
71722         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71723         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71724         _getopt_long_r, _getopt_long_only_r): Likewise.
71725         * lib/getopt_.h (__getopt_argv_const): Remove.
71726         (getopt): Argv is now char * const *, as per standard.
71727
71728         * lib/getdate.y (tORDINAL): New token.
71729         (day, relunit): Allow it for relative times.
71730         (relative_time_table): Use tORDINAL for ordinals.
71731
71732 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71733
71734         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71735         Document that "second" isn't allowed as an ordinal number.
71736
71737 2004-11-16  Jim Meyering  <jim@meyering.net>
71738
71739         * modules/closeout (Depends-on): Add fpending.
71740
71741 2004-11-15  Jim Meyering  <jim@meyering.net>
71742
71743         * lib/closeout.c: Include "__fpending.h" once again.
71744         Include <stdbool.h>.
71745         (close_stdout): Don't fail just because stdout was closed initially,
71746         since some programs don't write to stdout in the normal course of
71747         operation (other than --version and --help), and we don't want this
71748         function to make e.g. `touch file >&-' fail.
71749         But do fail if it was closed and someone has tried to write to it.
71750         E.g., `printf foo >&-' must fail.
71751
71752 2004-11-13  Jim Meyering  <jim@meyering.net>
71753
71754         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71755
71756 2004-11-12  Simon Josefsson  <jas@extundo.com>
71757
71758         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71759         small doc fix is still pending.
71760
71761 2004-11-11  Simon Josefsson  <jas@extundo.com>
71762
71763         * modules/strtok_r: New file.
71764
71765         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71766         strtok_r.
71767
71768 2004-11-11  Simon Josefsson  <jas@extundo.com>
71769
71770         * m4/strtok_r.m4: New file.
71771
71772         * m4/getopt.m4: Replace opterr.
71773
71774 2004-11-11  Simon Josefsson  <jas@extundo.com>
71775
71776         * lib/strtok_r.h, strtok_r.c: New file.
71777
71778 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71779
71780         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71781         of replacing opterr, getopt, etc.  This should handle the
71782         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71783
71784 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71785
71786         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71787         we can stop lying to compilers about the constness of argv when we
71788         are compiled outside glibc.
71789         (getopt, getopt_long, getopt_long_only): Use it.
71790         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71791         _getopt_internal, getopt): Likewise.
71792         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71793         _getopt_long_only_r): Likewise.
71794         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71795         _getopt_long_r, _getopt_long_only_r): Likewise.
71796
71797         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71798         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71799         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71800         the other external symbols.
71801         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71802         declaration, since the above renaming now works around collisions.
71803
71804 2004-11-11  Jim Meyering  <jim@meyering.net>
71805
71806         * lib/linebreak.c: Remove trailing blanks.
71807         * lib/alloca_.h: Likewise.
71808         * lib/acosl.c: Likewise.
71809         * lib/euidaccess.c: Likewise.
71810         * lib/allocsa.h: Likewise.
71811
71812 2004-11-10  Simon Josefsson  <jas@extundo.com>
71813
71814         * m4/getaddrinfo.m4: New file.
71815
71816 2004-11-10  Simon Josefsson  <jas@extundo.com>
71817
71818         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71819
71820 2004-11-10  Simon Josefsson  <jas@extundo.com>
71821
71822         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71823         getaddrinfo.
71824
71825         * modules/getaddrinfo: New file.
71826
71827 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71828
71829         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71830
71831 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71832
71833         * lib/mktime.c (SHR): New macro, which is a portable
71834         substitute for >> that should work even on Crays.
71835         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71836         Problem reported by Mark D. Baushke in
71837         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71838         * lib/getdate.y (SHR): Likewise.
71839         (tm_diff): Use it.
71840         * lib/strftime.c (SHR): Likewise.
71841         (tm_diff): Use it.
71842         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71843         quote_these_too, so that right shifts are well defined.  All uses
71844         changed.
71845
71846 2004-11-10  Jim Meyering  <jim@meyering.net>
71847
71848         Ensure that no close failure goes unreported.
71849         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71850         return early when it seems there's nothing to flush.
71851         Don't include __fpending.h.
71852
71853 2004-11-10  Jim Meyering  <jim@meyering.net>
71854
71855         * modules/closeout (Depends-on): Remove fpending.
71856
71857 2004-11-10  Jim Meyering  <jim@meyering.net>
71858
71859         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71860
71861 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71862
71863         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71864         gl_FUNC_STRFTIME.
71865         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71866         and AC_REQUIRE when possible, to avoid duplicate checks.
71867         Check for <wchar.h>.
71868
71869 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71870
71871         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71872
71873 2004-11-09  Bruno Haible  <bruno@clisp.org>
71874
71875         * m4/sockpfaf.m4: New file.
71876
71877 2004-11-05  Bruno Haible  <bruno@clisp.org>
71878
71879         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71880         Reported by Mark D. Baushke <mdb@cvshome.org>.
71881
71882 2004-11-04  Bruno Haible  <bruno@clisp.org>
71883
71884         2004-09-11  Bruno Haible  <bruno@clisp.org>
71885                 * allocsa.valgrind: New file.
71886         2004-02-06  Bruno Haible  <bruno@clisp.org>
71887                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71888                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71889                 Reported by Christopher Seip <chris.seip@hp.com>.
71890
71891 2004-11-04  Bruno Haible  <bruno@clisp.org>
71892
71893         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71894         (Makefile.am): Distribute it.
71895
71896 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71897
71898         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71899         with errno == ERANGE if the buffer is too small.
71900         Problem reported by Mark D. Baushke.
71901
71902 2004-11-03  Albert Chin  <china@thewrittenword.com>
71903             Paul Eggert  <eggert@cs.ucla.edu>
71904
71905         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71906         equivalent, substitute $ac_type for equivalent type rather than
71907         blindly using uint32_t *always* which won't work if uint32_t is not
71908         available.  Define _UINT32_T to work around typedef of uint32_t if
71909         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71910         2.5.1.
71911
71912 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71913
71914         * m4/jm-macros.m4: Sync from coreutils.
71915         (gl_MACROS): Check for mbrlen, for pathchk.
71916         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71917
71918 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71919
71920         * lib/xreadlink.c (MAXSIZE): New macro.
71921         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71922         size does not exceed MAXSIZE.  Avoid cast.
71923         As suggested by Mark D. Baushke in
71924         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71925         if readlink fails with buffer size just under MAXSIZE, try again
71926         with MAXSIZE.
71927
71928 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71929
71930         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71931
71932 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71933         and  Paul Eggert  <eggert@cs.ucla.edu>
71934
71935         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71936         (get_date): Overparenthesize to avoid GCC warning.
71937
71938 2004-11-02  Bruno Haible  <bruno@clisp.org>
71939
71940         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71941         returns void.
71942
71943 2004-11-02  Bruno Haible  <bruno@clisp.org>
71944
71945         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71946         function returns void.
71947
71948 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71951         fflush_unlocked, flockfile, funlockfile, funlockfile,
71952         fputs_unlocked, putc_unlocked.
71953
71954 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71955
71956         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71957         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71958         already declared.
71959
71960 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71961
71962         * modules/getdate (Files): Add doc/getdate.texi.
71963         (Depends-on): Add setenv, xalloc.
71964
71965 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71966
71967         * lib/getdate.y: Add support for TZ="foo" within a date string.
71968         Fix some bugs near time_t boundaries.  Reject dates with
71969         out-of-range components, e.g., "Sept 31".
71970         Include <stdlib.h>, "setenv.h", "xalloc.h".
71971         (ISDIGIT_LOCALE): Remove; unused.
71972         Note that the TZ and time functions used here are not reentrant.
71973         (mktime_ok, get_tz): New functions.
71974         (TZBUFSIZE): New constant.
71975         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71976         This requires that we sometimes generate our own TZ="XXX..." setting.
71977
71978 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71979
71980         * doc/getdate.texi: New file, from coreutils with modifications for
71981         the new TZ parsing.
71982
71983 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71984
71985         * lib/mktime.c (not_equal_tm): Remove redundant check.
71986
71987 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71988
71989         * modules/regex (lib_SOURCES): Add regex.c.
71990         Reported by James Youngman in
71991         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71992
71993 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71994
71995         * lib/getdate.y: Use Bison 1.875 features, and some minor
71996         code cleanups.  This change does not affect semantics.
71997         Don't include <stdlib.h>; no longer needed.
71998         Don't include unlocked-io.h; only the "#if TEST" code uses
71999         stdio, and performance isn't crucial there.
72000         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
72001         Bison 1.875 features as described below.
72002         All uses of "PC." replaced by "pc->".
72003         (YYSTYPE): Add a forward declaration.
72004         (yylex, yyerror): Use full prototypes in forward decls.
72005         Use "%pure-parser" rather than obsolescent "%pure_parser".
72006         Use %parse-param and %lex-param instead of obsolescent
72007         YYPARSE_PARAM and YYLEX_PARAM.
72008         (meridian_table, month_and_day_table, time_units_table,
72009         relative_time_table, time_zone_table, military_table,
72010         lookup_zone, lookup_word, get_date):
72011         Use NULL instead of 0 where appropriate.
72012         (to_hour): Avoid abort (), to avoid a dependency on
72013         stdlib.h.
72014         (yyerror, yylex): Now accepts parser_control * arg.
72015         (main) [TEST]: Use '\0' rather than 0 for char.
72016
72017 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72018
72019         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
72020
72021 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72022
72023         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
72024         It's now the caller's responsibility to handle the case where
72025         !HAVE_GETPAGESIZE && !defined getpagesize.
72026
72027         * lib/mktime.c (leapyear): Arg is long int, not int.
72028
72029 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
72032
72033 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72034
72035         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
72036         missing.  Problem reported by James Youngman.
72037
72038 2004-10-16  Simon Josefsson  <jas@extundo.com>
72039
72040         * gnulib-tool: Fix comments.  Fix parse problem.
72041         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
72042
72043 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
72044
72045         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
72046         implementation of getopt_long.  Problem reported by Alexander Taler in:
72047         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
72048
72049 2004-10-15  Bruno Haible  <bruno@clisp.org>
72050
72051         * gnulib-tool: Untabify. Initialize supplied_libname.
72052         (func_usage): More homogenous output.
72053         (func_modules_transitive_closure, func_modules_to_filelist,
72054         func_emit_lib_Makefile_am): New functions.
72055         (func_import): New function, extracted from big case statement. Use
72056         func_get_license, func_modules_transitive_closure,
72057         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
72058         opt_lgpl. Don't use test -a, as it's not portable.
72059         (func_create_testdir): Use func_modules_transitive_closure,
72060         func_modules_to_filelist, func_emit_lib_Makefile_am.
72061
72062 2004-10-15  Bruno Haible  <bruno@clisp.org>
72063
72064         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
72065
72066 2004-10-15  Bruno Haible  <bruno@clisp.org>
72067
72068         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
72069         the portions belonging to each module.
72070         Suggested by Derek Robert Price <derek@ximbiot.com>.
72071
72072 2004-10-12  Simon Josefsson  <jas@extundo.com>
72073
72074         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72075         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
72076         to real functions.
72077
72078 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72079
72080         * modules/vsnprintf: New file.
72081
72082 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72083
72084         * m4/vsnprintf.m4: New file.
72085
72086 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72087
72088         * lib/vsnprintf.h: New file.
72089         * lib/vsnprintf.c: New file.
72090
72091 2004-10-11  Bruno Haible  <bruno@clisp.org>
72092
72093         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
72094         vsnprintf.
72095
72096 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72097
72098         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
72099
72100 2004-10-07  Bruno Haible  <bruno@clisp.org>
72101
72102         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
72103         fits into the provided buffer.
72104
72105 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72106
72107         * lib/diacrit.c, diacrit.h: Add GPL notice.
72108
72109         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
72110         notice.
72111         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
72112         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
72113         This avoids a potential constant-folding bug.
72114
72115 2004-10-05  Bruno Haible  <bruno@clisp.org>
72116
72117         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
72118         for the declaration of strsep.
72119
72120 2004-10-05  Bruno Haible  <bruno@clisp.org>
72121
72122         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
72123
72124 2004-10-04  Simon Josefsson  <jas@extundo.com>
72125
72126         * modules/memmem: New file.
72127         * tests/test-memmem.c: New file.
72128         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
72129
72130 2004-10-04  Simon Josefsson  <jas@extundo.com>
72131
72132         * m4/memmem.m4: New file.
72133
72134 2004-10-04  Simon Josefsson  <jas@extundo.com>
72135
72136         * lib/memmem.h: New file.
72137         * lib/memmem.c: New file, taken from glibc.
72138
72139 2004-10-04  Simon Josefsson  <jas@extundo.com>
72140
72141         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
72142         '#ifdef USE_UNLOCKED_IO'.
72143
72144 2004-10-04  Simon Josefsson  <jas@extundo.com>
72145
72146         * config/srclist.txt: Add memmem from glibc.
72147
72148 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72149
72150         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
72151
72152         * modules/argmatch, modules/argp, modules/closeout, modules/error,
72153         modules/exclude, modules/getdate, modules/getline,
72154         modules/getndelim2, modules/getpass, modules/getpass-gnu,
72155         modules/getusershell, modules/linebuffer, modules/md5,
72156         modules/mountlist, modules/posixtm, modules/readtokens,
72157         modules/readutmp, modules/regex, modules/sha1,
72158         modules/version-etc, modules/yesno:
72159         Remove dependency on unlocked-io.
72160
72161 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72162
72163         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
72164
72165         * m4/unlocked-io.m4: Add copyright notice.
72166         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
72167
72168 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72169
72170         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
72171         * lib/xmalloc.c (xmemdup): Likewise.
72172         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
72173         XFREE): Remove these long-obsolescent macros.
72174         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
72175         * lib/xstrdup.c: Remove.
72176
72177         * lib/regex.c (re_comp): Cast gettext return value to char *,
72178         Problem reported by Martin Neitzel via Mark D. Baushke.
72179
72180 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72181
72182         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
72183         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
72184         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
72185         regex.c, sha1.c, version-etc.c, yesno.c:
72186         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
72187         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
72188         the includer's responsibility.
72189
72190         Sync from coreutils.
72191
72192         * lib/modechange.c (mode_compile): Don't decrement a pointer that
72193         points to the start of a string, as the C Standard says the
72194         resulting behavior is undefined.
72195
72196         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
72197         simple -> simple_backups, numbered_existing ->
72198         numbered_existing_backups, numbered -> numbered_backups
72199         to avoid shadowing problems.  All uses changed.
72200         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
72201         * lib/backupfile.c (check_extension, numbered_backup):
72202         Rename locals to avoid shadowing 'basename'.
72203         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
72204         once.
72205
72206         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
72207         * lib/.cvsignore: Add getopt.h.
72208
72209 2004-10-04  Bruno Haible  <bruno@clisp.org>
72210
72211         * modules/README: New file.
72212         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
72213         not a module.
72214
72215 2004-10-02  Jim Meyering  <jim@meyering.net>
72216
72217         * lib/dirfd.h, getpagesize.h: Add copyright notice.
72218
72219 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72220
72221         * modules/strsep: New file.
72222
72223 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72224
72225         * m4/strsep.m4: New file.
72226
72227 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72228
72229         * lib/strsep.h: New file.
72230         * lib/strsep.c: New file.
72231
72232 2004-10-01  Simon Josefsson  <jas@extundo.com>
72233
72234         * lib/snprintf.c (snprintf): Handle size==0.
72235
72236 2004-10-01  Simon Josefsson  <jas@extundo.com>
72237             Bruno Haible  <bruno@clisp.org>
72238
72239         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
72240         (snprintf): Declare 'args'.
72241
72242 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72243
72244         * lib/snprintf.c: Remove comments as to why each header is needed.
72245
72246 2004-10-01  Bruno Haible  <bruno@clisp.org>
72247
72248         * MODULES.html.sh: Add strsep.
72249
72250 2004-09-30  Simon Josefsson  <jas@extundo.com>
72251
72252         * modules/snprintf: New file.
72253
72254 2004-09-30  Simon Josefsson  <jas@extundo.com>
72255
72256         * m4/snprintf.m4: New file.
72257
72258 2004-09-30  Simon Josefsson  <jas@extundo.com>
72259
72260         * lib/snprintf.h, lib/snprintf.c: New files.
72261
72262 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72263
72264         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72265         (hol_entry_help): Never translate an empty string.
72266         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72267         * lib/argp.h (OPTION_NO_TRANS): New option.
72268
72269 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72270
72271         * modules/argp (Maintainer): Replace Simon Josefsson
72272         by Sergey Poznyakoff.
72273
72274 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72275
72276         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72277         changes merged back into glibc.
72278
72279 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72280
72281         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72282
72283 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72284
72285         * lib/xvasprintf.c: Include xalloc.h.
72286         (xvasprintf): Use xalloc_die, not xmalloc_die.
72287
72288 2004-09-29  Bruno Haible  <bruno@clisp.org>
72289
72290         * modules/alloca-opt: New file, derived from modules/alloca.
72291         * modules/allocsa: Depend on alloca-opt instead of alloca.
72292         * modules/setenv: Likewise.
72293         * modules/vasnprintf: Likewise.
72294         * MODULES.html.sh: Add alloca-opt.
72295
72296 2004-09-28  Simon Josefsson  <jas@extundo.com>
72297
72298         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72299         LGPL, and to replace license template from GPL to LGPL.
72300
72301 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72302
72303         * modules/dummy: Change license to LGPL.
72304
72305 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72306
72307         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72308
72309 2004-09-24  Simon Josefsson  <jas@extundo.com>
72310
72311         * modules/minmax (License): Change from GPL to LGPL.
72312
72313 2004-09-23  Simon Josefsson  <jas@extundo.com>
72314
72315         * gnulib-tool (--import): Typo.
72316
72317 2004-09-23  Simon Josefsson  <jas@extundo.com>
72318
72319         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72320
72321 2004-09-22  Bruno Haible  <bruno@clisp.org>
72322
72323         * modules/*: Add 'License' field.
72324         * gnulib-tool: Accept --extract-license option.
72325         (func_get_license): New function.
72326
72327 2004-09-21  Bruno Haible  <bruno@clisp.org>
72328
72329         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72330         Reported by Simon Josefsson.
72331
72332 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72335         gl_AC_TYPE_LONG_LONG.
72336
72337 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72338
72339         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72340
72341 2004-09-18  Simon Josefsson  <jas@extundo.com>
72342         and  Paul Eggert  <eggert@cs.ucla.edu>
72343
72344         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72345         calls with autoreconf.  Define GL_LIB.
72346
72347 2004-09-14  Karl Berry  <karl@gnu.org>
72348
72349         * config/srclist.txt: unsync setenv.c, sigh.
72350
72351 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72352
72353         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72354         Problem reported by Bruno Haible in:
72355         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72356
72357 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72358
72359         * config/srclist.txt: Comment out argp-pvh.c.
72360
72361 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72362
72363         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72364         in case some system header has #define'd it.  Problem reported by
72365         Soeren D. Schulze in
72366         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72367
72368 2004-09-09  Karl Berry  <karl@gnu.org>
72369
72370         * regex.[ch]: delete from the root.  These were supposed to be
72371                 synced with emacs cvs, but this has not happened for about
72372                 a year, and anyway nothing else uses emacs regex.[ch].
72373                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72374                 lib/regex[.ch] is untouched.
72375
72376 2004-09-09  Bruno Haible  <bruno@clisp.org>
72377
72378         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72379
72380 2004-09-09  Bruno Haible  <bruno@clisp.org>
72381
72382         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72383         modifications.
72384         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72385
72386 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72387
72388         * modules/xvasprintf: New file.
72389         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72390
72391 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72392
72393         * lib/xvasprintf.h: New file.
72394         * lib/xvasprintf.c: New file.
72395         * lib/xasprintf.c: New file.
72396
72397 2004-09-08  Bruno Haible  <bruno@clisp.org>
72398
72399         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72400
72401 2004-09-08  Bruno Haible  <bruno@clisp.org>
72402
72403         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72404         length is > INT_MAX.
72405         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72406         more.
72407
72408 2004-09-08  Bruno Haible  <bruno@clisp.org>
72409
72410         * lib/stdint_.h: New file, taken from GNU clisp.
72411
72412 2004-09-08  Bruno Haible  <bruno@clisp.org>
72413             Oskar Liljeblad  <oskar@osk.mine.nu>
72414
72415         * modules/stdint: New file.
72416         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72417
72418 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         Import from coreutils.
72421         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72422         strings on unbounded length.  alloca's performance benefits aren't
72423         that important here.
72424         (V_STRDUP): Remove.
72425         (parse_with_separator): New function, with most of the internals
72426         of the old parse_user_spec.  Allow user to omit both user and group,
72427         for compatibility with FreeBSD.
72428         Clone only the user name, not the entire spec.
72429         Do not set *uid, *gid unless entirely successful.
72430         Avoid memory leak in some failing cases.
72431         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72432         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72433         (parse_user_spec): Rewrite to use parse_with_separator.
72434
72435 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72436
72437         * modules/userspec: Don't depend on alloca.
72438
72439 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72440
72441         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72442
72443 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72446         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72447         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72448
72449 2004-08-16  Simon Josefsson  <jas@extundo.com>
72450
72451         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72452         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72453         Add --dry-run for --import.
72454         Let user provided command line parameters override configure.ac
72455         settings.
72456
72457 2004-08-12  Simon Josefsson  <jas@extundo.com>
72458
72459         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72460         as discussed with Paul Eggert in threads rooted at
72461         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72462         and
72463         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72464         Before, the test was empty, and relied on ELIDE_CODE in source
72465         code.)
72466         (gl_PREREQ_GETOPT): New macro.
72467         (gl_GETOPT): Use them.
72468
72469 2004-08-12  Simon Josefsson  <jas@extundo.com>
72470
72471         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72472         * lib/getopt_.h: Renamed from getopt.h.
72473
72474 2004-08-12  Simon Josefsson  <jas@extundo.com>
72475
72476         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72477         Change default library name from libfoo to libgnu.
72478         Now, if you have a configure.ac that says:
72479                 gl_SOURCE_BASE(gl)
72480                 gl_M4_BASE(gl/m4)
72481                 gl_MODULES(error getopt etcetera)
72482                 gl_INIT
72483         you can import all you need by running:
72484                 ../gnulib/gnulib-tool --import
72485
72486         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72487         (Makefile.am): Rewrite, use logic from argz.
72488         (Include): Use <getopt.h> instead of "getopt.h".
72489
72490 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         * modules/argp (Files): Add m4/unlocked-io.m4.
72493         (Depends-on): Add extensions.
72494
72495 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72498         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72499         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72500         Check for program_invocation_name, program_invocation_short_name,
72501         flockfile, funlockfile, features.h, _getopt_long_only_r.
72502
72503 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72504
72505         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72506         its complicated substitute.
72507         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72508         and program_invocation_name.
72509         (__argp_basename) [!_LIBC]: Remove; the only use was
72510         replaced by its body.
72511         (__argp_short_program_name): Change condition from
72512         !defined __argp_short_program_name to
72513         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72514         to match argp-namefrob.h.
72515         (__argp_failure): Don't assume strerror_r returns char *.
72516         * lib/argp-parse.c (N_): Define unconditionally.
72517         (argp_default_options): Fill out initializers with 0 to avoid
72518         gcc warnings.
72519
72520 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72521
72522         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72523         getopt1.c.
72524
72525 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72526
72527         Merge from coreutils.
72528
72529         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72530
72531         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72532         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72533
72534 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72535
72536         Merge from coreutils.
72537
72538         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72539         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72540         for Reliant Unix 5.43.
72541
72542         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72543         (union fooround): Use uintmax_t, not long int.
72544         The rest is a merge from libc:
72545         [defined _LIBC]: Include <shlib-compat.h>.
72546         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72547
72548         * lib/settime.c (settime): Recode to avoid warning with
72549         Sun Forte C 6U2.
72550
72551         * lib/strverscmp.c: Convert to UTF-8.
72552
72553 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72554
72555         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72556         m4/uintmax_t.m4.
72557
72558 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72559
72560         * modules/xalloc-die: New file.
72561         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72562
72563         * modules/md5 (Files): Add m4/uint32_t.m4.
72564         * modules/sha1: Renamed from modules/sha.
72565         (Files):
72566         Rename lib/sha.h to lib/sha1.h.
72567         Rename lib/sha.c to lib/sha1.c.
72568         Rename m4/sha.m4 to m4/sha1.m4.
72569         (lib_SOURCES): Likewise.
72570         (configure.ac): Rename gl_SHA to gl_SHA1.
72571         (Include): sha.h -> sha1.h.
72572
72573 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72574
72575         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72576         * m4/sha1.m4: Renamed from sha.m4.
72577         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72578
72579 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72580
72581         * lib/obstack.h (obstack_empty_p):
72582         Don't assume that chunk->contents is suitably aligned.
72583         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72584         Likewise. Problem reported by Benno in
72585         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72586
72587         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72588         readable.  This could be improved further but it'd take some work.
72589
72590 2004-08-08  Simon Josefsson  <jas@extundo.com>
72591
72592         * modules/xgethostname (Depends-on): Remove exit and error (not
72593         used).
72594
72595         * modules/getpass-gnu: Add getpass.h.
72596         (Depends-on): Add stdbool.
72597         * modules/getpass: Add getpass.h.
72598
72599 2004-08-08  Simon Josefsson  <jas@extundo.com>
72600
72601         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72602         Check getpass declaration.
72603
72604 2004-08-08  Simon Josefsson  <jas@extundo.com>
72605
72606         * lib/xgethostname.c: Don't include error.h (not used).
72607
72608         * lib/getpass.h: Add.
72609         * lib/getpass.c: Include getpass.h first.
72610
72611 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72612
72613         * lib/xalloc-die.c: New file.
72614         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72615         All uses removed.
72616         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72617         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72618         xalloc-die.c.
72619         (_, N_, xalloc_die): Move to xalloc-die.c.
72620         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72621         so that we needn't mess with xalloc_msg_memory_exhausted.
72622
72623         * lib/sha1.h: Renamed from sha.h.
72624         (SHA1_H): Renamed from _SHA_H.
72625         (sha1_ctx): Renamed from sha_ctx.
72626         (sha1_init_ctx): Renamed from sha_init_ctx.
72627         (sha1_process_block): Renamed from sha_process_block.
72628         (sha1_process_bytes): Renamed from sha_process_bytes.
72629         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72630         (sha1_read_ctx): Renamed from sha_read_ctx.
72631         (sha1_stream): Renamed from sha_stream.
72632         (sha1_buffer): Renamed from sha_buffer.
72633         * lib/sha1.c: Likewise; renamed from sha.c.
72634         Do not include <sys/types.h>.
72635         Include <stddef.h> rather than <stdlib.h>.
72636
72637 2004-08-08  Bruno Haible  <bruno@clisp.org>
72638
72639         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72640         FILESYSTEM_PREFIX_LEN.
72641         * lib/progreloc.c: Likewise.
72642         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72643
72644 2004-08-06  Simon Josefsson  <jas@extundo.com>
72645
72646         * modules/progname (Depends-on): Don't depend on stdbool.
72647
72648 2004-08-06  Simon Josefsson  <jas@extundo.com>
72649
72650         * modules/getsubopt: New file.
72651         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72652         getsubopt.
72653
72654 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72655
72656         More merge from coreutils.
72657
72658         * m4/utimens.m4, m4/utimecmp.m4: New files.
72659         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72660         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72661         prereq.m4, sha.m4: Import changes from coreutils.
72662
72663 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72664
72665         More merge from coreutils.
72666         * modules/raise, modules/readtokens0, modules/utimens:
72667         * modules/utimecmp, module/xnanosleep: New files.
72668         * modules/strftime: Add lib/strftime.h.
72669         Change include from <time.h> to "strftime.h".
72670         * modules/yesno: Add lib/yesno.h.
72671         * modules/backupfile: Remove lib/addext.c.
72672         * modules/euidaccess: Add stat-macros.h.
72673         * modules/canonicalize, modules/euidaccess,
72674         modules/filemode, modules/lchown, modules/makepath,
72675         modules/rmdir, modules/stat: Likewise.
72676
72677 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72678
72679         Merge from tar.
72680         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72681         SIZE_MAX is a valid preprocessor constant.
72682         (__argp_basename): Change from "#ifndef _LIBC"
72683         to "#ifndef __argp_short_program_name", so that
72684         we don't compile these functions for tar.
72685
72686         More merges from coreutils.
72687         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72688         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72689         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72690         * lib/addext.c: Remove; no longer needed.
72691         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72692         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72693         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72694         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72695         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72696         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72697         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72698         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72699         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72700         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72701         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72702         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72703         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72704         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72705         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72706         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72707         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72708         Import changes from coreutils.
72709
72710 2004-08-05  Simon Josefsson  <jas@extundo.com>
72711
72712         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72713
72714 2004-08-05  Simon Josefsson  <jas@extundo.com>
72715
72716         * m4/getsubopt.m4: New file.
72717
72718 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72719
72720         Merge from coreutils.
72721
72722         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72723         * m4/getcwd-path-max.m4: New files.
72724
72725         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72726         FILESYSTEM_PREFIX_LEN ->
72727         FILE_SYSTEM_PREFIX_LEN.
72728         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72729         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72730         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72731         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72732
72733         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72734         prerequisite modules now handle the DOS stuff.
72735         Don't check for unistd.h.
72736
72737 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72738
72739         Merge from coreutils.
72740
72741         * lib/.gdb-history: Remove; this doesn't belong here.
72742
72743         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72744         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72745         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72746         * lib/getcwd.c: New files.
72747
72748         * lib/dirname.h: Include <stdbool.h>.
72749         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72750         for consistency with POSIX terminology.  All uses changed.
72751         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72752         (strip_trailing_slashes): Use bool for booleans.
72753         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72754
72755         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72756         sometimes returns a positive errno value even when it succeeds.
72757         (print_errno_message) [!LIBC]: Fall back on strerror if
72758         __strerror_r fails.
72759
72760         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72761         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72762         (longest_relative_suffix): New function.
72763         (path_concat): Use it.  Assume first argument is not NULL.
72764         Port to DOS.  Omit redundant separators.
72765         Report an error instead of returning NULL.
72766         Use mempcpy instead of memcpy.
72767         (xpath_concat): Remove: not declared or used.
72768
72769         * lib/same.h: Include <stdbool.h>
72770         (same_name): Return bool, not int.
72771         * lib/same.c (same_name): Likewise.
72772         (errno): Don't declare; we assume C89 or better now.
72773
72774         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72775         if not already defined.
72776
72777         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72778         * lib/dup-safer.c (errno): Likewise.
72779
72780 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72781
72782         Merge from coreutils.
72783         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72784         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72785         * modules/path-concat: Don't depend on strdup.
72786
72787 2004-08-03  Simon Josefsson  <jas@extundo.com>
72788
72789         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72790         * lib/progname.h: Don't include stdbool.h.
72791
72792 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72793
72794         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72795         * MODULES.html.sh (func_all_modules): Remove fatal.
72796
72797 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72798
72799         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72800
72801 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72804         working.
72805
72806 2004-08-02  Simon Josefsson  <jas@extundo.com>
72807
72808         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72809         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72810         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72811
72812 2004-08-01  Simon Josefsson  <jas@extundo.com>
72813
72814         * lib/xgetdomainname.c: Include stdlib.h, for free().
72815
72816 2004-07-19  Bruno Haible  <bruno@clisp.org>
72817
72818         * MODULES.html.sh (func_all_modules): Add dummy.
72819
72820 2004-07-16  Simon Josefsson  <jas@extundo.com>
72821
72822         * modules/dummy: New file.
72823
72824 2004-07-16  Simon Josefsson  <jas@extundo.com>
72825
72826         * lib/dummy.c: New file.
72827
72828 2004-07-16  Bruno Haible  <bruno@clisp.org>
72829
72830         * lib/backupfile.h: Add extern "C" for C++.
72831         * lib/closeout.h: Likewise.
72832         * lib/copy-file.h: Likewise.
72833         * lib/findprog.h: Likewise.
72834         * lib/full-write.h: Likewise.
72835         * lib/pathname.h: Likewise.
72836         * lib/progname.h: Likewise.
72837         * lib/stpcpy.h: Likewise.
72838         * lib/stpncpy.h: Likewise.
72839         * lib/strcase.h: Likewise.
72840         * lib/strstr.h: Likewise.
72841         * lib/xalloc.h: Likewise.
72842
72843         * lib/mbswidth.h: Add extern "C" for C++.
72844         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72845
72846 2004-07-13  Robert Millan  <robertmh@gnu.org>
72847
72848         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72849
72850 2004-07-09  Simon Josefsson  <jas@extundo.com>
72851
72852         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72853         failed without this.)
72854
72855 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * modules/chown (Files): Add lib/fchown-stub.c, since
72858         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72859
72860 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72861
72862         * lib/fchown-stub.c: New file.
72863
72864 2004-06-24  Jim Meyering  <jim@meyering.net>
72865
72866         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72867
72868 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         * modules/argz: Omit "#include".
72871
72872         * MODULES.html.sh (func_all_modules): Add calloc, to match
72873         2004-06-01 addition of calloc module.
72874
72875 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         * m4/argz.m4: New file, which is autoupdated from libtool.
72878
72879 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72880
72881         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72882         libtool.
72883
72884 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72885
72886         * config/srclist-update: Don't insist on "USA." before the
72887         close-comment, as libtool omits the period and puts the */ on a
72888         separate line.
72889         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72890         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72891
72892 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72893
72894         * modules/argz: New file.
72895         * MODULES.html.sh (func_all_modules): Add argz.
72896
72897 2004-06-12  Jim Meyering  <jim@meyering.net>
72898         and  Paul Eggert  <eggert@cs.ucla.edu>
72899
72900         * modules/hash (Files): Add lib/xalloc.h.
72901         * modules/pipe (Depends-on): Add wait-process.
72902         * modules/stat (Depends-on): Add xalloc.
72903         * modules/userspec (Files): Add lib/userspec.h.
72904         * modules/xstrto
72905
72906         Upgrade from gettext-0.13.
72907         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72908         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72909         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72910
72911 2004-06-10  Jim Meyering  <jim@meyering.net>
72912
72913         * lib/calloc.c: New file.
72914
72915 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72916
72917         * lib/getdate.y (yylex): Allow space between sign and number.
72918         Problem reported by Dan Jacobson.
72919
72920 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72921
72922         Merge from coreutils CVS.
72923
72924         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72925         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72926         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72927         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72928         xstrtol.m4: Fix copyright date and/or serial number.
72929
72930         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72931         See if we need an fchown replacement.
72932         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72933         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72934         and use the replacement function if we detect either defect.
72935
72936         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72937         gl_UTIMECMP.
72938
72939 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72940         and  Jim Meyering  <jim@meyering.net>
72941
72942         Merge from coreutils CVS.
72943
72944         * lib/stat-macros.h: New file, with contents from file-type.h
72945         and coreutils' system.h.
72946         * lib/file-type.c: Include "stat-macros.h".
72947         * lib/file-type.h (file_type): Move all macro definitions to new file,
72948         stat-macros.h.
72949
72950         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72951         Wrap old code with this conditional.
72952         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72953         function that does not dereference symlinks.
72954         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72955
72956         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72957         dependency problems.
72958         (xreadlink): Accept new arg SIZE, for efficiency.
72959         All decls and uses changed.
72960         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72961
72962         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72963         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72964
72965         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72966         sysexits.h.
72967
72968 2004-06-01  Jim Meyering  <jim@meyering.net>
72969
72970         * m4/calloc.m4: New file.
72971
72972 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72973
72974         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72975         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72976         Also, fix a typo in a diagnostic.
72977
72978 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72979
72980         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72981         or AC_FUNC_REALLOC.
72982
72983 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72984
72985         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72986         macros to be defined.
72987         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72988         the allocator returns NULL because the requested size is zero.
72989
72990 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72991
72992         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72993         var.  Add comment explaining why libc still defines it.  This
72994         merges the following patch from glibc:
72995         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72996
72997 2004-05-20  Andreas Schwab  <schwab@suse.de>
72998
72999         * m4/free.m4: Replace free if it not known to work, not the other
73000         way round.
73001
73002 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73003
73004         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
73005         present in glibc since revision 1.1 of this file.
73006         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
73007         obstack_alignment_mask, obstack_alloc, obstack_base,
73008         obstack_blank, obstack_blank_fast, obstack_chunk_size,
73009         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
73010         obstack_grow0, obstack_init, obstack_int_grow,
73011         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
73012         obstack_next_free, obstack_object_size, obstack_ptr_grow,
73013         obstack_ptr_grow_fast, obstack_room): Remove declarations of
73014         nonexistent functions.
73015
73016 2004-05-18  Karl Berry  <karl@gnu.org>
73017
73018         * config/srclist.txt: break link for vasnprintf.c.
73019
73020 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73021
73022         Port obstack to the AS/400, where pointers are 16 bytes wide and
73023         you cannot cast an integer to a valid pointer.  This patch is
73024         currently waiting to be integrated into glibc; see
73025         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
73026
73027         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
73028         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
73029         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
73030         (struct obstack): temp member is now a union of a pointer and
73031         an integer, instead of an integer.  All integer uses changed.
73032         This does not affect the physical layout of struct obstack,
73033         except on hosts (like the AS/400) where the size or alignment of
73034         void * is greater than that of ptrdiff_t.
73035         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
73036         __STDC__)]: Store temporary in pointer member of union, not
73037         integer member.
73038         * lib/obstack.c: Include <stddef.h>, for offsetof.
73039         (struct fooalign): Remove; it doesn't need a name.
73040         (union fooround): Change double to long double, and add void *.
73041         (DEFAULT_ALIGNMENT): Use offsetof to compute.
73042         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
73043         not a macro.  Hence the values are always int; so remove all
73044         casts-to-int in uses.
73045
73046 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73047
73048         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
73049         we can get this patch merged into glibc.
73050
73051 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73052             Paul Eggert  <eggert@cs.ucla.edu>
73053
73054         * m4/argp: Depend on alloca.
73055
73056 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73057             Paul Eggert  <eggert@cs.ucla.edu>
73058
73059         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
73060         freecoding.
73061
73062 2004-05-17  Bruno Haible  <bruno@clisp.org>
73063
73064         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
73065         precision that consists of a '.' followed by an empty digit string.
73066         Patch by Tor Lillqvist <tml@iki.fi>.
73067
73068 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73069
73070         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
73071         for backward compatibility with older code.  We need our own
73072         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
73073         it under some other name, and our alloca.h will define it.
73074
73075 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73076             Derek Price  <derek@ximbiot.com>
73077
73078         * lib/alloca.c: Include <alloca.h>, to get our interface.
73079         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
73080         include <alloca.h> first.  Use C89 prototype for alloca; this
73081         requires including <stddef.h> for size_t.  Use extern "C" if C++.
73082         Use #elif for simplicity, since we can assume C89 now.
73083         Don't try to source the system alloca.h since it will not be found
73084         and to prevent recursively including its replacement.
73085         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
73086         * lib/regex.c: Likewise.
73087
73088 2004-05-16  Derek Price  <derek@ximbiot.com>
73089             Paul Eggert  <eggert@cs.ucla.edu>
73090
73091         getline cleanup.  This changes the getndelim2 API: both order of
73092         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
73093         no delimiter).
73094
73095         * lib/getline.c: Don't include stddef.h or stdio.h, since our
73096         interface does that.
73097         (getline): Always use getdelim, so that we don't have two
73098         copies of this code.
73099         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
73100         if available.
73101         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
73102         (GETNDELIM2_MAXIMUM): New macro.
73103         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
73104         instead of the old practice of delim2==0.  All callers changed.
73105         Return -1 on overflow, instead of returning junk.
73106         Do not set *linesize unless allocation succeeds.
73107         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
73108         that we include sys/types.h.
73109         * lib/getnline.h: Likewise.
73110         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
73111         (getndelim2): Reorder arguments.
73112         * lib/getnline.c (getnline, getndelim):
73113         Don't discard the NMAX argument.
73114         (getnline): Invoke getndelim, to avoid code duplication.
73115         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
73116         of (size_t) -1 by callers of the getnline family.
73117
73118 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73119
73120         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
73121         Check for gettimeofday.
73122         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
73123         Check for settimeofday, stime.
73124
73125 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73126
73127         * lib/nanosleep.c (suspended): Change its type from int to
73128         sig_atomic_t volatile.
73129         (first_call): Make it private to rpl_nanosleep, and have it
73130         be zero initially as that's a bit faster.
73131         (my_usleep): Round up fractional times instead of truncating them,
73132         as this is the usual meaning for 'sleep'.
73133
73134         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
73135         doesn't work.
73136         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
73137         (ENOSYS): Define if not defined.
73138         (settime): Fall back on stime if it exists and settimeofday fails.
73139         But don't bother with fallbacks if a method fails with errno == EPERM.
73140
73141 2004-05-11  Jim Meyering  <jim@meyering.net>
73142
73143         Prior to this change, the save_cwd caller required read access to the
73144         current directory on most systems (ones with the fchdir function).
73145
73146         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
73147         fails, try write-only, and finally, resort to using xgetcwd.
73148
73149 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73150
73151         * lib/obstack.c, obstack.h: Import changes from libc.
73152
73153 2004-04-28  Bruno Haible  <bruno@clisp.org>
73154
73155         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
73156         also implicitly appends .exe to executables.
73157         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
73158         accepts Windows pathnames.
73159         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73160         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73161         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73162         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73163         Reported by Derek Robert Price <derek@ximbiot.com>.
73164
73165 2004-04-21  Karl Berry  <karl@gnu.org>
73166
73167         * config/srclist.txt (localcharset.c): break sync.
73168
73169 2004-04-20  Paul Eggert  <eggert@twinsun.com>
73170
73171         * m4/host-os.m4: Add a copyright notice.
73172
73173 2004-04-20  Jim Meyering  <jim@meyering.net>
73174
73175         Change UTILS_ to gl_ in AC_DEFINE'd names.
73176         Change utils_- and jm_-prefixed variables, too.
73177         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
73178         UTILS_FUNC_MKDIR_TRAILING_SLASH.
73179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
73180
73181         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
73182         Don't emit trailing blanks.
73183         Also rename jm_-prefixed variables to have gl_ prefix.
73184
73185         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
73186         Also rename jm_-prefixed variables to have gl_ prefix.
73187
73188         * m4/jm-macros.m4: Reflect the renamings.
73189         * m4/prereq.m4: Likewise.
73190
73191 2004-04-20  Jim Meyering  <jim@meyering.net>
73192
73193         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
73194         memory.
73195
73196 2004-04-20  Jim Meyering  <jim@meyering.net>
73197             Bruno Haible  <bruno@clisp.org>
73198
73199         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
73200         memory when realloc fails.
73201
73202 2004-04-19  Jim Meyering  <jim@meyering.net>
73203
73204         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
73205         now that readutmp.c may call `free (0)'.
73206
73207 2004-04-19  Bruno Haible  <bruno@clisp.org>
73208
73209         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
73210         * m4/inttypes_h.m4: Likewise.
73211         * m4/stdint_h.m4: Likewise.
73212         * m4/intmax_t.m4: Likewise.
73213         * m4/uintmax_t.m4: Likewise.
73214
73215 2004-04-18  Jim Meyering  <jim@meyering.net>
73216
73217         * m4/prereq.m4: Don't forbid jm_ prefix.
73218
73219         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
73220         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
73221         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
73222         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
73223         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
73224         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
73225         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
73226         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
73227         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
73228         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
73229         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
73230         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
73231         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
73232         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
73233         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
73234         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
73235         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
73236         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
73237         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
73238
73239 2004-04-18  Jim Meyering  <jim@meyering.net>
73240
73241         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73242         failure, don't leak memory and do call END_UTMP_ENT.
73243
73244 2004-04-16  Jim Meyering  <jim@meyering.net>
73245
73246         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73247         coreutils' stat program.
73248         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73249
73250 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73251
73252         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73253         C89.
73254         (CHAR_BIT): Remove, since we assume C89.
73255         Include <stdint.h> if available, as per current Autoconf CVS advice.
73256
73257 2004-03-31  Jim Meyering  <jim@meyering.net>
73258
73259         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73260         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73261         * m4/xalloc.m4: Likewise.
73262
73263 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73264
73265         Merge from coreutils.
73266
73267         * m4/inttostr.m4: New file.
73268         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73269         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73270         Require gl_CLOCK_TIME.
73271         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73272
73273 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73274
73275         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73276         not bool, to be more consistent with Unix conventions.
73277         Suggested by Bruno Haible.
73278
73279         Merge from coreutils.
73280
73281         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73282         * lib/umaxtostr.c: New files.
73283
73284         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73285         the usual <time.h> dance.
73286         (get_date): Change signature to support fractional time stamps.
73287         All callers changed.
73288         * lib/getdate.y: Include "getdate.h" first, as we can now
73289         assume C89 and don't need to worry about 'const'.
73290         Similarly, include "unlocked-io.h" near start, not in middle.
73291         Include <limits.h>.
73292         (textint.value): Use long int rather than int.
73293         (textint.digits): Use size_t rather than int.
73294         (BILLION, LOG10_BILLION): New constants.
73295         (parser_control): New member rel_ns.  Members day_ordinal,
73296         time_zone, month, day, hour, minutes, rel_year, rel_month,
73297         rel_day, rel_hour, rel_minutes, rel_seconds
73298         are now long int, not int.  Member seconds is now struct timespec,
73299         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73300         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73301         not int.
73302         (%union.intval): Now long int, not int.
73303         New member timespec.
73304         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73305         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73306         (spec): Now is a timespec or an item list.
73307         (timespec, items): New nonterminals.
73308         (time, rel, relunit, number, get_date):
73309         Add support for fractional seconds.
73310         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73311         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73312         (to_hour): First arg is now long int, not int.
73313         (to_year): Returns long int, not int.
73314         Don't treat year -70 like 70.
73315         (tm_diff): Returns long int, not int.
73316         (lookup_word): Use bool instead of int when appropriate.
73317         (yylex): Use size_t for count, not int.
73318         Detect overflow when parsing large integer constants.
73319         Add support for fractions.
73320         (get_date): Make pointers 'const' if possible.
73321         Use more-portable code to detect integer overflow.
73322         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73323         Don't use ctime; it's not reliable if the year has >4 digits.
73324
73325         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73326         This is for compatibility with BSD.
73327
73328         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73329         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73330         From coreutils' system.h.
73331
73332         * lib/userspec.c: Don't include "posixver.h".
73333         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73334         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73335         compatible extension.  Simplify code by removing a boolean int
73336         that was always nonzero if a string was nonnull.
73337
73338 2004-03-30  Jim Meyering  <jim@meyering.net>
73339
73340         Merge from coreutils.
73341
73342         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73343         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73344         on some systems one must include <grp.h> before it.
73345         Reported by Christian Krackowizer.
73346
73347 2004-03-30  Jim Meyering  <jim@meyering.net>
73348
73349         Merge from coreutils.
73350
73351         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73352
73353         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73354         an empty input stream.
73355
73356         * lib/readtokens.c: Include <stdbool.h>.
73357         (readtoken): Use `size_t' rather than int/long.
73358         All callers adjusted.
73359         Use `bool' rather than `int' where appropriate.
73360         Use memset rather than an explicit loop.
73361         Use x2nrealloc rather than xrealloc.
73362         Allow the use of `\0' as a delimiter.
73363         (readtokens): Likewise.
73364         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73365
73366 2004-03-30  Jim Meyering  <jim@meyering.net>
73367
73368         * m4/realloc.m4: Remove file, since now it does no more than
73369         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73370         the `configure.ac' section of module/realloc.
73371         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73372
73373 2004-03-30  Bruno Haible  <bruno@clisp.org>
73374
73375         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73376         nonnull.
73377
73378 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73379
73380         Merge changes to getloadavg.c from coreutils and Emacs.
73381
73382         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73383         Define to an expression, not to the empty string.
73384         Include cloexec.h and xalloc.h.
73385         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73386         Use set_cloexec_flag rather than rolling our own.
73387         * lib/cloexec.c, lib/cloexec.h: New files.
73388
73389 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73390
73391         * m4/cloexec.m4: New file.
73392
73393 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73394
73395         * lib/getopt.h: Sync with libc CVS.
73396
73397 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73398             Bruno Haible  <bruno@clisp.org>
73399
73400         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73401         mbswidth.
73402
73403 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73404             Bruno Haible  <bruno@clisp.org>
73405
73406         * lib/mbswidth.h: Include <wchar.h> only if
73407         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73408         <wchar.h>.
73409         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73410
73411 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73412
73413         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73414         Sync with libc CVS.
73415         * lib/getopt_int.h: New file, also synced from libc.
73416
73417 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73418
73419         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73420         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73421         Bring back getopt.c, getopt.h, getopt1.c.
73422
73423 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73424
73425         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73426         All uses changed.  Check for sa_sigaction member; this fixes
73427         a bug first reported by Jason Andrade in
73428         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73429
73430 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73431
73432         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73433         '#if' expressions.  Unlike the code it replaces, it does not
73434         depend on (defined _SC_PAGESIZE).  However, it does depend on
73435         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73436         first reported by Jason Andrade in
73437         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73438
73439 2004-02-25  Simon Josefsson  <jas@extundo.com>
73440
73441         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73442
73443 2004-02-25  Simon Josefsson  <jas@extundo.com>
73444
73445         * lib/strdup.h: New file.
73446         * lib/strdup.c: Include it.
73447         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73448         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73449
73450 2004-02-23  Karl Berry  <karl@gnu.org>
73451
73452         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73453         (from fencepost.gnu.org:/gd/gnuorg).
73454
73455 2004-02-23  Karl Berry  <karl@gnu.org>
73456
73457         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73458         * config/srclist.txt: add maintain/standards documents.
73459
73460 2004-02-18  Bruno Haible  <bruno@clisp.org>
73461
73462         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73463         Reported by Derek Robert Price <derek@ximbiot.com>.
73464
73465 2004-02-16  Karl Berry  <karl@gnu.org>
73466
73467         * config/mkinstalldirs, install-sh: update from automake.
73468
73469 2004-02-06  Karl Berry  <karl@gnu.org>
73470
73471         * m4/po.m4: update from gettext 0.14.1.
73472
73473 2004-02-06  Karl Berry  <karl@gnu.org>
73474
73475         * lib/config.charset: update from gettext 0.14.1.
73476
73477 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73478
73479         Add comments and code, prompted by suggestions from Bruno Haible
73480         for sh-quote.
73481         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73482         describing the enum quoting_style values.
73483         * lib/quotearg.c (quotearg_alloc): New function.
73484         (quotearg_buffer_restyled): Treat lone { and } as special.
73485         Treat = as special.  Work around bug with older shells
73486         that "see" a '\' that is really the 2nd byte of a multibyte char.
73487         Quote empty string with shell_quoting_style.
73488
73489 2004-02-03  Bruno Haible  <bruno@clisp.org>
73490
73491         * m4/pipe.m4: New file, from GNU gettext.
73492
73493 2004-02-03  Bruno Haible  <bruno@clisp.org>
73494
73495         * lib/pipe.h: New file, from GNU gettext.
73496         * lib/pipe.c: New file, from GNU gettext.
73497
73498 2004-01-27  Bruno Haible  <bruno@clisp.org>
73499
73500         * m4/execute.m4: New file, from GNU gettext.
73501
73502 2004-01-27  Bruno Haible  <bruno@clisp.org>
73503
73504         * lib/execute.h: New file, from GNU gettext.
73505         * lib/execute.c: New file, from GNU gettext.
73506         * lib/w32spawn.h: New file, from GNU gettext.
73507
73508 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73509
73510         Merge from diffutils.
73511
73512         * lib/file-type.c (file_type): Add typed memory objects.
73513         * lib/file-type.h (S_TYPEISTMO): New macro.
73514
73515         * lib/c-stack.h (c_stack_action): Remove argv argument.
73516         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73517         (die): Don't calculate message unless segv_action returns.
73518         (get_stack_location, min_address_from_argv, max_address_from_argv,
73519         volatile stack_base, volatile_stack_size): Remove.
73520         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73521         that every segmentation violation is a stack overflow.  (Ouch!)
73522         See Debian bug 136249 (still outstanding) for more info about why
73523         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73524
73525 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73526
73527         Exit-status fix from coreutils.
73528
73529         Use exit_failure consistently in place of EXIT_FAILURE,
73530         so that program exit statuses are consistent on failure.
73531
73532         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73533         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73534         * lib/argmatch.h: Comment fix to match the above.
73535         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73536         Now a macro referring to exit_failure, instead of a separate
73537         variable.  Include "exitfail.h" to get it.
73538         * lib/xstrtol.h: Include "exitfail.h".
73539         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73540
73541         * lib/long-options.c (parse_long_options): Use prototype
73542         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73543         for clarity.
73544
73545 2004-01-21  Jim Meyering  <jim@meyering.net>
73546
73547         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73548         so as not to conflict with a different-sized __mktime_internal
73549         function in GNU libc.
73550         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73551         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73552
73553 2004-01-20  Karl Berry  <karl@gnu.org>
73554
73555         * config/config.guess: update from config.
73556
73557         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73558
73559 2004-01-20  Bruno Haible  <bruno@clisp.org>
73560
73561         Safer stack allocation.
73562         * lib/setenv.c: Include allocsa.h.
73563         (alloca): Remove fallback definition.
73564         (freea): Remove macro.
73565         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73566         instead of freea.
73567
73568 2004-01-20  Bruno Haible  <bruno@clisp.org>
73569
73570         * m4/eealloc.m4: New file, from GNU gettext.
73571
73572 2004-01-20  Bruno Haible  <bruno@clisp.org>
73573
73574         * m4/allocsa.m4: New file, from GNU gettext.
73575
73576 2004-01-20  Bruno Haible  <bruno@clisp.org>
73577
73578         * lib/xallocsa.h: New file, from GNU gettext.
73579         * lib/xallocsa.c: New file, from GNU gettext.
73580
73581 2004-01-20  Bruno Haible  <bruno@clisp.org>
73582
73583         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73584
73585 2004-01-20  Bruno Haible  <bruno@clisp.org>
73586
73587         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73588         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73589         specially.
73590
73591 2004-01-20  Bruno Haible  <bruno@clisp.org>
73592
73593         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73594         patch.
73595
73596 2004-01-20  Bruno Haible  <bruno@clisp.org>
73597
73598         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73599
73600 2004-01-20  Bruno Haible  <bruno@clisp.org>
73601
73602         * lib/eealloc.h: New file.
73603
73604 2004-01-20  Bruno Haible  <bruno@clisp.org>
73605
73606         * lib/binary-io.h: Avoid warnings on Cygwin.
73607
73608 2004-01-20  Bruno Haible  <bruno@clisp.org>
73609
73610         * lib/allocsa.h: New file, from GNU gettext.
73611         * lib/allocsa.c: New file, from GNU gettext.
73612
73613 2004-01-18  Karl Berry  <karl@gnu.org>
73614
73615         * doc/gpl.texi, doc/lgpl.texi: new files.
73616
73617 2004-01-18  Karl Berry  <karl@gnu.org>
73618
73619         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73620         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73621
73622 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73623
73624         Merge from coreutils.
73625
73626         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73627         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73628         (gl_DEFAULT_POSIX2_VERSION): Move
73629         the documentation from 'configure' into 'config.hin',
73630         so that 'configure --help' isn't burdened by it and
73631         we don't have to worry about its formatting there.
73632         Reword the documentation so that it's more succinct
73633         and can be run together into a single paragraph.
73634         * m4/same.m4 (gl_SAME): Check for pathconf.
73635
73636 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73637
73638         Merge from coreutils.
73639
73640         * lib/posixver.c: Include posixver.h.
73641
73642         * lib/same.c: Include <stdbool.h>, <limits.h>.
73643         (_POSIX_NAME_MAX): Define if not defined.
73644         (MIN): New macro.
73645         (same_name): If file names are silently truncated, report
73646         that the file names are the same if they are the same after
73647         the silent truncation.
73648
73649         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73650         conversion function.
73651         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73652         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73653         longer needed.
73654
73655 2004-01-15  Jim Meyering  <jim@meyering.net>
73656
73657         Merge from coreutils.
73658
73659         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73660         if no library is required.
73661         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73662         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73663         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73664         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73665         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73666         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73667         value, $ac_cv_search_crypt, if it's "none required".
73668         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73669         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73670         not gl_FUNC_GETLOADAVG.
73671         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73672         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73673
73674 2004-01-15  Jim Meyering  <jim@meyering.net>
73675
73676         Merge from coreutils.
73677
73678         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73679         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73680         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73681
73682         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73683         optional configure-time default.
73684
73685         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73686
73687         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73688
73689 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73690
73691         Merge from coreutils.
73692
73693         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73694         value, $ac_cv_search_nanosleep, if it's "none required".
73695
73696 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73697
73698         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73699         with like-named macro in fnmatch.c.
73700         (EXT): Use an internal constant instead.
73701
73702         Merge fnmatch patches from glibc.
73703         * lib/fnmatch.c (mbsinit): Remove define.
73704         Add libc_hidden_ver (__fnmatch, fnmatch).
73705         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73706         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73707
73708 2004-01-14  Karl Berry  <karl@gnu.org>
73709
73710         * config/install-sh: update from automake.
73711
73712 2004-01-13  Karl Berry  <karl@gnu.org>
73713
73714         * config/install-sh: update from automake.
73715
73716 2004-01-09  Karl Berry  <karl@gnu.org>
73717
73718         * config/install-sh: update from automake.
73719
73720 2004-01-05  Karl Berry  <karl@gnu.org>
73721
73722         * config/config.{sub,guess}: update from config.
73723
73724 2003-12-31  Karl Berry  <karl@gnu.org>
73725
73726         * config/depcomp: update from automake.
73727
73728 2003-12-14  Karl Berry  <karl@gnu.org>
73729
73730         * lib/config.charset: update from gettext-runtime.
73731
73732 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73733
73734         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73735         Bug reported by Alfred M. Szmidt.
73736
73737 2003-12-03  Bruno Haible  <bruno@clisp.org>
73738
73739         * m4/gettext.m4: Upgrade from gettext-0.13.
73740         * m4/po.m4: Upgrade from gettext-0.13.
73741         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73742         * m4/intmax.m4: New file, from gettext-0.13.
73743         * m4/printf-posix.m4: New file, from gettext-0.13.
73744
73745 2003-11-29  Karl Berry  <karl@gnu.org>
73746
73747         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73748
73749 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73750             Bruno Haible  <bruno@clisp.org>
73751
73752         * lib/printf-parse.h: Don't include sys/types.h.
73753         (ARG_NONE): New macro.
73754         (char_directive): Change type of *arg_index fields to size_t.
73755         * lib/printf-parse.c: Don't include sys/types.h.
73756         (SSIZE_MAX): Remove macro.
73757         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73758         Remove unnecessary overflow check.
73759         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73760         fields.
73761
73762 2003-11-25  Bruno Haible  <bruno@clisp.org>
73763
73764         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73765
73766 2003-11-25  Bruno Haible  <bruno@clisp.org>
73767
73768         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73769         gt_TYPE_SSIZE_T.
73770
73771 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73772
73773         * modules/alloca: Remove dependency on xalloc.
73774
73775 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73776
73777         * lib/alloca.c: Remove dependency on xalloc module.
73778         (xalloc_die): Remove.
73779         (memory_full) [!defined emacs]: New macro.
73780         [!defined emacs]: Don't include xalloc.h.
73781         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73782         address arithmetic overflows.  Change datatypes a bit to avoid
73783         unnecessary casts.
73784
73785 2003-11-22  Jim Meyering  <jim@meyering.net>
73786
73787         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73788         s/size/size_t/.
73789
73790 2003-11-21  Karl Berry  <karl@gnu.org>
73791
73792         * config/config.{sub,guess}: update from config.
73793
73794 2003-11-18  Karl Berry  <karl@gnu.org>
73795
73796         * config/config.{sub,guess}: update from config.
73797
73798         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73799
73800 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73801
73802         * README: Mention that S+T cannot overflow if S is the size of
73803         an existing object and T is sufficiently small.
73804
73805 2003-11-17  Jim Meyering  <jim@meyering.net>
73806
73807         On systems without utime and without a utimes function capable of
73808         dealing with a NULL struct utimbuf* argument, this utime replacement
73809         could -- in unusual circumstances -- leak a file descriptor.
73810         * lib/utime.c: Include <unistd.h> and <errno.h>.
73811         (utime_null): Be sure to close `fd' and to preserve errno.
73812         Reported by Geoff Collyer via Arnold Robbins.
73813
73814 2003-11-17  Bruno Haible  <bruno@clisp.org>
73815
73816         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73817         (Depends-on): Add xsize.
73818
73819 2003-11-17  Bruno Haible  <bruno@clisp.org>
73820
73821         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73822
73823 2003-11-17  Bruno Haible  <bruno@clisp.org>
73824
73825         * lib/vasnprintf.c (alloca): Remove fallback definition.
73826         (freea): Remove definition.
73827         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73828         Reported by Paul Eggert.
73829
73830 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73831             Bruno Haible  <bruno@clisp.org>
73832
73833         Protect against address arithmetic overflow.
73834         * lib/printf-args.h: Include stddef.h.
73835         (arguments): Change type of field 'count' to size_t.
73836         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73837         'unsigned int' where appropriate.
73838         * lib/printf-parse.h: Include sys/types.h.
73839         (char_directive): Change type of *arg_index fields to ssize_t.
73840         (char_directives): Change type of fields 'count', max_*_length to
73841         size_t.
73842         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73843         (SSIZE_MAX): Define fallback value.
73844         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73845         instead of 'int' where appropriate. Check a_allocated, d_allocated
73846         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73847         * lib/vasnprintf.c: Include xsize.h.
73848         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73849         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73850         overflow. Avoid wraparound when converting a width or precision from
73851         decimal to binary.
73852
73853 2003-11-16  Bruno Haible  <bruno@clisp.org>
73854
73855         Update from GNU gettext.
73856         * lib/printf-parse.c: Generalize to it can be compiled for wide
73857         strings.
73858         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73859         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73860         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73861         SNPRINTF): New macros.
73862         Don't include <alloca.h> if the file is used inside libintl.
73863         (local_wcslen): New function, for Solaris 2.5.1.
73864         (VASNPRINTF): Use it instead of wcslen.
73865
73866 2003-11-16  Bruno Haible  <bruno@clisp.org>
73867
73868         * lib/xsize.h (xmax): New function.
73869         (xsum, xsum3, xsum4): Declare as "pure" functions.
73870
73871 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73872
73873         * modules/xalloc (Files): Undo latest change, since xalloc.h
73874         no longer needs SIZE_MAX or PTRDIFF_MAX.
73875
73876 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73877
73878         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73879         gl_PTRDIFF_MAX.
73880
73881 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73882
73883         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73884         "return", to pacify some unknown compiler.  Problem reported
73885         by Joerg Schilling.
73886
73887 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73888
73889         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73890         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73891         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73892         heuristic is just as accurate as far as we know, and it removes a
73893         dependency on size_max.m4 and ptrdiff_max.m4.
73894
73895 2003-11-11  Bruno Haible  <bruno@clisp.org>
73896
73897         * modules/xsize (Files): Add m4/size_max.m4.
73898         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73899
73900 2003-11-11  Bruno Haible  <bruno@clisp.org>
73901
73902         * m4/size_max.m4: New file.
73903         * m4/ptrdiff_max.m4: New file.
73904         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73905         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73906         (gl_XALLOC): Invoke it.
73907
73908 2003-11-11  Bruno Haible  <bruno@clisp.org>
73909
73910         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73911         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73912         defined.
73913
73914 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73915
73916         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73917         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73918         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73919         From Bruno Haible.
73920         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73921         not (size_t) -1, since it's defined here.
73922
73923 2003-11-09  Karl Berry  <karl@gnu.org>
73924
73925         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73926
73927 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73928
73929         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73930         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73931         Reject sizes of exactly SIZE_MAX bytes.
73932         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73933         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73934
73935 2003-11-05  Bruno Haible  <bruno@clisp.org>
73936
73937         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73938         SIZE_MAX defined in <limits.h> on Solaris.
73939
73940 2003-11-04  Jim Meyering  <jim@meyering.net>
73941
73942         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73943         variable names, rather than @VAR@.
73944         * modules/poll: Likewise.
73945
73946 2003-11-04  Bruno Haible  <bruno@clisp.org>
73947
73948         * modules/xsize: New file.
73949         * modules/linebreak: Depend on xsize.
73950         * MODULES.html.sh (func_all_modules): Add xsize.
73951
73952 2003-11-04  Bruno Haible  <bruno@clisp.org>
73953
73954         * m4/xsize.m4: New file.
73955
73956 2003-11-04  Bruno Haible  <bruno@clisp.org>
73957
73958         * lib/xsize.h: New file.
73959         * lib/linebreak.c: Include xsize.h.
73960         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73961         argument for overflow.
73962         Suggested by Paul Eggert.
73963
73964 2003-11-03  Karl Berry  <karl@gnu.org>
73965
73966         * config/config.{guess,sub}: update from config.
73967
73968 2003-11-03  Jim Meyering  <jim@meyering.net>
73969
73970         * modules/userspec (lib_SOURCES): Add userspec.h.
73971         (Include): Add "userspec.h".
73972         Improve description.
73973
73974 2003-11-03  Jim Meyering  <jim@meyering.net>
73975
73976         * lib/userspec.c: Include "userspec.h".
73977         * lib/userspec.h: New file.
73978
73979 2003-11-03  Bruno Haible  <bruno@clisp.org>
73980
73981         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73982
73983 2003-11-03  Bruno Haible  <bruno@clisp.org>
73984
73985         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73986         available, to avoid (extremely rare) race condition.
73987         Suggested by Paul Eggert.
73988
73989 2003-11-02  Karl Berry  <karl@gnu.org>
73990
73991         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73992
73993 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73994
73995         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73996         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73997         (read_filesystem_list): Set and use me_type_malloced.
73998         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73999         whatever the type happens to be), for brevity and consistency.
74000         Check for size calculation overflow on Alphas running OSF/1.
74001
74002 2003-10-31  Jim Meyering  <jim@meyering.net>
74003
74004         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
74005
74006         * lib/linebuffer.c: Include <string.h> for declaration of memset.
74007
74008 2003-10-30  Paul Eggert  <eggert@twinsun.com>
74009             Bruno Haible  <bruno@clisp.org>
74010
74011         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
74012         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
74013
74014 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74015
74016         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
74017         netbsd*-gnu*.  Suggested by Robert Millan.
74018
74019 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74020
74021         * modules/group-member: Depend on stdbool.
74022
74023 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74024
74025         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
74026
74027 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74028
74029         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
74030         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
74031         after the 'gnu' in these cases.  This fixes some bugs in the
74032         previous change, and is based on suggestions by Robert Millan.
74033
74034 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74035
74036         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
74037         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
74038         no longer needed.
74039         * lib/quotearg.c (quotearg_n_options): Use it.
74040         * lib/group-member.c: Include <stdbool.h>.
74041         (free_group_info): Arg is now const *; don't free arg.
74042         (get_group_info): Now returns bool and accepts struct group_info *,
74043         rather than returning a malloc'ed struct group_info *.
74044         All uses changed.  Check for overflow in internal size calculation.
74045
74046         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
74047         rather than xmalloc/xrealloc.
74048         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
74049         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
74050         conformance bug: the old code used a pointer after freeing the
74051         storage that it addressed.
74052         * lib/hash.c (hash_initialize): Simplify the code by using
74053         xalloc_oversized rather than doing it by hand.
74054         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
74055         the buffer preserved.  Use free and xmalloc instead.
74056         * lib/quotearg.c (quotearg_n_options): Likewise.
74057         Use a simpler test for size overflow.  Don't use xalloc_oversized
74058         because unsigned int might be wider than size_t (!); this suggests
74059         that we should switch from unsigned int to size_t for slot numbers.
74060
74061 2003-10-28  Paul Eggert  <eggert@twinsun.com>
74062
74063         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
74064         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
74065         NetBSD kernels.  Requested by Richard Stallman.
74066
74067 2003-10-27  Paul Eggert  <eggert@twinsun.com>
74068
74069         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
74070         to allocate the returned structure.  Do not allocate a subarray,
74071         as x2nrealloc will do that.
74072         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
74073         instead of xnrealloc.
74074         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
74075
74076 2003-10-27  Bruno Haible  <bruno@clisp.org>
74077
74078         * lib/stdbool_.h: Better support for BeOS.
74079
74080 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74081
74082         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
74083         now uses inline.
74084
74085 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74086
74087         * lib/xalloc.h (xalloc_oversized): New static inline function, for
74088         callers that want to do their own size-overflow checking.  Include
74089         <stdbool.h>, since xalloc_oversized returns bool.
74090         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
74091         to use xalloc_oversized.
74092
74093         Add two functions x2realloc, x2nrealloc, for programs that grow
74094         arrays dynamically by doubling their sizes.
74095         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
74096         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
74097         New functions.
74098
74099         Port to C99 semantics for 'inline' of external functions.
74100         Bug reported by Bruno Haible.
74101         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
74102         with the old contents of xnmalloc.
74103         (xnmalloc, xmalloc): Use it.
74104         (xnrealloc_inline): New static inline function,
74105         with the old contents of xnrealloc.
74106         (xnrealloc, xrealloc): Use it.
74107
74108         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
74109         that.
74110
74111 2003-10-26  Karl Berry  <karl@gnu.org>
74112
74113         * config/srclist.txt (COPYING.DOC): no longer available from
74114         /gd/gnuorg; don't know where the ultimate source is.
74115
74116 2003-10-25  Paul Eggert  <eggert@twinsun.com>
74117
74118         Fix several address-calculation bugs in the hash modules,
74119         plus some minor code cleanup.
74120
74121         * lib/hash.h: Include <stdbool.h>, for bool.
74122         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
74123         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
74124         hash_get_n_entries, hash_get_max_bucket_length,
74125         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
74126         hash_rehash): Use size_t rather than unsigned.
74127         * lib/hash.c (struct hash_table, hash_get_n_buckets,
74128         hash_get_n_buckets_used, hash_get_n_entries,
74129         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
74130         hash_get_entries, hash_do_for_each, hash_string, is_prime,
74131         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
74132         Likewise.
74133         (SIZE_MAX): Define if not defined.
74134         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
74135         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
74136         hash_print):
74137         Use const * when possible.
74138         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
74139         (check_tuning): Fix bug: if tuning parameters were very close to
74140         0 or 1, rounding errors could have caused subscript violations.
74141         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
74142         (hash_initialize): Add 'fail:' label
74143         to free table and return NULL, and use it to simplify code.
74144         Use calloc rather than clearing the storage ourself.
74145         (hash_initialize, hash_rehash): Check for arithmetic overflow in
74146         buffer size calculations.
74147         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
74148         Include <stddef.h>, for size_t.
74149         * lib/hash-pjw.c (hash_pjw): Likewise.
74150         Switch to method described by Bruno Haible.
74151         Include <limits.h>, for CHAR_BIT.
74152         (SIZE_BITS): New macro.
74153
74154 2003-10-23  Paul Eggert  <eggert@twinsun.com>
74155
74156         * m4/getline.m4 (AM_FUNC_GETLINE):
74157         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
74158         hosts.  Problem reported by Derek Robert Price in
74159         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
74160         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
74161         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
74162
74163 2003-10-21  Paul Eggert  <eggert@twinsun.com>
74164
74165         * lib/getndelim2.c (getndelim2): When size calculation overflows,
74166         ceiling the allocation at NMAX bytes rather than silently
74167         discarding input bytes before NMAX is reached.  This makes
74168         a difference only if NMAX exceeds SIZE_MAX / 2.
74169
74170         * lib/obstack.c: Merge from glibc.
74171         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
74172         Add libc_hidden_def (_obstack_newchunk).
74173         (_obstack_free) [! defined _LIBC]: Remove.
74174         [defined _LIBC]: Make a strong alias from obstack_free, rather than
74175         a clone of the function body.
74176         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
74177         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
74178
74179         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
74180         glibc.
74181         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
74182         arg to memcpy.
74183
74184         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
74185         (obstack_ptr_grow_fast, obstack_int_grow_fast):
74186         Don't use lvalue casts, as GCC plans to remove support for them
74187         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
74188         was also present in the non-GCC version, indicating that this
74189         code had always been buggy and had never been widely used.
74190         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
74191         Use the fast variant of each macro, rather than copying the
74192         definiens of the fast variant; that way, we'll be more likely to
74193         catch future bugs in the fast variants.
74194
74195 2003-10-20  Bruno Haible  <bruno@clisp.org>
74196
74197         * modules/wait-process: New file.
74198         * MODULES.html.sh (func_all_modules): Add wait-process.
74199
74200 2003-10-20  Bruno Haible  <bruno@clisp.org>
74201
74202         * m4/wait-process.m4: New file.
74203
74204 2003-10-20  Bruno Haible  <bruno@clisp.org>
74205
74206         * lib/wait-process.h: New file, from GNU gettext.
74207         * lib/wait-process.c: New file, from GNU gettext.
74208
74209 2003-10-19  Jim Meyering  <jim@meyering.net>
74210
74211         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
74212         HPUX 10.20.
74213
74214 2003-10-18  Karl Berry  <karl@gnu.org>
74215
74216         * config/config.guess: update from config.
74217
74218 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74219
74220         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
74221         (getgroups): First arg is int, not size_t.
74222         Don't let 'free' mangle errno.
74223
74224 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74225
74226         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
74227
74228 2003-10-16  Karl Berry  <karl@gnu.org>
74229
74230         * config/config.{guess,sub}: update from config.
74231
74232 2003-10-16  Jim Meyering  <jim@meyering.net>
74233
74234         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
74235         memcpy.
74236
74237 2003-10-15  Paul Eggert  <eggert@twinsun.com>
74238
74239         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
74240         (SIZE_MAX): Remove.
74241         (new_exclude, add_exclude_file): Initial size no longer needs to
74242         be a power of 2.
74243         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74244         our own address arithmetic overflow checking.
74245
74246         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74247         (fnmatch): Do not alloca more than 2000 wide characters;
74248         instead, use malloc for large buffers.
74249         Check for address arithmetic overflow, and return -1
74250         with errno set to ENOMEM in that case.
74251         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74252         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74253         instead, return -1.  Check for address arithmetic overflow.
74254
74255 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74256
74257         Handle invalid suffixes and overflow independently, so that
74258         callers can treat them independently as needed.  Fix some bugs in
74259         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74260         suffix for a human-readable blocksize.  The major caller-visible
74261         change is the addition of a new
74262         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74263         that both overflow and suffix chars were found.
74264
74265         * lib/human.c (humblock): Don't check separately for invalid suffix
74266         char; that is xstrtoumax's job (now that its bug is fixed).
74267         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74268         INTMAX_MAX]: New macros.
74269         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74270         TYPE_MAXIMUM): New macros.
74271         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74272         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74273         if overflow occurs, as it's what __strtol does and it's more useful
74274         in practice.
74275         (__xstrtol): If __strtol reports some error other than ERANGE,
74276         reflect it to the caller as LONGINT_INVALID.  If it reports
74277         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74278         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74279         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74280         value.
74281         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74282         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74283         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74284         [defined UINTMAX_MAX]: New macros.
74285
74286 2003-10-14  Bruno Haible  <bruno@clisp.org>
74287
74288         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74289
74290 2003-10-14  Bruno Haible  <bruno@clisp.org>
74291
74292         * m4/sig_atomic_t: New file, from GNU gettext.
74293         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74294
74295 2003-10-14  Bruno Haible  <bruno@clisp.org>
74296
74297         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74298         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74299         Also use volatile where needed.
74300
74301 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74302
74303         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74304         Change maintainer from Bruno Haible to 'all'.
74305
74306 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74307
74308         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74309
74310 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74311
74312         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74313         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74314         and define in terms of the other primitives.
74315         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74316         (SIZE_MAX): Define if not already defined.
74317         (array_size_overflow): New function.
74318         (xalloc_die): Abort instead of exiting if 'error' returns.
74319         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74320         (xmalloc, xrealloc): Use them.
74321         (xcalloc): Check for address arithmetic overflow.
74322         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74323         a bit faster than strcpy.
74324
74325 2003-10-10  Simon Josefsson  <jas@extundo.com>
74326
74327         * modules/argp (Depends-on): Add restrict and strcase.
74328
74329 2003-10-10  Simon Josefsson  <jas@extundo.com>
74330
74331         * m4/argp.m4: Add AC_C_INLINE.
74332
74333 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74334
74335         Merge getpass from libc, plus a few fixes.
74336
74337         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74338         Include <stdbool.h>.
74339         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74340         __fsetlocking to empty.
74341         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74342         do include <bits/libc-lock.h>.
74343         Do not include <fcntl.h>; not needed.
74344         [_LIBC]: Include <wchar.h>.
74345         (NOTCANCEL_MODE): New macro.
74346         (flockfile, funlockfile) [_LIBC]: New macros.
74347         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74348         [!_LIBC]: New macros.
74349         (call_fclose): New function.
74350         (getpass): Use it.  Save tty stream separately; this simplifies the
74351         code and makes it more reliable if stdin happens to equal stdout.
74352         Invoke __fsetlocking on tty.
74353         Handle thread cancellation if needed.
74354         Namespace cleanup (use __tcgetattr, __getline).
74355         Use bool for Booleans.
74356         [USE_IN_LIBIO]: Handle wide streams.
74357         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74358         stream might go where.
74359
74360         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74361         doesn't have to include <stdio.h> before us.
74362         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74363         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74364         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74365         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74366         if not declared, so that we can use getpass.c code from libc without
74367         rewriting it.
74368         (flockfile, ftrylockfile, funlockfile): New macros.
74369
74370 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74371
74372         * modules/getpass: Depend on stdbool.
74373
74374 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74375
74376         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74377
74378 2003-10-07  Karl Berry  <karl@gnu.org>
74379
74380         * config/config.{guess,sub}: update from config.
74381
74382 2003-10-06  Jim Meyering  <jim@meyering.net>
74383             Bruno Haible  <bruno@clisp.org>
74384
74385         This lets translators provide better translations for the
74386         "Written by ..." part of --version output.
74387         * lib/version-etc.h: Include stdarg.h.
74388         (version_etc_copyright): Declare as readonly.
74389         (version_etc): Make this function variadic with a NULL-terminated list
74390         of author name strings.
74391         (version_etc_va): New declaration.
74392         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74393         (version_etc_copyright): Declare as readonly.
74394         (version_etc_va): New function. Provide a different translatable string
74395         for each possible number of authors < 10. Abbreviate when there are 10
74396         authors or more.
74397         (version_etc): Make this function variadic. Call version_etc_va.
74398         Suggestion from Gary V. Vaughan.
74399
74400         * lib/long-options.h (parse_long_options): Change prototype: the
74401         authors string is moved to the end and becomes variadic.
74402         * lib/long-options.c: Include stdarg.h.
74403         (parse_long_options): Make this function variadic, too.
74404         Call version_etc_va, not version_etc.
74405
74406 2003-10-06  Bruno Haible  <bruno@clisp.org>
74407
74408         * modules/version-etc-2: Remove file.
74409         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74410
74411 2003-10-06  Bruno Haible  <bruno@clisp.org>
74412
74413         * modules/fatal-signal: New file.
74414         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74415
74416 2003-10-06  Bruno Haible  <bruno@clisp.org>
74417
74418         * m4/fatal-signal.m4: New file.
74419         * m4/signalblocking.m4: New file, from GNU gettext.
74420
74421 2003-10-06  Bruno Haible  <bruno@clisp.org>
74422
74423         * lib/version-etc-2.h: Remove file.
74424         * lib/version-etc-2.c: Remove file.
74425
74426 2003-10-06  Bruno Haible  <bruno@clisp.org>
74427
74428         * lib/fatal-signal.h: New file, from GNU gettext.
74429         * lib/fatal-signal.c: New file, from GNU gettext.
74430
74431 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74432
74433         * README: Rework advice for preventing empty .o files.
74434         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74435         not <sys/types.h>.
74436
74437 2003-10-04  Karl Berry  <karl@gnu.org>
74438
74439         * lib/argp*: update from libc.
74440
74441 2003-10-04  Karl Berry  <karl@gnu.org>
74442
74443         * config/config.{guess,sub}: update from config.
74444
74445 2003-10-02  Bruno Haible  <bruno@clisp.org>
74446
74447         * modules/lchown (Include): Add lchown.h.
74448         * modules/time_r (Include): Use "..." syntax.
74449         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74450
74451 2003-10-01  Simon Josefsson  <jas@extundo.com>
74452
74453         * MODULES.html.sh (func_all_modules): Move gethostname from section
74454         'based on' to section 'lacking' POSIX:2001.
74455
74456 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74457
74458         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74459         to output mode on the same stream.
74460
74461 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74462
74463         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74464         Fix arg typo in previous patch.
74465
74466 2003-09-28  Jim Meyering  <jim@meyering.net>
74467
74468         * lib/error.c: Correct cpp indentation.
74469
74470 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74471
74472         * modules/free: New file.
74473
74474 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74475
74476         * m4/free.m4: New file.
74477
74478 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74479
74480         * lib/minmax.h (MIN, MAX)
74481         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74482         Omit the special code that used __typeof__, since we worry that
74483         it could be more trouble than it's worth.  See:
74484         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74485         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74486
74487         * lib/free.c: New file.
74488
74489 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74490
74491         Trivial fixes to Makefile.am parts of module listings.
74492         * modules/strstr: Append strstr.h to lib_SOURCES.
74493         * modules/strcase: Likewise, for strcase.h.
74494
74495 2003-09-27  Karl Berry  <karl@gnu.org>
74496
74497         * config/mkinstalldirs: update from automake.
74498
74499 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74500
74501         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74502         (error_tail): Do not loop, reallocating temporary buffer, since
74503         the output cannot contain more wide characters than the input
74504         contains bytes, the size must be big enough already.  This avoids
74505         one potential size overflow calculation.  Check for size overflow
74506         when calculating temporary buffer size.  Free temporary buffer
74507         when done, if it was allocated with malloc; this plugs a memory
74508         leak.  Remove casts from void * to pointers, that are no longer
74509         needed now that we're assuming C89 or better.
74510
74511         Merge error changes from glibc.
74512
74513         * lib/error.c, error.h: Update copyright notice header to match glibc.
74514         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74515         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74516         Disable cancellation while printing error.
74517         * lib/error.h: Prepend __ to parameter names.
74518
74519 2003-09-26  Jim Meyering  <jim@meyering.net>
74520
74521         * lib/error.c (error_tail): Move some declarations
74522         into inner scope where the local variables are used.
74523
74524 2003-09-26  Bruno Haible  <bruno@clisp.org>
74525
74526         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74527         stpncpy().
74528         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74529
74530 2003-09-26  Bruno Haible  <bruno@clisp.org>
74531
74532         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74533         (stpncpy): Define as alias for gnu_stpncpy.
74534         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74535
74536 2003-09-25  Simon Josefsson  <jas@extundo.com>
74537
74538         * lib/xgetdomainname.h: New file.
74539         * lib/xgetdomainname.c: New file.
74540
74541 2003-09-25  Simon Josefsson  <jas@extundo.com>
74542             Bruno Haible  <bruno@clisp.org>
74543
74544         * modules/getdomainname: New file.
74545         * modules/xgetdomainname: New file.
74546         * MODULES.html.sh (func_all_modules): Add getdomainname,
74547         xgetdomainname.
74548
74549 2003-09-25  Simon Josefsson  <jas@extundo.com>
74550             Bruno Haible  <bruno@clisp.org>
74551
74552         * m4/getdomainname.m4: New file.
74553
74554 2003-09-25  Simon Josefsson  <jas@extundo.com>
74555             Bruno Haible  <bruno@clisp.org>
74556
74557         * lib/getdomainname.h: New file.
74558         * lib/getdomainname.c: New file.
74559
74560 2003-09-25  Karl Berry  <karl@gnu.org>
74561
74562         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74563
74564 2003-09-25  Karl Berry  <karl@gnu.org>
74565
74566         * config/install-sh: update from automake.
74567
74568 2003-09-25  Bruno Haible  <bruno@clisp.org>
74569
74570         * modules/version-etc-2: New file, from modules/version-etc with
74571         modifications.
74572         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74573
74574 2003-09-25  Bruno Haible  <bruno@clisp.org>
74575
74576         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74577         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74578
74579 2003-09-24  Simon Josefsson  <jas@extundo.com>
74580
74581         * modules/xgethostname: Add xgethostname.h.
74582
74583 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74584
74585         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74586         the buffer associated with the argument.  Bug reported by
74587         Simon Josefsson.
74588
74589 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74590
74591         * README: Document assumptions that 'int' is at least 32 bits
74592         wide, that integer arithmetic is 2's complement without overflow,
74593         that there are no holes in integer values, that adding sizes of
74594         two nonoverlapping objects can't overflow, and that all-bits-zero
74595         yields scalar zero.  Fix spelling and capitalization typos.
74596
74597 2003-09-19  Karl Berry  <karl@gnu.org>
74598
74599         * lib/argp.h: update from libc.
74600
74601 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74602
74603         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74604         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74605         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74606
74607 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74608
74609         * gnulib-tool: Use "test -h", not "test -L", for portability
74610         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74611         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74612         (sed_extract_prog): Issue s commands one-by-one, rather than
74613         using \| in one s command.
74614
74615 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74616
74617         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74618         input error, instead of returning NULL the next time we are called
74619         (and therefore losing track of errno).
74620
74621 2003-09-16  Bruno Haible  <bruno@clisp.org>
74622
74623         * gnulib-tool (func_create_testdir): Warn about duplicated
74624         dependencies.
74625
74626 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74627
74628         * modules/argmatch, modules/fatal, modules/obstack,
74629         modules/xalloc, modules/xgethostname: Sort dependencies by
74630         importance, not alphabetically.
74631
74632 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74633
74634         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74635         fails, so that the caller gets the proper errno.
74636
74637         * lib/readutmp.c (read_utmp): Likewise.
74638         Check for fstat error.  Close stream and free storage
74639         when failing.
74640
74641 2003-09-14  Karl Berry  <karl@gnu.org>
74642
74643         * config/srclist.txt (strdup.c): disable for c89 changes.
74644
74645 2003-09-14  Jim Meyering  <jim@meyering.net>
74646
74647         * lib/getloadavg.c: Correct cpp indentation.
74648         * lib/strdup.c: Likewise.
74649         * lib/vasnprintf.c: Likewise.
74650
74651 2003-09-14  Bruno Haible  <bruno@clisp.org>
74652
74653         * modules/fwriteerror: New file.
74654         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74655
74656 2003-09-14  Bruno Haible  <bruno@clisp.org>
74657
74658         * lib/fwriteerror.h: New file.
74659         * lib/fwriteerror.c: New file.
74660
74661 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74662
74663         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74664         modules/xgethostname, modules/xalloc: Depend on exit.
74665
74666 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74667
74668         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74669
74670         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74671         and AC_MINIX, too, so that their extensions are available.
74672
74673         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74674         This macro has been superseded by gl_BACKUPFILE.
74675
74676         More patches to assume C89 or better.
74677
74678         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74679
74680         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74681         unconditionally.
74682         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74683         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74684         Include <string.h>, <stdlib.h> unconditionally.
74685         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74686         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74687         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74688         headers or for string.h.
74689         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74690         or strtoul.
74691
74692         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74693         headers.
74694         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74695         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74696         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74697         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74698         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74699         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74700         memcpy, memset.
74701         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74702         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74703         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74704         strtol.
74705         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74706         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74707         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74708         strtoul.
74709
74710 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74711
74712         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74713         * lib/obstack.c [!defined _LIBC]: Likewise.
74714         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74715         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74716         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74717
74718         More changes to assume C89 or better.
74719
74720         * lib/error.c (error_tail): Assume vprintf.
74721
74722         * lib/argmatch.c (getenv): Remove decl.
74723         * lib/progreloc.c (get_full_program_name): Define via prototype.
74724         * lib/setenv.c (clearenv): Likewise.
74725         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74726         needed.
74727         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74728         (malloc, memcpy): Remove decls.
74729         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74730         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74731         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74732         (memcpy): Remove macro.
74733         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74734         (__P): Remove.  All uses removed.
74735         (PTR): Remove.  All uses changed to void *.
74736         (CHAR_BIT, NULL): Remove.
74737         (spaces, zeros, memset_space, memset_zero)
74738         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74739         Remove.
74740         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74741         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74742         Define with prototype.
74743         Remove now-unnecessary prototype decl.
74744         (extra_args_spec): Assume ANSI C.  All uses changed.
74745         (extra_args_spec_iso): Remove.
74746         (my_strftime, emacs_strftimeu): Define via prototype.
74747         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74748         unconditionally.
74749         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74750         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74751         (strtoul, strtol): Remove decls.
74752         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74753         LONG_MAX): Remove.
74754         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74755         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74756         (LOCALE_PARAM_PROTO): New macro.
74757         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74758         (INTERNAL (strtol), strtol): Define with a prototype.
74759         (PARAMS): Remove.  All uses removed.
74760         * lib/tempname.c: Include <string.h> unconditionally.
74761         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74762         * lib/xgethostname.c (main): Define with a prototype.
74763         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74764         Include <stdlib.h> unconditionally.
74765         (calloc, malloc, realloc, free): Remove decls.
74766         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74767         Include <stdlib.h> unconditionally.  Sort include file names.
74768         (strtod): Remove.
74769         (xstrtod): Define with a prototype.
74770         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74771         (strtol, strtoul): Remove decls.
74772
74773 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74774
74775         More patches to assume C89 or better.
74776         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74777         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74778         string.h, memchr, STDC_HEADERS.
74779
74780 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74781
74782         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74783         Include <stdlib.h>, <string.h> unconditionally.
74784         Remove now-unnecessary cast to char *.
74785         * lib/strnlen.c: Include <string.h> unconditionally.
74786         * lib/yesno.c (yesno): Define with a prototype.
74787
74788 2003-09-11  Bruno Haible  <bruno@clisp.org>
74789
74790         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74791
74792 2003-09-10  Jim Meyering  <jim@meyering.net>
74793
74794         * lib/error.c: Correct indentation of cpp directives.
74795
74796 2003-09-10  Bruno Haible  <bruno@clisp.org>
74797
74798         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74799         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74800         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74801         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74802         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74803         <stdlib.h> and <string.h> checks.
74804         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74805         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74806
74807 2003-09-10  Bruno Haible  <bruno@clisp.org>
74808
74809         * lib/strcspn.c: Include <string.h> unconditionally.
74810         * lib/strpbrk.c: Include <string.h> unconditionally.
74811         * lib/strstr.c: Include <string.h> unconditionally.
74812         * lib/unicodeio.c: Include <string.h> unconditionally.
74813         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74814         * lib/unsetenv.c: Likewise.
74815         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74816         * lib/yesno.c: Include <stdlib.h> unconditionally.
74817         (rpmatch): Add prototype.
74818
74819 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74820
74821         More patches to assume C89 or better.
74822         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74823         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74824         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74825         or for string.h.
74826         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74827         stdlib.h.
74828         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74829         C headers.
74830         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74831         string.h.
74832         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74833         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74834         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74835         or for string.h.
74836         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74837         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74838         C headers.
74839         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74840         memcpy.
74841         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74842         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74843         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74844         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74845         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74846         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74847         string.h, free.
74848         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74849         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74850         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74851         C headers, or for string.h.
74852         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74853         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74854         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74855         headers, memory.h, stdlib.h, string.h, strings.h.
74856         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74857         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74858         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74859         strchr.
74860         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74861         headers, memory.h, string.h.
74862         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74863         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74864         free.
74865         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74866         headers.
74867         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74868         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74869         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74870         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74871         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74872
74873 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74874
74875         More K&R removal.
74876
74877         * lib/acosl.c (main): Use a prototype.
74878         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74879         tanl.c: Likewise.
74880
74881         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74882
74883         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74884         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74885         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74886         with a prototype.
74887         * lib/getopt.c (const): Remove macro.
74888         Include <string.h> unconditionally.
74889         (my_index): Remove; all uses changed to strchr.
74890         (strlen): Remove decl.
74891         (exchange): Remove forward decl; no longer needed.
74892         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74893         Define with prototype.
74894         * lib/getopt1.c (const): Remove macro.
74895         (getopt_long, getopt_long_only, main): Define with prototype.
74896
74897         * lib/getugroups.c: Include <string.h> unconditionally.
74898
74899         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74900         (getusershell, setusershell, endusershell, readname, main):
74901         Define with prototypes.
74902
74903         * lib/group-member.c: Include group-member.h first.
74904         Include <stdlib.h> unconditionally.
74905
74906         * lib/hard-locale.c: Include hard-locale.h first.
74907         Include <stdlib.h>, <string.h> unconditionally.
74908
74909         * lib/hash.c (free, malloc): Remove decls.
74910         Include <stdlib.h> unconditionally.
74911
74912         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74913         (getenv): Do not declare.
74914
74915         * lib/idcache.c: Include <string.h> unconditionally.
74916
74917         * lib/long-options.c: Include long-options.h first, to test interface.
74918         Include <stdlib.h> unconditionally.
74919
74920         * lib/makepath.c: Include makepath.h first, to test interface.
74921         Include <stdlib.h> and <string.h> unconditionally.
74922
74923         * lib/linebuffer.c: Include <stdlib.h>.
74924         (free): Remove decl.
74925
74926         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74927         stddef.h. rpl_malloc returns void *, not char *.
74928         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74929         prototype.
74930
74931         * lib/md5.h: Include <limits.h> unconditionally.
74932         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74933         (__P): Remove; all uses removed.
74934         * lib/md5.c: Include "md5.h" first.
74935         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74936         md5_buffer, md5_process_bytes, md5_process_block):
74937         Define with prototypes.
74938         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74939         * lib/sha.c: Include "sha.h" first.
74940         Include <stdlib.h>, <string.h> unconditionally.
74941
74942         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74943         * lib/memcmp.c (__ptr_t): Likewise.
74944         * lib/memrchr.c (__ptr_t): Likewise.
74945         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74946         Include <string.h> unconditionally.
74947         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74948         * lib/memchr.c: Include <stdlib.h> unconditionally.
74949         * lib/memchr.c (LONG_MAX): Remove.
74950         * lib/memrchr.c (LONG_MAX): Likewise.
74951         * lib/memchr.c (__memchr): Define via a prototype.
74952         * lib/memrchr.c (__memrchr): Likewise.
74953         * lib/memcmp.c (__P): Remove, and remove all uses.
74954         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74955         Remove forward decls; no longer needed.
74956         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74957         Use types required by C89 in prototype.
74958
74959         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74960         * lib/savedir.c: Likewise.
74961         * lib/mkdir.c (free): Remove decl.
74962         * lib/rmdir.c (rmdir): Define with a prototype.
74963         * lib/savedir.c: Include savedir.h first, to test interface.
74964
74965         * lib/mktime.c (STDC_HEADERS): Remove.
74966         Include <stdlib.h>, <string.h> unconditionally.
74967
74968         * lib/modechange.c: Include <stdlib.h> unconditionally.
74969         (malloc): Remove decl.
74970
74971         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74972         (free): Remove decl.
74973
74974         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74975         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74976         (This type really should be intptr_t, but that's a C99ism.)
74977         (_obstack_memcpy): Remove: all uses changed to memcpy.
74978         Include <string.h> unconditionally.
74979         (struct obstack): Assume __STDC__ for types of members
74980         chunkfun, freefun, extra_arg.
74981         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74982         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74983         obstack_begin, obstack_specify_allocation,
74984         obstack_specify_allocation_with_arg, obstack_chunkfun,
74985         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74986         Remove unprototyped decls and the macros that use them.
74987         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74988         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74989         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74990         (defined __STDC__ && __STDC__)]:
74991         Remove nonprototyped code.
74992         Include <stdlib.h> unconditionally.
74993         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74994         _obstack_allocated_p, _obstack_free, obstack_free,
74995         _obstack_memory_used, print_and_abort):
74996         Define using prototypes.
74997         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74998         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74999         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
75000         obstack_next_free, obstack_object_size, obstack_room) [0]:
75001         Remove unused, unprototyped code.
75002
75003         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
75004
75005         * lib/physmem.c (physmem_total, physmem_available, main): Define
75006         with prototypes.
75007
75008         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
75009         (main): Define with a prototype.
75010
75011         * lib/posixver.c (getenv): Remove decl.
75012
75013         * lib/putenv.c (malloc): Returns void *, not char *.
75014         Include <string.h> unconditionally.
75015         (strchr, memcpy, NULL): Do not define.
75016
75017         * lib/readtokens.c: Include readtokens.h first, to test interface.
75018         Include <stdlib.h>, <string.h> unconditionally.
75019         (init_tokenbuffer): Define with a prototype.
75020
75021         * lib/regex.c (PARAMS): Remove.  All uses removed.
75022         All uses of _RE_ARGS removed, too.
75023         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75024         unconditionally.
75025         (bzero): Assume memset exists.
75026         (memcmp, memcpy, NULL): Remove.
75027         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
75028         char, or assignments to local vars of type signed char.
75029         (init_syntax_once, PREFIX(extract_number_and_incr),
75030         PREFIX(print_partial_compiled_pattern),
75031         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
75032         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
75033         PREFIX(regex_grow_registers), PREFIX(regex_compile),
75034         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
75035         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
75036         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
75037         wcs_compile_range, byte_compile_range, truncate_wchar,
75038         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
75039         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
75040         count_mbs_length, wcs_re_match_2_internal,
75041         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
75042         PREFIX(alt_match_null_string_p),
75043         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
75044         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
75045         regfree, PREFIX(extract_number)): Define with prototype.  Remove
75046         now-unnecessary declaration, if any.
75047         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
75048         regcomp, regexec):
75049         Remove now-unnecessary casts among pointer types.
75050         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
75051
75052         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
75053         (free): Remove decl.
75054
75055         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
75056
75057         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
75058         (free): Remove decl.
75059
75060         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
75061         * lib/xgetcwd.c: Likewise.
75062
75063         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
75064         (free): Remove decl.
75065
75066         * lib/strchrnul.c (strchrnul): Define with a prototype.
75067         Fix bug: c_in was not converted to char before searching.
75068
75069         The following changes are not K&R related:
75070
75071         * lib/group-member.h: Include <sys/types.h>, so that this file is
75072         self-contained.
75073         * lib/makepath.h: Likewise.
75074
75075         * lib/getusershell.c (readname, default_index, line_size, readname):
75076         Use size_t, not int, for sizes.
75077         (readname): If the size overflows, report an error instead of
75078         looping forever.
75079
75080 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75081
75082         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
75083         libc.
75084
75085 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75086
75087         * README: New section: portability guidelines.
75088
75089 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75090
75091         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
75092         C89 spec.
75093
75094 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75095
75096         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
75097
75098 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75099
75100         Assume C89 or better; remove K&R cruft.
75101         A few of these changes were first proposed by Derek Robert Price
75102         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
75103
75104         * lib/addext.c: Include <string.h> unconditionally.
75105         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
75106         Don't declare getenv or malloc.
75107
75108         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
75109         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
75110         (NULL): Remove.
75111         (find_stack_direction, alloca): Use prototypes.
75112
75113         * lib/atexit.c (atexit): Define using a prototype.
75114
75115         * lib/basename.c, dirname.c, stripslash.c:
75116         Include <string.h> unconditionally.
75117
75118         * lib/bcopy.c: Include <stddef.h>.
75119         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
75120
75121         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
75122
75123         * lib/error.h (error, error_at_line, error_print_progname)
75124         [! (defined (__STDC__) && __STDC__)]: Remove decls.
75125         * lib/error.c: Include error.h first, to check interface.
75126         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75127         (VA_START): Remove; all uses changeed to va_start.
75128         (exit, strerror): Remove decls.
75129         (error_print_progname): Prototype uncondionally.
75130         Don't include <errno.h>; no longer needed.
75131         (private_strerror): Remove.
75132         (error_tail): Always define.
75133         (error, error_at_line): Assume C89 or better; always use prototypes.
75134         * lib/fatal.c: Include "fatal.h" first, to test interface.
75135         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75136         (VA_START): Remove; all uses changed to va_start.
75137         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
75138         this case.
75139         (exit): Remove decl.
75140         (fatal): Prototype unconditionally.  Assume va_start works.
75141         Abort at end, to pacify gcc.
75142
75143         * lib/euidaccess.c (main): Define with a prototype.
75144
75145         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
75146
75147         * lib/exitfail.c: Include <stdlib.h> unconditionally.
75148
75149         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
75150         prototypes.
75151         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
75152         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
75153         (getenv): Remove decl.
75154         (fnmatch): Define using a prototype.
75155         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
75156         (FCT): Define using a prototype.
75157
75158         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
75159
75160         * lib/gethostname.c: Include <stddef.h>.
75161         (gethostname): Define with prototype.  Length is size_t, not int.
75162
75163 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75164
75165         Assume C89 or better; remove K&R cruft.
75166         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
75167         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
75168         string.h, getenv, malloc.
75169         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
75170         headers.
75171         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
75172         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
75173         do not check for strerror.
75174         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
75175         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
75176         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
75177         do not check for doprnt or vprintf.
75178         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
75179         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
75180
75181 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75182
75183         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
75184         getversion.c should have been removed then, but was accidentally
75185         preserved.
75186
75187         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
75188         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
75189
75190 2003-09-08  Karl Berry  <karl@gnu.org>
75191
75192         * config/config.sub, config.guess, srclistvars.sh: update from savannah
75193                 config, forget about prep.
75194
75195         * config/depcomp, missing: update from automake.
75196
75197 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75198
75199         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
75200         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75201
75202 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75203
75204         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
75205         copy_tm_result.  Bug reported by Simon Josefsson in
75206         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75207
75208 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75209
75210         * m4/time_r.m4: New file.
75211         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
75212         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
75213         is. Check for timegm declaration.
75214         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
75215         Do not check for gmtime_r.
75216         Replace mktime if __mktime_internal does not exist and if mktime
75217         hasn't been replaced already.
75218
75219 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75220
75221         * lib/time_r.c, lib/time_r.h: New files.
75222
75223         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
75224         __localtime_r.
75225         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
75226         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
75227
75228         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
75229         __gmtime_r.
75230         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
75231         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
75232         Include <time_r.h>.
75233
75234         * lib/timegm.c: Switch to glibc implementation, with the following
75235         changes:
75236         [defined HAVE_CONFIG_H]: Include <config.h>.
75237         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
75238         (__mktime_internal) [!defined _LIBC]: New decl.
75239         (__gmtime_r) [!defined _LIBC]: New macro and function.
75240         (timegm): Use a prototype, since gnulib assumes C89.
75241         Do not bother declaring tmp to be const, as it's not really usefu.
75242         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75243         (timegm): Declare only if HAVE_DECL_TIMEGM.
75244
75245 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75246
75247         * MODULES.html.sh (func_all_modules): Add time_r.
75248         * modules/time_r: New file.
75249         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75250         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75251
75252 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75253
75254         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75255         Bug reported by Lute Kamstra in
75256         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75257
75258         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75259         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75260         course with correspondingly smaller numbers for tomorrow and
75261         yesterday.  From Tadayoshi Funaba.  Originally installed into
75262         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75263         coreutils merge?).
75264
75265 2003-08-31  Simon Josefsson  <jas@extundo.com>
75266
75267         * modules/timegm: New file.
75268         * MODULES.html.sh (func_all_modules): Add timegm.
75269
75270 2003-08-31  Simon Josefsson  <jas@extundo.com>
75271
75272         * m4/timegm.m4: New file.
75273
75274 2003-08-31  Simon Josefsson  <jas@extundo.com>
75275
75276         * lib/timegm.h: New file.
75277         * lib/timegm.c: New file.  Based on
75278         wget-1.8.2/src/http.c:mktime_from_utc.
75279
75280 2003-08-31  Karl Berry  <karl@gnu.org>
75281
75282         * lib/argp.h: update from libc.
75283
75284 2003-08-28  Bruno Haible  <bruno@clisp.org>
75285
75286         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75287         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75288         followed by '#define fnmatch fnmatch_posix' gives an error.
75289
75290 2003-08-28  Bruno Haible  <bruno@clisp.org>
75291
75292         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75293         warning on QNX, which defines O_BINARY to 000000.
75294
75295 2003-08-27  Jim Meyering  <jim@meyering.net>
75296
75297         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75298         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75299         would fail after 32.  Reported by Danny Levinson.  Details here:
75300         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75301
75302 2003-08-24  Bruno Haible  <bruno@clisp.org>
75303
75304         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75305         MSVC7 <stdio.h> is included later.
75306
75307 2003-08-22  Simon Josefsson  <jas@extundo.com>
75308
75309         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75310
75311 2003-08-20  Karl Berry  <karl@gnu.org>
75312
75313         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75314
75315 2003-08-20  Bruno Haible  <bruno@clisp.org>
75316
75317         * modules/progname: New file.
75318         * MODULES.html.sh (func_all_modules): Add progname.
75319
75320 2003-08-20  Bruno Haible  <bruno@clisp.org>
75321
75322         * lib/progname.h: New file, from GNU gettext.
75323         * lib/progname.c: New file, from GNU gettext.
75324         * lib/progreloc.c: New file, from GNU gettext.
75325
75326 2003-08-19  Jim Meyering  <jim@meyering.net>
75327
75328         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75329         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75330
75331 2003-08-19  Bruno Haible  <bruno@clisp.org>
75332
75333         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75334         more.
75335
75336 2003-08-19  Bruno Haible  <bruno@clisp.org>
75337
75338         * lib/xstrdup.c: Assume <string.h> exists.
75339
75340 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75341
75342         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75343         in makefile rules.
75344
75345 2003-08-18  Jim Meyering  <jim@meyering.net>
75346
75347         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75348         * m4/lib-ld.m4: Likewise.
75349
75350 2003-08-18  Jim Meyering  <jim@meyering.net>
75351
75352         * lib/setenv.h: Indent nested cpp directive.
75353         * lib/vasnprintf.c: Remove trailing blanks.
75354
75355 2003-08-17  Simon Josefsson  <jas@extundo.com>
75356
75357         * modules/xstrndup: New file.
75358         * MODULES.html.sh (func_all_modules): Add xstrndup.
75359
75360 2003-08-17  Simon Josefsson  <jas@extundo.com>
75361
75362         * modules/argp: Fix autoconf macro name. Add more dependencies.
75363
75364 2003-08-17  Simon Josefsson  <jas@extundo.com>
75365
75366         * m4/xstrndup.m4: New file.
75367
75368 2003-08-17  Simon Josefsson  <jas@extundo.com>
75369
75370         * m4/argp.m4: New file.
75371
75372 2003-08-17  Simon Josefsson  <jas@extundo.com>
75373             Bruno Haible  <bruno@clisp.org>
75374
75375         * lib/xstrndup.h: New file.
75376         * lib/xstrndup.c: New file.
75377
75378 2003-08-17  Bruno Haible  <bruno@clisp.org>
75379
75380         * modules/strndup (Files, Include): Add lib/strndup.h.
75381
75382 2003-08-17  Bruno Haible  <bruno@clisp.org>
75383
75384         * modules/euidaccess (Files): Add lib/euidaccess.h.
75385
75386 2003-08-17  Bruno Haible  <bruno@clisp.org>
75387
75388         * lib/strndup.h: New file.
75389
75390 2003-08-17  Bruno Haible  <bruno@clisp.org>
75391
75392         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75393         like AC_GNU_SOURCE.
75394         * modules/extensions (configure.ac): Comment out the invocation of
75395         gl_USE_SYSTEM_EXTENSIONS.
75396
75397 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75398
75399         Merges from coreutils, etc.
75400         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75401         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75402         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75403         fixing a typo.
75404         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75405         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75406
75407 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75408
75409         Document merge from coreutils.
75410         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75411         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75412         * modules/utime: Add m4/utimes-null.m4.
75413
75414 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75415
75416         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75417         space, undoing this 2003-08-12 change:
75418         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75419
75420 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75421
75422         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75423         strtoul.c from libc, undoing this 2003-08-12 change:
75424         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75425
75426 2003-08-16  Jim Meyering  <jim@meyering.net>
75427
75428         Merges from coreutils.
75429         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75430         prefix.  Adjust cache variables similarly.  Create 500 rather than
75431         just 300 files, to exercise bug on Darwin6.5, too.
75432         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75433         $missing_dir.
75434         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75435         AM_SYS_POSIX_TERMIOS.
75436         Reported by mkc@mathdogs.com.
75437         Also change use of $am_cv_sys_posix_termios
75438         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75439         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75440         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75441         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75442         in /proc/mounts until it finds one with matching device number.  This
75443         is unnecessary when the FILE argument *is* a mount point.  No stat call
75444         is necessary in that case.  So, disable the statvfs-testing code on
75445         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75446         as RedHat bug# 84846.
75447         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75448         to 1MB, so as not to render systems with no stack size limit (e.g.,
75449         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75450         Include <unistd.h>.  On some systems,
75451         it is required for the definition of _SC_PAGESIZE.
75452
75453 2003-08-16  Jim Meyering  <jim@meyering.net>
75454
75455         Merge from coreutils.
75456         * lib/xstrtoimax.c: #else #if -> #elif.
75457         * lib/xstrtoumax.c: Likewise.
75458
75459 2003-08-16  Jim Meyering  <jim@meyering.net>
75460
75461         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75462         * m4/utimes.m4: Removed.
75463         * m4/utimes-null.m4: Renamed from utimes.m4.
75464
75465         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75466         to 1MB, so as not to render systems with no stack size limit (e.g.,
75467         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75468         Include <unistd.h>.  On some systems,
75469         it is required for the definition of _SC_PAGESIZE.
75470
75471 2003-08-16  Jim Meyering  <jim@meyering.net>
75472         and Paul Eggert  <eggert@cs.ucla.edu>
75473
75474         Merges from coreutils, etc.
75475
75476         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75477         using the latest version from cvs.  This avoids problems with #line
75478         directives using a vendor (Sun) compiler.
75479         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75480         Don't set GETGROUPS_LIB here; now it's
75481         done via getgroups.m4's wrapper function.
75482         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75483         rather than just in sh-util/configure.in, so that the
75484         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75485         same.
75486         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75487         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75488         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75489         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75490         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75491         Remove code that is now done by the newly-required macros.
75492         Append $(EXEEXT) to DF_PROG.
75493         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75494         Do not invoke or require the following here,
75495         since prereq.m4 or some gnulib .m4 now does this for us:
75496         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75497         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75498         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75499         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75500         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75501         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75502         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75503         AC_FUNC_OBSTACK.
75504         Do not replace the following functions, as this is now the job
75505         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75506         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75507         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75508         atexit getpass, strdup, getpagesize.
75509         Replace 'raise'.
75510         Do not check for the following functions, as this is now the job
75511         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75512         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75513         setregid.
75514         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75515         Check for sys/sysctl.h.
75516         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75517         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75518         of checking for ssize_t ourselves.
75519
75520         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75521         Require every macro that gnulib/modules/* suggests for us.
75522         (jm_PREREQ_ADDEXT): New macro.
75523         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75524         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75525
75526         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75527         (gl_PHYSMEM): Use it.
75528         Also check for `table' function.
75529         Check for new headers and functions.
75530         Add check for sys/sysmp.h.
75531         With suggestions from Kaveh Ghazi.
75532         Ignore headers that are present but cannot be compiled.  This
75533         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75534         C 5.4.
75535
75536 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75537
75538         Document merge from coreutils.
75539         * modules/userspec: Depend on posixver.
75540         * modules/strftime: Depend on tzset.
75541
75542 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75543
75544         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75545         rather than tab, after '#' in shell-script copyright notices.
75546         Suggested by Bruno Haible.
75547
75548 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75549
75550         * config/srclist-update: Use three spaces, rather than tab, after '#'
75551         in shell-script copyright notices.  Suggested by Bruno Haible.
75552         Remove unnecessary parenthesization in regular expression.
75553
75554 2003-08-15  Jim Meyering  <jim@meyering.net>
75555
75556         Merge from coreutils.
75557         * lib/xgethostname.c: Include <stdlib.h>.
75558         (xghostname): Don't exit for anything other than memory-related
75559         failure; just return NULL.
75560         * lib/userspec.c: Include "posixver.h".
75561         (parse_user_spec): Accept `.' as a separator only
75562         in pre-POSIX-200112 mode.
75563         * lib/strtoimax.c: Use #elif rather than #else #if.
75564         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75565         Remove function, now that we can rely on a working tzset function.
75566         [!_LIBC]: Ensure that the required autoconf test has been run.
75567         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75568         Use underlying_strftime for %r.
75569         * lib/sha.c: Merge in some clean-up and optimization changes from
75570         glibc.
75571         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75572         Ensure that it is a multiple of 64.
75573         Rearrange loop exit tests so as to avoid performing an
75574         additional fread after encountering an error or EOF.
75575         * lib/realloc.c: Update copyright date.
75576
75577 2003-08-15  Jim Meyering  <jim@meyering.net>
75578         and Paul Eggert  <eggert@twinsun.com>
75579
75580         Merge from coreutils.
75581         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75582         member but strut utmpx does not.  Needed for AIX 4.3.3.
75583         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75584
75585 2003-08-15  Jim Meyering  <jim@meyering.net>
75586         and Paul Eggert  <eggert@cs.ucla.edu>
75587
75588         Merges from coreutils, etc.
75589         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75590         Require gl_FUNC_TZSET_CLOBBER.
75591         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75592         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75593         members.
75594
75595 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75596
75597         Help the merge from coreutils.
75598         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75599         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75600         * m4/tzset.m4: Use it too.
75601
75602 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75603
75604         * modules/tzset: New file.
75605
75606 2003-08-14  Jim Meyering  <jim@meyering.net>
75607
75608         Merges from coreutils.
75609         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75610         variable names, rather than @FNMATCH_H@.
75611         * modules/alloca: Likewise for $(ALLOCA_H).
75612
75613         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75614         the three copies of the literal target, `fnmatch.h'.
75615         * modules/alloca (alloca.h): Likewise.
75616
75617 2003-08-14  Jim Meyering  <jim@meyering.net>
75618
75619         Merge from coreutils.
75620         * m4/tzset.m4: New file.
75621         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75622         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75623         otherwise, AIX 5.1 systems would end up using the latter.
75624         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75625         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75626         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75627         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75628
75629 2003-08-14  Jim Meyering  <jim@meyering.net>
75630
75631         Merge from coreutils.
75632         * lib/obstack.h: Whitespace changes.
75633         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75634         and xcalloc return values.
75635         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75636         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75637         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75638         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75639         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75640         error from mntctl.
75641         Use mntctl's return value to drive the entry-processing loop, since
75642         we can't rely on the value of the vmt_length member in the last
75643         entry.  On some systems doing so could result in exhausting
75644         virtual memory.  Based in part on a patch from Mike Jetzer.
75645
75646 2003-08-14  Jim Meyering  <jim@meyering.net>
75647         and Paul Eggert  <eggert@twinsun.com>
75648
75649         Merges from coreutils, plus other fixes.
75650         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75651         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75652         for credits and details.  Thanks to Kaveh Ghazi for helping
75653         to keep these files in sync.
75654         (ARRAY_SIZE): Define it.
75655         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75656         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75657         (memcasecmp): Don't assume size_t fits in unsigned int.
75658         Remove casts and duplicate code.
75659         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75660         (memcpy): Remove definition.
75661         Merge in some clean-up and optimization changes from glibc.
75662         [BLOCKSIZE]: Move definition to top of file.
75663         Ensure that it is a multiple of 64.
75664         Rearrange loop exit tests so as to avoid performing an
75665         additional fread after encountering an error or EOF.
75666         * lib/md5.h (md5_uintptr): Define.
75667         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75668         return to the initial working directory.  Preserve errno
75669         for caller.
75670         * lib/idcache.c: Include "xalloc.h".
75671         (xmalloc, xrealloc): Remove decls.
75672         (getuser): Remove casts no longer required in C89.
75673         * lib/human.c: Include stdio.h, for sprintf.
75674         * lib/group-member.c: Include "xalloc.h".
75675         (xmalloc, xrealloc): Remove decls.
75676         (get_group_info): Remove casts no longer required in C89.
75677         * lib/getusershell.c (readname): Remove casts no longer required in
75678         C89.
75679         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75680         * lib/getline.c: Whitespace fix, from coreutils.
75681
75682 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75683
75684         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75685         Check for isascii.
75686
75687         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75688         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75689         Undo previous (whitespace-only) change.
75690
75691 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75692
75693         * lib/exclude.c: Include <ctype.h>
75694         (IN_CTYPE_DOMAIN): New macro.
75695         (is_space): New fn.
75696         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75697         and empty lines.
75698
75699         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75700         Undo previous (whitespace-only) change.
75701
75702 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75703
75704         * config/srclist-update: Change update back to the old behavior,
75705         leaving whitespace alone.  Use one 'sed' command rather than a
75706         pipeline.
75707         (fixlicense): Now a variable, not a function.
75708         (remove_trailing_blanks): Remove.
75709         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75710         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75711         Undo previous (whitespace-only) change.
75712
75713 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75714
75715         Merge from coreutils.
75716         * modules/euidaccess: Add lib_SOURCES, include for new
75717         file euidaccess.h
75718
75719 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75720
75721         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75722         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75723         Normalize leading white space and remove trailing white space.
75724
75725         Merge from coreutils
75726         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75727
75728         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75729         0.12.1.  These files are now being upgraded automatically by
75730         ../config/srclist-update.
75731
75732 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75733
75734         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75735         Normalize leading white space and remove trailing white space.
75736         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75737         notice, as per ../config/srclist-update.
75738
75739         Merge from coreutils.
75740         * lib/euidaccess.h: New file.
75741         * lib/euidaccess.c: Include it.
75742         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75743         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75744         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75745
75746 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75747
75748         * config/srclist-update: Add copyright notice.
75749         (remove_id_lines, remove_trailing_blanks): New constants.
75750         (fixfile): Use them to normalize spacing a bit in copied files.
75751         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75752         Normalize leading white space and remove trailing white space.
75753
75754         * config/texinfo.tex: Sync with texinfo.
75755
75756         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75757         strtoul.c from libc, to merge coreutils whitespace changes.
75758
75759         * config/srclist.txt: Get the following m4 files from gettext:
75760         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75761         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75762         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75763         wint_t.m4.
75764
75765 2003-08-12  Karl Berry  <karl@gnu.org>
75766
75767         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75768         been made.
75769
75770 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75771
75772         * modules/gnu-source, m4/gnu-source.m4:
75773         Remove; we're assuming Autoconf 2.54 or later now.
75774         Suggested by Bruno Haible.
75775         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75776
75777 2003-08-11  Bruno Haible  <bruno@clisp.org>
75778
75779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75780
75781 2003-08-11  Bruno Haible  <bruno@clisp.org>
75782
75783         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75784         (vasnprintf): Use it instead of wcslen.
75785
75786 2003-08-11  Bruno Haible  <bruno@clisp.org>
75787
75788         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75789         value to ensure that _Bool promotes to int. Use #define for _Bool when
75790         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75791
75792 2003-08-10  Karl Berry  <karl@gnu.org>
75793
75794         * lib/regex.h: update from libc (whitespace fix).
75795
75796 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75797
75798         Merge some files from coreutils.  These changes were
75799         originally made by Jim Meyering.
75800         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75801         many older Unixes require this.
75802         * lib/alloca.c (alloca): Remove cast to argument of free;
75803         no longer needed in C89.
75804         * lib/alloca_.h, regex.h: Fix white space to match
75805         what GNU indent does.
75806
75807 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75808
75809         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75810         apparently Emacs's Unicode mode got confused before my 2003-08-05
75811         checkin.
75812
75813 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75814
75815         * m4/extensions.m4: New file.
75816         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75817         Require gl_USE_SYSTEM_EXTENSIONS.
75818         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75819         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75820
75821 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75822
75823         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75824         * modules/extensions, modules/gnu-source: New files.
75825         * modules/timespec, modules/unlocked-io: Depend on extensions.
75826
75827 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75828
75829         * modules/restrict: New file.
75830         * MODULES.html.sh (func_all_modules): Add restrict.
75831         * modules/regex: Depend on restrict.
75832
75833 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75834
75835         * m4/restrict.m4: New file.
75836         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75837
75838 2003-08-07  Bruno Haible  <bruno@clisp.org>
75839
75840         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75841         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75842
75843 2003-08-07  Bruno Haible  <bruno@clisp.org>
75844
75845         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75846         makes the module 'getndelim2' compatible with the module 'getline'.
75847
75848 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75849
75850         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75851         byte with "\201" to avoid glitches when editing that source file
75852         with multi-gnome-terminal.
75853
75854 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75855
75856         * lib/bumpalloc.h: Remove.
75857
75858 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75859
75860         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75861         * modules/bumpalloc: Remove.
75862
75863 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75864
75865         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75866         GNU coding style.
75867
75868         Merge from coreutils.
75869         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75870         1. From glibc.
75871         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75872         from Karl Berry, implemented by Jim Meyering.
75873         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75874         from Dmitry V. Levin.
75875         Remove anachronistic cast of xrealloc.
75876         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75877         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75878         type. Otherwise, it wouldn't compile with at least /bin/cc on
75879         ymp-cray-unicos9.0.2.X.
75880         Combine two mostly-identical uses of alloca into one.
75881         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75882
75883 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75884
75885         [From Emacs.]
75886
75887         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75888         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75889         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75890         obsolete NLIST_NAME_UNION.
75891         [__GNU__]: Undef BSD and FSCALE.
75892         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75893
75894 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75895
75896         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75897         an enum type, so that it's guaranteed to promote to int.  See:
75898         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75899
75900 2003-08-03  Karl Berry  <karl@gnu.org>
75901
75902         * config/depcomp: update from automake.
75903
75904 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75905
75906         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75907         (strerror): Don't assume that a printable int fits in 14 bytes.
75908
75909 2003-07-31  Bruno Haible  <bruno@clisp.org>
75910
75911         * modules/getpass-gnu: New file.
75912         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75913
75914 2003-07-31  Bruno Haible  <bruno@clisp.org>
75915
75916         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75917
75918 2003-07-24  Karl Berry  <karl@gnu.org>
75919
75920         * config/missing: update from automake.
75921
75922 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75923             Bruno Haible  <bruno@clisp.org>
75924
75925         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75926         * lib/getline.c (getline, getdelim): Likewise.
75927         Remove _GNU_SOURCE define; now it's defined in config.h through
75928         m4/getline.m4.
75929
75930 2003-07-23  Karl Berry  <karl@gnu.org>
75931
75932         * config/config.sub: update from prep.
75933
75934 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75935
75936         * modules/xalloc (Depends-on): Add exitfail.
75937         * modules/xmemcoll: Likewise.
75938
75939 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75940
75941         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75942         over-parenthesization in macros.
75943
75944         Sync with coreutils.
75945
75946         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75947         required by C99.
75948
75949         Use `exit_failure' for xalloc and xmemcoll instead of their own
75950         private exit-failure variables.
75951         * lib/xalloc.h (xalloc_exit_failure): Remove.
75952         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75953         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75954         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75955         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75956         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75957
75958 2003-07-20  Jim Meyering  <jim@meyering.net>
75959
75960         * modules/closeout (Depends-on): Add exitfail.
75961         Suggestion from Bruno Haible.
75962
75963 2003-07-19  Karl Berry  <karl@gnu.org>
75964
75965         * config/config.sub: update from prep.
75966
75967 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75968
75969         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75970         Remove.
75971         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75972         to test that it can stand by itself.  Include "exitfail.h".
75973         Clients should set exit_failure instead.
75974         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75975
75976 2003-07-18  Bruno Haible  <bruno@clisp.org>
75977
75978         * modules/getndelim2: New file.
75979         * modules/getline: Share files with module getndelim2.
75980         * modules/getnline: Depend on getndelim2 instead of sharing files with
75981         it. Add getnline.c to lib_SOURCES.
75982         * MODULES.html.sh (func_all_modules): Add getndelim2.
75983
75984 2003-07-18  Bruno Haible  <bruno@clisp.org>
75985
75986         * m4/getndelim2.m4: New file.
75987         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75988         invoke gl_PREREQ_GETNDELIM2.
75989         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75990         gl_PREREQ_GETNDELIM2.
75991         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75992         gl_GETNDELIM2.
75993
75994 2003-07-18  Bruno Haible  <bruno@clisp.org>
75995
75996         * lib/getndelim2.h: New file.
75997         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75998         getndelim2.h.
75999         (getndelim2): Make non-static. Change return type to ssize_t.
76000         * lib/getline.h: Change argument names.
76001         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
76002         * lib/getnline.c: Include getndelim2.h.
76003
76004 2003-07-18  Andreas Schwab  <schwab@suse.de>
76005
76006         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
76007
76008 2003-07-17  Karl Berry  <karl@gnu.org>
76009
76010         * config/config.sub: update from prep.
76011
76012 2003-07-17  Bruno Haible  <bruno@clisp.org>
76013
76014         * modules/getnline: New file.
76015         * modules/getline: Add lib/getndelim2.c to source file list.
76016         * MODULES.html.sh (func_all_modules): Add getnline.
76017
76018 2003-07-17  Bruno Haible  <bruno@clisp.org>
76019
76020         * m4/getnline.m4: New file.
76021
76022 2003-07-17  Bruno Haible  <bruno@clisp.org>
76023
76024         * m4/Makefile.am.in: Remove file.
76025         * m4/Makefile.am: Remove file.
76026         * m4/Makefile.in: Remove file.
76027
76028 2003-07-17  Bruno Haible  <bruno@clisp.org>
76029
76030         * lib/getnline.h: New file.
76031         * lib/getnline.c: New file.
76032         * lib/getndelim2.c: New file, extracted from getline.c.
76033         (getndelim2): Renamed from getdelim2, with added nmax argument.
76034         * lib/getline.c: Include getndelim2.c.
76035         (getdelim2): Moved out to getndelim2.c.
76036         (getline, getdelim): Update.
76037
76038 2003-07-17  Bruno Haible  <bruno@clisp.org>
76039
76040         * lib/Makefile.am: Remove file.
76041         * lib/Makefile.in: Remove file.
76042
76043 2003-07-17  Bruno Haible  <bruno@clisp.org>
76044
76045         * configure.in: Remove file.
76046         * Makefile.in: Remove file.
76047
76048 2003-07-17  Bruno Haible  <bruno@clisp.org>
76049
76050         * MODULES.html.sh: Put the </BODY> right before </HTML>.
76051
76052 2003-07-16  Karl Berry  <karl@gnu.org>
76053
76054         * config/srclist-update: was running fixlicense twice, which caused
76055                 texinfo.tex to be nullified for some reason.  Simplify,
76056                 $gplsrc is no longer needed as far as I can see?
76057
76058 2003-07-16  Jim Meyering  <jim@meyering.net>
76059
76060         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
76061
76062 2003-07-15  Paul Eggert  <eggert@twinsun.com>
76063
76064         * config/srclist.txt: Get the following files from gettext-runtime/intl
76065         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
76066         ref-del.sin.  From Bruno Haible.
76067         * config/srclist-update (fixfile): Change grep pattern again, since the
76068         previous fix didn't work (there was another trailing $).  Use
76069         '[$]' to escape the $s.
76070
76071 2003-07-15  Karl Berry  <karl@gnu.org>
76072
76073         * lib/vasnprintf.c: update from gettext.
76074
76075 2003-07-15  Karl Berry  <karl@gnu.org>
76076
76077         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
76078         gets expanded when surrounded by '$'.
76079
76080 2003-07-15  Jim Meyering  <jim@meyering.net>
76081
76082         * modules/save-cwd: Don't depend on error.  From Derek Price.
76083
76084 2003-07-15  Jim Meyering  <jim@meyering.net>
76085
76086         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
76087
76088 2003-07-14  Simon Josefsson  <jas@extundo.com>
76089
76090         * modules/mempcpy: New file.
76091         * MODULES.html.sh (func_all_modules): Add mempcpy.
76092
76093 2003-07-14  Simon Josefsson  <jas@extundo.com>
76094
76095         * m4/mempcpy.m4: New file.
76096
76097 2003-07-14  Simon Josefsson  <jas@extundo.com>
76098
76099         * lib/mempcpy.h: New file.
76100         * lib/mempcpy.c: New file.
76101
76102 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76103
76104         * modules/getdate, modules/posixtm: Depend on mktime.
76105
76106 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76107
76108         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
76109         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
76110         unicodeio.c, unicodeio.h, unlocked-io.h:
76111         Switch from LGPL to GPL.
76112
76113 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76114
76115         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
76116         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
76117         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
76118         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
76119         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
76120         updated automatically by ../config/srclist-update.  This changes
76121         their license from LPGL to GPL.
76122
76123 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76124
76125         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
76126         assumed to refer to the root of the most recent stable gettext version.
76127         * config/srclistvars.sh: Add defaults for eggert.
76128         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
76129         Match "This program" as well as "The program".  This is needed
76130         for gettext.
76131
76132 2003-07-14  Jim Meyering  <jim@meyering.net>
76133
76134         Don't emit diagnostics.  Let callers do that.
76135         * lib/save-cwd.c: Don't include "error.h".
76136         (save_cwd): Don't call error.  Ensure that errno is valid
76137         when returning nonzero.
76138
76139         * lib/save-cwd.h (restore_cwd): Update prototype.
76140         * lib/save-cwd.c (restore_cwd): Remove two parameters.
76141         Simplify.  Don't call error upon failure.  Let callers do that.
76142         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
76143         when auditing is enabled.  But don't bother updating the #if.
76144
76145 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
76146
76147         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
76148         it breaks C++ compilation.
76149         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
76150
76151 2003-07-10  Simon Josefsson  <jas@extundo.com>
76152
76153         * modules/strchrnul (Makefile.am): Add strchrnul.h.
76154
76155 2003-07-10  Jim Meyering  <jim@meyering.net>
76156
76157         * m4/clock_time.m4: Remove trailing blank.
76158         * m4/intmax_t.m4: Likewise.
76159
76160 2003-07-10  Jim Meyering  <jim@meyering.net>
76161
76162         * lib/vasnprintf.c: Remove trailing blanks.
76163         Make cpp indentation consistent.
76164
76165 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76166
76167         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
76168         posixver.c, strftime.c, strnlen.c, strverscmp.c:
76169         Switch from LGPL to GPL.
76170
76171 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76172
76173         * config/srclist.txt: Sort sublists.  Add
76174         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
76175         that differ from gnulib for one reason or another; we'd like this list
76176         to be smaller but for now let's document what we have.
76177
76178 2003-07-08  Paul Eggert  <eggert@twinsun.com>
76179
76180         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
76181         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
76182         and sweeter "eval x=$x".
76183         * config/srclist.txt: Get lib/argp* from glibc.
76184
76185 2003-07-07  Paul Eggert  <eggert@twinsun.com>
76186
76187         * lib/mktime.c: Fix some boundary cases and remove need for floating
76188         point.
76189
76190         Issue a compile-time diagnostic if time_t is floating point, or if
76191         two's complement arithmetic is not in effect, or if arithmetic
76192         right shift does not propagate the sign.  These assumptions were
76193         all in the original code but they weren't checked.
76194
76195         (TIME_T_MIDPOINT, verify): New macros.
76196         (__isleap): Remove; it has integer overflow problems.
76197         (leapyear): New function, without those problems.
76198         (ydhms_tm_diff): Remove; splitting into two parts.
76199         (ydhms_diff): New function, containing the arithmetic part of
76200         the old ydhms_tm_diff function.  Issue a compile-time
76201         diagnostic if we are not using C99 integer division.
76202         Avoid casts when possible.
76203         (guess_time_tm): New function, containing the checking part of
76204         the old ydhms_tm_diff function.  Return the new value, rather than
76205         the difference between it and the old.  Accept a new argument T
76206         so that *T specifies the old value.  Check for overflow in the result.
76207
76208         (__mktime_internal): Use a time_t offset, not a long int offset.
76209         This undoes the 2003-06-04 change, which is no longer needed now
76210         that we have better overflow checking.
76211         (localtime_offset): Likewise.
76212
76213         (__mktime_internal): Avoid harmful overflow on hosts where time_t
76214         and long are 64-bit but int is only 32-bit.
76215         (ydhms_diff): Use long int to store year1 and yday1.
76216         Issue a compile-time diagnostic if long int is not wide enough.
76217
76218         (__mktime_internal): Use long int to store adjusted year and yday.
76219         Use plain C rather than preprocessor commands, if that doesn't
76220         affect efficiency.
76221         Check for overflow (and try to repair) after each probe
76222         rather than checking only at the very end.  This avoids some bugs
76223         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
76224         does not equal GMT offset at maximum time).
76225         Use integer to check for overflow rather than floating point; this
76226         is more portable to non-IEEE hosts, and is a tad faster.
76227         When we detect that we are oscillating between two values,
76228         don't check whether tm_isdst has the requested value, since
76229         we already know the answer.  When tm_isdst has the wrong value,
76230         use a different heuristic to find the right one, based on the
76231         extreme values actually observed in practice in tz2003a,
76232         rather than the (overly optimistic) "previous 3 calendar quarters".
76233
76234         (not_equal_tm, print_tm, check_result): Use "const T" rather than
76235         "T const" to accommodate glibc style.
76236         (check_result): Use less-confusing report format.  "long" -> "long int.
76237         (main): Likewise.
76238         Don't loop if the iteration overflows time_t.
76239         Allow a negative step in the iteration.
76240
76241 2003-07-06  Karl Berry  <karl@gnu.org>
76242
76243         * config/depcomp: update from automake.
76244         * config/config.sub: update from prep.
76245
76246 2003-07-03  Karl Berry  <karl@gnu.org>
76247
76248         * config/config.guess: update from prep.
76249
76250 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76251
76252         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76253         xreadlink.c now includes it unconditionally.
76254
76255 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76256
76257         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76258         having it depend on HAVE_SYS_TYPES_H.
76259
76260 2003-07-01  Bruno Haible  <bruno@clisp.org>
76261
76262         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76263         <sys/types.h> should be sufficient.
76264         Reported by Paul Eggert.
76265
76266 2003-06-26  Karl Berry  <karl@gnu.org>
76267
76268         * config/depcomp: update from automake.
76269
76270 2003-06-26  Bruno Haible  <bruno@clisp.org>
76271
76272         * modules/human: Depend on module stdbool.
76273
76274 2003-06-25  Bruno Haible  <bruno@clisp.org>
76275
76276         * modules/readlink: New file.
76277         * modules/xreadlink: Depend on it.
76278         * MODULES.html.sh (func_all_modules): Add readlink.
76279
76280 2003-06-25  Bruno Haible  <bruno@clisp.org>
76281
76282         * m4/readlink.m4: New file.
76283
76284 2003-06-25  Bruno Haible  <bruno@clisp.org>
76285
76286         * lib/readlink.c: New file.
76287
76288 2003-06-22  Karl Berry  <karl@gnu.org>
76289
76290         * config/srclist.txt: update mkinstalldirs from automake.
76291         * config/mkinstalldirs: update.
76292
76293 2003-06-22  Bruno Haible  <bruno@clisp.org>
76294
76295         Portability to mingw32.
76296         * m4/ssize_t.m4: New file, from GNU gettext.
76297         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76298         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76299
76300 2003-06-22  Bruno Haible  <bruno@clisp.org>
76301
76302         * modules/safe-read: Add m4/ssize_t.m4.
76303         * modules/xreadlink: Add m4/ssize_t.m4.
76304
76305 2003-06-20  Bruno Haible  <bruno@clisp.org>
76306
76307         Assume C89, so PARAMS isn't needed.
76308         * lib/unicodeio.h (PARAMS): Remove.
76309         * lib/unicodeio.c: Don't use PARAMS.
76310
76311 2003-06-18  Karl Berry  <karl@gnu.org>
76312
76313         * config/config.{guess,sub}: update from prep.
76314
76315 2003-06-18  Jim Meyering  <jim@meyering.net>
76316
76317         Merge changes from coreutils.
76318         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76319         Remove explicit declarations of xmalloc and realloc.
76320         Include xalloc.h.
76321         (read_utmp): Remove anachronistic cast of xmalloc.
76322
76323 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76324
76325         Assume C89, so PARAMS isn't needed.
76326         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76327         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76328         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76329         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76330         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76331         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76332         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76333         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76334         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76335         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76336         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76337         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76338         no longer needed. Anyway, config.h should always be included before any
76339         other file.
76340
76341 2003-06-11  Simon Josefsson  <jas@extundo.com>
76342
76343         * modules/sysexits: New file.
76344         * MODULES.html.sh (func_all_modules): Add sysexits.
76345
76346 2003-06-11  Simon Josefsson  <jas@extundo.com>
76347
76348         * lib/sysexit_.h: New file.
76349
76350 2003-06-11  Derek Price  <derek@ximbiot.com>
76351
76352         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76353         necessary.
76354
76355 2003-06-11  Bruno Haible  <bruno@clisp.org>
76356
76357         * m4/sysexits.m4: New file.
76358
76359 2003-06-10  Simon Josefsson  <jas@extundo.com>
76360
76361         * lib/argp.h: New file, from glibc.
76362         * lib/argp-ba.c: New file, from glibc.
76363         * lib/argp-eexst.c: New file, from glibc.
76364         * lib/argp-fmtstream.c: New file, from glibc.
76365         * lib/argp-fmtstream.h: New file, from glibc.
76366         * lib/argp-fs-xinl.c: New file, from glibc.
76367         * lib/argp-help.c: New file, from glibc.
76368         * lib/argp-namefrob.h: New file, from glibc.
76369         * lib/argp-parse.c: New file, from glibc.
76370         * lib/argp-pv.c: New file, from glibc.
76371         * lib/argp-pvh.c: New file, from glibc.
76372         * lib/argp-xinl.c: New file, from glibc.
76373
76374 2003-06-10  Simon Josefsson  <jas@extundo.com>
76375
76376         * modules/strchrnul: New file.
76377
76378 2003-06-10  Simon Josefsson  <jas@extundo.com>
76379
76380         * modules/argp: New file.
76381
76382 2003-06-10  Simon Josefsson  <jas@extundo.com>
76383
76384         * m4/strchrnul.m4: New file.
76385
76386 2003-06-10  Simon Josefsson  <jas@extundo.com>
76387
76388         * lib/strchrnul.h: New file.
76389         * lib/strchrnul.c: New file.
76390
76391 2003-06-10  Bruno Haible  <bruno@clisp.org>
76392
76393         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76394
76395 2003-06-07  Karl Berry  <karl@gnu.org>
76396
76397         * config/config.{guess,sub}: update from prep.
76398
76399 2003-06-07  Jim Meyering  <jim@meyering.net>
76400
76401         * modules/strtod: Use $(...) notation, not @...@ for
76402         AC_REPLACE'd variables.
76403         * modules/localcharset: Likewise.
76404
76405 2003-06-07  Jim Meyering  <jim@meyering.net>
76406
76407         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76408         in place of my name in the copyright comment.
76409         Remove definition and uses of __P.
76410
76411         From coreutils.
76412         * lib/stat.c: Don't declare xmalloc explicitly.
76413         Instead, include "xalloc.h".
76414         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76415         xrealloc, and xcalloc return values.
76416         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76417         Improve comment.
76418         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76419
76420 2003-06-07  Bruno Haible  <bruno@clisp.org>
76421
76422         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76423         avoid AC_CONFIG_LINKS.
76424         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76425         fnmatch.h, to avoid AC_CONFIG_LINKS.
76426         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76427
76428 2003-06-07  Bruno Haible  <bruno@clisp.org>
76429
76430         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76431         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76432         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76433         directory.
76434         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76435         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76436         directory.
76437
76438 2003-06-06  Jim Meyering  <jim@meyering.net>
76439
76440         Merge from coreutils.
76441         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76442         Consolidate declarations and initializations of *_base* locals.
76443
76444         Merge from coreutils.
76445         This avoids a core dump on systems without GNU putenv,
76446         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76447         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76448         (unsetenv): New static function, from GNU libc.
76449         (rpl_putenv): Use it.
76450
76451         * lib/modechange.c: Remove trailing blanks.
76452
76453         Merge from coreutils.
76454         * lib/fsusage.c: Remove declaration of statfs.
76455         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76456
76457         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76458
76459 2003-06-06  Jim Meyering  <jim@meyering.net>
76460
76461         * lib/stdbool_.h: Renamed from stdbool.h.in.
76462
76463 2003-06-06  Jim Meyering  <jim@meyering.net>
76464             Bruno Haible  <bruno@clisp.org>
76465
76466         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76467         Adjust Makefile.am snippet not to redirect directly to target.
76468         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76469
76470 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76471
76472         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76473         mismatch, look in future quarters as well as past.  This fixes a
76474         bug when processing fall-backwards gaps immediately after a long
76475         period of daylight-saving time.
76476
76477         * lib/mktime.c: Assume freestanding C89 or better.
76478         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76479         (__P): Remove; not used.
76480         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76481         (mktime, not_equal_tm, print_tm, check_result,
76482         main): Use prototypes.  Use const * where appropriate.
76483         (main): Fix typo in testing code that uncovered by above changes.
76484         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76485
76486 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76487
76488         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76489         locale.h, localeconv.  This merges changes from coreutils.
76490
76491         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76492         It can be removed after the next Autoconf is released.
76493         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76494         needed.
76495
76496 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76497
76498         * lib/mktime.c: Fix Debian bug 177940
76499         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76500         (localtime_offset): Now long int, not time_t, because we want it
76501         to be guaranteed to be signed.  All uses changed.
76502         (__mktime_internal): If overflow would occur when adding offset,
76503         don't add it.
76504
76505         Merge 'human' changes from coreutils.  Rewrite to support
76506         locale-specific notations like thousands separators.
76507         * lib/human.c: Simplify authorship notice.
76508         Include human.h immediately after config.h.
76509         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76510         <limits.h>: Do not include, since human.h does.
76511         (SIZE_MAX, UINTMAX_MAX): New macros.
76512         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76513         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76514         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76515         (power_letter): Renamed from suffixes.
76516         (generate_suffix_backwards): Remove.
76517         (adjust_value): Now takes int style (because of human.h changes)
76518         and long double value (for greater precision on some platforms).
76519         (group_number): New function.
76520         (human_readable): Use it.  Use integer options, not enum.
76521         Put the options before the sizes in the arg list.
76522         Support all the new options.
76523         The old human_readable function has been removed;
76524         use inttostr.h instead.
76525         (human_readable, default_block_size, humblock):
76526         Use uintmax_t, not int, for block sizes.
76527         (human_readable_inexact, block_size_types): Remove.
76528         (block_size_opts): New constant.
76529         (human_options): Renamed from human_block_size, with new signature
76530         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76531         * lib/human.h: Add copyright and authorship notice.
76532         Include <limits.h> and <stdbool.h> unconditionally.
76533         (PARAMS): Remove.  All uses removed.
76534         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76535         (enum human_inexact_style): Remove tag; now a nameless enum.
76536         (human_floor, human_ceiling, human_round_to_even): Now have
76537         values 2, 0, 1 rather than -1, 1, 0.
76538         (human_group_digits, human_suppress_point_zero, human_autoscale,
76539         human_base_1024, human_SI, human_B): New constants.
76540         (human_readable_inexact, human_block_size): Remove.
76541         (human_readable): Size args are now uintmax_t, not int.
76542         (human_options): New decl.
76543
76544         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76545         unnecessary now that we assume C89 or better.  This change
76546         imported from coreutils.
76547
76548         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76549         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76550         in the 2003-05-30 sync from glibc.
76551
76552         .h files should stand alone, but we shouldn't include <sys/types.h>
76553         if we can get away with just <stddef.h>.
76554
76555         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76556         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76557         rather than <sys/types.h>, as we merely need size_t.
76558         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76559         to get size_t.
76560         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76561         Include <stdio.h>, to get FILE.
76562         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76563         memcasecmp.h has included <stddef.h> and all we need is size_t.
76564         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76565         our interface, instead of including <sys/types.h>
76566
76567 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76568
76569         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76570         now, as glibc mktime is buggy on non-glibc systems.
76571
76572 2003-06-03  Karl Berry  <karl@gnu.org>
76573
76574         * config/config.sub: update from prep.
76575
76576 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76577
76578         [from coreutils]
76579         Fix some minor time-related bugs with POSIX time arguments.
76580         Some valid time stamps were being rejected (notably -1, and
76581         time stamps before 1900 on 64-bit hosts).  And some invalid
76582         time stamps were being accepted, e.g. September 31.
76583
76584         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76585         that we can return (time_t) -1 successfully.
76586         * lib/posixtm.c: Likewise.
76587         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76588         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76589         (t): Remove static var.
76590         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76591         of static var.  All uses changed.
76592         (year): Do not reject years before 1900; they can occur with
76593         64-bit time_t.
76594         (posix_time_parse): Do not check for out-of-range components;
76595         that is now the caller's responsibility, since our checks were
76596         only approximations.
76597         (posixtime): Use mktime to check for out-of-range components,
76598         since it knows them exactly.
76599         If mktime returns (time_t) -1, check whether an error actually occurred
76600         by invoking localtime on -1.
76601         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76602         posixtime failures better.
76603         Improve the test data (in comments only).
76604
76605 2003-06-02  Karl Berry  <karl@gnu.org>
76606
76607         * config/mkinstalldirs (version): new variable.
76608         (--version): new option.
76609         (usage): improve message.
76610
76611 2003-05-30  Karl Berry  <karl@gnu.org>
76612
76613         * lib/mktime.c: update from libc.
76614
76615 2003-05-30  Bruno Haible  <bruno@clisp.org>
76616
76617         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76618         * config/config.rpath: Upgrade to gettext-0.12.1.
76619
76620 2003-05-30  Bruno Haible  <bruno@clisp.org>
76621
76622         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76623         * m4/nls.m4: New file, from gettext-0.12.1.
76624         * m4/po.m4: New file, from gettext-0.12.1.
76625         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76626
76627 2003-05-30  Bruno Haible  <bruno@clisp.org>
76628
76629         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76630         * lib/localcharset.h: Likewise.
76631         * lib/localcharset.c: Likewise.
76632
76633 2003-05-29  Karl Berry  <karl@gnu.org>
76634
76635         * config/config.rpath: update from gettext.
76636
76637 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76638
76639         Assume the headers required for C89 freestanding compilers.
76640         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76641         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76642         * m4/human.m4 (gl_HUMAN): Likewise.
76643         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76644         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76645         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76646         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76647         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76648         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76649
76650 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76651
76652         Assume the headers required for C89 freestanding compilers.
76653         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76654         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76655         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76656         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76657         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76658         define, since <limits.h> is guaranteed to do that.
76659         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76660         * lib/exclude.c: Include <stdbool.h> unconditionally.
76661         * lib/tempname.c: Include <stddef.h> unconditionally.
76662         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76663         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76664         <stddef.h> does that.
76665         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76666         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76667         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76668         needed.
76669         * lib/xstrtol.c: Likewise.
76670         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76671         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76672
76673         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76674         warnings on some platforms.
76675
76676         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76677         arbitrarily.
76678
76679 2003-05-26  Jim Meyering  <jim@meyering.net>
76680
76681         Merge in a change from coreutils:
76682         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76683         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76684         that condition, rather than `-1' which is slightly misleading.
76685         Change the name of the cache variable to have the gl_ prefix.
76686         Prompted by a patch from Richard Dawe for DJGPP.
76687
76688 2003-05-24  Karl Berry  <karl@gnu.org>
76689
76690         * config/config.guess: update from prep.
76691
76692 2003-05-22  Karl Berry  <karl@gnu.org>
76693
76694         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76695
76696 2003-05-20  Karl Berry  <karl@gnu.org>
76697
76698         * config/config.guess: update from prep.
76699
76700 2003-05-18  Karl Berry  <karl@gnu.org>
76701
76702         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76703         might actually be set by the user.
76704
76705         * config/depcomp, install-sh, mdate-sh: update from automake.
76706
76707 2003-05-17  Bruno Haible  <bruno@clisp.org>
76708
76709         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76710         invalid expansion for AC_EGREP_CPP.
76711         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76712         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76713         Suggested by Akim Demaille <akim@epita.fr> in
76714         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76715
76716 2003-05-12  Jim Meyering  <jim@meyering.net>
76717
76718         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76719         the space-padded-by-default conversion specifiers, %e, %k, %l.
76720
76721 2003-05-12  Bruno Haible  <bruno@clisp.org>
76722
76723         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76724         the string is longer than 4 KB.
76725
76726 2003-05-11  Karl Berry  <karl@gnu.org>
76727
76728         * config/config.{guess,sub}: update from prep.
76729
76730 2003-05-09  Bruno Haible  <bruno@clisp.org>
76731
76732         * modules/error: Add m4/strerror_r.m4 to file list.
76733
76734 2003-05-03  Bruno Haible  <bruno@clisp.org>
76735
76736         Upgrade to Unicode-4.0.
76737         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76738         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76739         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76740         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76741         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76742         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76743         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76744         Change width of U+E0100..U+E01EF from 1 to 0.
76745
76746 2003-04-25  Jim Meyering  <jim@meyering.net>
76747
76748         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76749         of type size_t, not int.
76750
76751 2003-04-25  Bruno Haible  <bruno@clisp.org>
76752
76753         * lib/copy-file.c: Include <stddef.h>, for size_t.
76754
76755 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76756
76757         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76758         code which expansion is under static control.  Patch imported from
76759         Akim Demaille's patch to Bison; see
76760         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76761
76762 2003-04-14  Bruno Haible  <bruno@clisp.org>
76763
76764         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76765
76766 2003-04-11  Jim Meyering  <jim@meyering.net>
76767
76768         Merge changes from Coreutils.
76769
76770         2003-03-22  Jim Meyering  <jim@meyering.net>
76771
76772         * lib/strftime.c (widen): Cast alloca return value to proper type.
76773
76774         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76775
76776         From GNU libc.
76777         * lib/strftime.c (my_strftime): Handle very large width
76778         specifications for numeric values correctly.  Improve checks for
76779         overflow.
76780
76781         2003-01-19  Jim Meyering  <jim@meyering.net>
76782
76783         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76784         definitions.
76785         (nl_get_alt_digit) [! defined my_strftime]: Define.
76786         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76787         _nl_get_alt_digit and _nl_get_walt_digit.
76788
76789         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76790         libc. These changes have no effect outside of _LIBC.
76791
76792 2003-04-10  Bruno Haible  <bruno@clisp.org>
76793
76794         * modules/findprog: New file.
76795         * MODULES.html.sh (func_all_modules): Add it.
76796
76797 2003-04-10  Bruno Haible  <bruno@clisp.org>
76798
76799         * m4/findprog.m4: New file.
76800         * m4/eaccess.m4: New file.
76801
76802 2003-04-10  Bruno Haible  <bruno@clisp.org>
76803
76804         * lib/findprog.h: New file, from GNU gettext.
76805         * lib/findprog.c: New file, from GNU gettext.
76806
76807 2003-04-05  Jim Meyering  <jim@meyering.net>
76808
76809         Merge changes from Coreutils.
76810
76811         * lib/exclude.h (PARAMS): Remove definition and uses.
76812         * lib/exclude.c: Remove uses of `PARAMS'.
76813
76814         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76815         Add test-cases for DOS filenames. Declare program_name.
76816         (main): Set up program_name.  Patch by Rich Dawe.
76817
76818         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76819         error from mntctl.
76820         Use mntctl's return value to drive the entry-processing loop, since
76821         we can't rely on the value of the vmt_length member in the last
76822         entry.  On some systems doing so could result in exhausting
76823         virtual memory.  Based in part on a patch from Mike Jetzer.
76824
76825 2003-04-04  Bruno Haible  <bruno@clisp.org>
76826
76827         * modules/linebreak: New file.
76828         * MODULES.html.sh (func_all_modules): Add it.
76829
76830 2003-04-04  Bruno Haible  <bruno@clisp.org>
76831
76832         * m4/linebreak.m4: New file.
76833
76834 2003-04-04  Bruno Haible  <bruno@clisp.org>
76835
76836         * lib/linebreak.h: New file, from GNU gettext.
76837         * lib/linebreak.c: New file, from GNU gettext with slight
76838         modifications.
76839         * lib/lbrkprop.h: New file, from GNU gettext.
76840
76841 2003-04-03  Bruno Haible  <bruno@clisp.org>
76842
76843         * modules/utf8-ucs4: New file.
76844         * modules/utf16-ucs4: New file.
76845         * modules/ucs4-utf8: New file.
76846         * modules/ucs4-utf16: New file.
76847         * MODULES.html.sh (func_all_modules): Add them.
76848
76849 2003-04-03  Bruno Haible  <bruno@clisp.org>
76850
76851         * m4/utf-ucs4.m4: New file.
76852         * m4/ucs4-utf.m4: New file.
76853
76854 2003-04-03  Bruno Haible  <bruno@clisp.org>
76855
76856         * lib/utf8-ucs4.h: New file, from GNU gettext.
76857         * lib/utf16-ucs4.h: New file, from GNU gettext.
76858         * lib/ucs4-utf8.h: New file, from GNU gettext.
76859         * lib/ucs4-utf16.h: New file, from GNU gettext.
76860
76861 2003-04-02  Bruno Haible  <bruno@clisp.org>
76862
76863         * modules/binary-io: New file.
76864         * MODULES.html.sh (func_all_modules): Add it.
76865
76866 2003-04-02  Bruno Haible  <bruno@clisp.org>
76867
76868         * lib/binary-io.h: New file, from GNU gettext.
76869
76870 2003-04-01  Bruno Haible  <bruno@clisp.org>
76871
76872         * modules/pathname: New file.
76873         * MODULES.html.sh (func_all_modules): Add it.
76874
76875 2003-04-01  Bruno Haible  <bruno@clisp.org>
76876
76877         * lib/pathname.h: New file, from GNU gettext.
76878         * lib/concatpath.c: New file, from GNU gettext.
76879
76880 2003-03-30  Bruno Haible  <bruno@clisp.org>
76881
76882         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76883
76884 2003-03-30  Bruno Haible  <bruno@clisp.org>
76885
76886         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76887         function chown() doesn't exist.
76888
76889 2003-03-28  Bruno Haible  <bruno@clisp.org>
76890
76891         * modules/copy-file: New file.
76892         * MODULES.html.sh (func_all_modules): Add it.
76893
76894 2003-03-28  Bruno Haible  <bruno@clisp.org>
76895
76896         * m4/copy-file.m4: New file.
76897
76898 2003-03-28  Bruno Haible  <bruno@clisp.org>
76899
76900         * lib/copy-file.h: New file, from GNU gettext.
76901         * lib/copy-file.c: New file, from GNU gettext.
76902
76903 2003-03-18  Jim Meyering  <jim@meyering.net>
76904
76905         * lib/quote.c (quote_n): Fix typo in comment.
76906
76907 2003-03-18  Bruno Haible  <bruno@clisp.org>
76908
76909         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76910         checking.
76911         * m4/onceonly_2_57.m4: Likewise.
76912
76913 2003-03-17  Bruno Haible  <bruno@clisp.org>
76914
76915         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76916         (m4_quote): Remove macro.
76917         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76918
76919 2003-03-14  Jim Meyering  <jim@meyering.net>
76920
76921         Merge changes from Coreutils.
76922         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76923         to be const, in order to avoid warnings.
76924         (obstack_room): Likewise.
76925         (obstack_empty_p): Likewise.
76926
76927 2003-03-14  Bruno Haible  <bruno@clisp.org>
76928
76929         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76930         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76931
76932 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76933
76934         Merge changes from Bison.
76935         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76936         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76937         when compiling Bison 1.875's `bitset bset = obstack_alloc
76938         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76939         * lib/hash.c: Include <stdbool.h> unconditionally.
76940
76941 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76942
76943         * m4/onceonly.m4 (m4_quote): New macro.
76944         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76945         Quote AC_FOREACH variable-expansions properly.
76946
76947 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76948
76949         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76950
76951 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76952
76953         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76954         Reported by Bruce Becker; see:
76955         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76956
76957 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76958             Bruno Haible  <bruno@clisp.org>
76959
76960         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76961         Reported by John Hughes, see
76962         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76963
76964 2003-02-20  Bruno Haible  <bruno@clisp.org>
76965
76966         * MODULES.html.sh (func_all_modules): Add poll.
76967
76968 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76969
76970         * modules/poll: New file.
76971
76972 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76973
76974         * lib/poll_.h: New file.
76975         * lib/poll.c: New file.
76976
76977 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76978
76979         * m4/poll.m4: New file.
76980
76981 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76982
76983         * modules/mathl: New file.
76984
76985 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76986
76987         * lib/mathl.h: New file.
76988         * lib/acosl.c: New file.
76989         * lib/asinl.c: New file.
76990         * lib/atanl.c: New file.
76991         * lib/ceill.c: New file.
76992         * lib/cosl.c: New file.
76993         * lib/expl.c: New file.
76994         * lib/floorl.c: New file.
76995         * lib/frexpl.c: New file.
76996         * lib/ldexpl.c: New file.
76997         * lib/logl.c: New file.
76998         * lib/sincosl.c: New file.
76999         * lib/sinl.c: New file.
77000         * lib/sqrtl.c: New file.
77001         * lib/tanl.c: New file.
77002         * lib/trigl.c: New file.
77003         * lib/trigl.h: New file.
77004
77005 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77006
77007         * m4/mathl.m4: New file.
77008
77009 2003-02-18  Bruno Haible  <bruno@clisp.org>
77010
77011         * MODULES.html.sh (func_all_modules): Add mathl.
77012
77013 2003-02-17  Bruno Haible  <bruno@clisp.org>
77014
77015         * modules/mkdtemp: New module.
77016         * MODULES.html.sh (func_all_modules): Add it.
77017
77018 2003-02-17  Bruno Haible  <bruno@clisp.org>
77019
77020         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
77021
77022 2003-02-17  Bruno Haible  <bruno@clisp.org>
77023
77024         * lib/mkdtemp.h: New file, from GNU gettext.
77025         * lib/mkdtemp.c: New file, from GNU gettext.
77026
77027 2003-02-02  Jim Meyering  <jim@meyering.net>
77028
77029         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
77030         e.g. glibc-2.2.93.
77031
77032 2003-01-31  Bruno Haible  <bruno@clisp.org>
77033
77034         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
77035         'rpl_rename'.
77036         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
77037         'rpl_strnlen'.
77038         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
77039         'rpl_strtod'.
77040         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
77041         'rpl_utime'.
77042
77043 2003-01-31  Bruno Haible  <bruno@clisp.org>
77044
77045         * lib/rename.c: #undef rename before defining rpl_rename.
77046         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
77047
77048 2003-01-30  Bruno Haible  <bruno@clisp.org>
77049
77050         * modules/vasnprintf, modules/vasprintf: New modules.
77051         * MODULES.html.sh (func_all_modules): Add them.
77052
77053 2003-01-30  Bruno Haible  <bruno@clisp.org>
77054
77055         * m4/signed.m4: New file, from GNU gettext.
77056         * m4/longdouble.m4: New file, from GNU gettext.
77057         * m4/wchar_t.m4: New file, from GNU gettext.
77058         * m4/wint_t.m4: New file, from GNU gettext.
77059         * m4/vasnprintf.m4: New file.
77060         * m4/vasprintf.m4: New file.
77061
77062 2003-01-30  Bruno Haible  <bruno@clisp.org>
77063
77064         * lib/printf-args.h: New file, from GNU gettext.
77065         * lib/printf-args.c: New file, from GNU gettext.
77066         * lib/printf-parse.h: New file, from GNU gettext.
77067         * lib/printf-parse.c: New file, from GNU gettext.
77068         * lib/vasnprintf.h: New file, from GNU gettext.
77069         * lib/vasnprintf.c: New file, from GNU gettext.
77070         * lib/asnprintf.c: New file, from GNU gettext.
77071         * lib/vasprintf.h: New file, from GNU gettext with modifications.
77072         * lib/vasprintf.c: New file, from GNU gettext.
77073         * lib/asprintf.c: New file, from GNU gettext.
77074
77075 2003-01-29  Bruno Haible  <bruno@clisp.org>
77076
77077         * modules/stpncpy: New module.
77078         * MODULES.html.sh (func_all_modules): Add it.
77079
77080 2003-01-29  Bruno Haible  <bruno@clisp.org>
77081
77082         * m4/stpncpy.m4: New file.
77083
77084 2003-01-29  Bruno Haible  <bruno@clisp.org>
77085
77086         * lib/stpncpy.h: New file, from GNU gettext with modifications.
77087         * lib/stpncpy.c: New file, from GNU gettext with modifications.
77088
77089 2003-01-28  Bruno Haible  <bruno@clisp.org>
77090
77091         * modules/c-ctype: New module.
77092         * MODULES.html.sh (func_all_modules): Add it.
77093
77094 2003-01-28  Bruno Haible  <bruno@clisp.org>
77095
77096         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
77097         Paul Eggert.
77098         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
77099         Paul Eggert.
77100
77101 2003-01-27  Bruno Haible  <bruno@clisp.org>
77102
77103         * modules/xsetenv: New module.
77104         * MODULES.html.sh (func_all_modules): Add it.
77105
77106 2003-01-27  Bruno Haible  <bruno@clisp.org>
77107
77108         * lib/xsetenv.h: New file, from GNU gettext.
77109         * lib/xsetenv.c: New file, from GNU gettext.
77110
77111 2003-01-23  Jim Meyering  <jim@meyering.net>
77112
77113         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
77114         from working on systems without dirfd (at least Irix and OSF1/Tru64).
77115
77116 2003-01-23  Bruno Haible  <bruno@clisp.org>
77117
77118         * modules/minmax: New module.
77119         * MODULES.html.sh (func_all_modules): Add it.
77120
77121 2003-01-23  Bruno Haible  <bruno@clisp.org>
77122
77123         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
77124         Eggert.
77125
77126 2003-01-22  Bruno Haible  <bruno@clisp.org>
77127
77128         * modules/exit: New module.
77129         * MODULES.html.sh (func_all_modules): Add it.
77130
77131 2003-01-22  Bruno Haible  <bruno@clisp.org>
77132
77133         * lib/exit.h: New file, from GNU gettext.
77134
77135 2003-01-19  Bruno Haible  <bruno@clisp.org>
77136
77137         * gnulib-tool: Recognize option --extract-maintainer.
77138         (func_get_maintainer): New function.
77139         * modules/*: Add Maintainer entry.
77140
77141 2003-01-16  Jim Meyering  <jim@meyering.net>
77142
77143         * m4/regex.m4: The `regex' struct is both input and output.
77144         Initialize it before each use.  Patch by Tim Waugh.
77145
77146 2003-01-16  Bruno Haible  <bruno@clisp.org>
77147
77148         * MODULES.html.sh: Add a table of contents. Add the module name as
77149         leftmost column. Add hyperlinks.
77150
77151 2003-01-15  Bruno Haible  <bruno@clisp.org>
77152
77153         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
77154
77155 2003-01-15  Bruno Haible  <bruno@clisp.org>
77156
77157         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
77158         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
77159         suffix.
77160
77161 2003-01-15  Bruno Haible  <bruno@clisp.org>
77162
77163         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
77164
77165 2003-01-15  Bruno Haible  <bruno@clisp.org>
77166
77167         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
77168         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
77169
77170 2003-01-14  Jim Meyering  <jim@meyering.net>
77171
77172         * lib/same.c (same_name): Tweak a comment.
77173
77174 2003-01-14  Bruno Haible  <bruno@clisp.org>
77175
77176         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
77177         when a string comparison is sufficient.
77178
77179 2003-01-14  Bruno Haible  <bruno@clisp.org>
77180
77181         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
77182         'unsigned int'.
77183
77184 2003-01-14  Bruno Haible  <bruno@clisp.org>
77185
77186         * lib/hash-pjw.c: Add comment about low quality of this function.
77187
77188 2003-01-13  Bruno Haible  <bruno@clisp.org>
77189
77190         * modules/stpcpy: Distribute lib/stpcpy.h.
77191         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
77192
77193 2003-01-13  Bruno Haible  <bruno@clisp.org>
77194
77195         * modules/*: Add a description.
77196         * modules/strpbrk: Fix Makefile.am snippet.
77197         * modules/strtoimax: Fix dependencies.
77198         * modules/strtoumax: Likewise.
77199
77200 2003-01-13  Bruno Haible  <bruno@clisp.org>
77201
77202         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
77203         * modules/alloca (Makefile.am): All object files depend on alloca.h.
77204         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
77205
77206 2003-01-13  Bruno Haible  <bruno@clisp.org>
77207
77208         * gnulib-tool (func_create_testdir): Store config/* files in the main
77209         directory.
77210         * config.rpath: Move to ...
77211         * config/config.rpath: ... here.
77212         * modules/gettext: Contains config/config.rpath, not config.rpath.
77213         * modules/iconv: Likewise.
77214
77215 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77216
77217         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77218         to avoid collisions with libcurses and libreadline.
77219
77220         * m4/getstr.m4: Remove.
77221         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
77222
77223 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77224
77225         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77226         to avoid collisions with libcurses and libreadline.
77227
77228         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
77229         * lib/getstr.h, getstr.c: Remove.
77230         * lib/getline.c: Include "getline.h", to check interface.
77231         Move body of old getstr.c here: this defines MIN_CHUNK and
77232         declares getdelim2, which is renamed from getstr.
77233         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
77234
77235         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
77236         All uses changed.
77237         * lib/linebuffer.h: Likewise.
77238         (readline): Remove backward-compatibility macro.
77239
77240 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77241
77242         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77243         to avoid collisions with libcurses and libreadline.
77244         * getstr: Remove.
77245         * MODULES.html.sh: Remove getstr.
77246         * modules/getline: Depend on unlocked-io, not getstr.
77247
77248 2003-01-12  Jim Meyering  <jim@meyering.net>
77249
77250         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77251
77252 2003-01-10  Bruno Haible  <bruno@clisp.org>
77253
77254         * modules/alloca: Change Makefile.am requirements. Simplify Include
77255         requirements. Add lib/alloca_.h to file list.
77256
77257 2003-01-10  Bruno Haible  <bruno@clisp.org>
77258
77259         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77260
77261 2003-01-10  Bruno Haible  <bruno@clisp.org>
77262
77263         * lib/alloca_.h: New file.
77264         * lib/getdate.y: Unconditionally include alloca.h.
77265         * lib/makepath.c: Likewise.
77266         * lib/setenv.c: Likewise.
77267         * lib/userspec.c: Likewise.
77268
77269 2003-01-09  Karl Berry  <karl@gnu.org>
77270
77271         * MODULES.html.sh: include `dirname $0` in PATH, to find
77272         gnulib-tool.
77273
77274 2003-01-09  Bruno Haible  <bruno@clisp.org>
77275
77276         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77277         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77278
77279 2003-01-09  Bruno Haible  <bruno@clisp.org>
77280
77281         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77282
77283 2003-01-09  Bruno Haible  <bruno@clisp.org>
77284
77285         * lib/stdbool.h.in: New file.
77286
77287 2003-01-09  Bruno Haible  <bruno@clisp.org>
77288
77289         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77290         * MODULES.html.sh: Likewise.
77291
77292 2003-01-08  Jim Meyering  <jim@meyering.net>
77293
77294         * lib/full-write.c: Undefine and define-away `const' after inclusion
77295         of errno.h, not before.  Suggestion from Bruno Haible.
77296
77297 2003-01-08  Bruno Haible  <bruno@clisp.org>
77298
77299         * modules/full-read: Depend on full-write.
77300
77301 2003-01-08  Bruno Haible  <bruno@clisp.org>
77302
77303         * lib/safe-read.c: Include specification header first, to ensure its
77304         selfcontainedness.
77305         * lib/full-write.c: Likewise.
77306
77307 2003-01-07  Jim Meyering  <jim@meyering.net>
77308
77309         * lib/full-write.c: Rework so that it may serve to define full_read,
77310         too.
77311         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77312
77313 2003-01-07  Bruno Haible  <bruno@clisp.org>
77314
77315         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77316         <inttypes.h>.
77317         * lib/xstrtol.h: Likewise.
77318         * lib/xstrtoimax.c: Likewise.
77319         * lib/xstrtoumax.c: Likewise.
77320         * lib/human.h: Likewise.
77321
77322         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77323         on systems that have <inttypes.h> but not <stdint.h>.
77324
77325 2003-01-07  Bruno Haible  <bruno@clisp.org>
77326
77327         * MODULES.html.sh: Add copyright notice.
77328         (missed_files): Omit CVS directory entries.
77329         (func_module): Make it work with sed-3.02.
77330         * MODULES.txt: Remove file.
77331
77332 2003-01-06  Jim Meyering  <jim@meyering.net>
77333
77334         * lib/version-etc.c: Update year in translatable copyright string.
77335
77336 2003-01-03  Karl Berry  <karl@gnu.org>
77337
77338         * config/config.{guess,sub}: update from prep.
77339
77340 2003-01-02  Karl Berry  <karl@gnu.org>
77341
77342         * doc/COPYING.DOC: belatedly updated to 1.2.
77343
77344 2003-01-01  Karl Berry  <karl@gnu.org>
77345
77346         * gnulib-tool (func_verify_module): report module name $module in
77347         error message, not $1.
77348         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77349         be created, only if it doesn't exist.
77350         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77351
77352 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77353
77354         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77355
77356 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77357
77358         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77359         memcmp if strcoll doesn't work.
77360
77361 2002-12-31  Bruno Haible  <bruno@clisp.org>
77362
77363         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77364         nonempty.
77365
77366 2002-12-31  Bruno Haible  <bruno@clisp.org>
77367
77368         * lib/memcoll.c (STRCOLL): New macro.
77369         (memcoll): Use it.
77370
77371 2002-12-31  Bruno Haible  <bruno@clisp.org>
77372
77373         * lib/localcharset.h: New file.
77374         * lib/localcharset.c: Include it.
77375         * lib/unicodeio.c: Likewise.
77376
77377 2002-12-31  Bruno Haible  <bruno@clisp.org>
77378
77379         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77380         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77381
77382 2002-12-31  Bruno Haible  <bruno@clisp.org>
77383
77384         * lib/getline.h: Include <stddef.h>, for size_t.
77385
77386         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77387         * lib/unicodeio.c: Don't include <stddef.h>.
77388
77389 2002-12-31  Bruno Haible  <bruno@clisp.org>
77390
77391         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77392         HAVE_TM_ZONE.
77393
77394 2002-12-24  Karl Berry  <karl@gnu.org>
77395
77396         * config/config.guess: update from prep.
77397
77398 2002-12-24  Bruno Haible  <bruno@clisp.org>
77399
77400         General infrasructure.
77401         * m4/README: Rewritten.
77402         * m4/onceonly.m4: New file.
77403         * m4/onceonly_2_57.m4: New file.
77404
77405         Module atexit.
77406         * m4/atexit.m4: New file.
77407
77408         Module strtod.
77409         * m4/strtod.m4: New file.
77410
77411         Module strtol.
77412         * m4/strtol.m4: New file.
77413
77414         Module strtoul.
77415         * m4/strtoul.m4: New file.
77416
77417         Module memchr.
77418         * m4/memchr.m4: New file.
77419
77420         Module memcmp.
77421         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77422         (jm_FUNC_MEMCMP): Invoke it.
77423
77424         Module memcpy.
77425         * m4/memcpy.m4: New file.
77426
77427         Module memmove.
77428         * m4/memmove.m4: New file.
77429
77430         Module memset.
77431         * m4/memset.m4: New file.
77432
77433         Module strcspn.
77434         * m4/strcspn.m4: New file.
77435
77436         Module strpbrk.
77437         * m4/strpbrk.m4: New file.
77438
77439         Module strstr.
77440         * m4/strstr.m4: New file.
77441
77442         Module strerror.
77443         * m4/strerror.m4: New file.
77444
77445         Module mktime.
77446         * m4/mktime.m4: Renamed from jm-mktime.m4.
77447         (gl_PREREQ_MKTIME): New macro.
77448         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77449
77450         Module malloc.
77451         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77452         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77453         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77454
77455         Module realloc.
77456         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77457         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77458         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77459
77460         Module strftime.
77461         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77462         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77463         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77464         gl_TM_GMTOFF.
77465         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77466
77467         Module xalloc.
77468         * m4/xalloc.m4: New file.
77469
77470         Module alloca.
77471         * m4/alloca.m4: New file.
77472
77473         Module putenv.
77474         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77475         (jm_FUNC_PUTENV): Invoke it.
77476
77477         Module setenv.
77478         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77479         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77480         when invoked twice.
77481         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77482         gt_FUNC_SETENV.
77483
77484         Module memrchr.
77485         * m4/memrchr.m4: New file.
77486
77487         Module stpcpy.
77488         * m4/stpcpy.m4: New file.
77489
77490         Module strcase.
77491         * m4/strcase.m4: New file.
77492
77493         Module strdup.
77494         * m4/strdup.m4: New file.
77495
77496         Module strnlen.
77497         * m4/strnlen.m4: New file.
77498
77499         Module strndup.
77500         * m4/strndup.m4: New file.
77501
77502         Module xstrtod.
77503         * m4/xstrtod.m4: New file.
77504
77505         Module xstrtol.
77506         * m4/xstrtol.m4: New file.
77507
77508         Module getdate.
77509         * m4/getdate.m4: New file.
77510
77511         Module unlocked-io.
77512         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77513         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77514         * m4/jm-glibc-io.m4n: Remove file.
77515
77516         Module long-options.
77517         * m4/long-options.m4: New file.
77518
77519         Module md5.
77520         * m4/md5.m4: New file.
77521
77522         Module sha.
77523         * m4/sha.m4: New file.
77524
77525         Module getstr.
77526         * m4/getstr.m4: New file.
77527
77528         Module getline.
77529         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77530         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77531         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77532         simply getline. Infoke gl_PREREQ_GETLINE.
77533
77534         Module obstack.
77535         * m4/obstack.m4: New file.
77536
77537         Module hash.
77538         * m4/hash.m4: New file.
77539
77540         Module readtokens.
77541         * m4/readtokens.m4: New file.
77542
77543         Module strverscmp.
77544         * m4/strverscmp.m4: New file.
77545
77546         Module stdbool.
77547         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77548         OSF/1.
77549
77550         Module strtoll.
77551         * m4/strtoll.m4: New file.
77552
77553         Module strtoull.
77554         * m4/strtoull.m4: New file.
77555
77556         Module strtoimax.
77557         * m4/strtoimax.m4: New file.
77558
77559         Module strtoumax.
77560         * m4/strtoumax.m4: New file.
77561
77562         Module xstrtoimax.
77563         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77564         jm_AC_PREREQ_XSTRTOIMAX.
77565         Moved the strtol prerequisites to strtol.m4.
77566         Moved the strtoll prerequisites to strtoll.m4.
77567         Moved the strtoimax prerequisites to strtoimax.m4.
77568
77569         Module xstrtoumax.
77570         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77571         jm_AC_PREREQ_XSTRTOUMAX.
77572         Moved the strtoul prerequisites to strtoul.m4.
77573         Moved the strtoull prerequisites to strtoull.m4.
77574         Moved the strtoumax prerequisites to strtoumax.m4.
77575
77576         Module chown.
77577         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77578         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77579
77580         Module dup2.
77581         * m4/dup2.m4: New file.
77582
77583         Module ftruncate.
77584         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77585         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77586
77587         Module getgroups.
77588         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77589         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77590
77591         Module gettimeofday.
77592         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77593         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77594         gl_PREREQ_GETTIMEOFDAY.
77595
77596         Module mkdir.
77597         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77598         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77599
77600         Module mkstemp.
77601         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77602         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77603         jm_AC_TYPE_UINTMAX_T.
77604         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77605
77606         Module stat.
77607         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77608         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77609
77610         Module lstat.
77611         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77612         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77613
77614         Module timespec.
77615         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77616         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77617         * m4/st_mtim.m4: Indentation.
77618
77619         Module nanosleep.
77620         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77621         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77622         gl_PREREQ_NANOSLEEP.
77623
77624         Module regex.
77625         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77626         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77627         (gl_REGEX): New macro.
77628
77629         Module rename.
77630         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77631         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77632
77633         Module rmdir.
77634         * m4/rmdir.m4: New file.
77635
77636         Module utime.
77637         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77638         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77639         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77640
77641         Module dirname.
77642         * m4/dirname.m4: New file.
77643
77644         Module getopt.
77645         * m4/getopt.m4: New file.
77646
77647         Module unistd-safer.
77648         * m4/unistd-safer.m4: New file.
77649
77650         Module fnmatch.
77651         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77652         declaration.
77653         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77654         (gl_FUNC_FNMATCH_POSIX): New macro.
77655         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77656         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77657         simply fnmatch.
77658
77659         Module exclude.
77660         * m4/exclude.m4: New file.
77661
77662         Module human.
77663         * m4/human.m4: New file.
77664
77665         Module acl.
77666         * m4/acl.m4: Nop.
77667
77668         Module backupfile.
77669         * m4/backupfile.m4: New file.
77670         * m4/d-ino.m4: Indentation.
77671
77672         Module fsusage.
77673         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77674         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77675         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77676
77677         Module dirfd.
77678         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77679         requirements.
77680
77681         Module euidaccess.
77682         * m4/euidaccess.m4: New file.
77683
77684         Module file-type.
77685         * m4/file-type.m4: New file.
77686
77687         Module fileblocks.
77688         * m4/fileblocks.m4: New file.
77689
77690         Module filemode.
77691         * m4/filemode.m4: New file.
77692
77693         Module isdir.
77694         * m4/isdir.m4: New file.
77695
77696         Module lchown.
77697         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77698         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77699
77700         Module makepath.
77701         * m4/makepath.m4: New file.
77702
77703         Module modechange.
77704         * m4/modechange.m4: New file.
77705
77706         Module mountlist.
77707         * m4/mountlist.m4: New file.
77708         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77709         Indentation.
77710
77711         Module path-concat.
77712         * m4/path-concat.m4: New file.
77713
77714         Module pathmax.
77715         * m4/pathmax.m4: New file.
77716
77717         Module same.
77718         * m4/same.m4: New file.
77719
77720         Module save-cwd.
77721         * m4/save-cwd.m4: New file.
77722
77723         Module savedir.
77724         * m4/savedir.m4: New file.
77725
77726         Module xgetcwd.
77727         * m4/xgetcwd.m4: New file.
77728         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77729
77730         Module xreadlink.
77731         * m4/xreadlink.m4: New file.
77732
77733         Module safe-read.
77734         * m4/safe-read.m4: New file.
77735
77736         Module safe-write.
77737         * m4/safe-write.m4: New file.
77738
77739         Module closeout.
77740         * m4/closeout.m4: New file.
77741
77742         Module stdio-safer.
77743         * m4/stdio-safer.m4: New file.
77744
77745         Module getpass.
77746         * m4/getpass.m4: New file.
77747
77748         Module getugroups.
77749         * m4/getugroups.m4: New file.
77750
77751         Module group-member.
77752         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77753         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77754
77755         Module idcache.
77756         * m4/idcache.m4: New file.
77757
77758         Module userspec.
77759         * m4/userspec.m4: New file.
77760
77761         Module gettime.
77762         * m4/clock_time.m4: New file.
77763         * m4/gettime.m4: New file.
77764
77765         Module settime.
77766         * m4/settime.m4: New file.
77767
77768         Module posixtm.
77769         * m4/posixtm.m4: New file.
77770
77771         Module gethostname.
77772         * m4/gethostname.m4: New file.
77773
77774         Module canon-host.
77775         * m4/canon-host.m4: New file.
77776
77777         Module gettext.
77778         * m4/codeset.m4: New file, from gettext-0.11.5.
77779         * m4/gettext.m4: New file, from gettext-0.11.5.
77780         * m4/glibc21.m4: New file, from gettext-0.11.5.
77781         * m4/iconv.m4: New file, from gettext-0.11.5.
77782         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77783         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77784         * m4/inttypes.m4: New file, from gettext-0.11.5.
77785         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77786         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77787         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77788         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77789         * m4/lib-link.m4: New file, from gettext-0.11.5.
77790         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77791         * m4/progtest.m4: New file, from gettext-0.11.5.
77792         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77793         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77794         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77795
77796         Module localcharset.
77797         * m4/localcharset.m4: New file.
77798
77799         Module hard-locale.
77800         * m4/hard-locale.m4: New file.
77801
77802         Module mbswidth.
77803         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77804         onceonly macros.
77805         * m4/mbrtowc.m4: Add comment.
77806
77807         Module memcasecmp.
77808         * m4/memcasecmp.m4: New file.
77809
77810         Module memcoll.
77811         * m4/memcoll.m4: New file.
77812
77813         Module unicodeio.
77814         * m4/unicodeio.m4: New file.
77815
77816         Module rpmatch.
77817         * m4/rpmatch.m4: New file.
77818
77819         Module yesno.
77820         * m4/yesno.m4: New file.
77821
77822         Module exitfail.
77823         * m4/exitfail.m4: New file.
77824
77825         Module c-stack.
77826         * m4/c-stack.m4 (gl_C_STACK): New macro.
77827         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77828
77829         Module error.
77830         * m4/error.m4 (gl_ERROR): New macro.
77831         (jm_PREREQ_ERROR): Use onceonly macros.
77832
77833         Module fatal.
77834         * m4/fatal.m4: New file.
77835
77836         Module getloadavg.
77837         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77838         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77839
77840         Module getpagesize.
77841         * m4/getpagesize.m4: New file.
77842
77843         Module getusershell.
77844         * m4/getusershell.m4: New file.
77845
77846         Module physmem.
77847         * m4/physmem.m4: New file.
77848
77849         Module posixver.
77850         * m4/posixver.m4: New file.
77851
77852         Module quotearg.
77853         * m4/quotearg.m4: New file.
77854
77855         Module quote.
77856         * m4/quote.m4: New file.
77857
77858         Module readutmp.
77859         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77860
77861         Module sig2str.
77862         * m4/sig2str.m4: New file.
77863
77864         Other.
77865         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77866         ulonglong.m4.
77867         * m4/intmax_t.m4: New file.
77868         * m4/d-type.m4: Indentation.
77869         * m4/jm-macros.m4: Update.
77870         * m4/prereq.m4 (jm_PREREQ): Update.
77871         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77872         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77873         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77874         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77875         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77876         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77877         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77878         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77879         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77880         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77881         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77882         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77883         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77884         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77885         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77886         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77887         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77888         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77889         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77890
77891 2002-12-24  Bruno Haible  <bruno@clisp.org>
77892
77893         * MODULES.txt: Update according to m4/ changes.
77894
77895         Module gettext.
77896         * config.rpath: New file, from gettext-0.11.5.
77897
77898         * modules/*: New module descriptions.
77899         * gnulib-tool: New file.
77900         * MODULES.html.sh: New file.
77901
77902 2002-12-21  Karl Berry  <karl@gnu.org>
77903
77904         * doc/fdl.texi: update to version 1.2.
77905
77906 2002-12-19  Karl Berry  <karl@gnu.org>
77907
77908         * config/config.guess: update from prep.
77909
77910 2002-12-18  Bruno Haible  <bruno@clisp.org>
77911
77912         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77913         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77914
77915 2002-12-17  Bruno Haible  <bruno@clisp.org>
77916
77917         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77918         stdlib.h, string.h.
77919
77920 2002-12-17  Bruno Haible  <bruno@clisp.org>
77921
77922         * lib/canon-host.c (strdup): Remove unused declaration.
77923
77924         * lib/fsusage.c: Include full_read.h.
77925         (get_fs_usage): Use full_read instead of safe_read.
77926
77927         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77928
77929 2002-12-12  Karl Berry  <karl@gnu.org>
77930
77931         * config/config.guess: update from prep.
77932
77933 2002-12-11  Bruno Haible  <bruno@clisp.org>
77934
77935         * m4/setenv.m4: New file, from gettext-0.11.5.
77936
77937 2002-12-11  Bruno Haible  <bruno@clisp.org>
77938
77939         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77940         not unsetenv().
77941         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77942         modifications:
77943
77944         2002-12-11  Bruno Haible  <bruno@clisp.org>
77945
77946                 * setenv.c (alloca): Fall back to malloc.
77947                 (freea): New macro.
77948                 (setenv): Use freea() to free memory allocated with alloca().
77949
77950         2002-11-13  Bruno Haible  <bruno@clisp.org>
77951
77952                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77953                 function declarations.
77954                 * unsetenv.c (unsetenv): Likewise.
77955
77956         2002-03-04  Bruno Haible  <bruno@clisp.org>
77957
77958                 Portability to AIX 4.3.3.
77959                 * unsetenv.c: New file, extracted from setenv.c.
77960                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77961
77962         2001-12-20  Bruno Haible  <bruno@clisp.org>
77963
77964                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77965                 use malloc instead. For SunOS 4.
77966
77967         2001-12-11  Bruno Haible  <bruno@clisp.org>
77968
77969                 * setenv.c: Declare alloca.
77970                 (compar_fn_t): New typedef.
77971                 (KNOWN_VALUE, STORE_VALUE): Use it.
77972
77973         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77974         setenv.h.
77975
77976 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77977
77978         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77979         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77980         Choose values that are less likely to collide with system fnmatch
77981         options.
77982         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77983         defined (e.g., a pure POSIX system).
77984         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77985         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77986
77987 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77988
77989         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77990         a pain in practice to deal with generated m4 files.  This change
77991         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77992
77993         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77994         and jm-glibc-io.m4, as they are no longer a special case.
77995         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77996         kludge and the auto-generation stuff.  Check only whether the
77997         functions are declared, not whether they exist, since older hosts
77998         that don't declare the functions can't use the optimization anyway.
77999
78000 2002-12-06  Jim Meyering  <jim@meyering.net>
78001
78002         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
78003
78004         Merge in changes from libc's misc/error.c, in preparation
78005         for the merge of gnulib's changes back into libc.
78006
78007         * lib/error.c (_): Define only if not already defined.
78008         Move definition to follow all #include directives.
78009         Include unlocked-io.h only if !_LIBC.
78010         [_LIBC]: Include <libio/libioP.h>.
78011         [USE_IN_LIBIO]: Include <libio/iolibio.h>
78012         (fflush): Tweak definition to use INTUSE.
78013         (putc): Define.
78014
78015 2002-12-05  Paul Eggert  <eggert@twinsun.com>
78016
78017         * lib/alloca.c [defined emacs]: Include "lisp.h".
78018         (xalloc_die) [defined emacs]: New macro.
78019         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
78020         [! defined emacs]: Include <xalloc.h>.
78021         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
78022         (pointer): Typedef to POINTER_TYPE *.
78023         (malloc): Remove decl; we now always use xmalloc.
78024         (alloca): Use old-style definition, since Emacs needs this.
78025         Check for arithmetic overflow when computing combined size.
78026
78027 2002-12-04  Paul Eggert  <eggert@twinsun.com>
78028
78029         Do not generate unlocked-io.h automatically, since it's easier to
78030         maintain it by hand.
78031
78032         * lib/unlocked-io.h: New file, from GNU diffutils,
78033         but with proper copyright notice and attribution.
78034         * lib/gen-uio: Remove.
78035         * lib/Makefile.am: Add copyright notice.
78036         (libfetish_a_SOURCES): Add unlocked-io.h.
78037         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
78038         (DISTCLEANFILES, io_functions): Remove macros.
78039         (EXTRA_DIST): Remove gen_uio.
78040         (unlocked-io.h): Remove rule.
78041
78042 2002-12-04  Jim Meyering  <jim@meyering.net>
78043
78044         Reflect the fact that stat.c and lstat.c are no longer generated.
78045         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
78046         (DISTCLEANFILES): Likewise.
78047         (EXTRA_DIST): Likewise.
78048         (all_local): Don't depend on stat.c or lstat.c.
78049         (stat.c, lstat.c): Remove rules.
78050         (EXTRA_DIST): Remove xstat.in.
78051
78052         * lib/xstat.in: Remove file.  Contents moved into stat.c.
78053         * lib/stat.c: New file.  Contents mostly from xstat.in.
78054         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
78055         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
78056
78057         * lib/safe-read.c: Rework so that it may serve to define safe_write,
78058         too.
78059         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
78060
78061 2002-12-03  Jim Meyering  <jim@meyering.net>
78062
78063         * lib/safe-read.c, safe-write.c: Change variable names and comments,
78064         but not semantics, to minimize the differences between these two files.
78065         (safe_read): Change comment to mention SAFE_READ_ERROR.
78066
78067         * lib/safe-read.c (IS_EINTR): Define.
78068         (safe_read): Use IS_EINTR in place of in-function cpp directives.
78069
78070 2002-12-02  Jim Meyering  <jim@meyering.net>
78071
78072         * lib/safe-read.c (EINTR): Define.
78073         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78074         (INT_MAX): Provide fallback.
78075         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
78076
78077         * lib/safe-read.h (SAFE_READ_ERROR): Define.
78078
78079 2002-12-02  Bruno Haible  <bruno@clisp.org>
78080
78081         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
78082         Define, taken from safe-read.c.
78083         (INT_MAX): Provide fallback.
78084         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
78085         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
78086
78087         * lib/safe-read.c (EINTR): Remove definition.
78088         (safe_read): Don't use EINTR if it is absent.
78089
78090 2002-12-01  Jim Meyering  <jim@meyering.net>
78091
78092         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
78093         zero.
78094         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
78095
78096 2002-11-27  Paul Eggert  <eggert@twinsun.com>
78097
78098         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
78099         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
78100         with `if (! (value < limit)) abort ();', for readability.
78101
78102 2002-11-26  Karl Berry  <karl@gnu.org>
78103
78104         * lib/strdup.c: copy from libc again, with jim's ok.
78105         * lib/.cppi-disable: re-add strdup.c
78106
78107 2002-11-25  Karl Berry  <karl@gnu.org>
78108
78109         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
78110         instead of "strtol.c".
78111
78112 2002-11-25  Karl Berry  <karl@gnu.org>
78113
78114         * config/install-sh: update from automake for variable quoting, $0 in
78115         error msgs, etc.
78116
78117         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
78118         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
78119         entry.
78120
78121 2002-11-25  Jim Meyering  <jim@meyering.net>
78122
78123         * lib/mktime.c: Sync from libc, now that it has the latest fix.
78124
78125 2002-11-24  Karl Berry  <karl@gnu.org>
78126
78127         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
78128         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
78129
78130 2002-11-24  Jim Meyering  <jim@meyering.net>
78131
78132         Update from coreutils:
78133
78134         * lib/mktime.c: Merge in changes from libc.
78135
78136         Avoid a link-time failure on some Linux systems.
78137         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
78138         (otherwise).
78139         (__mon_yday): Declare with the STATIC attribute.
78140         (__mktime_internal): Likewise.
78141         Based on a report from Greg Schafer.
78142
78143 2002-11-23  Jim Meyering  <jim@meyering.net>
78144
78145         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
78146         Use `unsigned', not `int', as type of index.
78147
78148         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
78149
78150         * lib/fsusage.c: Remove unneeded parentheses around operands of
78151         `defined'.
78152
78153 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78154
78155         * lib/quotearg.h: Allow multiple inclusion by surrounding with
78156         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
78157         so that we can be included first.
78158         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
78159         * lib/quotearg.c: Include quotearg.h immediately after config.h.
78160         No need to include stddef.h or sys/types.h any more.
78161         Surround local include files with "", not "<>".
78162         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
78163         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
78164         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
78165         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
78166         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
78167         (ISPRINT): Remove; no longer needed now that we assume C89.
78168
78169         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
78170         Preserve errno.
78171
78172         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
78173         quotearg_char): Use SIZE_MAX rather than
78174         (size_t) -1 when we are talking about "infinity".
78175
78176         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
78177
78178 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78179
78180         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
78181         hint that one should use `if (! x) abort ();' rather than `assert
78182         (x);', and anyway it's one less thing to worry about configuring.
78183         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
78184         hash_rehash, hash_insert): Use abort rather than assert.
78185
78186 2002-11-22  Bruno Haible  <bruno@clisp.org>
78187
78188         * lib/safe-read.h: Assume C89. Add comments.
78189         (safe_read): Change return type to size_t.
78190         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
78191         byte counts > SSIZE_MAX correctly.
78192         * lib/safe-write.h: New file.
78193         * lib/safe-write.c: New file.
78194         * lib/full-read.h: New file.
78195         * lib/full-read.c: New file.
78196         * lib/full-write.h: Assume C89. Add comments.
78197         * lib/full-write.c: Include safe-write.h.
78198         (full_write): Rewritten to use safe_write.
78199         Suggested by Jim Meyering and Paul Eggert.
78200
78201 2002-11-21  Jim Meyering  <jim@meyering.net>
78202
78203         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
78204
78205         Merge in changes from the coreutils.
78206
78207         2002-09-25  Paul Eggert  <eggert@twinsun.com>
78208         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
78209         <stdint.h>.
78210         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
78211         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
78212         int.  Work more efficiently if X is the same width as uintmax_t.
78213         Do not compare X to -1, to avoid bogus compiler warning.
78214         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
78215         Don't assume that f_frsize and f_bsize are the same type.
78216
78217         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
78218         warning on FreeBSD.
78219
78220         * lib/makepath.c (make_path): Restore umask *before* creating the final
78221         component.
78222         (make_path): Minor reformatting.
78223
78224         * lib/xmalloc.c: Adjust to work with new autoconf macros,
78225         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
78226         HAVE_MALLOC/HAVE_REALLOC.
78227
78228         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
78229         dummy ones.  At least on GNU/Linux systems, `auto' means something
78230         else.
78231         From Michael Stone.
78232
78233 2002-11-21  Bruno Haible  <bruno@clisp.org>
78234
78235         Remove case insensitive option matching.
78236         * lib/argmatch.h (argcasematch): Remove declaration.
78237         (ARGCASEMATCH): Remove macro.
78238         (__xargmatch_internal): Remove case_sensitive argument.
78239         (XARGMATCH): Update.
78240         (XARGCASEMATCH): Remove macro.
78241         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78242         case_sensitive argument.
78243         (argcasematch): Remove function.
78244         (__xargmatch_internal): Remove case_sensitive argument.
78245         (main): Use XARGMATCH instead of XARGCASEMATCH.
78246
78247         * lib/xmalloc.c: Change compile-time error message. Add comment about
78248         required autoconf version.
78249
78250 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78251
78252         Merge argmatch cleanups from Bison.  Assume C89.
78253
78254         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78255         Include stdlib.h, for EXIT_FAILURE.
78256         Always include <string.h>, since we assume C89.
78257         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78258         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78259         Include <stddef.h> instead, since it's all we need for size_t.
78260         (PARAMS): Remove.  All uses removed.
78261         (ARRAY_CARDINALITY): Do not bother to #undef.
78262         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78263         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78264         Remove unnecessary parentheses.
78265         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78266         Insert necessary parentheses.
78267         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78268         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78269
78270 2002-11-19  Bruno Haible  <bruno@clisp.org>
78271
78272         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78273         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78274
78275         * lib/mbswidth.h (PARAMS): Remove macro.
78276         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78277         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78278
78279         * lib/gcd.h (PARAMS): Remove macro.
78280         (gcd): Use ANSI C function declarations.
78281         * lib/gcd.c (gcd): Likewise.
78282
78283 2002-11-15  Bruno Haible  <bruno@clisp.org>
78284
78285         * lib/strcspn.c: Include <stddef.h>.
78286         (strcspn): Use ANSI C function declaration. Change return type to
78287         size_t. Use NULL.
78288         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78289         (strpbrk): Use NULL.
78290         * lib/strpbrk.h (PARAMS): Remove macro.
78291         (strpbrk): Use ANSI C function declaration.
78292         * lib/strstr.c: Don't include <sys/types.h>.
78293         * lib/strstr.h (PARAMS): Remove macro.
78294         (strstr): Use ANSI C function declarations.
78295
78296 2002-11-14  Karl Berry  <karl@gnu.org>
78297
78298         * config/mkinstalldirs: `do' on separate line, instead of
78299         `for var; do'.
78300
78301 2002-11-06  Bruno Haible  <bruno@clisp.org>
78302
78303         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78304         * lib/gcd.c (gcd): Likewise.
78305
78306 2002-11-05  Bruno Haible  <bruno@clisp.org>
78307
78308         * lib/gcd.h: New file, from gettext-0.11.5.
78309         * lib/gcd.c: New file, from gettext-0.11.5.
78310
78311 2002-11-05  Bruno Haible  <bruno@clisp.org>
78312
78313         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78314         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78315         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78316         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78317
78318         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78319         <libintl.h>.
78320         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78321         <libintl.h>.
78322
78323         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78324         * lib/human.c: Include gettext.h instead of <libintl.h>.
78325         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78326         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78327         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78328         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78329         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78330         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78331         (textdomain): Remove definition.
78332         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78333
78334         * lib/long-options.c: Remove include of <libintl.h> and definition of
78335         _.
78336         * lib/same.c: Remove include of <libintl.h> and definition of _.
78337
78338 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78339
78340         * lib/config.charset: A few additions for Solaris.
78341
78342 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78343
78344         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78345         * lib/localcharset.c (locale_charset): Declare as extern "C".
78346
78347 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78348
78349         * lib/config.charset: msdos in uk_UA uses CP1125.
78350
78351 2002-11-04  Bruno Haible  <bruno@clisp.org>
78352
78353         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78354         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78355         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78356         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78357         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78358
78359 2002-11-04  Bruno Haible  <bruno@clisp.org>
78360
78361         * lib/localcharset.c (locale_charset): Don't return an empty string.
78362
78363 2002-11-04  Bruno Haible  <bruno@clisp.org>
78364
78365         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78366         aliases.
78367
78368 2002-11-04  Bruno Haible  <bruno@clisp.org>
78369
78370         * lib/config.charset: Update for newest glibc. Add canonical names
78371         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78372
78373 2002-11-04  Bruno Haible  <bruno@clisp.org>
78374
78375         * lib/config.charset: Add support for NetBSD.
78376
78377 2002-11-04  Bruno Haible  <bruno@clisp.org>
78378
78379         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78380
78381 2002-11-01  Bruno Haible  <bruno@clisp.org>
78382
78383         * configure.in: Add AC_CONFIG_AUX_DIR call.
78384         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78385         test/Makefile.
78386         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78387
78388 2002-09-28  Karl Berry  <karl@gnu.org>
78389
78390         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78391         installed automake until the next release, since changes have been
78392         made.
78393
78394 2002-09-25  Karl Berry  <karl@gnu.org>
78395
78396         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78397         * lib/getopt*: copy from libc/posix.
78398         * lib/gettext.h: copy from gettext.
78399         * lib/.cppi-disable: add strdup.c, gettext.h.
78400
78401 2002-09-25  Karl Berry  <karl@gnu.org>
78402
78403         * config/srclist.txt: enable gettext.h check.
78404         * config/config.{guess,sub}: update from prep.
78405         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78406                 from automake 1.6.3.
78407         See srclist*.
78408
78409 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78410
78411         * regex.c (PATFETCH): Remove the translating fetch.
78412         (PATFETCH_RAW): Rename to PATFETCH.
78413         (set_image_of_range): New fun.
78414         (SET_RANGE_TABLE_WORK_AREA): Use it.
78415         (regex_compile): Don't translate the pattern chars so eagerly.
78416         Only do it when inserting an `exactn' bytecode or when handling
78417         a char-range.
78418         (mutually_exclusive_p): Avoid empty statement.
78419
78420 2002-07-06  Jim Meyering  <meyering@lucent.com>
78421
78422         * m4/README: Don't mention Makefile.am.in.
78423         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78424
78425 2002-07-01  Jim Meyering  <meyering@lucent.com>
78426
78427         * lib/c-stack.c: Include sys/time.h.
78428         From Volker Borchert.
78429
78430 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78431
78432         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78433
78434 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78435
78436         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78437         New macro.  Use it uniformly instead of
78438         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78439         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78440         reported by Vin Shelton.
78441
78442 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78443
78444         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78445         Do not assume SA_SIGINFO behavior.
78446         Bug reported by Jim Meyering on NetBSD 1.5.2.
78447
78448 2002-06-22  Jim Meyering  <meyering@lucent.com>
78449
78450         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78451         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78452
78453         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78454         now that configure.ac uses AC_GNU_SOURCE.
78455         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78456         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78457
78458         Update to latest tools.  Suggestions from Paul Eggert.
78459         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78460         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78461         * m4/fnmatch.m4: Likewise.
78462         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78463         to AC_HEADER_STDBOOL
78464
78465 2002-06-22  Jim Meyering  <meyering@lucent.com>
78466
78467         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78468         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78469
78470 2002-06-22  Jim Meyering  <meyering@lucent.com>
78471
78472         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78473
78474         * lib/exitfail.c, exitfail.h: Likewise.
78475         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78476
78477         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78478         of fnmatch.h.
78479         (EXTRA_DIST): Add fnmatch_loop.c.
78480         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78481
78482         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78483         * lib/fnmatch.c: Update from diffutils-2.8.2.
78484         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78485         * lib/fnmatch.h: Remove file.
78486
78487 2002-06-21  Jim Meyering  <meyering@lucent.com>
78488
78489         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78490         * m4/mbrtowc.m4: Likewise.
78491
78492         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78493         * m4/mbswidth.m4: Reflect name change:
78494         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78495         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78496
78497         * m4/lib-link.m4: Update from gettext-0.11.2.
78498         * m4/gettext.m4: Likewise.
78499
78500         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78501         From Alfred M. Szmidt.
78502
78503 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78504
78505         * lib/file-type.h: Report an error if neither S_ISREG nor
78506         S_IFREG is defined, instead of using a test specific to glibc
78507         2.2.  This should be safe, since POSIX requires S_ISREG and
78508         Unix Version 7 had S_IFREG.  We don't need to check for
78509         <sys/types.h> since we don't use any symbols that it defines.
78510
78511 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78512
78513         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78514         $@-t, so that each temporary file name is unique and valid in the first
78515         8 characters, for operation under DOS.
78516
78517 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78518
78519         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78520
78521 2002-06-15  Jim Meyering  <meyering@lucent.com>
78522
78523         Work even with DJGPP 2.03, which lacks support for symlinks.
78524         From Richard Dawe.
78525         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78526         is defined.
78527         * lib/lchown.c (S_ISLNK): Likewise.
78528
78529 2002-06-15  Jim Meyering  <meyering@lucent.com>
78530
78531         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78532         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78533         have been included before this file.
78534
78535 2002-06-14  Jim Meyering  <meyering@lucent.com>
78536
78537         * lib/file-type.h: Use the version from diffutils-2.8.2.
78538         * lib/file-type.c: Likewise.
78539
78540 2002-06-07  Jim Meyering  <meyering@lucent.com>
78541
78542         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78543         They're needed at least for NetBSD 1.5.2.
78544         ($statxfs_includes): Include those same headers.
78545         ($statxfs_includes): Include sys/vfs.h if available.
78546         ($statxfs_includes): Likewise for sys/statvfs.h.
78547         Check for the following members in both structs statfs and statvfs:
78548         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78549
78550 2002-06-01  Jim Meyering  <meyering@lucent.com>
78551
78552         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78553         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78554
78555 2002-05-28  Jim Meyering  <meyering@lucent.com>
78556
78557         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78558         Reported by Volker Borchert.
78559
78560 2002-05-27  Jim Meyering  <meyering@lucent.com>
78561
78562         Fix a problem seen only on nonconforming systems whereby ls.c's
78563         use of localtime, and then of gettimeofday would cause trouble:
78564         the localtime call used to initialize rpl_gettimeofday's save
78565         mechanism would clobber ls's current local time information so
78566         that in any long listing the first file would always be listed
78567         with date 1970-01-01.  Analysis by Volker Borchert.
78568
78569         * lib/gettimeofday.c (localtime): Undefine.
78570         (rpl_localtime): New function.
78571
78572 2002-05-27  Jim Meyering  <meyering@lucent.com>
78573
78574         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78575         localtime.
78576
78577         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78578         use the replacement function; it wouldn't resolve at link time.
78579         Reported by Volker Borchert.
78580
78581 2002-05-22  Jim Meyering  <meyering@lucent.com>
78582
78583         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78584         file-type.h.
78585         * lib/file-type.h: New file.
78586         * lib/file-type.c (file_type): New file/function.  Extracted from
78587         diffutils.
78588
78589 2002-04-30  Jim Meyering  <meyering@lucent.com>
78590
78591         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78592
78593 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78594
78595         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78596
78597 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78598
78599         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78600         Do not check for alloca.h (no longer used) or stdbool.h (was never
78601         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78602
78603 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78604
78605         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78606
78607 2002-04-29  Jim Meyering  <meyering@lucent.com>
78608
78609         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78610         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78611         Use AC_FUNC_STRNLEN here instead.
78612
78613         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78614         With autoconf-2.53a, it's part of AC_PROG_CC.
78615
78616 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78617
78618         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78619         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78620
78621 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78622
78623         * lib/sig2str.h, lib/sig2str.c: New files.
78624         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78625
78626 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78627
78628         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78629         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78630         of 127, since 64 is the largest conceivable number for ancient
78631         nonstandard hosts.
78632         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78633
78634 2002-04-28  Jim Meyering  <meyering@lucent.com>
78635
78636         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78637
78638 2002-04-24  Jim Meyering  <meyering@lucent.com>
78639
78640         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78641         (jm_PREREQ): Use it.
78642
78643         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78644         mach/mach.h fcntl.h.
78645         Check for this function: setlocale.
78646
78647 2002-04-24  Jim Meyering  <meyering@lucent.com>
78648
78649         * lib/gettext.h: New file, from Gettext.
78650         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78651         (libfetish_a_SOURCES): Add gettext.h.
78652
78653 2002-04-16  Jim Meyering  <meyering@lucent.com>
78654
78655         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78656         ut_pid, ut_id, ut_exit.
78657
78658 2002-04-16  Jim Meyering  <meyering@lucent.com>
78659
78660         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78661         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78662         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78663
78664 2002-04-12  Jim Meyering  <meyering@lucent.com>
78665
78666         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78667         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78668         existence of the getmntinfo function.  Needed for Darwin 5.3.
78669
78670         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78671         This is necessary at least on Darwin 5.3.
78672
78673         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78674         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78675         strnlen.o in the library, and that makes some versions of ranlib
78676         object.
78677
78678 2002-04-12  Jim Meyering  <meyering@lucent.com>
78679
78680         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78681
78682 2002-04-09  Jim Meyering  <meyering@lucent.com>
78683
78684         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78685         to be more precise.  Rather than saying we're checking whether the
78686         function `works', say what we're testing.
78687         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78688         Reported by Bruno Haible.
78689
78690 2002-03-10  Jim Meyering  <meyering@lucent.com>
78691
78692         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78693         Suggestion from Santiago Vila.
78694
78695 2002-03-08  Jim Meyering  <meyering@lucent.com>
78696
78697         * lib/rename.c: Mention that this wrapper is needed also on
78698         mips-dec-ultrix4.4 systems.
78699
78700 2002-03-02  Jim Meyering  <meyering@lucent.com>
78701
78702         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78703         not HAVE_CLOCK_SETTIME.
78704
78705 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78706
78707         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78708         Check for clock_settime.
78709
78710 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78711
78712         * lib/nanosleep.h: Rename to....
78713         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78714
78715         * lib/gettime.c: New file.
78716         * lib/settime.c: New file.
78717         * lib/stime.c: Remove.
78718
78719         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78720         timespec.h.  Remove nanosleep.h.
78721
78722 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78723
78724         * m4/acl.m4: New file.
78725         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78726         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78727
78728 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78729
78730         * lib/acl.c, lib/acl.h: New files.
78731         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78732
78733 2002-02-24  Jim Meyering  <meyering@lucent.com>
78734
78735         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78736         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78737         cause trouble.  Reported by Nelson Beebe.
78738
78739 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78740
78741         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78742         compilers that don't know that xalloc_die never returns.
78743
78744 2002-02-20  Jim Meyering  <meyering@lucent.com>
78745
78746         * lib/getdate.c: Regenerate using bison-1.33.
78747
78748 2002-02-17  Jim Meyering  <meyering@lucent.com>
78749
78750         * config/config.guess (main): Don't use `head -1'; it's no longer
78751         portable. Use `sed 1q' instead.
78752
78753 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78754
78755         * m4/codeset.m4: Upgrade to gettext-0.11.
78756         * m4/gettext.m4: Upgrade to gettext-0.11.
78757         * m4/glibc21.m4: Upgrade to gettext-0.11.
78758         * m4/iconv.m4: Upgrade to gettext-0.11.
78759         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78760         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78761         * m4/lib-ld.m4: New file, from gettext-0.11.
78762         * m4/lib-link.m4: New file, from gettext-0.11.
78763         * m4/lib-prefix.m4: New file, from gettext-0.11.
78764         * m4/progtest.m4: Upgrade to gettext-0.11.
78765
78766 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78767
78768         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78769         (jm_PREREQ): Use it.
78770
78771 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78772
78773         * lib/posixver.c, lib/posixver.h: New files.
78774         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78775
78776 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78777             Bruno Haible  <bruno@clisp.org>
78778
78779         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78780         (fwrite_success_callback): New declaration.
78781         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78782         print_unicode_char. Call failure callback instead of error.
78783         (fwrite_success_callback): New function.
78784         (exit_failure_callback): New function.
78785         (fallback_failure_callback): New function.
78786         (print_unicode_char): Call unicode_to_mb.
78787
78788 2002-01-26  Jim Meyering  <meyering@lucent.com>
78789
78790         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78791         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78792
78793 2002-01-26  Jim Meyering  <meyering@lucent.com>
78794
78795         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78796
78797 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78798
78799         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78800
78801 2002-01-22  Jim Meyering  <meyering@lucent.com>
78802
78803         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78804         Otherwise, some versions of automake would omit the rule that makes
78805         Makefile from Makefile.in.
78806
78807 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78808
78809         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78810         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78811         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78812         (memcoll): Set errno to zero if there is no error.
78813
78814         * lib/quotearg.c (quotearg_buffer_restyled):
78815         Fix bug with quoting buffers containing NUL when backslashing escapes.
78816         This bug was exposed by the other changes in this patch.
78817         (quotearg_n_options): New arg ARGSIZE.
78818         All callers changed.
78819         (quoting_options_from_style): New function.
78820         (quotearg_n_style): Use it.
78821         (quotearg_n_style_mem): New function.
78822
78823         * lib/quotearg.h (quotearg_n_style_mem): New function.
78824
78825 2002-01-19  Jim Meyering  <meyering@lucent.com>
78826
78827         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78828         Remove useless quotes: DF_PROG="df".
78829         * m4/strnlen.m4: New file.
78830
78831 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78832
78833         * lib/backupfile.c (ISDIGIT): Comment fix.
78834         * lib/getdate.y (ISDIGIT): Likewise.
78835         * lib/posixtm.c (ISDIGIT, year): Likewise.
78836         * lib/strverscmp.c (ISDIGIT): Likewise.
78837         * lib/userspec.c (ISDIGIT): Likewise.
78838
78839 2002-01-16  Jim Meyering  <meyering@lucent.com>
78840
78841         * lib/getdate.y: Add three semicolons, each just before a closing
78842         brace. Bison (as of version 1.31) no longer papers over that mistake.
78843
78844 2002-01-05  Jim Meyering  <meyering@lucent.com>
78845
78846         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78847
78848 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78849
78850         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78851         not silently exit merely because the output buffer happens to
78852         have nothing pending.
78853
78854 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78855
78856         See the big note in ../ChangeLog.
78857         * lib/human.c (suffixes): Prefer K to k for 1024.
78858         (generate_suffix_backwards): New function.
78859         (human_readable_inexact): Use it.
78860         * lib/xstrtol.c (__xstrtol): If there is no number but there
78861         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78862         Accept 'K' as well as 'k'.
78863
78864 2001-12-15  Jim Meyering  <meyering@lucent.com>
78865
78866         * lib/regex.h (__restrict_arr): Update from libc.
78867
78868         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78869         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78870         (STREQ): Define.
78871
78872 2001-12-14  Jim Meyering  <meyering@lucent.com>
78873
78874         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78875         Suggestion from Bruno Haible.
78876
78877 2001-12-10  Jim Meyering  <meyering@lucent.com>
78878
78879         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78880         xrealloc, Instead, include "xalloc.h".
78881         (initbuffer): Don't cast xmalloc return value to char*.
78882         (readline): Reword comment.
78883         Don't cast xrealloc return value to char*
78884         Return NULL, not 0.
78885
78886 2001-12-09  Jim Meyering  <meyering@lucent.com>
78887
78888         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78889         about `signed and unsigned type in conditional expression'.
78890         * lib/posixtm.c (posix_time_parse): Likewise.
78891
78892         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78893
78894         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78895         to avoid a pedantic warning.
78896
78897         * lib/getstr.c: Don't include assert.h.
78898         (getstr): Remove warning-evoking assertions.
78899         Return -1 if offset parameter is out of bounds.
78900         Change the type of a local from int to size_t.
78901
78902         * lib/strftime.c (my_strftime_localtime_r): Include this function
78903         definition in the `#if ! HAVE_TM_GMTOFF' block.
78904
78905         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78906         Include xalloc.h instead.
78907
78908 2001-12-02  Jim Meyering  <meyering@lucent.com>
78909
78910         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78911         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78912         included.
78913
78914         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78915         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78916
78917 2001-11-30  Akim Demaille  <akim@epita.fr>
78918
78919         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78920         before being defined.
78921
78922 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78923
78924         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78925         First arg is int, not unsigned.
78926         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78927         (SIZE_MAX, UINT_MAX): New macros.
78928         (quotearg_n_options): Abort if N is negative.
78929         Avoid overflow check on hosts where size_t is 64 bits and int
78930         is 32 bits, as overflow is impossible there.
78931         Fix off-by-one typo that caused unnecessary reallocation.
78932
78933 2001-11-27  Jim Meyering  <meyering@lucent.com>
78934
78935         * lib/tempname.c: Merge with version from libc.
78936         * lib/regex.c: Likewise.
78937
78938         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78939         systems for which STDC_HEADERS is 0, it was not included, resulting in
78940         a warning about an integer-to-pointer conversion problem with getenv.
78941         Reported by Volker Borchert.
78942
78943 2001-11-26  Jim Meyering  <meyering@lucent.com>
78944
78945         * lib/gtod.h: Remove file.
78946         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78947         * lib/gettimeofday.c: Don't include gtod.h.
78948         (GTOD_init): Remove function.
78949         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78950         Suggestion from Volker Borchert.
78951
78952 2001-11-23  Jim Meyering  <meyering@lucent.com>
78953
78954         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78955         it.
78956         * lib/hash.c (struct hash_table): Define it here instead.
78957
78958 2001-11-22  Jim Meyering  <meyering@lucent.com>
78959
78960         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78961
78962 2001-11-20  Jim Meyering  <meyering@lucent.com>
78963
78964         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78965         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78966
78967 2001-11-19  Jim Meyering  <meyering@lucent.com>
78968
78969         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78970         directory.  Use "conftestXXXXXX" as the template.
78971         Suggestion from Paul Eggert.
78972
78973         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78974         immediately, so the test doesn't mistakenly hit the max-open-files
78975         limit.
78976
78977 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78978
78979         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78980         (TEMPORARIES): New macro.
78981         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78982         removes an artificial limitation (e.g. HP-UX 10.20, where
78983         TMP_MAX is 17576).
78984
78985 2001-11-18  Jim Meyering  <meyering@lucent.com>
78986
78987         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78988
78989 2001-11-18  Jim Meyering  <meyering@lucent.com>
78990
78991         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78992         on SunOS 4.
78993
78994         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78995         files will be created before anything else.
78996
78997 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78998
78999         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
79000         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
79001
79002 2001-11-17  Jim Meyering  <meyering@lucent.com>
79003
79004         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
79005         Prompted by a report from Bob Proulx.
79006
79007         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
79008         Instead, require UTILS_FUNC_MKSTEMP.
79009
79010 2001-11-17  Jim Meyering  <meyering@lucent.com>
79011
79012         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
79013         Now, that's done as part of AC_FUNC_STRTOD.
79014
79015 2001-11-17  Jim Meyering  <meyering@lucent.com>
79016
79017         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
79018         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
79019         rather than group writable.  Patch by Juan F. Codagnone.
79020
79021         * lib/readtokens.c: Remove explicit declarations of xmalloc and
79022         xrealloc, Instead, include "xalloc.h".
79023
79024         * lib/mountlist.c: Include unlocked-io.h after all system headers.
79025         Remove explicit declarations of xmalloc, xrealloc,
79026         and xstrdup.  Instead, include "xalloc.h".
79027
79028         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
79029         unlocked-io.h.
79030         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
79031         Likewise.
79032         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
79033
79034         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
79035         Reported by Padraig Brady.
79036
79037         * lib/mkstemp.c: #undef mkstemp.
79038         Include config.h.
79039         (rpl_mkstemp): Rename from mkstemp.
79040         Protoize.
79041
79042 2001-11-16  Jim Meyering  <meyering@lucent.com>
79043
79044         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
79045         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
79046         determine the amount of total physical memory, use pstat_getstatic.
79047         HPUX-11 doesn't define _SC_PHYS_PAGES.
79048         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
79049         If sysconf couldn't be used to determine the amount of available
79050         physical memory, use both pstat_getstatic and pstat_getdynamic.
79051         Based on a patch from Bob Proulx.
79052
79053 2001-11-10  Jim Meyering  <meyering@lucent.com>
79054
79055         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
79056         (jm_PREREQ): Use it.
79057
79058 2001-11-09  Jim Meyering  <meyering@lucent.com>
79059
79060         * m4/jm-macros.m4: Require autoconf-2.52f.
79061         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
79062         Use these AC_-prefixed names, not the AM_-prefixed ones.
79063
79064         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
79065
79066 2001-11-05  Jim Meyering  <meyering@lucent.com>
79067
79068         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
79069
79070 2001-11-04  Jim Meyering  <meyering@lucent.com>
79071
79072         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
79073         $DEFS.
79074
79075 2001-11-03  Jim Meyering  <meyering@lucent.com>
79076
79077         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
79078         of AC_DEFUN.
79079
79080         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
79081         know the name of the variable in the macro definition.
79082
79083 2001-11-03  Jim Meyering  <meyering@lucent.com>
79084
79085         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
79086         in argmatch_to_argument call.
79087
79088         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
79089         argument.
79090
79091         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
79092         e.g., a fault due to an attempt to free a NULL pointer.
79093
79094 2001-11-01  Jim Meyering  <meyering@lucent.com>
79095
79096         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
79097         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
79098
79099 2001-11-01  Jim Meyering  <meyering@lucent.com>
79100
79101         * lib/dirfd.c, lib/dirfd.h: New files.
79102         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
79103
79104         * lib/hash.c (hash_print) [TESTING]: Clean up.
79105
79106 2001-10-22  Paul Eggert  <eggert@twinsun.com>
79107
79108         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
79109         to avoid a warning if -Wall.
79110
79111 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
79112
79113         * README: New file
79114         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
79115         (per RMS's instructions, this is now the canonical source)
79116         * lgpl/, gpl/: New directories.
79117
79118 2001-10-21  Paul Eggert  <eggert@twinsun.com>
79119
79120         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
79121
79122 2001-10-21  Jim Meyering  <meyering@lucent.com>
79123
79124         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
79125         this code would end up calling gettext even in packages built
79126         with --disable-nls.
79127         * lib/getopt.c (_): Likewise.
79128         * lib/regex.c (_): Likewise.
79129
79130 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79131
79132         * m4/error.m4 (jm_PREREQ_ERROR):
79133         Do not invoke AC_CHECK_FUNCS with strerror_r, as
79134         AC_FUNC_STRERROR_R does that.
79135         Check for strerror declaration.
79136
79137         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
79138         are supposed to have them these days.
79139         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
79140         Merge changes from latest Autoconf CVS.
79141         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
79142         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
79143         POSIX decided to standardize on the int flavor of strerror_r.
79144
79145 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79146
79147         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
79148         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
79149         Use strerror_r that is only a macro, even if it is not a function.
79150         (strerror): Check for HAVE_DECL_STRERROR before declaring.
79151         (private_strerror): Use prototypes, not old-style function definition.
79152         (print_errno_message): New function.
79153         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
79154         char*-flavored one.
79155         (error_tail, error, error_at_line): Use it.
79156
79157 2001-10-11  Jim Meyering  <meyering@lucent.com>
79158
79159         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
79160         and quote_n (1, ... to avoid clobbering a buffer.
79161
79162 2001-10-05  Jim Meyering  <meyering@lucent.com>
79163
79164         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
79165         hash-pjw.h.
79166         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
79167         * lib/hash-pjw.h: New file.
79168
79169 2001-09-30  Jim Meyering  <meyering@lucent.com>
79170
79171         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
79172         `struct fsstat' has the `f_fstypename' member.
79173         Use that to define FS_TYPE, which is now used to make
79174         the getfsstat link test tighter.
79175
79176 2001-09-30  Jim Meyering  <meyering@lucent.com>
79177
79178         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
79179         Include <sys/ucred.h>, for Apple Darwin.
79180         Include sys/mount.h and sys/fs_types.h only if available.
79181         (FS_TYPE): Define.
79182         (read_filesystem_list): Use FS_TYPE.
79183
79184 2001-09-29  Paul Eggert  <eggert@twinsun.com>
79185
79186         * lib/exclude.c (excluded_filename): 0 -> false, since it's
79187         a boolean context.
79188
79189 2001-09-29  Jim Meyering  <meyering@lucent.com>
79190
79191         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79192         [one-argument getmntent function]): Include stdio.h before mntent.h.
79193         SunOS 4.1.x needs it for the declaration of `FILE'.
79194         Patch by Volker Borchert.
79195
79196         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79197         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
79198         sys/fs_types.h, and make the link-test for getfsstat guard #include
79199         directives with appropriate #if HAVE_*_H tests so that we can
79200         detect getfsstat on Apple Darwin1.3.7 systems.
79201         Reported by Nelson Beebe.
79202         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
79203
79204 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79205
79206         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79207         #defines strtoimax.  Also treat the other strto* functions
79208         like strtoimax.
79209
79210         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79211         Check for strtoul and strtoumax,
79212         as those declarations are made even in the signed case.
79213         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
79214         Likewise, for strtol and strtoimax.
79215
79216 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79217
79218         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79219         #defines strtoimax.  Also treat the other strto* functions
79220         like strtoimax.
79221
79222         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
79223         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
79224         (strtoimax, strtoumax): Do not declare if already defined as a macro.
79225
79226 2001-09-26  Jim Meyering  <meyering@lucent.com>
79227
79228         Most macros in unlocked-io.h had the wrong number of arguments.
79229         * lib/gen-uio: New script.
79230         (USE_UNLOCKED_IO): Define to 1 if not already defined.
79231         * lib/unlocked-io.hin: Remove file.
79232         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
79233         rather than trying to embed it here.
79234         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
79235         Reported by Padraig Brady.
79236
79237 2001-09-25  Volker Borchert  <bt@teknon.de>
79238
79239         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
79240         `result'.
79241
79242 2001-09-24  Jim Meyering  <meyering@lucent.com>
79243
79244         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79245
79246 2001-09-23  Jim Meyering  <meyering@lucent.com>
79247
79248         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79249         instead of the mere test for existence of mntent.h.  The latter
79250         would get a false-positive on AIX 3.4 systems.
79251         In the outer getmntent if-block, don't die if neither of the getmntent
79252         tests succeeds.  Instead, just fall through and continue with the
79253         remaining tests.
79254
79255 2001-09-23  Jim Meyering  <meyering@lucent.com>
79256
79257         * lib/mountlist.c: Remove useless parentheses in #if directives.
79258         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79259         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79260
79261 2001-09-22  Jim Meyering  <meyering@lucent.com>
79262
79263         * m4/gettext.m4: New file.  From gettext.
79264         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79265         * m4/progtest.m4: Likewise
79266         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79267         * m4/glibc21.m4: Likewise.
79268
79269         * m4/libintl.m4: Remove.  No longer used.
79270
79271 2001-09-22  Jim Meyering  <meyering@lucent.com>
79272
79273         * lib/localcharset.c: Update from latest gettext.
79274         * lib/config.charset: Likewise.
79275
79276 2001-09-20  Jim Meyering  <meyering@lucent.com>
79277
79278         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79279         strtoimax.
79280         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79281         strtoumax.
79282
79283 2001-09-20  Jim Meyering  <meyering@lucent.com>
79284
79285         * lib/xstrtol.c (strtoimax): Guard declaration with
79286         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79287         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79288         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79289         (strtoumax): Likewise, for completeness (it wasn't necessary).
79290
79291 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79292
79293         * lib/strtoimax.c (HAVE_LONG_LONG):
79294         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79295         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79296         to work around bug in IBM C compiler.
79297
79298 2001-09-17  Jim Meyering  <meyering@lucent.com>
79299
79300         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79301         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79302         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79303         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79304         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79305         whenever the right hand side need not be expanded by the shell.
79306
79307 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79308
79309         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79310         library.  It's not correct, as some older glibcs are buggy.
79311         fnmatch wasn't fixed until glibc 2.2.
79312
79313         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79314         special shell magic here.
79315
79316 2001-09-16  Jim Meyering  <meyering@lucent.com>
79317
79318         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79319         * m4/jm-macros.m4: Require it.
79320
79321 2001-09-16  Jim Meyering  <meyering@lucent.com>
79322
79323         * lib/mkdir.c: New file.
79324
79325 2001-09-15  Jim Meyering  <meyering@lucent.com>
79326
79327         * m4/jm-macros.m4: Check for help2man.
79328
79329 2001-09-11  Jim Meyering  <meyering@lucent.com>
79330
79331         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79332         The body, by Paul Eggert, was moved here from configure.in.
79333         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79334
79335 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79336
79337         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79338         (jm_PREREQ): Use it.
79339
79340 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79341
79342         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79343         Use ssize_t, not int, to store result of readlink.
79344         Check for ssize_t overflow as well as size_t overflow,
79345         as POSIX says the result of readlink is implementation-defined
79346         when ssize_t overflows.
79347         Remove unnecessary cast to char*.
79348         Use free+malloc instead of realloc, as the storage doesn't need
79349         to be preserved and it's clearer and can be more efficient that way.
79350         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79351         * lib/xreadlink.h (xreadlink): Update prototype.
79352
79353 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79354
79355         * lib/xgetcwd.c: Revert some of the previous change; intead,
79356         fix the HAVE_GETCWD_NULL code to behave more like the
79357         !HAVE_GETCWD_NULL code used to.
79358
79359         Include "xalloc.h".
79360         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79361         invoke xalloc_die.
79362
79363 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79364
79365         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79366         sys/param.h, as pathmax.h includes them.
79367
79368 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79369
79370         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79371         (jm_PREREQ_XGETCWD): New macro.
79372
79373         * m4/getcwd.m4: New file.
79374
79375 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79376
79377         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79378         like the HAVE_GETCWD_NULL code.
79379         Include pathmax.h if not HAVE_GETCWD.
79380         Do not include xalloc.h.
79381         (INITIAL_BUFFER_SIZE): New symbol.
79382         Do not use xmalloc / xrealloc, since the caller is responsible for
79383         handling errors.  Preserve errno around `free' during failure.
79384         Do not overrun buffer when using getwd.
79385
79386 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79387
79388         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79389         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79390         getcwd (NULL, 0).
79391
79392 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79393
79394         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79395         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79396         spotted by Jim Meyering.
79397
79398 2001-09-03  Jim Meyering  <meyering@lucent.com>
79399
79400         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79401         failure.
79402
79403 2001-09-02  Jim Meyering  <meyering@lucent.com>
79404
79405         * lib/error.c: Update from GNU libc.
79406
79407 2001-09-01  Jim Meyering  <meyering@lucent.com>
79408
79409         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79410         Used by df.
79411
79412 2001-09-01  Jim Meyering  <meyering@lucent.com>
79413
79414         * lib/xreadlink.c: New file.
79415         * lib/xreadlink.h: New file.
79416         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79417         xreadlink.h.
79418
79419         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79420         doesn't conflict with sparc Solaris 7's definition in
79421         /usr/include/sys/int_types.h.
79422
79423         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79424         files.
79425         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79426         and strncasecmp as r-values.  Unixware didn't have declarations.
79427
79428 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79429
79430         * lib/xstrtol.h: Add copyright notice.
79431         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79432         LONGINT_INVALID_SUFFIX_CHAR.
79433
79434 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79435
79436         * lib/xstrtol.c (strtoimax): New decl.
79437
79438 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79439
79440         * lib/xgetcwd.c: Don't include pathmax.h.
79441         Include stdlib.h and unistd.h if available.
79442         Include xalloc.h.
79443         (xmalloc, xstrdup, free): Remove decls.
79444         (xgetcwd): Don't assume sizes fit in unsigned.
79445         Check for overflow when computing sizes.
79446         Simplify reallocation code.
79447
79448 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79449
79450         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79451         a directory's st_size can have an arbitrary value, so the old
79452         usage could waste an arbitrary amount of memory.  All uses
79453         changed.
79454         * lib/savedir.h: Update prototype.
79455
79456 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79457
79458         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79459
79460         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79461         old strtoimax.c.
79462
79463         Also, make the following further changes to make this file's
79464         configuration more similar to that of strtol.c:
79465         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79466         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79467         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79468         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79469         changed to signed values.
79470
79471         And make the following changes as well:
79472         Fix copyright notice, as 1999 was missing.
79473         (verify): New macro.
79474         (strtoimax): Check sizes at compile-time, not run-time.
79475         Prefer strtol to strtoll if both work.
79476         (main): Remove; it was not that useful and was a pain to maintain.
79477
79478         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79479
79480 2001-08-31  Jim Meyering  <meyering@lucent.com>
79481
79482         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79483         Use an initial, malloc'd, buffer of length 128 rather than
79484         a statically allocated one of length 1024.
79485
79486 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79487
79488         Simplify code, partly by assuming autoconf 2.52 semantics.
79489
79490         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79491
79492         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79493         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79494         All uses removed.
79495         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79496         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79497         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79498         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79499         jm_AC_HEADER_INTTYPES_H.
79500         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79501
79502         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79503
79504         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79505         Quote first arg of AC_DEFUN.
79506         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79507         since they are needed to parse the include file even if we need
79508         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79509         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79510         but with opposite signedness.
79511
79512 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79513
79514         Merge 'exclude' changes from tar 1.13.22.
79515         This fixes one or two unlikely storage allocation overflow bugs,
79516         but doesn't change user-visible behavior otherwise.
79517
79518 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79519
79520         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79521         (jm_PREREQ_EXCLUDE): New macro.
79522
79523 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79524
79525         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79526         tm to be declared.
79527
79528 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79529
79530         * lib/hash.c: Remove '2001' from copyright notice.
79531
79532 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79533
79534         * lib/full-write.h: New file.
79535         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79536         * lib/full-write.c: Correct credits, as cccp.c no longer
79537         exists and anyway it was so heavily changed from the old cccp
79538         code as to be unrecognizable.  Include full-write.h.
79539         (full_write): Return size_t, with short writes meaning failure.
79540         All callers changed.  This fixes a bug with large buffers
79541         on 64-bit hosts.
79542         * lib/utime.c: Include full-write.h.
79543
79544 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79545
79546         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79547         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79548         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79549         Include if available.
79550         (<xalloc.h>): Include
79551         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79552         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79553         collide with FNM macros.
79554         (struct patopts): New struct.
79555         (struct exclude): Use it, as exclude patterns now come with options.
79556         (new_exclude): Support above changes.
79557         (new_exclude, add_exclude_file):
79558         Initial size must now be a power of two to simplify overflow checking.
79559         (free_exclude, fnmatch_no_wildcards): New function.
79560         (excluded_filename): No longer requires options arg, as the options
79561         are determined by add_exclude.  Now returns bool, not int.
79562         (excluded_filename, add_exclude):
79563         Add support for the fancy new exclusion options.
79564         (add_exclude, add_exclude_file): Now takes int options arg.
79565         Check for arithmetic overflow when computing sizes.
79566         (add_exclude_file): xrealloc might modify errno, so don't
79567         realloc until after errno might be used.
79568
79569         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79570         New macros.
79571         (free_exclude): New decl.
79572         (add_exclude, add_exclude_file): Now takes int options arg.
79573         (excluded_filename): No longer requires options arg, as the options
79574         are determined by add_exclude.  Now returns bool, not int.
79575
79576 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79577
79578         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79579
79580 2001-08-27  Jim Meyering  <meyering@lucent.com>
79581
79582         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79583
79584         * lib/version-etc.c (N_): Remove definition.
79585         Revert most of last change.
79586         Instead, simply don't mark the `Copyright...' string for translation.
79587         Based on advice from Paul Eggert.
79588
79589         * lib/strtoxmax.c: Tweak comment.
79590
79591 2001-08-26  Jim Meyering  <meyering@lucent.com>
79592
79593         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79594
79595         * m4/xstrtoimax.m4: New file.
79596         * m4/xstrtoumax.m4: Add comments explaining why we
79597         AC_REPLACE_FUNCS(strtol).
79598
79599 2001-08-26  Jim Meyering  <meyering@lucent.com>
79600
79601         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79602         of copyright with `%s' so translators don't get an untranslated
79603         message in 2002.
79604         (COPYRIGHT_YEAR): Define.
79605         (version_etc): Use fprintf rather than fputs.
79606         Suggestion from Ulrich Drepper.
79607
79608         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79609
79610         * lib/strtoll.c: New file, from GNU libc.
79611         * lib/xstrtoimax.c: New file.
79612
79613         * lib/xstrtol.h: Add xstrtoimax.
79614         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79615         * lib/strtoimax.c: New file.  Likewise, but first define
79616         STRTOUXMAX_SIGNED.
79617
79618         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79619         ...
79620         * lib/strtoxmax.c: ... then renamed to this.
79621
79622 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79623
79624         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79625         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79626         (jm_AC_TYPE_INTMAX_T): New macro.
79627         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79628
79629         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79630
79631         * m4/longlong.m4: Renamed from ulonglong.m4.
79632         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79633         * m4/uintmax_t.m4: Removed.
79634
79635 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79636
79637         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79638         Port to Solaris 8, where 'sed' requires a space after the 'r'
79639         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79640         Redirect output to $tmp just once.
79641
79642 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79643
79644         * lib/addext.c (<errno.h>): Include.
79645         (errno): Declare if not defined.
79646         (addext): Work correctly when pathconf returns -1 and leaves
79647         errno alone because there is no limit.  Also, work even if
79648         pathconf returns a value greater than SIZE_MAX.
79649
79650 2001-08-12  Jim Meyering  <meyering@lucent.com>
79651
79652         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79653         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79654         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79655         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79656         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79657         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79658         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79659         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79660         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79661         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79662         utime.m4, utimes.m4, xstrtoumax.m4:
79663         Quote the first argument in each use of AC_DEFUN.
79664
79665 2001-08-12  Jim Meyering  <meyering@lucent.com>
79666
79667         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79668         Simply `return getcwd (NULL, 0);'.
79669         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79670         Use 1300 as initial value for length, not PATH_MAX.
79671
79672         * lib/pathmax.h: Clean up cpp syntax.
79673
79674 2001-08-12  Jim Meyering  <meyering@lucent.com>
79675
79676         * lib/gettimeofday.c: New file.
79677         * lib/gtod.h: New file.
79678         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79679
79680 2001-08-05  Jim Meyering  <meyering@lucent.com>
79681
79682         * m4/jm-macros.m4: Require autoconf-2.52.
79683
79684 2001-08-04  Jim Meyering  <meyering@lucent.com>
79685
79686         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79687         stmt, to get in sync with glibc.
79688
79689 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79690
79691         The following changes are from gettext 0.10.39 as maintained by
79692         Bruno Haible.
79693
79694         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79695         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79696         with inverted sense.  All uses changed.
79697
79698         * lib/mbswidth.c: Don't include <limits.h>.
79699         Include <stdlib.h> and <string.h> unconditionally.
79700         (iswcntrl, mbsinit, ISCNTRL): New macros.
79701         (mbsnwidth): Use K&R style function declarations.
79702         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79703         can optimize it when MB_CUR_MAX == 1.
79704         The width of control characters is zero, not 1.
79705
79706 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79707
79708         The following changes are from gettext 0.10.39 as maintained by
79709         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79710
79711         * m4/codeset.m4: Upgrade to serial AM1.
79712         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79713         all uses changed.  Quote first arg of AC_DEFUN.
79714         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79715
79716         * m4/iconv.m4: Upgrade to serial AM2.
79717         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79718         Add --with-libconv-prefix.
79719         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79720         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79721         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79722         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79723         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79724
79725         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79726         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79727         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79728         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79729         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79730         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79731         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79732         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79733         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79734
79735         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79736         string.h any more.
79737
79738         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79739         not the default value.
79740
79741         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79742         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79743         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79744         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79745         Also check for iswcntrl, used for wcwidth fallback.
79746         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79747         to Autoconf 2.13.
79748
79749 2001-08-03  Jim Meyering  <meyering@lucent.com>
79750
79751         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79752         as it was in the original.  Reported by Paul Eggert.
79753
79754 2001-07-16  Jim Meyering  <meyering@lucent.com>
79755
79756         * m4/gettimeofday.m4: New file.
79757         Prompted by a report from Bernhard Baehr.
79758
79759 2001-07-15  Jim Meyering  <meyering@lucent.com>
79760
79761         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79762         stuff. Now it's in ../Makefile.cfg.
79763
79764 2001-07-15  Jim Meyering  <meyering@lucent.com>
79765
79766         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79767         (BUILT_SOURCES): Add unlocked-io.h.
79768         (io_functions): Define.
79769         (unlocked-io.h): New rule.
79770         (DISTCLEANFILES): Add unlocked-io.h.
79771         (all-local): Depend on unlocked-io.h, to ensure it is created.
79772
79773         * lib/unlocked-io.hin: New file
79774
79775         * lib/regex.c: Update from glibc.
79776
79777 2001-07-05  Jim Meyering  <meyering@lucent.com>
79778
79779         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79780         recommendation.
79781         (libfetish_a_SOURCES): Put all .h files here instead.
79782         Remove a thus-exposed (better checks in automake) duplicate and
79783         two unnecessary .h files.
79784
79785 2001-07-04  Jim Meyering  <meyering@lucent.com>
79786
79787         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79788         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79789         distcheck failure.
79790
79791 2001-07-02  Jim Meyering  <meyering@lucent.com>
79792
79793         The following changes were prompted by suggestions from Bruno Haible.
79794
79795         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79796         is now generated.
79797         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79798         definition of EXTRA_DIST.
79799         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79800         ensure that the generated file is created/updated whenever the list
79801         of $(unlocked_functions) is changed.
79802         (jm-glibc-io.m4): New rule.
79803         (unlocked-io.h): New rule -- currently unused.
79804
79805 2001-06-24  Jim Meyering  <meyering@lucent.com>
79806
79807         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79808         unmatched right bracket, rather than kludging it with an extra,
79809         falsely-matching quote in a comment.  Patch by Akim Demaille.
79810
79811 2001-06-11  Jim Meyering  <meyering@lucent.com>
79812
79813         * lib/regex.c: Update from GNU libc.
79814
79815 2001-05-27  Jim Meyering  <meyering@lucent.com>
79816
79817         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79818         Check for ut_type in struct utmp.
79819
79820 2001-05-27  Jim Meyering  <meyering@lucent.com>
79821
79822         * lib/readutmp.h (UT_TYPE): Define.
79823
79824 2001-05-24  Jim Meyering  <meyering@lucent.com>
79825
79826         * lib/argmatch.c: Include "quote.h".
79827         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79828         quote function.  Reported by Göran Uddeborg.
79829
79830 2001-05-22  Jim Meyering  <meyering@lucent.com>
79831
79832         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79833         now that we use the package-supplied version unconditionally.
79834         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79835
79836 2001-05-21  Jim Meyering  <meyering@lucent.com>
79837
79838         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79839         shell syntax errors.
79840
79841 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79842
79843         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79844
79845 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79846
79847         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79848         Don't bother to check library strftime, since
79849         we'll be using our own my_strftime function anyway.
79850         Define my_strftime instead of strftime.
79851
79852 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79853
79854         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79855         which is not yet declared.
79856
79857 2001-05-15  Jim Meyering  <meyering@lucent.com>
79858
79859         * m4/regex.m4: Use proper quoting so brackets appear in the test
79860         program.
79861         Reported by, and with help from, Bruno Haible.
79862
79863 2001-05-13  Jim Meyering  <meyering@lucent.com>
79864
79865         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79866         undefined.
79867
79868 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79869
79870         dirname code cleanup.  base_name now behaves more compatibly
79871         with POSIX basename when given file names that have trailing
79872         slashes, and similarly for dir_name.  Add new primitives
79873         base_len and dir_len.  Put the directory-name-related decls
79874         into dirname.h.
79875
79876         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79877         * lib/backupfile.c (base_name): Likewise.
79878         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79879         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79880         * lib/makepath.c (strip_trailing_slashes): Likewise.
79881         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79882         ISSLASH): Likewise.
79883         * lib/rename.c (strip_trailing_slashes): Likewise.
79884         * lib/same.c (base_name): Likewise.
79885         * lib/stripslash.c (ISSLASH): Likewise.
79886
79887         * lib/addext.c: Include <dirname.h> after size_t is defined.
79888         * lib/backupfile.c: Likewise.
79889
79890         * lib/addext.c (addext): Use base_len to trim redundant
79891         trailing slashes instead of doing it ourselves.
79892         But do not trim the last slash if it is not redundant.
79893
79894         * lib/backupfile.c (find_backup_file_name,
79895         max_backup_version): Use base_len instead of rolling it ourselves.
79896         Handle the case of "" and (on DOS) "C:" correctly.
79897
79898         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79899         needed. Include <string.h>, <dirname.h>.
79900         (base_name): Allow file names ending in slashes, other than names
79901         that are all slashes.  In this case, return the basename followed
79902         by the slashes.  This is more general, and can be used in places
79903         where the original base_name purposely had an assertion failure.
79904         (base_len): New function.
79905
79906         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79907         Do not include <assert.h>; no longer needed.
79908         Include xalloc.h.
79909         (memrchr): Remove decl.
79910         (dir_name_r): Remove.
79911         (dir_len): Renamed from dirlen.  All callers changed.
79912         Rewrite in terms of base_name, for simplicity and consistency.
79913         (dir_name): Never return NULL.  All callers changed.
79914         Do not include <stdlib.h> in test program; no longer needed.
79915         return 0; is fine for test program.
79916
79917         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79918         New macros.
79919         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79920
79921         * lib/path-concat.c (path_concat): Use base_len to compute
79922         base length, not strlen; this means we cannot rely on memcpy
79923         to null-terminate.
79924
79925         * lib/same.c (STREQ): Remove.
79926         (same_name): Handle the case where the basename ends in trailing '/'.
79927
79928         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79929         a slash was stripped.  Do not strip the last slash after a
79930         file system prefix.
79931
79932 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79933
79934         * lib/Makefile.am (libfetish_a_SOURCES):
79935         Add strftime.c, since we now compile it on all hosts.
79936
79937         * lib/strftime.c (my_strftime):
79938         Define to nstrftime if emacs, but only if my_strftime is not defined.
79939         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79940         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79941         Add one more extra argument: a nanoseconds value.
79942         All uses changed.
79943         (ns): New macro.
79944         (my_strftime function): Add %N format.
79945         (emacs_strftimeu): Renamed from emacs_strftime,
79946         with extra ut argument.
79947
79948 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79949
79950         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79951
79952 2001-04-21  Jim Meyering  <meyering@lucent.com>
79953
79954         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79955         doesn't interfere.
79956
79957 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79958
79959         * m4/ftruncate.m4: Check for chsize.
79960         Link with ftruncate.o unconditionally if ftruncate is missing.
79961         This was required when cross-compiling to i586-mingw32msvc.
79962
79963 2001-04-08  Jim Meyering  <meyering@lucent.com>
79964
79965         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79966         recomputed; that's necessary when the offset spans a DST transition.
79967         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79968
79969 2001-04-02  Jim Meyering  <meyering@lucent.com>
79970
79971         * lib/regex.h, regex.c: Update from GNU libc.
79972
79973 2001-03-24  Jim Meyering  <meyering@lucent.com>
79974
79975         * m4/jm-macros.m4: Require autoconf-2.49d.
79976
79977 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79978
79979         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79980
79981 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79982
79983         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79984
79985 2001-03-17  Jim Meyering  <meyering@lucent.com>
79986
79987         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79988         now that the version in autoconf is equivalent.
79989         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79990
79991         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79992         Suggestion from Akim Demaille.
79993
79994         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79995         (jm_PREREQ_TEMPNAME): New function.
79996
79997 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79998
79999         * lib/tempname.c (uint64_t): Define to uintmax_t if
80000         not defined, and if UINT64_MAX is not defined.
80001         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
80002         Reported by John David Anglin.
80003
80004 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
80005
80006         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
80007         resolve alias if codeset is empty.
80008         * lib/config.charset (BeOS): Use wildcard syntax.
80009
80010 2001-03-13  Jim Meyering  <meyering@lucent.com>
80011
80012         * lib/path-concat.c (path_concat)
80013         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
80014         concatenating e.g., `C:' and `foo'.
80015         From Bruno Haible.
80016
80017 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80018
80019         * lib/localcharset.c (locale_charset): Don't use
80020         setlocale(LC_CTYPE,NULL). Don't return NULL.
80021         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
80022
80023 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80024
80025         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
80026         support for DOS/DJGPP.
80027
80028 2001-03-01  Paul Eggert  <eggert@twinsun.com>
80029
80030         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
80031         lacks mkstemp.  Compile our own tempname.c if we compile our own
80032         mkstemp.c, as mkstemp relies on tempname.
80033
80034 2001-03-01  Jim Meyering  <meyering@lucent.com>
80035
80036         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
80037         AH_VERBATIM really does output its argument verbatim.
80038
80039 2001-02-28  Paul Eggert  <eggert@twinsun.com>
80040
80041         * lib/Makefile.am (libfetish_a_SOURCES):
80042         Add dup-safer.c, fopen-safer.c.
80043         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
80044
80045         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
80046         * lib/unistd-safer.h: New files.
80047
80048 2001-02-25  Paul Eggert  <eggert@twinsun.com>
80049
80050         The mkstemp replacement is taken from glibc 2.2.2, with some
80051         portability fixes for use outside glibc, as follows:
80052
80053         * lib/tempname.c (struct_stat64): New macro.
80054         (direxists, __gen_tempname): Use it.
80055         This avoids a portability problem with Solaris 8.
80056
80057         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
80058         (<stddef.h>, <stdint.h>, <string.h>):
80059         Include only if STDC_HEADERS || _LIBC.
80060         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
80061         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
80062         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
80063         (__set_errno): Define this macro if <errno.h> doesn't.
80064         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
80065         Define these macros if <stdio.h> doesn't.
80066         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
80067         Define these macros if <sys/stat.h>
80068         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
80069         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
80070         __xstat64): Define if not _LIBC.
80071         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
80072         (__gen_tempname): Invoke gettimeofday only if
80073         HAVE_GETTIMEOFDAY || _LIBC;
80074         otherwise, fall back on plain "time".
80075         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
80076
80077         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
80078
80079         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
80080
80081 2001-02-18  Paul Eggert  <eggert@twinsun.com>
80082
80083         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
80084
80085 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80086
80087         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
80088         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
80089         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
80090         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80091
80092 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80093
80094         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
80095         Remove workaround macros for hosts that have mbrtowc but not
80096         mbstate_t, as we now insist on proper declarations for both
80097         before using mbrtowc.
80098
80099 2001-02-17  Jim Meyering  <meyering@lucent.com>
80100
80101         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
80102         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
80103         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
80104         UnixWare 7.1.1.
80105
80106         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
80107         rather than AC_CACHE_VAL.
80108
80109 2001-02-17  Jim Meyering  <meyering@lucent.com>
80110
80111         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
80112         around included file name.
80113
80114         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
80115
80116         * lib/strftime.c: Update from GNU libc (the only changes were to
80117         comments).
80118
80119 2001-02-17  Jim Meyering  <meyering@lucent.com>
80120
80121         * lib/regex.c: Update from libc.
80122
80123 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
80124
80125         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
80126         clash.
80127
80128 2001-02-16  Paul Eggert  <eggert@twinsun.com>
80129
80130         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
80131         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
80132         Reported by Mark Hounschell via Paul Eggert.
80133
80134 2001-02-07  Jim Meyering  <meyering@lucent.com>
80135
80136         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
80137
80138 2001-02-05  Jim Meyering  <meyering@lucent.com>
80139
80140         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
80141         it includes the patch required for `large file' support with at least
80142         HP-UX's 10.20 /bin/cc.
80143
80144 2001-02-03  Jim Meyering  <meyering@lucent.com>
80145
80146         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
80147         AS_IF, now that it works once again (mysteriously).
80148         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80149
80150 2001-01-30  Jim Meyering  <meyering@lucent.com>
80151
80152         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
80153         * m4/chown.m4: Rename conftestchown to conftest.chown.
80154         * m4/rename.m4: s/conftestdir/conftest.d1/ and
80155         s/conftestdir2/conftest.d2/.
80156         * m4/utimes.m4: s/conftestdata/conftest.data/
80157         Inspired by Pavel Roskin's change in autoconf.
80158
80159 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
80160
80161         * lib/config.charset: Update for FreeBSD 4.2.
80162
80163 2001-01-27  Jim Meyering  <meyering@lucent.com>
80164
80165         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
80166         a use of AS_IF.
80167         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80168
80169 2001-01-26  Jim Meyering  <meyering@lucent.com>
80170
80171         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
80172         quotearg.c includes it.
80173
80174 2001-01-26  Jim Meyering  <meyering@lucent.com>
80175
80176         * lib/quotearg.c: Include stddef.h.
80177         * lib/quote.c: Include stddef.h.
80178         Reported by Axel Kittenberger.
80179
80180         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
80181         line in double quotes so that it evokes a better diagnostic.
80182         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
80183         Reported by Axel Kittenberger.
80184
80185 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
80186
80187         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
80188         as if it was a `charset'.
80189
80190 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80191
80192         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
80193         has const.
80194
80195 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80196
80197         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
80198         to avoid a warning.  Add back 'const' to inptr.
80199
80200 2001-01-20  Jim Meyering  <meyering@lucent.com>
80201
80202         Be sure that headers are checked before used in code compiled
80203         for the type checks.
80204         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
80205         In place of that, invoke jm_CHECK_ALL_TYPES.
80206         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
80207         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
80208         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
80209         The check for ssize_t was mistakenly run before the test for unistd.h.
80210
80211         The configure-time check for stdbool.h was missing.
80212         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
80213         (jm_PREREQ_HASH): New function.
80214
80215 2001-01-17  Jim Meyering  <meyering@lucent.com>
80216
80217         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
80218         for autoconf-2.49c.
80219         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
80220
80221 2001-01-16  Jim Meyering  <meyering@lucent.com>
80222
80223         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
80224         From Bruno Haible.
80225
80226 2001-01-14  Jim Meyering  <meyering@lucent.com>
80227
80228         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
80229         foo and bar.  Create conftestdir/ in the script, not in the C code.
80230         Remove directories in the script, not in the C code.
80231         Remove conftestdir{,2} before trying to create the directory.
80232         Make the entire configure script fail if the mkdir fails.
80233
80234 2001-01-14  Jim Meyering  <meyering@lucent.com>
80235
80236         * lib/rename.c: New file.  From Volker Borchert.
80237         Include stdlib.h, string.h or strings.h, and xalloc.h.
80238         Use strip_trailing_slashes rather than open-coding it.
80239
80240 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80241
80242         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80243
80244 2001-01-03  Jim Meyering  <meyering@lucent.com>
80245
80246         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80247         of local `inptr' to avoid warning with some system declarations of
80248         iconv.
80249
80250 2001-01-02  Volker Borchert  <bt@teknon.de>
80251
80252         * m4/rename.m4: New file.
80253         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80254
80255 2001-01-01  Jim Meyering  <meyering@lucent.com>
80256
80257         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80258         even on systems with utmpx.h.  It's necessary for the declaration of
80259         utmp's ut_user member.  Reported by Andreas Jaeger.
80260
80261         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80262         available. They are required for the declarations of getgrgid and
80263         getpwuid resp.
80264         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80265         Reported by Andreas Jaeger.
80266
80267 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80268
80269         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80270         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80271         so `make install' also works in VPATH builds.
80272
80273 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80274
80275         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80276         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80277         can be used in subdirectories.
80278
80279 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80280
80281         * lib/modechange.c: Do not assume that mode_t uses the
80282         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80283         the other-execute bit of FOO even if S_IXOTH != 1.
80284
80285         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80286         WOTH, XOTH, ALLM): New macros.
80287         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80288          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80289         Use them.
80290         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80291         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80292         (mode_compile):
80293         No need to use uintmax_t; unsigned long is long enough.
80294         Don't bother to get suffix since we don't use it.
80295
80296 2000-12-26  Jim Meyering  <meyering@lucent.com>
80297
80298         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80299         better with autoheader.
80300
80301 2000-12-24  Jim Meyering  <meyering@lucent.com>
80302
80303         * lib/hash.c (is_prime): Return explicit boolean values.
80304         (hash_get_first): Return NULL to appease Irix5.6's 89.
80305         Reported by Nelson Beebe.
80306
80307 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80308
80309         * lib/localcharset.c (locale_charset): Add support for Win32.
80310
80311 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80312
80313         * lib/physmem.h, lib/physmem.c: New files.
80314
80315         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80316         (noinst_HEADERS): Add physmem.h.
80317
80318         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80319         't' for compatibility with Solaris 8 sort.
80320
80321 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80322
80323         * lib/config.charset: Add support for BeOS.
80324
80325 2000-12-17  Jim Meyering  <meyering@lucent.com>
80326
80327         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80328         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80329
80330 2000-12-16  Jim Meyering  <meyering@lucent.com>
80331
80332         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80333         N and M) would have treated it like `chown N:N FILE'.
80334
80335         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80336
80337 2000-12-16  Jim Meyering  <meyering@lucent.com>
80338
80339         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80340         SHELLS_FILE to a file name that's useful on djgpp systems.
80341         Include stdlib.h.
80342         (ADDITIONAL_DEFAULT_SHELLS): Define.
80343         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80344         Based mostly on a patch from Prashant TR.
80345
80346 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80347
80348         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80349         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80350         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80351
80352 2000-12-08  Andreas Schwab  <schwab@suse.de>
80353
80354         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80355         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80356
80357 2000-12-07  Jim Meyering  <meyering@lucent.com>
80358
80359         * lib/stripslash.c (ISSLASH): Define.
80360         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80361         `/'.
80362         From Prashant TR.
80363
80364         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80365         (dir_name_r): Declare this function as static.
80366         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80367         manifest itself on a name containing a mix of slashes and
80368         backslashes.
80369         Make this function work with names starting with a DOS-style
80370         drive letter and colon prefix.
80371         (dir_name): Append `.' if necessary.
80372         Based mostly on patches from Prashant TR and Eli Zaretskii.
80373
80374         * lib/dirname.h (dir_name_r): Remove prototype.
80375
80376 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80377
80378         * m4/off_t-format.m4: Remove this file.
80379         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80380
80381 2000-12-06  Jim Meyering  <meyering@lucent.com>
80382
80383         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80384         replacement strtoull, we may well need the replacement strtoul, too.
80385         Check for declarations of strtoul and strtoull.
80386         Check for strtol.  Mainly as a cue to cause automake to include
80387         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80388         Check for limits.h -- strtol.c needs it.
80389
80390 2000-12-05  Jim Meyering  <meyering@lucent.com>
80391
80392         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80393
80394 2000-12-04  Jim Meyering  <meyering@lucent.com>
80395
80396         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80397         Also include memory.h, stdlib.h, unistd.h if appropriate.
80398         Reported by Andreas Jaeger (conflicting declaration of malloc).
80399
80400 2000-12-02  Jim Meyering  <meyering@lucent.com>
80401
80402         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80403         * m4/jm-macros.m4 (jm_MACROS): require it.
80404
80405 2000-12-02  Jim Meyering  <meyering@lucent.com>
80406
80407         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80408
80409 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80410
80411         * lib/memrchr.c: Include <config.h> before any system include file.
80412
80413 2000-11-30  Jim Meyering  <meyering@lucent.com>
80414
80415         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80416
80417 2000-11-30  Jim Meyering  <meyering@lucent.com>
80418
80419         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80420
80421 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80422
80423         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80424
80425 2000-11-26  Jim Meyering  <meyering@lucent.com>
80426
80427         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80428
80429 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80430
80431         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80432         size of (size_t) -1; it's not portable.
80433
80434 2000-11-17  Jim Meyering  <meyering@lucent.com>
80435
80436         * lib/strstr.c: Update from GNU libc.
80437
80438 2000-11-17  Akim Demaille  <akim@epita.fr>
80439
80440         * lib/obstack.h: Formatting changes.
80441         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80442         prevent type checking.
80443         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80444         cast the value to (void *): assigning a `foo *' to a `void *'
80445         variable is valid.
80446         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80447
80448 2000-11-16  Jim Meyering  <meyering@lucent.com>
80449
80450         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80451
80452 2000-11-11  Jim Meyering  <meyering@lucent.com>
80453
80454         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80455
80456 2000-11-10  Jim Meyering  <meyering@lucent.com>
80457
80458         * lib/obstack.h: Update from GNU libc.
80459         * lib/obstack.c: Likewise.
80460
80461 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80462
80463         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80464
80465 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80466
80467         * lib/getusershell.c (setusershell): Use rewind rather than
80468         fseek/fseeko, to avoid configuration hassles with fseeko.
80469         Don't bother opening SHELLS_FILE if shellstream is NULL;
80470         it's not necessary.
80471
80472 2000-11-05  Jim Meyering  <meyering@lucent.com>
80473
80474         * lib/makepath.h (make_dir): Declare.
80475         * lib/makepath.c (make_dir): Remove `static' attribute.
80476         Tweak a comment.
80477
80478 2000-11-04  Jim Meyering  <meyering@lucent.com>
80479
80480         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80481
80482 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80483
80484         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80485         last one in a bucket, advance to the next bucket.
80486
80487 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80488
80489         * lib/fnmatch.c: Do not comment out all the code if we are using
80490         the GNU C library, because in some cases we are replacing buggy
80491         code in the GNU C library itself.
80492
80493 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80494
80495         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80496         (regex_compile): Catch bogus \(\1\).
80497
80498 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80499
80500         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80501         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80502         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80503
80504 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80505
80506         * lib/error.h, getline.h, modechange.h:
80507         Remove "2000" from Copyright line, as the file hasn't been
80508         changed this year other than in the copyright notice.
80509
80510         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80511         was changed this year.
80512
80513 2000-10-29  Jim Meyering  <meyering@lucent.com>
80514
80515         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80516         renaming.
80517         * m4/ls-mntd-fs.m4: Likewise
80518
80519 2000-10-29  Jim Meyering  <meyering@lucent.com>
80520
80521         * lib/xstat.in: Fix grammar in comment.
80522
80523 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80524
80525         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80526         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80527         doesn't define __restrict_arr.
80528
80529 2000-10-28  Jim Meyering  <meyering@lucent.com>
80530
80531         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80532         (jm_PREREQ_MEMCHR): New function.
80533
80534 2000-10-28  Jim Meyering  <meyering@lucent.com>
80535
80536         * lib/memchr.c: Update from libc.
80537         Adjust for portability:
80538         [HAVE_STDLIB_H]: Include stdlib.h.
80539         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80540         Undef __memchr, too.
80541         [!weak_alias]: Define __memchr to memchr.
80542
80543         * lib/regex.c: Update from libc.
80544         * lib/regex.h: Likewise.
80545         * lib/getopt1.c: Likewise.
80546         * lib/memcmp.c: Likewise.
80547
80548         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80549         Avoid using fseek, when possible -- it's broken by design.
80550         Patch by Ulrich Drepper.
80551
80552 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80553
80554         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80555         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80556         Giving in to popular pressure to shut up the compiler with casts.
80557
80558 2000-10-26  Jim Meyering  <meyering@lucent.com>
80559
80560         * lib/strftime.c: Update from libc.
80561
80562 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80563
80564         * regex.c: More `unsigned char' -> `re_char' changes.
80565         Also change several `int' into `re_wchar_t'.
80566         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80567         (PUSH_FAILURE_POINTER): Don't cast any more.
80568         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80569         We want GCC to complain, since this piece of code makes
80570         re_match non-reentrant, which *should* be fixed.
80571         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80572         (EXTEND_BUFFER): Use RETALLOC.
80573         (SET_LIST_BIT): Don't cast.
80574         (re_wchar_t): New type.
80575         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80576         that those two functions will always properly return.
80577         (IMMEDIATE_QUIT_CHECK): Cast to void.
80578         (analyse_first): Use recursion rather than an explicit stack.
80579         (re_compile_fastmap): Can't fail anymore.
80580         (re_search_2): Don't check re_compile_fastmap for failure.
80581         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80582         Now also sets the new value (passed in a new argument).
80583         (re_match_2_internal): Use it.
80584         Also, use a new var `reg' of type size_t when looping through regs
80585         rather than reuse the inappropriate `mcnt'.
80586
80587 2000-10-25  Jim Meyering  <meyering@lucent.com>
80588
80589         * lib/obstack.c: Update from libc.
80590
80591 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80592
80593         * regex.c (regex_compile): Change the way of handling a range from
80594         a char less than 256 to a char not less than 256.
80595
80596 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80597
80598         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80599         NT-Emacs only.
80600         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80601         so that re_search functions only quit when callers expect them to.
80602
80603 2000-10-23  Jim Meyering  <meyering@lucent.com>
80604
80605         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80606         wrong.  That set_locale call must not have any side effects.
80607         From Paul Eggert.
80608
80609 2000-10-22  Jim Meyering  <meyering@lucent.com>
80610
80611         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80612         [CYCLIC]: Remove now-unused definition.
80613
80614         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80615         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80616         Suggestion from Ulrich Drepper.
80617
80618 2000-10-21  Jim Meyering  <meyering@lucent.com>
80619
80620         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80621         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80622         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80623
80624 2000-10-21  Jim Meyering  <meyering@lucent.com>
80625
80626         * lib/dirname.c (memrchr): Declare if necessary.
80627         (dir_name): Remove the restriction that there be no
80628         trailing slashes.  Now, this code skips past them, effectively
80629         ignoring them.
80630         [TEST_DIRNAME] (main): New unit tests.
80631
80632         * lib/memrchr.c: New file from GNU libc.
80633         Undef __memrchr, too.
80634         [!weak_alias]: Define __memrchr to memrchr.
80635         Guard weak_alias use with `#ifdef weak_alias'.
80636
80637 2000-10-21  Jim Meyering  <meyering@lucent.com>
80638
80639         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80640         (dir_name): Use dir_name_r.
80641         * lib/dirname.h (dir_name_r): Declare it.
80642
80643 2000-10-17  Jim Meyering  <meyering@lucent.com>
80644
80645         * lib/quote.h (PARAMS): Define and use.
80646         Reported by Akim Demaille.
80647
80648         * lib/getopt.c: Update from libc.
80649
80650 2000-10-16  Jim Meyering  <meyering@lucent.com>
80651
80652         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80653         setlocale.
80654         From Jan Fedak.
80655
80656 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80657
80658         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80659
80660 2000-09-25  Jim Meyering  <meyering@lucent.com>
80661
80662         * lib/md5.h (rol): Define (from GnuPG).
80663
80664         * lib/sha.c: Give credit (GnuPG) where due.
80665         (M): Use rol rather than open-coding it.
80666         Add a FIXME comment.
80667
80668 2000-09-21  Jim Meyering  <meyering@lucent.com>
80669
80670         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80671         Reported by Michael Stone.
80672
80673 2000-09-20  Jim Meyering  <meyering@lucent.com>
80674
80675         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80676         (noinst_HEADERS): Add sha.h.
80677         Based on code from Scott G. Miller and from GnuPG.
80678
80679 2000-09-18  Jim Meyering  <meyering@lucent.com>
80680
80681         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80682         LIBS. Otherwise, everyone ends up linking with -lelf for some
80683         configurations.
80684         Reported by Mike Stone.
80685
80686 2000-09-15  Jim Meyering  <meyering@lucent.com>
80687
80688         * lib/regex.c: Update from libc.
80689
80690 2000-09-10  Jim Meyering  <meyering@lucent.com>
80691
80692         * lib/getopt.c (_getopt_internal): Update from glibc.
80693
80694 2000-09-09  Jim Meyering  <meyering@lucent.com>
80695
80696         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80697         think it should be used as a general replacement for isascii.
80698         * lib/fnmatch.c: Likewise.
80699         * lib/mbswidth.c: Likewise
80700         * lib/regex.c: Likewise.
80701
80702         Don't use atoi.
80703         * lib/userspec.c: Include sys/param.h and limits.h.
80704         Include xstrtol.h.
80705         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80706         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80707         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80708         UID, GID.  Check range.
80709
80710 2000-09-06  Jim Meyering  <meyering@lucent.com>
80711
80712         * lib/getopt.c (_getopt_internal): Update from glibc.
80713
80714 2000-08-30  Jim Meyering  <meyering@lucent.com>
80715
80716         * lib/strftime.c: Merge in changes from GNU libc.
80717
80718 2000-08-26  Jim Meyering  <meyering@lucent.com>
80719
80720         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80721         * m4/fpending.m4: New file.
80722
80723 2000-08-26  Jim Meyering  <meyering@lucent.com>
80724
80725         * lib/closeout.c: Include "__fpending.h".
80726         (close_stdout_status): Return right away if there's nothing to flush.
80727
80728         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80729         * lib/__fpending.c: New file.
80730         * lib/__fpending.h: New file.
80731
80732 2000-08-20  Jim Meyering  <meyering@lucent.com>
80733
80734         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80735         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80736         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80737
80738 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80739
80740         Improve fileutils installation on systems where running
80741         programs (like install) can't be unlinked.
80742         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80743         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80744
80745 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80746
80747         Standardize on "memory exhausted" instead of "Memory exhausted"
80748         or "virtual memory exhausted".
80749         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80750         "virtual memory exhausted".
80751         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80752         our own message.
80753         * lib/userspec.c (parse_user_spec): Likewise.
80754         * lib/bumpalloc.h: comment fix
80755         * lib/same.c, userspec.c: Include xalloc.h.
80756
80757         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80758         not char *const and pointing to a constant array.
80759         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80760         (xrealloc): Comment fix.
80761
80762         * lib/userspec.c (parse_user_spec):
80763         Don't translate a message until just before returning,
80764         to avoid unnecessary translation.
80765
80766 2000-08-07  Jim Meyering  <meyering@lucent.com>
80767
80768         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80769         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80770         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80771         getgroups.c, gethostname.c, getopt.h, group-member.c,
80772         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80773         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80774         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80775         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80776         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80777         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80778         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80779         yesno.c: Back out Copyright date changes for each file with no change
80780         this year.  This eases coordination with other programs using the same
80781         source code modules.  From Paul Eggert.
80782
80783 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80784
80785         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80786         not char, for compatibility with glibc 2.1.3 strftime.c.
80787
80788 2000-08-03  Greg McGary  <greg@mcgary.org>
80789
80790         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80791         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80792         (EXTEND_BUFFER): Use them.
80793
80794 2000-08-01  Jim Meyering  <meyering@lucent.com>
80795
80796         * lib/dirname.c (ISSLASH): Define.
80797         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80798         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80799         both `\' and `/' may be use as path separators.
80800         Based on a patch from Prashant TR.
80801
80802 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80803
80804         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80805         slot vector a constant, since it might get modified.
80806
80807 2000-07-31  Jim Meyering  <meyering@lucent.com>
80808
80809         * lib/xmalloc.c: Use `virtual memory exhausted', not
80810         `Memory exhausted'.
80811         * lib/obstack.c (print_and_abort): Likewise.
80812
80813 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80814
80815         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80816         buffer, so that the caller can always quote one small
80817         component of a "memory exhausted" message in slot 0.
80818         From a suggestion by Jim Meyering.
80819
80820 2000-07-30  Jim Meyering  <meyering@lucent.com>
80821
80822         * lib/makepath.c (make_path): Quote the other instance, too.
80823
80824         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80825         (STATIC_BUF_SIZE): Define.
80826         (quotearg_n_options): Use only statically allocated storage when
80827         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80828         than STATIC_BUF_SIZE.
80829
80830 2000-07-29  Jim Meyering  <meyering@lucent.com>
80831
80832         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80833         * lib/dirname.c (dir_name): Likewise.
80834
80835         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80836         `/'.
80837
80838         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80839         (dir_name): Assert that there are no trailing slashes.
80840
80841 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80842
80843         * lib/mbswidth.h (mbswidth): Add a flags argument.
80844         (mbswidth): New declaration.
80845         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80846         * lib/mbswidth.c (mbswidth): Add a flags argument.
80847         (mbsnwidth): New function.
80848
80849 2000-07-24  Jim Meyering  <meyering@lucent.com>
80850
80851         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80852
80853 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80854
80855         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80856
80857 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80858
80859         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80860         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80861         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80862         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80863         invoke multibyte primitives.
80864
80865 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80866
80867         * lib/quotearg.c:
80868         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80869         so that mbstate_t is always defined.
80870
80871         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80872         be 1 in at least one GCC installation, and this configuration
80873         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80874         performance on hosts that have mbrtowc but have only unibyte
80875         locales, but I assume these hosts are rare.
80876
80877 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80878
80879         * lib/mbswidth.c (_XOPEN_SOURCE):
80880         Don't define; this causes problems on Solaris 7.
80881         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80882
80883 2000-07-23  Jim Meyering  <meyering@lucent.com>
80884
80885         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80886         too: getgrgid, getpwuid, getuid.
80887
80888 2000-07-23  Jim Meyering  <meyering@lucent.com>
80889
80890         * lib/basename.c (base_name): Add an assertion.
80891
80892 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80893
80894         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80895         shadow its mbsinit function.
80896
80897 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80898
80899         * lib/mbswidth.h: New file.
80900         * lib/mbswidth.c: New file.
80901         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80902         (noinst_HEADERS): Add mbswidth.h.
80903
80904 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80905
80906         * lib/config.charset: Add support for FreeBSD. Improve support for
80907         HP-UX and IRIX 6.
80908
80909 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80910
80911         * m4/mbswidth.m4: New file.
80912         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80913
80914 2000-07-15  Jim Meyering  <meyering@lucent.com>
80915
80916         * lib/makepath.c: Include quote.h.
80917         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80918         corresponding argument in a `quote (...)' call.
80919         Give better diagnostics.
80920
80921         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80922         (noinst_HEADERS): Add quote.h.
80923
80924         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80925         from tar's src/misc.c.
80926         * lib/quote.h: New file.  Prototypes for same.
80927
80928 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80929
80930         From a suggestion by Bruno Haible.
80931         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80932         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80933         to decide whether to define the BeOS workaround macro;
80934         this adjusts to the change to AC_MBSTATE_T.
80935
80936 2000-07-14  Jim Meyering  <meyering@lucent.com>
80937
80938         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80939         jm_AC_TYPE_UINTMAX_T.
80940
80941 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80942
80943         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80944
80945         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80946         quotearg_buffer_restyled): Add support for
80947         clocale_quoting_style.  Undo previous change to
80948         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80949         and "{RIGHT QUOTATION MARK}" msgids.
80950
80951 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80952
80953         From a suggestion by Bruno Haible.
80954         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80955         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80956         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80957         and mbstate_t, to a single-part test that simply defines mbstate_t.
80958         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80959         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80960
80961 2000-07-10  Jim Meyering  <meyering@lucent.com>
80962
80963         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80964
80965         * m4/gnu-source.m4: Output to confdefs.h directly.
80966         Suggestion from Akim Demaille.
80967
80968 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80969
80970         The old behavior of quoting `like this' doesn't look good with
80971         newer, ISO-style fonts.  See:
80972         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80973
80974         Instead, quote "like this" by default.  Let the translator
80975         tailor the locale-specific quoting behavior by providing
80976         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80977
80978         * lib/quotearg.c (N_): New macro.
80979         (gettext_default): New function.
80980         (quotearg_buffer_restyled): Use
80981         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80982         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80983
80984 2000-07-09  Jim Meyering  <meyering@lucent.com>
80985
80986         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80987         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80988
80989         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80990         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80991
80992 2000-07-09  Jim Meyering  <meyering@lucent.com>
80993
80994         * lib/Most files: Update copyright dates to include 2000.
80995
80996 2000-07-08  Jim Meyering  <meyering@lucent.com>
80997
80998         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80999         if not defined.
81000         (xgethostname): Remove now-unnecessary #ifdef.
81001         Move declaration of `err' into loop where it's used.
81002
81003 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81004         and Bruno Haible  <haible@clisp.cons.org>
81005
81006         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
81007         only if the test for an object-type mbstate_t fails.  This
81008         prevents us from mistakenly reporting that mbstate_t is a
81009         system object type after we "#define mbstate_t int" to work
81010         around its lack.
81011
81012 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81013         and Bruno Haible  <haible@clisp.cons.org>
81014
81015         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
81016
81017 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81018
81019         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
81020         to strerror_r.
81021         Include <ctype.h> for use of isalpha.
81022
81023 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81024
81025         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
81026         by allocating a larger buffer. Test the gethostname return value for
81027         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
81028         returns an error and ENAMETOOLONG isn't defined.
81029
81030 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81031
81032         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
81033         dimension.
81034
81035 2000-07-04  Jim Meyering  <meyering@lucent.com>
81036
81037         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
81038         of the deprecated AC_CHECKING.
81039
81040 2000-07-04  Jim Meyering  <meyering@lucent.com>
81041
81042         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
81043         Reported by Bruno Haible.
81044
81045 2000-07-04  Jim Meyering  <meyering@lucent.com>
81046
81047         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
81048         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
81049         lacks mbrtowc.
81050
81051 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81052
81053         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
81054         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
81055
81056 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81057         and Bruno Haible  <haible@clisp.cons.org>
81058
81059         * lib/quotearg.c (mbrtowc):
81060         Assign to *pwc, and return 1 only if result is nonzero.
81061         (iswprint): Use ISPRINT when substituting our own mbrtowc.
81062
81063 2000-07-03  Jim Meyering  <meyering@lucent.com>
81064
81065         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
81066
81067 2000-07-03  Jim Meyering  <meyering@lucent.com>
81068
81069         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
81070         This is necessary to get a definition of e.g., UTMP_FILE on
81071         HP-UX 10.20.
81072         From Bob Proulx.
81073
81074 2000-07-02  Jim Meyering  <meyering@lucent.com>
81075
81076         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
81077
81078         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
81079         AC_LIBOBJ(function_name).
81080         * m4/chown.m4: Likewise.
81081         * m4/fnmatch.m4: Likewise.
81082         * m4/ftruncate.m4: Likewise.
81083         * m4/getgroups.m4: Likewise.
81084         * m4/getline.m4: Likewise.
81085         * m4/group-member.m4: Likewise.
81086         * m4/jm-macros.m4: Likewise.
81087         * m4/lstat.m4: Likewise.
81088         * m4/malloc.m4: Likewise.
81089         * m4/memcmp.m4: Likewise.
81090         * m4/nanosleep.m4: Likewise.
81091         * m4/putenv.m4: Likewise.
81092         * m4/realloc.m4: Likewise.
81093         * m4/regex.m4: Likewise.
81094         * m4/stat.m4: Likewise.
81095         * m4/strftime.m4: Likewise.
81096
81097 2000-07-02  Jim Meyering  <meyering@lucent.com>
81098
81099         * lib/quotearg.c (mbstate_t): Don't define here.
81100
81101 2000-07-02  Jim Meyering  <meyering@lucent.com>
81102
81103         * lib/nanosleep.c (SIGCONT): Define if not already defined.
81104
81105 2000-07-01  Jim Meyering  <meyering@lucent.com>
81106
81107         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
81108
81109 2000-07-01  Jim Meyering  <meyering@lucent.com>
81110
81111         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
81112         problem.
81113
81114 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81115
81116         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
81117         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
81118
81119 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81120
81121         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
81122         per change in ../m4/ls-mntd-fs.m4.
81123         (read_filesystem_list): Ignore symbolic links.
81124
81125 2000-06-29  Jim Meyering  <meyering@lucent.com>
81126
81127         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
81128         for declaration of strcmp.
81129
81130         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
81131
81132         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
81133         Avoid warning by casting result to `char *' to remove `const'.
81134
81135 2000-06-28  Jim Meyering  <meyering@lucent.com>
81136
81137         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
81138         included by quotearg.c, for which we perform this test.  From
81139         Bruno Haible.
81140
81141 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81142
81143         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
81144         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
81145         <utmpx.h> exists, put readutmp.o into LIBOBJS.
81146
81147 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81148
81149         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
81150
81151 2000-06-26  Paul Eggert  <eggert@twinsun.com>
81152
81153         savedir now sets errno on failure and invokes xmalloc to get memory.
81154         Fix a couple of other minor bugs while we're at it.
81155
81156         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
81157         (NAMLEN): Remove macro.
81158         (malloc, realloc): Remove decls.
81159         (stpcpy): Likewise.
81160         ("xalloc.h"): Include.
81161         (NAME_SIZE_DEFAULT): New macro.
81162         (savedir): Use xmalloc / xrealloc to allocate memory.
81163         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
81164         Skip "" directory entries.
81165         Use strlen to calculate directory entry length, since the old method
81166         is rarely used these days and isn't worth supporting.
81167         Don't use a pointer after freeing it.
81168         Check for integer overflow when calculating allocation size.
81169         Use memcpy to copy entries, instead of stpcpy.
81170         Set errno properly when returning NULL.
81171         Check for readdir error.
81172
81173 2000-06-26  Jim Meyering  <meyering@lucent.com>
81174
81175         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
81176
81177 2000-06-25  Jim Meyering  <meyering@lucent.com>
81178
81179         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
81180         Linux header bug when _XOPEN_SOURCE is defined to 500.
81181
81182 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81183
81184         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
81185         deficiency.
81186
81187 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81188
81189         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
81190         Include xalloc.h.
81191         Don't include <stdlib.h>.  Don't declare malloc, realloc.
81192
81193 2000-06-24  Jim Meyering  <meyering@lucent.com>
81194
81195         * m4/strerror_r.m4: Revive this file -- to try out an experimental
81196         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
81197         for which strerror does return char*, but which lacks a conveniently
81198         accessible declaration of the function.  If the compile-test says
81199         strerror_r doesn't work, then resort to a `run'-test that works on
81200         BeOS and segfaults on DEC Unix.
81201
81202 2000-06-24  Jim Meyering  <meyering@lucent.com>
81203
81204         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
81205
81206 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81207
81208         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
81209         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
81210
81211 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81212
81213         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
81214         (mbrtowc, mbstate_t): Define substitutes if
81215         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
81216         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
81217         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
81218
81219 2000-06-23  Jim Meyering  <meyering@lucent.com>
81220
81221         * m4/afs.m4: Add missing AC_MSG_RESULT.
81222         Reported by Bruno Haible.
81223
81224         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
81225         Suggestion from Bruno Haible.
81226
81227 2000-06-23  Jim Meyering  <meyering@lucent.com>
81228
81229         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
81230
81231 2000-06-21  Jim Meyering  <meyering@lucent.com>
81232
81233         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
81234
81235 2000-06-21  Jim Meyering  <meyering@lucent.com>
81236
81237         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
81238         (noinst_HEADERS): Add getstr.h.
81239
81240         * lib/getline.c (getstr): Move into a separate file.
81241         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81242         the following changes: new parameter, delim2; both delim[12]
81243         parameters have type `int', not `char'.  The latter would lose
81244         with 8-bit delimiters.
81245         * lib/getstr.h: New file.
81246
81247 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81248
81249         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81250         than 1024, return a memory chunk of least possible size, instead
81251         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81252         Use free/xmalloc instead of xrealloc to avoid copying for very long
81253         paths.
81254
81255 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81256
81257         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81258         the empty string.
81259
81260 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81261
81262         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81263         address, not strdup.  Include <stdlib.h> and don't declare free().
81264
81265 2000-06-19  Jim Meyering  <meyering@lucent.com>
81266
81267         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81268
81269 2000-06-18  Jim Meyering  <meyering@lucent.com>
81270
81271         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81272
81273         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81274         `checking whether...' message to be consistent with that of the
81275         lstat test.
81276
81277 2000-06-18  Jim Meyering  <meyering@lucent.com>
81278
81279         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81280         Besides, these days every porting target provides a mkdir function.
81281
81282         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81283         needed. (this snippet comes from src/system.h).
81284
81285 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81286
81287         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81288
81289 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81290
81291         * lib/human.c (adjust_value): New function.
81292         (human_readable_inexact): Apply rounding style even when
81293         printing approximate values.
81294
81295 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81296
81297         * lib/human.c (human_readable_inexact): Allow an input block
81298         size that is not a multiple of the output block size, and vice versa.
81299         Reported by Piergiorgio Sartor.
81300
81301 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81302
81303         * lib/getdate.y (get_date): Apply relative times after time
81304         zone indicator, not before.  Reported by Todd A. Jacobs.
81305
81306 2000-06-13  Jim Meyering  <meyering@lucent.com>
81307
81308         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81309
81310         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81311
81312 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81313
81314         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81315
81316 2000-06-12  Jim Meyering  <meyering@lucent.com>
81317
81318         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81319         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81320         optional argument.
81321         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81322         the optional argument, `lib'.
81323
81324 2000-06-08  Jim Meyering  <meyering@lucent.com>
81325
81326         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81327
81328 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81329
81330         Rewrite largefile configuration so that we don't need to run
81331         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81332         AC_CANONICAL_HOST in configure.in -- jmm]
81333
81334         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81335         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81336         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81337         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81338         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81339         All uses changed.
81340         Instead of inspecting the output of getconf, try to compile the
81341         test program without and with the macro definition.
81342         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81343         for getconf.  Instead, check for the needed flags by compiling
81344         test programs.
81345
81346 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81347
81348         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81349
81350 2000-06-04  Jim Meyering  <meyering@lucent.com>
81351
81352         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81353         SunOS 4.1.4 for which gid_t is an unsigned type.
81354
81355 2000-06-03  Jim Meyering  <meyering@lucent.com>
81356
81357         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81358         now that autoconf requires that.
81359
81360         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81361         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81362         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81363
81364 2000-06-03  Jim Meyering  <meyering@lucent.com>
81365
81366         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81367
81368 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81369
81370         * m4/glibc21.m4: New file.
81371         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81372
81373 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81374
81375         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81376         newer, don't install charset.alias.
81377         * lib/config.charset: Change the Linux/glibc rules so they become empty
81378         on glibc-2.1 or newer.
81379
81380 2000-06-02  Jim Meyering  <meyering@lucent.com>
81381
81382         * lib/mountlist.c: Back out last change.  Instead, do this...
81383         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81384         me_dummy member using the same `ignore'-testing code.
81385         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81386         fs_type strings.
81387         From Mark D. Roth.
81388
81389 2000-05-29  Jim Meyering  <meyering@lucent.com>
81390
81391         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81392         mounts with the `ignore' attribute.  Based on a patch from
81393         Mark D. Roth.
81394
81395 2000-05-28  Jim Meyering  <meyering@lucent.com>
81396
81397         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81398         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81399         * m4/stat.m4: Likewise.
81400         * m4/lstat.m4: Likewise.
81401         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81402
81403         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81404         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81405
81406 2000-05-26  Jim Meyering  <meyering@lucent.com>
81407
81408         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81409
81410 2000-05-24  Jim Meyering  <meyering@lucent.com>
81411
81412         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81413         autoconf requires that.
81414         * m4/lib-check.m4: Likewise.
81415         * m4/jm-macros.m4: Likewise.
81416         * m4/strftime.m4: Likewise.
81417
81418         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81419         AC_CHECK_DECLS, now that autoconf requires that.
81420
81421 2000-05-22  Jim Meyering  <meyering@lucent.com>
81422
81423         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81424         * m4/lstat.m4: Likewise.
81425
81426 2000-05-22  Jim Meyering  <meyering@lucent.com>
81427
81428         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81429
81430 2000-05-20  Jim Meyering  <meyering@lucent.com>
81431
81432         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81433         (jm_PREREQ): Use it.
81434
81435 2000-05-18  Jim Meyering  <meyering@lucent.com>
81436
81437         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81438         back, too, since it may have been modified by allocate_entry.
81439         (hash_delete): Rewrite to use neither the assignment operator
81440         nor the comma operator in an if-expression.
81441
81442 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81443
81444         * lib/closeout.c:
81445         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81446         Remove; no longer needed.
81447         "quotearg.h": Add include.
81448         (file_name): Do not bother to explicitly initialize to NULL; it's less
81449         efficient on some hosts.
81450         (close_stdout_status): Remove test as to whether stdout was already
81451         closed; it breaks for the case "echo x | sort >&-".
81452         Quote file name colons.
81453         Do not assume that _("write error") lacks format strings.
81454
81455 2000-05-15  Jim Meyering  <meyering@lucent.com>
81456
81457         * lib/version-etc.c (version_etc_copyright): Update the copyright
81458         string used in all --version output.
81459
81460 2000-05-14  Jim Meyering  <meyering@lucent.com>
81461
81462         * lib/closeout.c (close_stdout_set_file_name): New function.
81463         (close_stdout_status): Use new file-scoped global.
81464         Return right away if fstat says the stdout file descriptor is invalid.
81465         * lib/closeout.h (close_stdout_set_file_name): Declare.
81466
81467 2000-05-10  Jim Meyering  <meyering@lucent.com>
81468
81469         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81470         (close_stdout_set_status): New function.
81471         * lib/closeout.h (close_stdout_set_status): Declare.
81472
81473 2000-05-09  Jim Meyering  <meyering@lucent.com>
81474
81475         * m4/gettext.m4: Rename this...
81476         * m4/libintl.m4: ...to this.
81477
81478 2000-05-08  Jim Meyering  <meyering@lucent.com>
81479
81480         * lib/long-options.c: Don't include closeout.h.
81481         (parse_long_options): Don't call close_stdout for --version.
81482
81483 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81484
81485         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81486         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81487         2.1.3 bug.  This avoids a clash when files like regex.c define
81488         _GNU_SOURCE.
81489
81490 2000-05-06  Jim Meyering  <meyering@lucent.com>
81491
81492         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81493         (AC_REPLACE_FUNCS): Add strnlen.
81494
81495         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81496         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81497
81498         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81499         AC_SEARCH_LIBS call for nanosleep.
81500         (LIB_NANOSLEEP): Set and AC_SUBST.
81501
81502 2000-05-06  Jim Meyering  <meyering@lucent.com>
81503
81504         * lib/strnlen.c: Undefine __strnlen and strnlen.
81505         [!weak_alias]: Define __strnlen to strnlen.
81506
81507         * lib/atexit.c: New file, from libiberty.
81508
81509 2000-05-06  Jim Meyering  <meyering@lucent.com>
81510
81511         * lib/closeout.c (close_stdout_status): Also check for errors on the
81512         stderr stream.
81513
81514 2000-05-05  Jim Meyering  <meyering@lucent.com>
81515
81516         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81517         AC_SEARCH_LIBS call for clock_gettime.
81518         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81519
81520         * m4/search-libs.m4: Update from autoconf.
81521
81522         su doesn't work on Solaris 2.6.
81523         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81524         <shadow.h>.  Reported by Dragos Harabor.
81525
81526 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81527
81528         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81529         memcpy instead of xmalloc, xrealloc, path_concat.
81530         (locale_charset): Treat empty environment variables as absent.
81531         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81532
81533 2000-05-04  Jim Meyering  <meyering@lucent.com>
81534
81535         * lib/getopt.c: Update from glibc.
81536         * lib/obstack.c: Likewise.
81537         * lib/obstack.h: Likewise.
81538         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81539         file
81540
81541         * lib/regex.h: Likewise.
81542         * lib/strndup.c: Likewise.
81543         * lib/strnlen.c: New file, from glibc.
81544
81545 2000-05-03  Jim Meyering  <meyering@lucent.com>
81546
81547         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81548
81549 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81550
81551         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81552         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81553         compile-time test, rather than inspecting host and OS, to
81554         decide whether to define _LARGEFILE_SOURCE.
81555
81556 2000-05-01  Jim Meyering  <meyering@lucent.com>
81557
81558         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81559
81560         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81561         Based on a patch from Bruno Haible.
81562
81563 2000-05-01  Jim Meyering  <meyering@lucent.com>
81564
81565         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81566
81567 2000-04-29  Jim Meyering  <meyering@lucent.com>
81568
81569         * lib/path-concat.c: Declare strdup only if it's not defined.
81570         * lib/canon-host.c: Likewise.
81571
81572 2000-04-28  Jim Meyering  <meyering@lucent.com>
81573
81574         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81575         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81576         is included first, then limits.h is included by locale.h by libintl.h.
81577         From John David Anglin.
81578
81579 2000-04-25  Jim Meyering  <meyering@lucent.com>
81580
81581         * lib/makepath.c (S_IRWXUGO): Define.
81582         (make_path): Always perform explicit chmod if MODE specifies any
81583         of the `special' permission bits.  Prompted by a bug report against
81584         install from Mate Wierdl and Joost van Baal.
81585
81586 2000-04-18  Jim Meyering  <meyering@lucent.com>
81587
81588         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81589         (jm_PREREQ): Use it.
81590
81591 2000-04-18  Jim Meyering  <meyering@lucent.com>
81592
81593         * lib/README: New file.
81594
81595         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81596         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81597
81598 2000-04-17  Jim Meyering  <meyering@lucent.com>
81599
81600         Get it right :-)
81601         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81602         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81603         Suggestion from Akim Demaille.
81604
81605 2000-04-17  Jim Meyering  <meyering@lucent.com>
81606
81607         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81608         the definition of it to rpl_strftime also defined-away the system's
81609         declaration.
81610
81611 2000-04-15  Jim Meyering  <meyering@lucent.com>
81612
81613         Use `C' to denote so-called `contiguous' files, the same way
81614         that tar does.
81615         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81616         (ftypelet): Use S_ISCTG.
81617         From Michael Deutschmann.
81618
81619 2000-04-14  Jim Meyering  <meyering@lucent.com>
81620
81621         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81622         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81623         clobbered.
81624
81625 2000-04-14  Jim Meyering  <meyering@lucent.com>
81626
81627         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81628
81629 2000-04-13  Jim Meyering  <meyering@lucent.com>
81630
81631         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81632         AH_VERBATIM to insert required #ifndef into config.h.in.
81633         Suggestion from Akim Demaille.
81634
81635 2000-04-12  Jim Meyering  <meyering@lucent.com>
81636
81637         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81638         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81639         Christian Krackowizer.
81640
81641         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81642         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81643         (AC_SYS_LARGEFILE): Require.
81644         (AM_C_PROTOTYPES): Require.
81645
81646 2000-04-08  Jim Meyering  <meyering@lucent.com>
81647
81648         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81649         names don't conflict.  Reported by Eli Zaretskii.
81650
81651 2000-04-07  Jim Meyering  <meyering@lucent.com>
81652
81653         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81654         sys/types.h, to work around system header problems on AIX 3.2.5.
81655         From Bruno Haible.
81656
81657 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81658
81659         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81660         bug.  Deal with the different error behavior of Irix iconv.
81661
81662 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81663
81664         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81665         IRIX if the installer said otherwise.
81666
81667 2000-04-05  Jim Meyering  <meyering@lucent.com>
81668
81669         Portability tweaks required for ultrix4.3.
81670         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81671         (jm_CHECK_DECLS): Add getutent to the list of functions.
81672         (_jm_DECL_HEADERS): Add utmpx.h.
81673         From John David Anglin.
81674
81675         * m4/strftime.m4: Back out the 2000-04-02 change.
81676         Instead of that change, simply undefine putenv in the test program.
81677
81678 2000-04-05  Jim Meyering  <meyering@lucent.com>
81679
81680         Portability tweaks required for ultrix4.3.
81681         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81682         getutent.
81683         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81684         * lib/canon-host.c: Declare strdup.
81685         * lib/path-concat.c: Likewise.
81686         From John David Anglin.
81687
81688 2000-04-04  Jim Meyering  <meyering@lucent.com>
81689
81690         Be more DOS 8.3-friendly.
81691         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81692         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81693         * lib/Makefile.am: Reflect renaming.
81694         Reported by Eli Zaretskii.
81695
81696         Use a temporary file name that won't clash with `charset.alias'
81697         in the DOS 8.3 name space.
81698         * lib/Makefile.am (charset_tmp): Define.
81699         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81700         (uninstall-local): Likewise.
81701         Reported by Eli Zaretskii.
81702
81703 2000-04-03  Jim Meyering  <meyering@lucent.com>
81704
81705         * m4/gettext.m4: Fix typo in comment.
81706
81707         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81708         textutils/configure.in).  Suggestion from Paul Eggert.
81709         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81710
81711 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81712
81713         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81714         variable in the shell rather than using putenv, which isn't
81715         portable.  This avoids the configure-time inter-test dependency
81716         on the potentially-renamed putenv function.
81717
81718 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81719
81720         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81721         before checking struct stat.st_blksize, so that
81722         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81723
81724 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81725
81726         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81727         since strftime.c uses HAVE_STRFTIME to decide whether to use
81728         the underlying strftime.
81729
81730 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81731
81732         * lib/time/strftime.c (my_strftime): Make sure we call the system
81733         strftime, not ourselves, when invoking the underlying strftime.
81734
81735 2000-03-24  Jim Meyering  <meyering@lucent.com>
81736
81737         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81738         (charset_alias): Define.
81739         (install-exec-local): Factor out common code.
81740         (uninstall-local): Split lines longer than 80.
81741         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81742         (SUFFIXES): Define.
81743         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81744         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81745
81746 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81747
81748         * lib/config.charset: Output a line containing "Packages using this
81749         file".
81750         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81751         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81752         ref-del.sed): New rules.
81753
81754 2000-03-17  Jim Meyering  <meyering@lucent.com>
81755
81756         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81757         Otherwise, include <strings.h>
81758
81759 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81760
81761         * lib/unicodeio.c (utf8_wctomb): New function.
81762         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81763         format instead of in UCS-4 with platform dependent endianness.
81764
81765 2000-03-10  Jim Meyering  <meyering@lucent.com>
81766
81767         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81768         From Marco Franzen.
81769
81770 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81771
81772         * lib/savedir.c (savedir): Work even if directory size is
81773         negative; this can happen with some screwy NFS configurations.
81774
81775 2000-03-06  Jim Meyering  <meyering@lucent.com>
81776
81777         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81778         if it's NULL (because we ran out of memory).  From Bruno Haible.
81779
81780 2000-03-05  Jim Meyering  <meyering@lucent.com>
81781
81782         * lib/localcharset.c ("path-concat.h"): Include.
81783         (get_charset_aliases): Use path_concat instead of ANSI string
81784         concatenation.
81785
81786         * lib/unicodeio.h (PARAMS): Define.
81787         Use it to guard prototype.
81788
81789 2000-03-04  Jim Meyering  <meyering@lucent.com>
81790
81791         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81792         for lib/localcharset.c.
81793
81794 2000-03-04  Jim Meyering  <meyering@lucent.com>
81795
81796         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81797         installing into it.
81798         (uninstall-local): Uncomment this rule so `make distcheck' works
81799         once again.
81800
81801         * lib/unicodeio.c (<errno.h>): Include it.
81802         (errno): Declare if not defined.
81803
81804         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81805
81806         * lib/config.charset: New version, incorporating remarks from a linux
81807         i18n mailing list.  From Bruno Haible.
81808
81809 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81810
81811         * m4/codeset.m4: New file.
81812         * m4/iconv.m4: New file.
81813         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81814
81815 2000-03-03  Jim Meyering  <meyering@lucent.com>
81816
81817         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81818
81819 2000-03-02  Jim Meyering  <meyering@lucent.com>
81820
81821         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81822         the messages come out on separate lines.
81823
81824         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81825         rather than jm_CHECK_DECLARATIONS.
81826         * m4/decl.m4: Remove now-unused file.
81827
81828         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81829         geteuid.
81830
81831 2000-03-02  Jim Meyering  <meyering@lucent.com>
81832
81833         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81834
81835 2000-03-01  Jim Meyering  <meyering@lucent.com>
81836
81837         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81838         * lib/unicodeio.c: Likewise.
81839
81840 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81841
81842         * lib/config.charset: New file.
81843         * lib/localcharset.c: New file.
81844         * lib/unicodeio.h, lib/unicodeio.c: New files.
81845         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81846         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81847         (noinst_HEADERS): Add unicodeio.h.
81848         (all-local, install-exec-local, charset.alias): New targets.
81849
81850 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81851
81852         * lib/quotearg.c (ALERT_CHAR): New macro.
81853         (quotearg_buffer_restyled): Use it.
81854
81855 2000-02-27  Jim Meyering  <meyering@lucent.com>
81856
81857         * m4/check-decl.m4: Add getenv to the list.
81858
81859 2000-02-27  Jim Meyering  <meyering@lucent.com>
81860
81861         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81862         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81863
81864         * lib/backupfile.c: Guard inclusion of stdlib.h with
81865         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81866         Declare malloc if needed.
81867
81868         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81869         `#ifndef HAVE_DECL..'
81870         now that autoconf always defines the HAVE_DECL_ symbols.
81871         * lib/human.c: Likewise.
81872         * lib/same.c: Likewise.
81873         * lib/strtoumax.c: Likewise.
81874
81875         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81876         declaration check was not run.
81877         * lib/hash.c: Likewise.
81878         * lib/human.c: Likewise.
81879         * lib/same.c: Likewise.
81880         * lib/strtoumax.c: Likewise.
81881
81882         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81883         `.', then first look up the entire `.'-containing string as a login
81884         name.
81885
81886 2000-02-23  Jim Meyering  <meyering@lucent.com>
81887
81888         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81889         in place of my hack.
81890
81891 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81892
81893         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81894         (textint): New typedef.
81895         (parser_control): Member year changed from int to textint.
81896         All uses changed.
81897         (YYSTYPE): Removed; replaced by %union with int and textint members.
81898         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81899         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81900         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81901         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81902         (date, number, to_year): Use width of number in digits, not its value,
81903         to determine whether it's a 2-digit year, or a 2-digit time.
81904         (yylex): Store number of digits of numeric tokens.
81905         Reported by John Kendall.
81906
81907         (parser_control): Changed from struct parser_control to typedef (for
81908         consistency).  All uses changed.
81909
81910         (tID): Removed; not used.
81911         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81912
81913 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81914
81915         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81916         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81917
81918 2000-02-12  Jim Meyering  <meyering@lucent.com>
81919
81920         * lib/userspec.c (ISDIGIT): Define it.
81921         (isdigit): Remove definition.
81922         (is_number): Use ISDIGIT, not isdigit.
81923         <libintl.h>: Include.
81924         (_ and N_): Define.
81925         (parse_user_spec): Mark translatable strings.
81926
81927 2000-02-10  Jim Meyering  <meyering@lucent.com>
81928
81929         With these changes, nanosleep.[ch] are finally enough like the other
81930         lib/* replacement files to compile on a few more losing systems.
81931
81932         * lib/nanosleep.h: Don't include config.h.
81933         Remove prototype from declaration of nanosleep.
81934         (PARAMS): Remove now-unneeded definition.
81935         * lib/nanosleep.c: #undef nanosleep.
81936         (rpl_nanosleep): Rename from nanosleep.
81937
81938 2000-02-10  Jim Meyering  <meyering@lucent.com>
81939
81940         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81941         gnu_nanosleep to rpl_nanosleep.
81942
81943 2000-02-09  Jim Meyering  <meyering@lucent.com>
81944
81945         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81946         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81947
81948 2000-02-08  Akim Demaille  <akim@epita.fr>
81949
81950         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81951         `[' and `]' and remove uses of `changequote'.
81952         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81953         (AC_SYS_LARGEFILE): Likewise.
81954         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81955         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81956         of changequote.
81957         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81958         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81959         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81960         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81961
81962 2000-02-05  Jim Meyering  <meyering@lucent.com>
81963
81964         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81965         Remove explicit use of AC_HEADER_TIME.  It is required by
81966         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81967         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81968         in autoconf whereby the expansion of the latter ended up preceding
81969         the expansion of its prerequisite, AC_HEADER_TIME.
81970         Reported by Volker Borchert.
81971
81972 2000-02-03  Jim Meyering  <meyering@lucent.com>
81973
81974         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81975
81976 2000-02-03  Jim Meyering  <meyering@lucent.com>
81977
81978         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81979         rather than with `#if HAVE_UTMPNAME'.
81980
81981 2000-02-02  Jim Meyering  <meyering@lucent.com>
81982
81983         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81984         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81985         Reported by Eli Zaretskii.
81986
81987 2000-02-01  Jim Meyering  <meyering@lucent.com>
81988
81989         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81990
81991 2000-01-31  Jim Meyering  <meyering@lucent.com>
81992
81993         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81994         functions.  Add the time.h and sys/time.h headers along with the
81995         AC_REQUIRE'ment of AC_HEADER_TIME.
81996
81997 2000-01-31  Jim Meyering  <meyering@lucent.com>
81998
81999         * lib/nanosleep.h (nanosleep): Guard declaration with
82000         `#if ! HAVE_DECL_NANOSLEEP'.
82001         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
82002         the declaration in that vendor's sys/timers.h.
82003         Reported by Christian Krackowizer.
82004
82005         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
82006         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
82007         (ISPRINT): Likewise.
82008         Reported by Tom Tromey.
82009
82010 2000-01-30  Jim Meyering  <meyering@lucent.com>
82011
82012         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
82013
82014         * m4/prereq.m4 (utmp_includes): Define.
82015         Check for ut_user and ut_name members in both struct utmpx
82016         and struct utmp.
82017
82018 2000-01-30  Jim Meyering  <meyering@lucent.com>
82019
82020         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
82021         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
82022         header files where only utmpx.ut_user is declared.
82023
82024         * lib/readutmp.h (UT_USER): Define.
82025
82026 2000-01-29  Jim Meyering  <meyering@lucent.com>
82027
82028         * m4/lib-check.m4: New file containing library-related checks from
82029         fileutils and sh-utils (textutils had none).
82030
82031 2000-01-28  Jim Meyering  <meyering@lucent.com>
82032
82033         * m4/perl.m4: Change format of warning message to look more like that
82034         from the missing script.  Suggestion from François Pinard.
82035
82036 2000-01-25  Jim Meyering  <meyering@lucent.com>
82037
82038         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
82039         well as time.h in the compile check.
82040         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
82041         Fix typo in cross-compiling case: s/yes/no/.
82042
82043 2000-01-23  Jim Meyering  <meyering@lucent.com>
82044
82045         * m4/jm-macros.m4: Move df-related tests here from
82046         fileutils/configure.in
82047
82048         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
82049         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
82050
82051         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
82052         s/space/ac_fsusage_space/.
82053         (jm_FILE_SYSTEM_USAGE): Take two parameters.
82054
82055         * m4/ftruncate.m4: New file (derived from part of
82056         fileutils/configure.in).
82057         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
82058         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
82059
82060         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
82061         AC_SUBST these here, rather than just in sh-util/configure.in, so
82062         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
82063         all the same.
82064         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
82065         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
82066         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
82067         (AC_SUBST(POW_LIBM)): Likewise.
82068         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
82069
82070 2000-01-23  Jim Meyering  <meyering@lucent.com>
82071
82072         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
82073         obstack.c.
82074
82075 2000-01-22  Jim Meyering  <meyering@lucent.com>
82076
82077         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
82078
82079         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
82080
82081         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
82082         configure.in
82083         (AC_CHECK_HEADERS): Likewise for sh-utils.
82084         (AC_CHECK_HEADERS): Likewise for textutils.
82085         Merge the three lists of headers.
82086
82087         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
82088         from fileutils' configure.in.
82089
82090         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
82091         code. Moved tests into their own function (_jm_DECL_HEADERS) in
82092         check-decl.m4.
82093
82094         * m4/check-decl.m4: Use #if rather than #ifdef.
82095         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
82096         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
82097         (_jm_DECL_HEADERS): Define new function.
82098         (jm_CHECK_DECLARATIONS): Require it.
82099
82100 2000-01-22  Jim Meyering  <meyering@lucent.com>
82101
82102         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
82103         [! HAVE_DECL_STRTOULL]: Declare strtoull.
82104         Required for some AIX systems.  Reported by Christian Krackowizer.
82105         [TESTING] (main): New function.
82106
82107         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
82108         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
82109         letters.
82110
82111         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
82112         iswprint.
82113
82114         * lib/strverscmp.c (ISDIGIT): Define.
82115         (strverscmp): Use ISDIGIT, not isdigit.
82116
82117 2000-01-19  Jim Meyering  <meyering@lucent.com>
82118
82119         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
82120         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
82121         defines `struct timespec' in <sys/time.h>
82122
82123         * m4/c-bs-a.m4: Remove uses of changequote altogether.
82124         Thanks to Akim for explaining.
82125
82126 2000-01-17  Paul Eggert  <eggert@twinsun.com>
82127
82128         * lib/nanosleep.c (nanosleep):
82129         Don't use SA_INTERRUPT to decide whether to call sigaction, as
82130         POSIX.1 doesn't require SA_INTERRUPT and some systems
82131         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
82132         it's been part of POSIX.1 since day 1 (in 1988).
82133
82134 2000-01-17  Jim Meyering  <meyering@lucent.com>
82135
82136         * lib/interlock: Remove unused file.  Reported by François Pinard.
82137
82138 2000-01-16  Paul Eggert  <eggert@twinsun.com>
82139
82140         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
82141         alert, backslash, formfeed, and vertical tab unnecessarily in
82142         shell quoting style.
82143
82144 2000-01-16  Jim Meyering  <meyering@lucent.com>
82145
82146         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
82147         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
82148         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
82149         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
82150
82151 2000-01-16  Jim Meyering  <meyering@lucent.com>
82152
82153         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
82154         because the latter didn't work.
82155
82156 2000-01-15  Jim Meyering  <meyering@lucent.com>
82157
82158         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
82159         (AC_REPLACE_FUNCS): Add memcpy and memset.
82160         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
82161         Add strpbrk.
82162         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
82163
82164 2000-01-12  Jim Meyering  <meyering@lucent.com>
82165
82166         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
82167         (jm_PREREQ): Use it.
82168         (jm_PREREQ_READUTMP): New macro.
82169         (jm_PREREQ): Use it.
82170
82171 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82172
82173         Quote multibyte characters correctly.
82174         * m4/c-bs-a.m4: New file.
82175         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
82176         (jm_PREREQ): Use it.
82177
82178 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82179
82180         * m4/uintmax_t.m4: Port to autoconf 2.13.
82181
82182 2000-01-08  Jim Meyering  <meyering@ascend.com>
82183
82184         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
82185         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
82186
82187 2000-01-04  Jim Meyering  <meyering@ascend.com>
82188
82189         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
82190         jm_STRUCT_DIRENT_D_TYPE.
82191         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
82192         jm_STRUCT_DIRENT_D_INO.
82193         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
82194         jm_STRUCT_UTIMBUF.
82195         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
82196         renamings.
82197         * m4/utime.m4: Likewise.
82198
82199         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
82200         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
82201
82202 2000-01-03  Paul Eggert  <eggert@twinsun.com>
82203
82204         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
82205         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
82206
82207 2000-01-02  Jim Meyering  <meyering@ascend.com>
82208
82209         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
82210         remember if this is necessary.
82211
82212 1999-12-26  Jim Meyering  <meyering@ascend.com>
82213
82214         * m4/jm-macros.m4: Use it here.
82215         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
82216
82217 1999-12-23  Jim Meyering  <meyering@ascend.com>
82218
82219         * m4/jm-macros.m4: Check for clock_gettime (moved from
82220         fileutils/configure.in)
82221         Check for gettimeofday.
82222
82223 1999-12-20  Jim Meyering  <meyering@ascend.com>
82224
82225         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
82226         autoconf-2.14a-1999-12-20.
82227
82228 1999-12-19  Jim Meyering  <meyering@ascend.com>
82229
82230         * m4/lstat-slash.m4: New file.
82231         * m4/jm-macros.m4: Use the new macro:
82232         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82233
82234 1999-12-07  Jim Meyering  <meyering@ascend.com>
82235
82236         * m4/perl.m4: Require that File::Compare be available, too.
82237         Too many systems seem to lack it.
82238
82239         * m4/strftime.m4: Add checks for most of the cpp macros tested in
82240         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82241
82242 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82243
82244         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82245         problem with the QNX 4.25 shell, which doesn't propagate exit
82246         status of failed commands inside shell assignments.
82247
82248 1999-11-17  Jim Meyering  <meyering@ascend.com>
82249
82250         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82251
82252 1999-11-07  Jim Meyering  <meyering@ascend.com>
82253
82254         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82255
82256 1999-11-06  Jim Meyering  <meyering@ascend.com>
82257
82258         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82259         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82260
82261 1999-11-05  Jim Meyering  <meyering@ascend.com>
82262
82263         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82264         configure.in of textutils, fileutils, and sh-utils into this one
82265         (shared between those packages) file.
82266         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82267         AC_STRUCT_ST_BLKSIZE.
82268
82269 1999-11-03  Jim Meyering  <meyering@ascend.com>
82270
82271         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82272         of AC_CHECK_TYPE checks includes unistd.h.
82273         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82274         Suggestion from Akim Demaille.
82275
82276 1999-10-30  Jim Meyering  <meyering@ascend.com>
82277
82278         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82279         m4-quoted string.
82280         * m4/ls-mntd-fs.m4: Likewise.
82281         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82282         * m4/jm-winsz1.m4: Likewise.
82283
82284         * m4/const.m4: Remove file, since the fix made it into the experimental
82285         version of autoconf.
82286         * m4/mktime.m4: Likewise.
82287
82288         * m4/check-type.m4: Remove file, now that the latest version of
82289         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82290
82291         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82292         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82293         AC_CHECK_TYPE.
82294
82295 1999-10-04  Jim Meyering  <meyering@ascend.com>
82296
82297         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82298
82299 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82300
82301         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82302         2.95.1 bug with HP-UX 10.20.
82303
82304 1999-09-17  Jim Meyering  <meyering@ascend.com>
82305
82306         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82307         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82308         due to missing strdup (against sh-utils-2.0).
82309
82310 1999-08-29  Jim Meyering  <meyering@ascend.com>
82311
82312         * m4/jm-macros.m4: Require jm_BISON.
82313         * m4/bison.m4: New file.
82314
82315 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82316
82317         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82318         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82319
82320 1999-08-05  Jim Meyering  <meyering@ascend.com>
82321
82322         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82323         to avoid conflicts with `conftest' on 8+3 filesystems.
82324         Suggestion from Eli Zaretskii.
82325
82326 1999-08-04  Jim Meyering  <meyering@ascend.com>
82327
82328         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82329         fileutils and sh-utils (textutils's getline test was inadequate).
82330         (AM_FUNC_GETLINE): Run this test.
82331         (AC_CHECK_FUNCS): Check for getdelim.
82332         Reported by Bob Proulx.
82333
82334 1999-08-02  Jim Meyering  <meyering@ascend.com>
82335
82336         * m4/jm-macros.m4: Add a comment.
82337
82338 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82339
82340         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82341         <inttypes.h> defines strtoumax as a macro (and not as a
82342         function).
82343
82344 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82345
82346         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82347         that we can shift, multiply and divide unsigned long long
82348         values; Ultrix cc can't do it.
82349
82350 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82351
82352         * m4/mktime.m4: New file, which is a preview of what should appear
82353         in the next public autoconf release.
82354
82355 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82356
82357         * m4/lfs.m4: Remove this file.
82358         * m4/largefile.m4: New file.  It contains the old contents of
82359         lfs.m4, except that all names with prefix AC_LFS have been
82360         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82361         compatible with future autoconf versions.  Also, some minor m4
82362         quoting problems have been fixed.
82363
82364 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82365
82366         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82367         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82368         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82369         and simplify the shell code.
82370
82371 1999-08-01  Jim Meyering  <meyering@ascend.com>
82372
82373         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82374         m4.
82375
82376 1999-07-20  Jim Meyering  <meyering@ascend.com>
82377
82378         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82379
82380 1999-07-15  Jim Meyering  <meyering@ascend.com>
82381
82382         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82383
82384 1999-05-22  Jim Meyering  <meyering@ascend.com>
82385
82386         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82387
82388 1999-05-20  Jim Meyering  <meyering@ascend.com>
82389
82390         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82391         Add a colon after each `then' in case $4 is empty.
82392
82393 1999-05-16  Jim Meyering  <meyering@ascend.com>
82394
82395         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82396
82397 1999-05-10  Jim Meyering  <meyering@ascend.com>
82398
82399         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82400
82401         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82402         AC_FUNC_MKTIME.
82403
82404 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82405
82406         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82407
82408 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82409
82410         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82411         not CPPFLAGS, so that linking works correctly in IRIX.
82412
82413 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82414
82415         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82416
82417 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82418
82419         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82420         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82421         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82422         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82423         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82424
82425         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82426
82427 1999-04-20  Jim Meyering  <meyering@ascend.com>
82428
82429         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82430         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82431         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82432
82433 1999-04-18  Jim Meyering  <meyering@ascend.com>
82434
82435         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82436         * m4/jm-macros.m4: Use it.
82437
82438 1999-04-06  Jim Meyering  <meyering@ascend.com>
82439
82440         * m4/strftime.m4: Remove test for %f.
82441
82442 1999-03-29  Jim Meyering  <meyering@ascend.com>
82443
82444         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82445         superset of the AC_TYPE_* checks in the textutils, fileutils,
82446         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82447         AC_TYPE_PID_T.
82448
82449 1999-03-28  Jim Meyering  <meyering@ascend.com>
82450
82451         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82452         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82453         replaced e.g., in the *.sh files of the sh-utils.
82454
82455 1999-03-20  Jim Meyering  <meyering@ascend.com>
82456
82457         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82458         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82459         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82460
82461 1999-03-19  Jim Meyering  <meyering@ascend.com>
82462
82463         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82464
82465 1999-03-12  Jim Meyering  <meyering@ascend.com>
82466
82467         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82468
82469 1999-03-07  Jim Meyering  <meyering@ascend.com>
82470
82471         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82472         declared.
82473
82474 1999-02-17  Jim Meyering  <meyering@ascend.com>
82475
82476         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82477         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82478
82479 1999-02-07  Jim Meyering  <meyering@ascend.com>
82480
82481         * m4/group-member.m4: New file -- extracted from sh-utils'
82482         configure.in.
82483
82484         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82485         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82486
82487 1999-02-06  Jim Meyering  <meyering@ascend.com>
82488
82489         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82490         * m4/fnmatch.m4: Likewise.
82491         * m4/getgroups.m4: Likewise.
82492         * m4/lstat.m4: Likewise.
82493         * m4/malloc.m4: Likewise.
82494         * m4/putenv.m4: Likewise.
82495         * m4/realloc.m4: Likewise.
82496         * m4/regex.m4: Likewise.
82497         * m4/stat.m4: Likewise.
82498         * m4/strftime.m4: Likewise.
82499         Suggestion from Alain Magloire.
82500
82501         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82502         * m4/fnmatch.m4: Likewise.
82503         * m4/getgroups.m4: Likewise.
82504         * m4/getline.m4: Likewise.
82505         * m4/lstat.m4: Likewise.
82506         * m4/malloc.m4: Likewise.
82507         * m4/memcmp.m4: Likewise.
82508         * m4/putenv.m4: Likewise.
82509         * m4/realloc.m4: Likewise.
82510         * m4/regex.m4: Likewise.
82511         * m4/stat.m4: Likewise.
82512         * m4/strftime.m4: Likewise.
82513         Suggestion from Alain Magloire.
82514
82515         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82516         an argument.
82517
82518         * m4/regex.m4: Add a run-time Test for proper operation of
82519         re_compile_pattern.
82520
82521 1999-01-31  Jim Meyering  <meyering@ascend.com>
82522
82523         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82524
82525 1999-01-30  Jim Meyering  <meyering@ascend.com>
82526
82527         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82528
82529         * m4/jm-mktime.m4: Make this a wrapper around the official
82530         AM_FUNC_MKTIME rather than my private copy, now that the official one
82531         is up to date.
82532         * m4/mktime.m4: Remove file.
82533
82534         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82535         * m4/uptime.m4: Likewise.
82536         * m4/uintmax_t.m4: Likewise.
82537
82538 1999-01-28  Jim Meyering  <meyering@ascend.com>
82539
82540         * m4/jm-macros.m4: Use jm_AFS.
82541         * m4/afs.m4: New file (from fileutils' configure.in).
82542
82543         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82544         * m4/chown.m4: Likewise.
82545         * m4/d-ino.m4: Likewise.
82546         * m4/d-type.m4: Likewise.
82547         * m4/fnmatch.m4: Likewise.
82548         * m4/getgroups.m4: Likewise.
82549         * m4/gettext.m4: Likewise.
82550         * m4/jm-mktime.m4: Likewise.
82551         * m4/jm-winsz2.m4: Likewise.
82552         * m4/lcmessage.m4: Likewise.
82553         * m4/ls-mntd-fs.m4: Likewise.
82554         * m4/malloc.m4: Likewise.
82555         * m4/memcmp.m4: Likewise.
82556         * m4/putenv.m4: Likewise.
82557         * m4/realloc.m4: Likewise.
82558         * m4/st_mtim.m4: Likewise.
82559         * m4/strftime.m4: Likewise.
82560
82561 1999-01-16  Jim Meyering  <meyering@ascend.com>
82562
82563         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82564         (ARGMATCH_DIE_DECL): Define.
82565
82566 1999-01-12  Jim Meyering  <meyering@ascend.com>
82567
82568         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82569         Reported by Lars Hecking.
82570
82571 1999-01-10  Jim Meyering  <meyering@ascend.com>
82572
82573         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82574         gross kludge.
82575         * m4/inttypes_h.m4: Likewise.
82576         * m4/lstat.m4: Likewise.
82577         * m4/malloc.m4: Likewise.
82578         * m4/readdir.m4: Likewise.
82579         * m4/realloc.m4: Likewise.
82580         * m4/st_dm_mode.m4: Likewise.
82581         * m4/stat.m4: Likewise.
82582         * m4/utimbuf.m4: Likewise.
82583         * m4/utimes.m4: Likewise.
82584
82585         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82586         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82587         comments in config.h.in are meaningful.
82588
82589         * m4/jm-macros.m4: Require autoconf-2.13 here.
82590
82591         * m4/regex.m4: By default, don't use the included regex.c on systems
82592         with glibc 2.  Suggestion from Uli Drepper.
82593
82594 1999-01-02  Jim Meyering  <meyering@ascend.com>
82595
82596         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82597
82598 1998-12-18  Jim Meyering  <meyering@ascend.com>
82599
82600         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82601         Based on a suggestion from Lars Hecking.
82602
82603 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82604
82605         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82606
82607 1998-11-16  Jim Meyering  <meyering@ascend.com>
82608
82609         * m4/lfs.m4: Double-quote the `uname...` expression.
82610
82611 1998-11-14  Jim Meyering  <meyering@ascend.com>
82612
82613         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82614         * m4/stat.m4: Likewise.
82615
82616 1998-11-03  Jim Meyering  <meyering@ascend.com>
82617
82618         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82619         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82620
82621 1998-10-18  Jim Meyering  <meyering@ascend.com>
82622
82623         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82624
82625 1998-10-17  Jim Meyering  <meyering@ascend.com>
82626
82627         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82628         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82629         calls for those previously hard-coded headers.  Instead, take a new
82630         parameter.
82631         (jm_CHECK_DECLARATIONS): Reflect interface change.
82632         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82633         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82634
82635         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82636
82637 1998-10-14  Jim Meyering  <meyering@ascend.com>
82638
82639         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82640         instead of "TZ=America/Vancouver".  From Paul Eggert.
82641
82642 1998-10-11  Jim Meyering  <meyering@ascend.com>
82643
82644         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82645         This adds a test for a recently added compatibility fix for mktime.c.
82646         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82647
82648 1998-09-27  Jim Meyering  <meyering@ascend.com>
82649
82650         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82651
82652         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82653         ../configure.in, including a change from Gordon Matzigkeit to allow
82654         cross-compiling for the Hurd.
82655
82656         * m4/glibc.m4: New file/macro to test for the GNU C Library
82657         versions 1 and 2.  From Gordon Matzigkeit.
82658         Indent.
82659
82660 1998-09-21  Jim Meyering  <meyering@ascend.com>
82661
82662         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82663
82664 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82665
82666         Port nanosecond-resolution times to UnixWare 2.1.2 and
82667         pedantic Solaris 2.6.
82668
82669         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82670         AC_STRUCT_ST_MTIM.
82671         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82672         Generate name of ns member, instead of just 1 or undef.
82673         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82674
82675 1998-08-15  Jim Meyering  <meyering@ascend.com>
82676
82677         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82678         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82679         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82680         instead of jm_TYPE_SSIZE_T.
82681
82682 1998-08-12  Jim Meyering  <meyering@ascend.com>
82683
82684         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82685
82686 1998-08-02  Jim Meyering  <meyering@ascend.com>
82687
82688         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82689         in acconfig.h manually.
82690
82691 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82692
82693         * m4/st_mtim.m4: New file.
82694
82695 1998-07-28  Jim Meyering  <meyering@ascend.com>
82696
82697         * m4/utimes.m4: Undef stat.
82698
82699 1998-07-25  Jim Meyering  <meyering@ascend.com>
82700
82701         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82702         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82703
82704 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82705
82706         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82707         uid and gid actually remain unchanged.
82708
82709 1998-07-07  Jim Meyering  <meyering@ascend.com>
82710
82711         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82712
82713 1998-07-04  Jim Meyering  <meyering@ascend.com>
82714
82715         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82716         to prove that this macro can be used in packages without regex.c.
82717
82718 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82719
82720         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82721         is to be used.
82722
82723 1998-07-03  Jim Meyering  <meyering@ascend.com>
82724
82725         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82726
82727         * m4/gettext.m4: New file -- from gettext-0.10.35.
82728         * m4/lcmessage.m4: Likewise.
82729         * m4/progtest.m4: Likewise.
82730
82731         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82732         * m4/jm-macros.m4: Require the new macro.
82733
82734 1998-06-29  Jim Meyering  <meyering@ascend.com>
82735
82736         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82737         for the definition of NGROUPS (used in a system header included
82738         by sys/mount.h).
82739
82740 1998-06-28  Jim Meyering  <meyering@ascend.com>
82741
82742         * m4/ls-mntd-fs.m4: New file.
82743         * m4/fstypename.m4: New file.
82744
82745         * m4/jm-macros.m4: Require the new macro.
82746         * m4/jm-glibc-io.m4: New file.
82747
82748 1998-05-19  Jim Meyering  <meyering@ascend.com>
82749
82750         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82751         * m4/lchown.m4: New file.
82752
82753         * m4/Makefile.am.in: New file.
82754         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82755
82756 1998-05-14  Jim Meyering  <meyering@ascend.com>
82757
82758         * m4/Makefile.am (EXTRA_DIST): Add them.
82759         * m4/jm-macros.m4: New file.
82760         * m4/utimbuf.m4: New file.
82761
82762 1998-05-12  Jim Meyering  <meyering@ascend.com>
82763
82764         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82765
82766 1998-05-11  Jim Meyering  <meyering@ascend.com>
82767
82768         * m4/isc-posix.m4: New file.
82769
82770 1998-05-10  Jim Meyering  <meyering@ascend.com>
82771
82772         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82773
82774 1998-05-09  Jim Meyering  <meyering@ascend.com>
82775
82776         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82777         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82778         with automake.
82779
82780         * m4/ssize_t.m4: New file.
82781         * m4/mktime.m4: Remove file -- the new automake has this now.
82782
82783 1998-04-26  Jim Meyering  <meyering@ascend.com>
82784
82785         * m4/assert.m4: New file.
82786         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82787
82788 1998-04-05  Jim Meyering  <meyering@ascend.com>
82789
82790         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82791         (jm_PREREQ): Use it here.
82792
82793 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82794
82795         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82796         in acconfig.h.
82797
82798 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82799
82800         * m4/prereq.m4: New file.
82801         * m4/error.m4: New file.
82802         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82803
82804 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82805
82806         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82807         cache-check for the same variable -- that defeated the purpose of
82808         the test; the test program was never run.  This was a problem only
82809         on systems with losing getline functions -- HP-UX 10.20 is one.
82810         Reported by Bjorn Helgaas.
82811
82812 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82813
82814         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82815
82816 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82817
82818         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82819
82820         * m4/const.m4: New file.  Use an initializer in this declaration
82821         typedef int charset[2]; const charset x;
82822         Reported by Bob Glickstein.
82823
82824 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82825
82826         * m4/chown.m4: Fix reversed types on -1 args to chown.
82827         From Kaveh Ghazi.
82828
82829 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82830
82831         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82832         Add lseek and memchr.
82833
82834         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82835         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82836         have a 20-character limit on names.
82837
82838 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82839
82840         * m4/inttypes_h.m4: New file.
82841         * m4/uintmax_t.m4: New file.
82842         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82843
82844
82845         -----
82846
82847         Local Variables:
82848         coding: utf-8
82849         End:
82850
82851         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82852
82853         Copying and distribution of this file, with or without
82854         modification, are permitted provided the copyright notice
82855         and this notice are preserved.